text:
Synthesis failed for container

Hello! Autosynth couldn't regenerate container. :broken_heart:
Here's the output from running synth.py:
xternal/gapic_generator_python/requirements.txt (line 4))
  Using cached https://files.pythonhosted.org/packages/30/9e/f663a2aa66a09d838042ae1a2c5659828bb9b41ea3a6efa20a20fd92b121/Jinja2-2.11.2-py2.py3-none-any.whl
  Saved ./Jinja2-2.11.2-py2.py3-none-any.whl
Collecting MarkupSafe==1.1.1 (from -r /home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/gapic_generator_python/requirements.txt (line 5))
  Using cached https://files.pythonhosted.org/packages/b2/5f/23e0023be6bb885d00ffbefad2942bc51a620328ee910f64abe5a8d18dd1/MarkupSafe-1.1.1-cp36-cp36m-manylinux1_x86_64.whl
  Saved ./MarkupSafe-1.1.1-cp36-cp36m-manylinux1_x86_64.whl
Collecting protobuf==3.13.0 (from -r /home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/gapic_generator_python/requirements.txt (line 6))
  Using cached https://files.pythonhosted.org/packages/30/79/510974552cebff2ba04038544799450defe75e96ea5f1675dbf72cc8744f/protobuf-3.13.0-cp36-cp36m-manylinux1_x86_64.whl
  Saved ./protobuf-3.13.0-cp36-cp36m-manylinux1_x86_64.whl
Collecting pypandoc==1.5 (from -r /home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/gapic_generator_python/requirements.txt (line 7))
  Using cached https://files.pythonhosted.org/packages/d6/b7/5050dc1769c8a93d3ec7c4bd55be161991c94b8b235f88bf7c764449e708/pypandoc-1.5.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmpfs/tmp/tmp0c_brkdf/setuptools-tmp/setuptools/__init__.py", line 6, in <module>
        import distutils.core
      File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/_distutils_hack/__init__.py", line 83, in create_module
        return importlib.import_module('setuptools._distutils')
      File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/importlib/__init__.py", line 126, in import_module
        return _bootstrap._gcd_import(name[level:], package, level)
    ModuleNotFoundError: No module named 'setuptools._distutils'

    ----------------------------------------
 (Command "python setup.py egg_info" failed with error code 1 in /tmpfs/tmp/pip-build-8of9vjhq/pypandoc/
)
ERROR: no such package '@gapic_generator_python_pip_deps//': pip_import failed: Collecting click==7.1.2 (from -r /home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/gapic_generator_python/requirements.txt (line 1))
  Using cached https://files.pythonhosted.org/packages/d2/3d/fa76db83bf75c4f8d338c2fd15c8d33fdd7ad23a9b5e57eb6c5de26b430e/click-7.1.2-py2.py3-none-any.whl
  Saved ./click-7.1.2-py2.py3-none-any.whl
Collecting google-api-core==1.22.1 (from -r /home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/gapic_generator_python/requirements.txt (line 2))
  Using cached https://files.pythonhosted.org/packages/e0/2d/7c6c75013105e1d2b6eaa1bf18a56995be1dbc673c38885aea31136e9918/google_api_core-1.22.1-py2.py3-none-any.whl
  Saved ./google_api_core-1.22.1-py2.py3-none-any.whl
Collecting googleapis-common-protos==1.52.0 (from -r /home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/gapic_generator_python/requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/03/74/3956721ea1eb4bcf7502a311fdaa60b85bd751de4e57d1943afe9b334141/googleapis_common_protos-1.52.0-py2.py3-none-any.whl
  Saved ./googleapis_common_protos-1.52.0-py2.py3-none-any.whl
Collecting jinja2==2.11.2 (from -r /home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/gapic_generator_python/requirements.txt (line 4))
  Using cached https://files.pythonhosted.org/packages/30/9e/f663a2aa66a09d838042ae1a2c5659828bb9b41ea3a6efa20a20fd92b121/Jinja2-2.11.2-py2.py3-none-any.whl
  Saved ./Jinja2-2.11.2-py2.py3-none-any.whl
Collecting MarkupSafe==1.1.1 (from -r /home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/gapic_generator_python/requirements.txt (line 5))
  Using cached https://files.pythonhosted.org/packages/b2/5f/23e0023be6bb885d00ffbefad2942bc51a620328ee910f64abe5a8d18dd1/MarkupSafe-1.1.1-cp36-cp36m-manylinux1_x86_64.whl
  Saved ./MarkupSafe-1.1.1-cp36-cp36m-manylinux1_x86_64.whl
Collecting protobuf==3.13.0 (from -r /home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/gapic_generator_python/requirements.txt (line 6))
  Using cached https://files.pythonhosted.org/packages/30/79/510974552cebff2ba04038544799450defe75e96ea5f1675dbf72cc8744f/protobuf-3.13.0-cp36-cp36m-manylinux1_x86_64.whl
  Saved ./protobuf-3.13.0-cp36-cp36m-manylinux1_x86_64.whl
Collecting pypandoc==1.5 (from -r /home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/gapic_generator_python/requirements.txt (line 7))
  Using cached https://files.pythonhosted.org/packages/d6/b7/5050dc1769c8a93d3ec7c4bd55be161991c94b8b235f88bf7c764449e708/pypandoc-1.5.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmpfs/tmp/tmp0c_brkdf/setuptools-tmp/setuptools/__init__.py", line 6, in <module>
        import distutils.core
      File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/_distutils_hack/__init__.py", line 83, in create_module
        return importlib.import_module('setuptools._distutils')
      File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/importlib/__init__.py", line 126, in import_module
        return _bootstrap._gcd_import(name[level:], package, level)
    ModuleNotFoundError: No module named 'setuptools._distutils'

    ----------------------------------------
 (Command "python setup.py egg_info" failed with error code 1 in /tmpfs/tmp/pip-build-8of9vjhq/pypandoc/
)
INFO: Elapsed time: 2.328s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)
FAILED: Build did NOT complete successfully (0 packages loaded)

Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 102, in <module>
    main()
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 94, in main
    spec.loader.exec_module(synth_module)  # type: ignore
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/kbuilder/.cache/synthtool/google-cloud-php/Container/synth.py", line 29, in <module>
    bazel_target=f'//google/container/v1:google-cloud-container-v1-php')
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 58, in php_library
    return self._generate_code(service, version, "php", **kwargs)
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 183, in _generate_code
    shell.run(bazel_run_args)
  File "/tmpfs/src/github/synthtool/synthtool/shell.py", line 39, in run
    raise exc
  File "/tmpfs/src/github/synthtool/synthtool/shell.py", line 33, in run
    encoding="utf-8",
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/subprocess.py", line 438, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['bazel', '--max_idle_secs=240', 'build', '//google/container/v1:google-cloud-container-v1-php']' returned non-zero exit status 1.
2020-09-02 03:01:39,354 autosynth [ERROR] > Synthesis failed
2020-09-02 03:01:39,354 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at 8038912e chore(deps): update dependency google/cloud-tools to ^0.11.0 (#3363)
2020-09-02 03:01:39,387 autosynth [DEBUG] > Running: git checkout autosynth-container
Switched to branch 'autosynth-container'
Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 690, in <module>
    main()
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 539, in main
    return _inner_main(temp_dir)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 670, in _inner_main
    commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 375, in synthesize_loop
    has_changes = toolbox.synthesize_version_in_new_branch(synthesizer, youngest)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 273, in synthesize_version_in_new_branch
    synthesizer.synthesize(synth_log_path, self.environ)
  File "/tmpfs/src/github/synthtool/autosynth/synthesizer.py", line 120, in synthesize
    synth_proc.check_returncode()  # Raise an exception.
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/subprocess.py", line 389, in check_returncode
    self.stderr)
subprocess.CalledProcessError: Command '['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']' returned non-zero exit status 1.

Google internal developers can see the full log here.

Autosynth passed, closing! :green_heart:

repo: googleapis/google-cloud-php


text:
chore: release 0.137.0

:robot: I have created a release *beep* *boop*
0.137.0
google/cloud-bigquery-connection 0.1.0
Features

introduce BigQuery connection and reservation clients (#3251) (45d9a57)

google/cloud-bigquery-reservation 0.1.0
Features

introduce BigQuery connection and reservation clients (#3251) (45d9a57)

google/cloud-bigquery-storage 0.3.0
Features

update retry and timeout configuration (#3270) (f8f395d)

google/cloud-iot 1.2.0
Features

update retry and timeout configuration (#3272) (ef55f68)

google/cloud-language 0.23.0
Features

update retry and timeout configuration (#3266) (2a3328e)

google/cloud-pubsub 1.27.0
Features

add client support for detach subscription (#3125) (b37d1ce)

Documentation

remove experimental warning for ordering keys properties (#3259) (d332b0b)

google/cloud-recommendations-ai 0.2.0
Features

update retry and timeout configuration (#3273) (ced09d1)

Miscellaneous Chores

migrate to bazel (#3247) (823f5ea)

google/cloud-recommender 1.1.0
Features

adds methods for interacting with insights (#3223) (10e82fb)

google/cloud-redis 1.1.0
Features

add UpgradeInstance request (#3274) (e14db65)

google/cloud-security-center 0.9.0
Features

update retry and timeout configuration (#3275) (797e264)

google/cloud-service-directory 0.2.0
Features

update retry and timeout configuration (#3267) (a3f4ac1)

google/cloud-spanner 1.30.1
Miscellaneous Chores

update retry configurations (#3229) (d76b184)

google/cloud-trace 1.2.0
Features

added support for span kind (#3227) (1c7ea00)

google/cloud-translate 1.8.1
Documentation

add backticks in docstring (#3260) (58a3fd5)

This PR was generated with Release Please.

Release is at https://github.com/googleapis/google-cloud-php/releases/tag/v0.137.0

source: gharchive/pull-request

authors: jdpedrie yoshi-automation

license_type: permissive

license_source: github-api


text:
the css content in html has been wrongly translated

the translate api: POST https://translation.googleapis.com/v3/projects/PROJECT_NUMBER_OR_ID:translateText,
this api doc is: https://cloud.google.com/translate/docs/advanced/translating-text-v3#translate_v3_translate_text-drest。
originText:  "
test"
I will translate this originText, the sourceLanguage is "english", the targetLanguage is "ja"。
translatedText: "<スタイル>.md-content.richtext .help-container {背景: #f1f1f1}\n
テスト"
you can see

@lim1208 this repo's issues are for reporting issues with the Java translate library. If you have an issues with the library, please open a new bug and include:

A description of the issues with the library
the exact steps the lead to the issuing being reproducible
what you expected to happen
what actually happened

Please also include any information that could help debug like information on your environment, screenshots, etc.

source: gharchive/issue

repo: googleapis/java-translate

license_source: bigquery


text:
No grpc pre-built binary

Environment details

OS: Arch Linux 4.16.6-1
Node.js version: 10.0.0
npm version: 6.0.0
@google-cloud/common-grpc version: 0.6.0

Steps to reproduce
npm i @google-cloud/firestore
There is a pre-built binary for grpc@1.11.1. And there isn't one for grpc@1.10.0. So to be able to install @google-cloud/firestore on Node 10 @google-cloud/common-grpc should upgrade grpc dependency to 1.11.0 and @google-cloud/firestore should upgrade @google-cloud/common-grpc dependency to the latest one.
Thanks.

@alexander-fenster how should we handle this?

cc @zackify from https://github.com/googleapis/nodejs-vision/issues/61

I'm going to close-- seems like there might not be an issue here.

authors: jonataswalker stephenplusplus

repo: googleapis/nodejs-common-grpc


text:
feat: add optional group attribute for candidate release PRs

Strategies can specify an optional group that a release pull request belongs to. The merge plugin will merge candidate release PRs by those group attributes.
Java strategies now mark the snapshot bump PRs with the snapshot group which should separate those from non-snapshot releases.
Fixes #1657

Closing in favor of #1660

repo: googleapis/release-please


text:
Some questions about cartographer running on Nvidia TX2

Thank you for filing an issue!
It would help us tremendously if you run through the following checklist. This
ensures that we have the most information to quickly understand, analyze,
reproduce and eventually resolve your issue.
Please

run rosbag_validate which does some checks on your sensor data. This
tool often finds issues that can explain poor performance and must be fixed
at recording time. Please post the full output of the tool into a
GitHub Gist at https://gist.github.com/, then link it in the issue even if
it does not report anything. You can run the tool like this:
rosrun cartographer_ros cartographer_rosbag_validate -bag_filename

post a link to a Git repository containing a branch of
cartographer_ros containing all the configuration, launch, and URDF files
required to reproduce your issue.

post a link to a bag file we can use to reproduce your issue. Put it on
Google Drive, Dropbox, any webserver or wherever it is publicly
downloadable.

remove this boilerplate text before submitting your issue.

We will likely be unable to help you without all of these points addressed.

when I run cartographer, I set TX2(ARM structure) on the performance method 0. But the CPU information shows that only one CPU is working for this thread, and this cpu can not work for a long time. So, I want to know how can I use all CPU work for this slam algorithm. Another question is that I find a RRT path planning algorithm in ROS, if this algorithm can used with cartographer slam for UAV navigation and obstacle avoidance?


text:
android.app.RemoteServiceException: Context.startForegroundService() did not then call Service.startForeground()

We are getting following crash sometimes while casting videos and switching to new videos quickly.
When we start casting new video we are calling remoteMediaClient?.stop() and then load the new one.
Could you please guide us what can be done to avoid this crash:
cast SDK version used:
com.google.android.gms:play-services-cast-framework:18.0.0
android.app.RemoteServiceException: Context.startForegroundService() did not then call Service.startForeground(): ServiceRecord{c3019d0 u0 com.discovery.plus.uat/com.google.android.gms.cast.framework.media.MediaNotificationService}
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1945)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7356)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)

We are getting following crash sometimes while casting videos and switching to new videos quickly.
When we start casting new video we are calling remoteMediaClient?.stop() and then load the new one.
Could you please guide us what can be done to avoid this crash:
cast SDK version used:
com.google.android.gms:play-services-cast-framework:18.0.0
android.app.RemoteServiceException: Context.startForegroundService() did not then call Service.startForeground(): ServiceRecord{c3019d0 u0 com.discovery.plus.uat/com.google.android.gms.cast.framework.media.MediaNotificationService}
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1945)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7356)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)

Any updates on this?

Any updates on this? @Discovery-JSwapnil  and @pnkshir did you get to fix this ? If yes, can you give some thoughts of how can this be fixed?

@anjaneesh We ran into this exception once in a while where the cast session fails because of business logic related errors (location constraints etc).
It seems like Sender SDK invokes startForegroundService but the immediate failure results in stopService even before the service could invoke startForeground. Ideally, Android Framework should not fail such cases. Could this be handled in the Sender SDK to fail gracefully where stopService is delayed until service invokes startForeground?

authors: Discovery-JSwapnil Ethan1983 chinmaygghag pnkshir

repo: googlecast/CastVideos-android


text:
swipe doesn't work on modifier

https://github.com/googlecodelabs/android-compose-codelabs/blob/398ad6d38a176cb342f27e60f31bdd021f19c09e/AnimationCodelab/finished/src/main/java/com/example/android/codelab/animation/ui/home/Home.kt#L646
probably due to the new version of compose or smth else
I moved "swipeToDismiss" to modifier from Row in the same method, but it don't work properly, although swipe is working now.
Could you please help me to figure out, what is wrong?

since compose is in beta many libraries in experimental, so make sure u r compose is on the latest version 1.0.0-beta08 (as of commenting) and to fix it annotate swipeToDismiss function with @ExperimentalAnimationApi annotation

repo: googlecodelabs/android-compose-codelabs


text:
Adding to homescreen

The icons list doesn't include the 512x512 size which is required for the prompt to be shown on devices with high resolution.
Users that follow all the instructions might get stuck when the prompt doesn't show and won't know why..
This could easily be fixed by adding this resolution also.

Hi!
Thanks for the feedback. I've rewritten the codelab from scratch and believe I have fixed this issue. The code has been updated, and the new guide is now live.
If you find any issues with the new codelab, please let us know!
Thanks!

authors: idanen petele

repo: googlecodelabs/your-first-pwapp


text:
Clicking causes section to restart at "Ok, you should now see the green bar" stage in the tutorial

Steps to reproduce:

Complete tutorial up to the step at which the instructor says "Ok, you should now see the green bar (...)"
Click anywhere on the screen as that (long) step is being played

At this point, the stage restarts. This is particularly annoying in this longer stage where one may become impatient and begin clicking around.

Thanks

authors: HalfdanJ arkadyark

repo: googlecreativelab/teachable-machine


text:
Json connect

Connects to JSON data by URL.  Supports caching. Documentation (and example URL) in README.md

Signed it

As a first step can you migrate this to using dscc-gen, you should follow the guide for existing connectors. We want all connectors in this repo to follow the same file/folder-structure.

As a first step can you migrate this to using dscc-gen, you should follow the guide for existing connectors. We want all connectors in this repo to follow the same file/folder-structure.

Thanks, that improves the workflow!
At my first attempts to migrate the script threw an exception message "dotf is not a function". Turned out I had to install yarn first. Maybe it could be added as dependency in the documentation.

Thanks, and no problem. I already suspected that the licenses might conflict.

Thanks for the contribution!

authors: diminishedprime gabrielRamaker

repo: googledatastudio/community-connectors


text:
Fixed logical error where we only tried to pin un-pinnable files in PinFileActivity.java

Fixed logical error where we only tried to pin un-pinnable files

Thank you, however this has been fixed in another commit.

repo: googledrive/android-demos


text:
No such file or directory error running fontbakery-check-collection.sh

Observed behaviour
sh fontbakery-check-collection.sh WS
mkdir: WS/check_results: File exists
mkdir: -p: File exists
rm: WS/check_results/issues.txt: No such file or directory
rm: -f: No such file or directory
rm: -f: No such file or directory
rm: WS/*/*/*fontbakery.*: No such file or directory
Processing 'WS/apache/*'...
Validation of expected values failed:
fonts: Value is empty. (value: ())
usage: fontbakery check-googlefonts [-h] [-c CHECKID] [-x EXCLUDE_CHECKID]
                                    [-v] [-l LOGLEVEL] [-m LOGLEVEL_MESSAGES]
                                    [-n] [-C] [-S] [-L] [--json JSON_FILE]
                                    [--ghmarkdown MD_FILE] [--html HTML_FILE]
                                    [-g ITERATED_ARG] [-o ORDER]
                                    [fonts [fonts ...]]
Processing 'WS/ofl/*'...
Validation of expected values failed:
fonts: Value is empty. (value: ())
usage: fontbakery check-googlefonts [-h] [-c CHECKID] [-x EXCLUDE_CHECKID]
                                    [-v] [-l LOGLEVEL] [-m LOGLEVEL_MESSAGES]
                                    [-n] [-C] [-S] [-L] [--json JSON_FILE]
                                    [--ghmarkdown MD_FILE] [--html HTML_FILE]
                                    [-g ITERATED_ARG] [-o ORDER]
                                    [fonts [fonts ...]]
Processing 'WS/ufl/*'...
Validation of expected values failed:
fonts: Value is empty. (value: ())
usage: fontbakery check-googlefonts [-h] [-c CHECKID] [-x EXCLUDE_CHECKID]
                                    [-v] [-l LOGLEVEL] [-m LOGLEVEL_MESSAGES]
                                    [-n] [-C] [-S] [-L] [--json JSON_FILE]
                                    [--ghmarkdown MD_FILE] [--html HTML_FILE]
                                    [-g ITERATED_ARG] [-o ORDER]
                                    [fonts [fonts ...]]
cat: WS/check_results/issues.txt: No such file or directory

Expected behaviour
I expected this to happen:
This will create a folder called check_results/ then run the check-googlefonts subcommand on every family, saving individual per-family reports in json format into subdirectories.

This script has not been maintained for a long time. I believe you could achieve a similar result by simply invoking fontbakery directly and passing a set of font files. We may have problems with the family-checks though. So maybe the script is still needed until fontbakery gets smart enough to iterate on multiple unrelated families by itself. See #2431

This script expects to find font-families organized in the same directory structure as the Google Fonts git repo at https://github.com/google/fonts/
The collection_folder specified in the command-line must contain sub-directories with license names (ofl, ufl or apache) and familyname directories within those.
I noticed that the script has some bugs that make it crash on MacOS. I will address those now.

authors: felipesanches weiweihuanghuang

repo: googlefonts/fontbakery


text:
[com.google.fonts/check/soft_hyphen] improve rationale

Observed behaviour
⚠ WARN: Does the font contain a soft hyphen? (com.google.fonts/check/soft_hyphen)
⚠ WARN This font has a 'Soft Hyphen' character. [code: softhyphen]
Expected behaviour
The check doesn't say what should be done with the soft hyphen. I would propose:
"The softhyphen is sometimes designed empty with no width (such as a control character), sometimes the same as the traditional hyphen, sometimes double encoded with the hyphen. That being said, it is recommended to not include it in the font at all, because discretionary hyphenation should be handled at the level of the shaping engine, not the font. Also, even if present, the software would no display that character. More discussion here https://typedrawers.com/discussion/2046/special-dash-things-softhyphen-horizontalbar and here https://github.com/googlefonts/fontbakery/issues/3486"
cc @vv-monsalve @twardoch thumbs up if you agree

Also, is it your intent to always report it as a WARN if it simply exists? Seems to me that the report should be:

INFO: if u00AD is present and is at zero width with no outlines, as expected
WARN: if u00AD is present but there is an outline or it is double encoded to u002D (hyphen)
FAIL: if not present

@RosaWagner and others, what do you think aobut what @glenda-tn just said?

@felipesanches maybe there was a confusion from my part between rationale/message; I would have liked to make the message about what to do when rationale are not displayed in report (such as in GF repo)
⚠ WARN This font has a 'Soft Hyphen' character. [code: softhyphen] Please consider removing it from the font.
@glenda-tn, we don't want soft hyphen to be present. If the soft hyphen is not present, then it is a PASS.

@glenda-tn, are you OK with the approach that Rosalie proposed in her last message?

oooh! I didn't realize Google actually wants the char to be removed.
At TN, we are following the Unicode definition as I had posted in #4046 and repeat here:

Unlike U+2010 HYPHEN, which always has a visible rendition, the character U+00AD SOFT HYPHEN (SHY) is an invisible format character that merely indicates a preferred intraword line break position. If the line is broken at that point, then whatever mechanism is appropriate for intraword line breaks should be invoked, just as if the line break had been triggered by another hyphenation mechanism, such as a dictionary lookup. Depending on the language and the word, that may produce different visible results…

At Type Network, a year ago we actually had to add uni00AD to a typeface for a client because:

Due to problems with hyphenation in printing (Office 365) documents a developer found out that the [TypeNetwork fonts] do not support soft hyphen characters ((unicode: \u00AD)

I apologize, I had misunderstood your intent with the check. Now I get that you don't actually want it in the font. That said, then your rationale is fine and clarifying. At TN, we will continue to require it, but at 0 width, with no outlines.
Thanks for your attention to this.

@felipesanches To keep the check Universal, I would think that following the Unicode spec is the correct thing to do and use the INFO, WARN, FAIL results that I posted above. The original rationale was fine though I might cross out the last sentence.

This font has a 'Soft Hyphen' character (codepoint 0x00AD) which is supposed to be zero-width and invisible, and is used to mark a hyphenation possibility within a word in the absence of or overriding dictionary hyphenation. It is mostly an obsolete mechanism now, and the character is only included in fonts for legacy codepage coverage. [code: softhyphen]

To have more clout, I might add the quote from Unicode page to the above. (quote copy is in my previous comment)

Another thing to keep in mind is the fact that the checks in the universal profile are things that go beyond what the OpenType spec dictates.
So, we have checks in the opentype profile for things that the spec requires or recommends, and then the universal profile is for additional aspects that are not covered by the spec but that are generally established as good practices in the type design community.

I once made a font which had a glyph associated with the soft hyphen Unicode. The glyph looked like hyphen but had a negative sidebearing so that the hyphen would stick out a bit at the hyphenation point.
I observed that most implementations ignored that glyph and displayed the actual hyphen glyph at the end of the line, but at least one app* did display the glyph associated with the soft hyphen Unicode — which is what I actually wanted. But I did not test what would happen if the font did not include a glyph there. But my conclusion was that it was safer if the soft hyphen Unicode is supported by the font cmap — be it as a separate glyph or as an additional mapping to the hyphen glyph.
*) Unfortunately I longer remember which app it was

Great! It sounds like we're reaching consensus on this for the universal profile then!
I'll incorporate these proposed changes. Thanks!

@RosaWagner I do not know anything further about the client usage... this was over a year ago and we simply made it a point that going forward, we would require the code point.
I agree with @twardoch's earlier comment upthread in that the code point, 00AD, should be present in fonts. There are likely many existing documents that use it. While some apps/browsers may ignore it, there are probably some out there that don't and so there is risk of the .notdef showing up if the code point is missing from a font.
Another point to note is that the softhyphen is used in other languages and connected scripts, like Arabic. From the same Unicode link I've been referring to but written further down the page is this:

Hyphenation, and therefore the SHY, can be used with the Arabic script. If the rendering system breaks at that point, the display—including shaping—should be what is appropriate for the given language. For example, sometimes a hyphen-like mark is placed on the end of the line. This mark looks like a kashida, but is not connected to the letter preceding it. Instead, the appearance of the mark is as if it had been placed—and the line divided—after the contextual shapes for the line have been determined. For more information on shaping, see [UAX9] and Section 9.2, Arabic, of [Unicode].

That said, I do not think the absent code point should be a PASS, but rather, a FAIL.

PASS if soft hyphen is absent
PASS if soft hyphen is present with 0-width and no outline
FAIL if softhyphen is present with contour with suggestion to either remove it for recent environments or leave it but invisible for backward compatibility.

From our previous tests and the new ones Rosalie has performed, I would support this.
However, since we are discussing a Universal profile check, I would like to hear from @tiroj, who provided the first argument we take for the previous issue.

I think I would be inclined to go with

WARN or INFO if soft hyphen is absent
PASS if soft hyphen is present with 0-width and no outline
FAIL if softhyphen is present with contour with suggestion to either remove it for recent environments or leave it but invisible for backward compatibility

While soft hyphen not being present is likely to be fine in most instances, there are edge cases where it could be either desired or recommended for accurate Windows codepage coverage.
There are a lot of fonts in the wild that have visible soft-hyphen glyphs, or that dual-map the /hyphen glyph to U+00AD, since many people are confused about the purpose of the character. I made a few myself before Khaled set me right a few years ago.

There are a lot of fonts in the wild that have visible soft-hyphen glyphs, or that dual-map the /hyphen glyph to U+00AD, since many people are confused about the purpose of the character.

This. Noto, Roboto and RobotoFlex, Segoe, SF Symbols, and so many other Google fonts all have a visible contour or are dble-encoded. I have looked at so many. I only know of SF Pro that completely omits the code point.
I would be fine eith @tiroj's rationale for the Universal profile.

Another point to note is that the softhyphen is used in other languages and connected scripts, like Arabic. From the same Unicode link I've been referring to but written further down the page is this:

Hyphenation, and therefore the SHY, can be used with the Arabic script. If the rendering system breaks at that point, the display—including shaping—should be what is appropriate for the given language. For example, sometimes a hyphen-like mark is placed on the end of the line.

This is true, in theory: the Uyghur language, at least, uses the Arabic script and supports hyphenation. But I am not sure that it is true in practice. I don't think that any layout system correctly implements hyphenation for Arabic. (Apart from my own SILE typesetter. ;-)

authors: RosaWagner felipesanches glenda-tn simoncozens tiroj twardoch vv-monsalve


text:
Refactor options.

Fixes https://github.com/googlegenomics/dataflow-java/issues/114
Other minor but related cleanup including:

simplified OutputDatasetId for CalculateCoverage pipeline
got rid of now obsolete non-gRPC version of JoinNonVariantSegmentsWithVariants
fixed all code with warning "local variable definition hides another field or variable"

Also confirmed that integration tests pass.

@dloy PTAL

LGTM

authors: deflaux dionloy

repo: googlegenomics/dataflow-java


text:
targetSdkVersion mismatch

Hi,
Thanks for providing good sample app!
When installing with $ adb install -t Application-debug.apk" on Pixel (OPR1.170321.003),
Err "Requires development platform android-O (current platform is any of [O])]" occurred.
I've tried "O" for targetSdkVersion and solved the problem.
Could you please check?
(PS; icon for app is missing and build is failed...)

I signed it!

This sample has been deprecated/archived (check README for more information on newer samples related to this technology).
As recommended by GitHub, we are closing all issues and pull requests.

authors: aremokoremo codingjeremy


text:
How to capture pictures from metadata?

Hello,
Throughout the app, I can run the attached camera at my mobilephone.
However, my aim is capture pictures and save these pictures in my local device.
After learning the code, I've realized that maybe I need to write a callback function called ACameraCaptureSession_captureCallbacks, and achieve my aim at the third param of ACameraCaptureSession_captureCallbacks(also is a callback function called ACameraCaptureSession_captureCallback_result).
Well,my problem is that I don't know how to copy the data I need from the metadata. Especially in the C++ language environment.
Therefore,could you mind tell me how to achieve my goal in the foundation of this test app?And possibly it's better that if you can give me an example which could take and save pictures.
thanks !
During the waiting time,I will also explore how to achieve my goal!

:-) thank you for kindness for "During the waiting time ..."  :-)  I will try to catch up and mainly recently spent lot of time on NNAPI thing, it is new area and interesting area.
Tried to make up a sample to capture the jpeg files, does that serve your purpose:  https://github.com/googlesamples/android-ndk/blob/master/camera/basic/src/main/cpp/image_reader.cpp
( it wraps around the AImageReader and give to camera, then camera callbacks to tell application when there is an image ready).

@gzrjzcx, is the file helpful?

So sorry for my misleading words "During the waiting time ...",I just want to express my ambition that I must solve this problem. And please not be angry for these biased words.
Well, back to the topic. I could't run your test app successfully since there are some components I missed probably. And in the short time maybe I could't find these necessary components. However, I have learned something important from your second test example.And I believe it's could be used in the native-camera2-master project, right ? I will try my best to transplant the cpp codes to the first project and achieve the capturing pictures goal.
Then, I know you are busy on NNAPI thing, however if possible, could you please make use of your fragmentation time to help me take and save pictures in the native-camera2-master project?
Well,no metter what things will happen.Very thanks to you and I am looking forward to your reply.
See you！

No worries :-).  what error you got when the sample was failed ( at compile time or run-time )? will find time to look the project you mentioned whenever possible.

Thanks!
Maybe the errors occured in these two codes, and other errors probably were caused by the two missed components.
code:
import android.support.annotation.NonNull;
import android.support.v4.app.ActivityCompat;
Error
The Android Studio told me that there is not component :android.support.annotation
The Android Studio told me that there is not component :android.support.v4.app

thanks for the follow-up!  This seems to be Java side,  Android Studio would could recover from it automatically, appcompat lib is configured inside project's build.gradle file.
compile 'com.android.support:appcompat-v7:24.2.0'
totally clean the project ( with Android Studio ), and rebuild the project.
Will have a look soon.

Oh!!!!
Yes,I have run the code successfully ! Extreamly amazing and excited!
However, there is something wrong that I find the preview (including photos by taken) is not clear like the original camera preview. Possibly some camera params like width and length werw changed ?  I don't  know the potential reasons and I will read and make research in this code carefully.
Many many many thanks to you! Maybe tomorrow you'll also receive my question. jajaja~

yes, you are right: the parameters were not very heavily tuned ( although tried to do my best for it :-)) for best effect.  Just putting 2 parameters adjustable on the UI ( sliders ), to show the way to change those camera parameters. Please explore and submit a patch when you get more parameters tuned -- those are very valuable. Thanks

closing this one for now, feel free to open it whenever needed (camera is interesting subject and I am eager to explore camera pipeline: image, graphics, and machine learning are exciting areas :-), a joke from my personal view right after long weekend!)

authors: ggfan gzrjzcx

repo: googlesamples/android-ndk


text:
Update README.md

For this to work, we must use quotes!

Thanks!

repo: googlesamples/assistant-sdk-nodejs


text:
Supporting Dutch Language

Hi,
Is there a way to make the assistant understand the "Dutch" language ?
Using the following command :

googlesamples-assistant-pushtotalk --device-id  'FD...0FD4F8'  --device-model-id 'pi.....it'  --lang 'es-ES'

I could make the assistant understand Spanish, but when I tried it with the language options 'nl-BE' or 'nl-NL' (for "Dutch - Belgium" and "Dutch - Netherlands") it gives an error indicating that it is an unsupported language code.

grpc._channel._Rendezvous: <_Rendezvous of RPC that terminated with (StatusCode.INVALID_ARGUMENT, Invalid 'dialog_state_in': unsupported language_code.)>

If the Dutch language is currently not supported, do you have an idea when it will be supported ?
many thanks
Jan.

I believe that the supported list of languages lines up closely with the Actions on Google list of locales. Dutch currently is not one of them.
There's no public timeline for when future languages are being released. But when it is, then using nl should work as expected.

Hi,
I have facing same issue for Thai language 'th-TH'. May I have confirm Google Assistant support this language?
Thank you
Panya

It seems like Assistant now supports th-TH and nl-NL.

I'm running on AIY google, it still not support. there is error showing "no support this language:" after ran command pushtotalk.py --lang th-TH

I'm running the assistant on python SDK google on a Raspberry PI 3b, it still not support. there is error showing "no support this language:" after ran command pushtotalk.py --lang nl-NL

This reference page shows all of the supported languages right now.

Ok, thanks!
I will monitor that reference page for update. Anyone an idea when dutch will be added?

authors: Fleker bj32161 janvda pvklink

repo: googlesamples/assistant-sdk-python


text:
TangoSDK/Examples/Scenes/SimpleAugmentedReality can work, but have a problem

I find a problem, under this TangoSDK/Examples/Scenes/  folder, the SimpleAugmentedReality scene can work, but can't see the reality world, just see the virtual world.

Have you made any modifications to the project, particularly AndroidManifest.xml? The app needs the camera permission to properly display the camera image.
Also, what version of Unity are you using, so we could reproduce?

I didn't any modification to the project,  also, I have checked the AndroidManifest.xml, there have camera permission.
the version of Unity is 5.6.1f1(32-bit), could you give me your email, so, I can give you more feed back, thank you

Recently, I updated TangoCore to latest version Hopak. But my Tango-Unity application failed to work showing error:
TangoApplication.Startup() - ERROR : Not all required permission were accepted yet. Needed : System.collections.generic.HashSet 1[Tango.TangoApplication + PermissionTypes]
I also build my app again integrating with new SDK release in a fashion they mentioned on GoogleTango site but my device showed same error.

authors: arpit2050 chaosemer feixiaku

repo: googlesamples/tango-examples-unity


text:
is there a way to detect this capabilities ?

Hi,
First and foremost, thanks for all the good work! it is amazing :)
im writing a webar playground application which support chromium-webar. so i need to way to identify if the app is running on chromium-webar or on a normal chrome. Is there a way for me to detect this feature from javascript ?
Thanks

Currently im using something quite ugly and depending on the current build. im guessing it should be a better way :)
var isChromiumWebar = navigator.userAgent.match('Chrome/57.0.2987.5') !== null

Yes, there is. As stated in the documentation, there are 2 levels to identify the capabilities:
1.- When you request the VRDisplays, check that the name is the right one. In this case, the name of the device that provides all these capabilities is "Tango VR Device".
2.- Another option is to check what capabilities the device/VRDisplay instance has. http://judax.github.io/webar/doc/webarapi/VRDisplayCapabilities.html. You can check if the device has a see through camera and/or a point cloud.
Hope this helps.

thanks!

authors: jeromeetienne judax

repo: googlevr/chromium-webar


text:
gopass sync doesn't notice staged, un-commited changes?

Well, this would certainly explain the numerous times I've found myself completely hosed and stranded without a synced password and finding myself having to manually issue git commands to unstick myself.
This is really painful. Even a warning would be helpful.
PS C:\Users\colem\.password-store> git status
On branch master
Your branch is up to date with 'origin/master'.

Changes to be committed:
  (use "git restore --staged <file>..." to unstage)
        modified:   instagram.gpg

PS C:\Users\colem\.password-store> gopass sync
🚥 Syncing with all remotes ...
[<root>]
   git pull and push ... OK (no changes)
   importing missing keys ... OK
   exporting missing keys ... nothing to do
   done
✅ All done
PS C:\Users\colem\.password-store>

Agreed, I recently had the same happening to me and wanted to also understand how these were created without being committed as that's also another bug probably.
But I think a warning by both sync and fsck would be definitely useful. I'll have a look at it soon.

If this happens it's definitely a bug. A very annoying one. There are certain edge cases and apparently we haven't managed to cover them all.
But warning on sync sounds an good option.

In #1972 I have implemented a simple warning when untracked files are found. Let me know if you think that's enough or if we need a better way to inform the user.

authors: AnomalRoil colemickens dominikschulz

repo: gopasspw/gopass

license: mit


text:
opcache:status:scripts

hello,
we've got servers with a lots of scripts, and opcache:status:scripts can return enormous amount of data, and some of the time, the fastcgi call returns this error :
  [RuntimeException]
  Could not unserialize data from adapter.

with verbose options, we can see the serialized data seems to be truncated à 300k data. We've tried to replace all serialize / unserialize by gzcompress(serialize / unserialize(gzuncompress without success.
Any idea of what could cause this pb ?

I've had this issue before, what I could find is that the json returned by the server is not valid. I've tried with json instead of serialization and it came back with invalid json.
I wasn't able to find exactly the culprit of this.

I've changed the fastcgi client to use Adoy one and it works.

Bumped version to 1.8.0

authors: gordalina ogarbe

repo: gordalina/cachetool


text:
eslint 1.2.* breaks lint

no-duplicate-case:24:26 - infinite recursion

Related to eslint/eslint#3440

eslint/eslint#3440 is fixed and merged to 1.2.1 of Eslint. Now we can test.

authors: mcharytoniuk zangrafx

repo: goreutils/gore-gulp


text:
"MessagesGetAllChats" api has alway been available, but it has started returning errors in the past few day

What version of gotd are you using?
github.com/gotd/td v0.80.0
Can this issue be reproduced with the latest version?
Yes
What did you do?
Tg, T := tgclient.API().MessagesGetAllChats(cg.Request.Context(), []int64{})
if T != nil {
	return T.Error(), Tg
}

What did you expect to see?
No error
What did you see instead?
rpcDoRequest: rpc error code 400: INPUT_METHOD_INVALID (869209)
What Go version and environment are you using?
go1.19rc1 windows_amd64

https://t.me/tdlibchat/71168

The method has never been used by official apps and is useless for real apps. It was removed.

@levlam

Probably GetDialogs or something like that, I'm not sure, sorry.

请问一下现在怎样获取所有的聊天频道呢

这个可以 thank you

authors: ernado gpyun injuryzy

repo: gotd/td

license: MIT


text:
Update script

This is to help use review the scripts that will be used to dump the database once it is PostgreSQL. Ultimately, this (in its final, approved form) will be merged to the blackducksoftware/github-mirror master, which will update the PR opened against the gousiosg/github-mirror master

Would it be possible to keep both the MySQL and the Postgres versions? There is no need for all GHTorrent users to migrate to Postgres. We just need to make sure that the CSV files produced by either database can be loaded to the other.

@gousiosg Could we dig into this a bit more? Is the goal to allow existing users who have MySQL databases to get a dump file that they can import into their existing database? Or is there a need to keep the MySQL database in production as well as running a PostgreSQL database? If the former, then, I'm sure we can provide a solution. If the latter, then there are additional complications of keeping two databases up to date.

The former. I would like the CSV dumps to be two-way compatible with both databases. Moreover, the import script should work with both MySQL and Postgres.
Running MySQL and Postgres in parallel would be an overkill.

So what is needed is to keep the MySQL stuff in place and to add (instead of replacing) the Postgres related code and docs as appropriate.

OK, I believe that can be done: Move to PostgreSQL in production, generate a dump script that can be imported into either MySQL or PostgreSQL.
That said, the focus of this PR was to be the scripts that will be used to perform the migration from MySQL to PostgreSQL (although there are doubtlessly other scripts as well).

It is not even a script, we just need Postgres to dump CSV files in the same format as we have now.
I though PR #73 was about the migration scripts and commented on that one.

The PR is updated to generate MySQL/PostgreSQL CSV files from PostgreSQL database using ght-dump-pg script. Added all the Postgres related code in sql/pg_scripts directory.

Thanks for updating the PR with new scripts. For consistency, can you please move them to the sql dir (no need to create a subdir). Please prefix all sql scripts with pg_ and suffix all scripts with _pg (as you currently do). Please append the documentation to the existing README.md file. After merging, I will do the same with the MySQL scripts.

Cross-importing data in Postgres looks like a worthwhile exercise. I tried importing the latest GHTorrent dump (2018-09-01). As a result of the errors I got from Postgres, I 've updated erroneous timestamps ('0000-00-00'), I removed several hacked accounts with dubious content (search users.csv for 'CLICK BELOW TO ENTER' if you are interested) and I am now trying to debug why Postgres won't accept 256-long strings in VARCHAR(256) columns. Any ideas?

Steps to replicate:

Download the 2018-09-01 dump
Discard all CSV files, except the following

$ ls *.csv|sort
commit_comments.csv
commits.csv
issues.csv
projects.csv
pull_request_comments.csv
repo_labels.csv
repo_milestones.csv
users.csv

Run the update script you provided. You should see the following output:

Mon Sep 24 09:37:03 CEST 2018 Creating the DB schema
ERROR:  value too long for type character varying(256)
CONTEXT:  COPY commit_comments, line 15, column body: "How about adding your own `Gemfile.local` and using `bundle install --gemfile=Gemfile.local` and set..."
ERROR:  date/time field value out of range: "0000-00-00 00:00:00"
CONTEXT:  COPY issues, line 1738, column created_at: "0000-00-00 00:00:00"
ERROR:  value too long for type character varying(256)
CONTEXT:  COPY pull_request_comments, line 6, column body: "I agree with Brad; either the *complete* experience, or an unadorned page-refreshing experience. I t..."
ERROR:  value too long for type character varying(24)
CONTEXT:  COPY repo_labels, line 26241, column name: "以下ファイルが未翻訳です。\
翻訳をお願いします。"
ERROR:  value too long for type character varying(255)
CONTEXT:  COPY projects, line 25745, column description: "Lua bindings for OpenSSL libcrypto.\
\
This repository was converted from a CVS repository on luafor..."
ERROR:  date/time field value out of range: "0000-00-00 00:00:00"
CONTEXT:  COPY commits, line 490174, column created_at: "0000-00-00 00:00:00"
ERROR:  value too long for type character varying(255)
CONTEXT:  COPY users, line 409452, column location: "[multiple nasty lines, removed]"

Any ideas, welcome

After lots of investigation, I think that the Postgres CSV parser is misinterpreting the CSV representation of NUL bytes ('\0') and LF characters (^M) for real characters (double ones). I have not seen any CSV import option that can change this behaviour. Perhaps somebody could write a UDF to do fix this.
I 've proposed some updates to the schema to support current dumps. After merging, I will also update the MySQL schema accordingly.

Thank you for the comments. We will look into these. Details coming via email.

The PR is updated to not generate compressed CSV files. All the files in pg_scripts are moved to sql directory. Updated the field length of few tables in pg_schema.sql

authors: PDegenPortnoy Priya5 gousiosg

repo: gousiosg/github-mirror


text:
Fields vs Themes

It's going to be a challenge to decide where the cut is between a theme and a field given that they're so closely related. "Field" may not even be the right term.
Maybe "fields" should be limited to technical disciplines? (e.g. GIS)

Perhaps you're better leaving fields out? We want cross disciplinary stuff so you don't want someone thinking "oh that's outside my domain".

Aye, that may be the case.
What gave me the idea for the concept of fields originally was your Getting to know scientific data page from last year.
I then started thinking along the lines of "Well, we could have 'field' pages for scientific data like that, probably geospatial, and whatever turns out to be relevant to the competition structure this year (e.g. agriculture, statistics, taxation, intellectual policy, health, ...)"
Then the other pages that were related to the field could link back to it as one place to go to find a quick 101 on the field, tips and tricks, tools, mentors, et cetera for it - rather than repeating it on each page to one degree or another.
To take a practical example - Geospatial Data.
The "Field" page would be some combination of your science data page

authors: jesserobertson keithamoss


text:
fix: remove unnecessary "bin/start-stdio" script

I think I figured out how it's supposed to work without adding additional scripts or worrying about passed arguments.
The mason-registry submission is here: https://github.com/mason-org/mason-registry/pull/8368
Once refactorex is installed with mason, it can be configured using the following code:
require("lspconfig.configs").refactorex = {
  default_config = {
    cmd = { vim.fn.stdpath("data") .. "/mason/bin/refactorex", "--stdio" },
    filetypes = { "elixir" },
    root_dir = function(fname)
      return require("lspconfig").util.root_pattern("mix.exs")(fname)
    end,
    settings = {},
    capabilities = {
      textDocumentSync = {
        openClose = true,
        change = 1,
        save = { includeText = true },
      },
      codeActionProvider = {
        resolveProvider = true,
      },
      renameProvider = {
        prepareProvider = true,
      },
    },
  },
}

require("lspconfig").refactorex.setup({})

As you can see, the cmd has the --stdio argument. Mason's job is mainly just to install the language server, not to actually say what will be done with it.
For maximum ease, once it is accepted in Mason, we will need to also submit it to https://github.com/williamboman/mason-lspconfig.nvim, similar to how nextls has done it here:
https://github.com/williamboman/mason-lspconfig.nvim/blob/main/lua/mason-lspconfig/server_configurations/nextls/init.lua
return function()
  return {
    cmd = { "nextls", "--stdio" },
  }
end

So, mason is just to install the language server, mason-lspconfig is what provides the easy-to-use lsp configuration. Until it's accepted in mason-lspconfig, your friends can use the snippet above to get it working (once it's accepted to mason itself).
Until it's accepted in mason, they can just use this plugin: https://github.com/synic/refactorex.nvim - it just downloads the refactorex source code to a local directory and runs it from there. Seems to work just fine.
Sorry about the runaround with bin/start-stdio - learning all of this as I go ;-)

Wow, that's amazing, nice job! The integration is coming out clean.
Since you seem so interested in making all of this work nicely, I'd like to ask if you could move your plugin to the extensions/neovim folder in this repo along side instructions on how to set it up. After that, I'd gladly make you a project maintener so you can easily work on this integration.
I don't intend to switch to neovim (at least not soon) so having someone that actually uses it would definitely make the different in providing the same experience that I try to bring to the vs code.
Anyway, thank you again. I really apreciate all the effort you put into making it work for neovim users!

I could move it to the main repository, but there are some requirements that may or may not make it a bit less desirable.
The main bulk of the code can be in extensions/neovim, but to make it easy to set up with the popular plugin managers (like lazy.nvim, there needs to be at least a lua/refactorex.lua in the root as an entry point. This is just how neovim looks up lua code.
Now, it's possible to tell it to look in another location (for example, extensions/neovim/lua), however, this would need to be done by the user, it cannot be done by the plugin itself, due to a chicken and egg situation (can't load the lua code to tell neovim to use a different directory if the lua code can't be loaded)
So, for example, with a lua/ directory in the root, your lazy.nvim configuration for refactorex would look something like this:
{
  "gp-pereira/refactorex",
  ft = "elixir",
  config = true,
}

If there's not a lua directory, it would look more like this:
{
  "gp-pereira/refactorex",
  ft = "elixir",
  config = function()
    vim.opt.runtimepath:append(vim.fn.stdpath("data") .. "lazy/refactorex/extensions/neovim")
    require("refactorex").setup({})
  end,
}

which, obviously could just be mentioned in the docs, it's just kinda ugly and non-standard

Yeah, I tried a bunch of stuff. While it can go in extensions/neovim with this config:
{
  "gp-pereira/refactorex",
  ft = "elixir",
  config = function(plugin)
    vim.opt.rtp:append(plugin.dir)
    require("refactorex").setup()
  end,
}

.. which isn't too bad, but because there's no docs/refactorex.txt (which is where neovim looks for docs) when the plugin is initialized with lazy.nvim, lazy.nvim just creates one out of the README.md, which doesn't have much to do with neovim. When the user types :help refactorex, they see everything in README.md
For the very best, most standard neovim experience, there needs to be:

lua/refactorex.lua
doc/refactorex.txt - but this would be neovim specific, which is less than ideal.

I think for the time being, having a separate repository is best, and that can be archived when mason adds it.

100% agree! Let's leave them apart for now. But I still think it would be cool if any Neovim user that lands here has some way to see your work. Maybe a redirect on the README.md to some other markdown with instructions by editor? The Neovim ones would then redirect your repo. How do you think we can do that?

authors: gp-pereira synic

repo: gp-pereira/refactorex


text:
Acorn Engineer - Stuck in "Notion Integration requires authentication" state

Electron build -0feebf947c6 ( Have seen this issue even when testing with older builds)
Steps to reproduce the problem:

Clear all cache and config

rm -rf ~/Library/Application\ Support/acorn
rm -rf ~/Library/Application\ Support/gptscript
rm -rf ~/Library/Caches/gptscript

Delete for existing credentials
Chat with "Acorn Engineer" assistant
After the outh flow for github.write , we are stuck in this page forever

At this time , notion related credentials are not created anymore even when the status in UI shows as being Submitted
gptscript credentials
CREDENTIAL                        EXPIRES IN
github.com/gptscript-ai/gateway   83h47m33s
github.write                      never
outlook.mail.manage               1h4m53s

Not sure whats going on here, but ive experienced the same thing. credential prompting is totally jacked up and almost always gets stuck

I mainly hit funkiness if my assistant has more than credential prompt. This one induces it consistently for me:
Name: SA
Description: Always Be Closing. This assistant will help you research and follow up on leads using Hubspot, Outlook, Slack, and the Internet
Type: Tool
Tools: github.com/gptscript-ai/tools/apis/slack/write, github.com/gptscript-ai/tools/apis/outlook/mail/manage, github.com/gptscript-ai/tools/apis/outlook/calendar/manage, github.com/gptscript-ai/answers-from-the-internet, github.com/gptscript-ai/context/workspace, github.com/cjellick/tools/apis/hubspot/crm/write
Chat: true

You help sales reps with turning leads into closed deals.

Important guidelines and hints to be aware of:
- A "lead" is a synonym for contact. If the user is asking for a lead, they are asking for contact. Use this for figuring out the right functions to call.
- If the user asks to send an email to a hubspot contact, use the provided tools to send it via outlook, and then record the information in hubspot as an engagement email.
- When you first start, don't explain everything you can do, just tell them generally what you can help them with and wait for instructions.
- If you're create things like deals, companies, or leads in hubspot, prompt the user for relevant fields.

its public on the gateway

but if you dont have a hubspot account (most dont), the hubspot bit is not important to reproducing

PR: https://github.com/gptscript-ai/desktop/pull/463

Tested with latest build from  2be2f66601
Able to chat with assistants that require multiple oath flows to succeed.
Tested with "Acorn Engineer" and the following assistant that requires multiple oauth flow.

authors: cjellick sangee2004 thedadams

repo: gptscript-ai/desktop


text:
Get a error when I pub get

I am try use WebSocketLink for client.
However, I get a error when I pub get
Because no versions of ferry match >0.9.3 <0.10.0 and ferry 0.9.3 depends on rxdart ^0.25.0, ferry ^0.9.3 requires rxdart ^0.25.0.
And because every version of gql_websocket_link depends on rxdart ^0.24.0, ferry ^0.9.3 is incompatible with gql_websocket_link.
So, because ferry_riverpod depends on both ferry ^0.9.3 and gql_websocket_link any, version solving failed.

https://github.com/gql-dart/gql/blob/f2fe378df2340257530e576c7dd6dacee5650596/links/gql_websocket_link/pubspec.yaml
@smkhalsa

Please use stack overflow for general questions, such as how dependencies work in Dart.
As mentioned in the error message, your websocket_link doesn't support the latest version of rxdart.

Previously, I thought we needed to discuss or confirm whether we should upgrade 0.25.0 or not
As I understand it, Ferry is relying on gql when it comes to WebSocket.
Although I have submitted a PR to gql, I think there may be similar problems in the future

repo: gql-dart/ferry


text:
How to upload multipart file ?

I am trying to Upload Images but it always gives me an error
Converting object to an encodable object failed: Instance of 'MultipartFile'

here is my Mutation

  static final Update_Image = r"""
mutation UpdateImage($image:Upload,$id:Int!) {
  updateProperty(data: {id: $id,image:$image}) {
    image
  }
}
""";

                  if (images.isEmpty || images[0] != null) {
                    for (int i = 0; i < images.length; i++) {
                      ByteData byteData = await images[i].getByteData();
                      List<int> imageData = byteData.buffer.asUint8List();
                      http.MultipartFile multipartFile =
                          http.MultipartFile.fromBytes('image', imageData,
                              filename: images[i].name,
                              contentType: MediaType('image', 'jpg'));
                      imagestoEdit.add(multipartFile);
                      print(imagestoEdit.length);
                    }
                  }
                  try {
                    runMutation({"id": 95, "image": imagestoEdit[0]});
                  } catch (e) {
                    print(e.toString());
                  }
                  print(result!.toString());
                },

This problem occurs when serializing the body http.
Therefore i checked HttpLink source code, and here is how httpLink handles this case :
    final httpBody = _encodeAttempter(
      request,
      (Map body) => json.encode(
        body,
        toEncodable: (dynamic object) =>
            (object is http.MultipartFile) ? null : object.toJson(),
      ),
    )(body);

What I have tried :
returning the object but it throws the same exception

final httpBody = _encodeAttempter(
  request,
  (Map body) => json.encode(
    body,
    toEncodable: (dynamic object) =>
        (object is http.MultipartFile) ? object: object.toJson(),
  ),
)(body);

@agent3bood @TarekkMA  Can you help me in this please ?

this is my mutation
 runMutation({"id": 95, "image": imagestoEdit[0]});

this my Query
r"""
mutation UpdateImage($image:Upload,$id:Int!) {
  updateProperty(data: {id: $id,image:$image}) {
    image
  }
}
"""

this how I convert assets to multipart files
  if (images.isEmpty || images[0] != null) {
                    for (int i = 0; i < images.length; i++) {
                      ByteData byteData = await images[i].getByteData();
                      List<int> imageData = byteData.buffer.asUint8List();
                      http.MultipartFile multipartFile =
                          http.MultipartFile.fromBytes('image', imageData,
                              filename: images[i].name,
                              contentType: MediaType('image', 'jpg'));
                      imagestoEdit.add(multipartFile);
                      print(imagestoEdit.length);
                    }
                  }

Can you please provide more details, for example, what is the implementation of runMutation.
Assuming you are using HttpLink, make sure you are using MultipartFile from the http package not from dio.

authors: TarekkMA abdelrahmanelmarakby

repo: gql-dart/gql


text:
regeneratorRuntime added in main.js

🍰 Pullrequest
regeneratorRuntime added in main.js
the frontend is reloaded again without problems when i press e.g. F5.
Issues

fixes #1377

is in PR  #1382

is in PR #1382

repo: gradido/gradido


text:
Staging repository initialization hangs for 10+ minutes even with configured timeout

Playing with the repository transitioning support I came accross the situation where initializeSonatypeStagingRepository hangs for 10+ minutes (I didn't wait much longer), even though a read timeout is by default set to 1 minute. I checked values at the comment the client is created and properly read from the plugin extension. Timeout related code in NexusClient also looks ok. Probably there was something wrong with the Sonatype server (I was able to reproduce it multiple times within an hour), but anyway it would be good to have timeout working. Leaving it have for further examination why okhttp3 behaved that way.
OpenJDK 11.0.5 and 13.0.1, Linux.
nexusPublishing {
    repositories {
        sonatype {
           stagingProfileId = "..."
        }
    }
    clientTimeout = Duration.ofSeconds(90)
}

> Task :initializeSonatypeStagingRepository
Caching disabled for task ':initializeSonatypeStagingRepository' because:
  Build cache is disabled
Task ':initializeSonatypeStagingRepository' is not up-to-date because:
  Task has not declared any outputs despite executing actions.
Creating staging repository for stagingProfileId '248647f1a45ed6'
<========-----> 66% EXECUTING [7m 51s]
> :initializeSonatypeStagingRepository

(fetching the staging profile takes just a moment, if profile is not configured)
"Execution worker for ':'" #911 prio=5 os_prio=0 cpu=201,83ms elapsed=254,27s tid=0x00007ff1e02cc800 nid=0xfd43 in Object.wait()  [0x00007ff2a036b000]
   java.lang.Thread.State: WAITING (on object monitor)
        at java.lang.Object.wait(java.base@13.0.1/Native Method)
        - waiting on <no object reference available>
        at java.lang.Object.wait(java.base@13.0.1/Object.java:326)
        at io.github.gradle-nexus.nexus.shadow.okhttp3.internal.http2.Http2Stream.waitForIo(Http2Stream.java:660)
        at io.github.gradle-nexus.nexus.shadow.okhttp3.internal.http2.Http2Stream.takeHeaders(Http2Stream.java:151)
        - locked <0x00000000eb526b08> (a io.github.gradle-nexus.nexus.shadow.okhttp3.internal.http2.Http2Stream)
        at io.github.gradle-nexus.nexus.shadow.okhttp3.internal.http2.Http2ExchangeCodec.readResponseHeaders(Http2ExchangeCodec.java:136)
        at io.github.gradle-nexus.nexus.shadow.okhttp3.internal.connection.Exchange.readResponseHeaders(Exchange.java:115)
        at io.github.gradle-nexus.nexus.shadow.okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.java:94)
        at io.github.gradle-nexus.nexus.shadow.okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142)
        at io.github.gradle-nexus.nexus.shadow.okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:43)
        at io.github.gradle-nexus.nexus.shadow.okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142)
        at io.github.gradle-nexus.nexus.shadow.okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:117)
        at io.github.gradle-nexus.nexus.shadow.okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:94)
        at io.github.gradle-nexus.nexus.shadow.okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142)
        at io.github.gradle-nexus.nexus.shadow.okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:117)
        at io.github.gradle-nexus.nexus.shadow.okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)
        at io.github.gradle-nexus.nexus.shadow.okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142)
        at io.github.gradle-nexus.nexus.shadow.okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:88)
        at io.github.gradle-nexus.nexus.shadow.okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142)
        at io.github.gradle-nexus.nexus.shadow.okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:117)
        at io.github.gradlenexus.publishplugin.internal.NexusClient$1.intercept(NexusClient.kt:53)
        at io.github.gradle-nexus.nexus.shadow.okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142)
        at io.github.gradle-nexus.nexus.shadow.okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:117)
        at io.github.gradle-nexus.nexus.shadow.okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:229)
        at io.github.gradle-nexus.nexus.shadow.okhttp3.RealCall.execute(RealCall.java:81)
        at io.github.gradle-nexus.nexus.shadow.retrofit2.OkHttpCall.execute(OkHttpCall.java:188)
        at io.github.gradlenexus.publishplugin.internal.NexusClient.createStagingRepository(NexusClient.kt:85)
        at io.github.gradlenexus.publishplugin.InitializeNexusStagingRepository$createStagingRepo$1.apply(InitializeNexusStagingRepository.kt:60)
        at io.github.gradlenexus.publishplugin.InitializeNexusStagingRepository$createStagingRepo$1.apply(InitializeNexusStagingRepository.kt:34)
        at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(java.base@13.0.1/ConcurrentHashMap.java:1705)
        - locked <0x00000000eca64490> (a java.util.concurrent.ConcurrentHashMap$ReservationNode)
        at io.github.gradlenexus.publishplugin.InitializeNexusStagingRepository.createStagingRepo$gradle_nexus_publish_plugin(InitializeNexusStagingRepository.kt:56)
        at io.github.gradlenexus.publishplugin.InitializeNexusStagingRepository.createStagingRepoAndReplacePublishingRepoUrl(InitializeNexusStagingRepository.kt:51)
...

Closing as it seems to be better with the second instance of Sonatype Nexus

repo: gradle-nexus/publish-plugin


text:
Defer token provider and migrate to com.gradleup.shadow

Follow up #298.

Hi, @Goooler. Thank you for your contribution.
Can you revert the changes to settings.gradle.kts? For now, we've agreed as a team to keep with the eager APIs there. We will re-evaluate that decision once Gradle's remote build cache API migrates to using providers. Our preference is to use providers wherever possible, but it doesn't make sense to use providers.environmentVariable(...) when calling .isPresent immediately resolves it.
The changes in build.gradle.kts look fine. 👌

Merged. Thanks again for your contribution @Goooler.

authors: Goooler erichaagdev