brew install infer error

I recently updated facebook infer on my work laptop, and am trying to update infer on my personal laptop. It installed without an issue on my work laptop, but I am getting an error (see below) on my personal laptop. Both have opam 1.2.2 and ocaml 4.03.0 installed. If I execute opam init --comp=VERSION, I see that everything is already up-to-date. Any ideas why brew install infer could be failing?
[User]-MacBook-Pro:~ [User]$ brew install infer
==> Using the sandbox
==> Downloading https://github.com/facebook/infer/releases/download/v0.9.2/infer
Already downloaded: /Users/[User]/Library/Caches/Homebrew/infer-0.9.2.tar.xz
==> ./build-infer.sh all --yes
Last 15 lines from /Users/[User]/Library/Logs/Homebrew/infer/01.build-infer.sh:

initializing opam...
Checking for available remotes: rsync and local, git.
  - you won't be able to use mercurial repositories unless you install the hg
    command on your system.
  - you won't be able to use darcs repositories unless you install the darcs
    command on your system.

[WARNING] Recommended external solver aspcud not found.
[ERROR] No OCaml compiler found in path. You should use:

            opam init --comp=VERSION

[ERROR] Initialisation failed
OpamGlobals.Exit(66)

READ THIS: https://git.io/brew-troubleshooting
If reporting this issue please do so at (not Homebrew/brew):
  https://github.com/Homebrew/homebrew-core/issues

These open issues may also help:
infer 0.9.3 https://github.com/Homebrew/homebrew-core/pull/5130

My work laptop is on OS X El Capitan Version 10.11.6, and my personal laptop is on macOS Sierra Version 10.12.
http://stackoverflow.com/questions/39683280/brew-install-infer-error

The infer 0.9.2 brew recipe does not pull in ocaml, and it seems that neither does opam.  I don't know if this has always been the case.  As a workaround, does executing brew install ocaml before brew install infer resolve the issue?

Hi @jberdine, I tried reinstalling both ocaml and opam, then installing infer, but infer threw the same error

We are working on this.  Brew seems now to sandbox more aggressively and opam cannot find the system ocaml, and the opam init call we use in the build script needs a system ocaml.  We will release a new version and update brew soon.

but i can't install infer with

brew install

initializing opam...
Checking for available remotes: rsync and local, git.

you won't be able to use mercurial repositories unless you install the hg
command on your system.
you won't be able to use darcs repositories unless you install the darcs
command on your system.

[WARNING] Recommended external solver aspcud not found.
[ERROR] No OCaml compiler found in path. You should use:
opam init --comp=VERSION
[ERROR] Initialisation failed
OpamGlobals.Exit(66)
READ THIS: https://git.io/brew-troubleshooting
If reporting this issue please do so at (not Homebrew/brew):
https://github.com/Homebrew/homebrew-core/issues

my  mac os is on macOS  Version 10.12.
also

if i build from source code
run sh build-infer.sh clang
following error will occur:
ocamlfind ocamlopt -package unix,atdgen,camlzip -I build -o build/clang_ast_visit.cmx -c clang_ast_visit.ml
ocamlfind ocamlopt -package unix,atdgen,camlzip -I build -o build/clang_ast_j.cmx -c build/clang_ast_j.ml
File "build/clang_ast_proj.ml", line 53, characters 2-28:
Error: This variant pattern is expected to have type Clang_ast_t.decl
The constructor ConstructorUsingShadowDecl does not belong to type Clang_ast_t.decl
make[1]: *** [build/clang_ast_proj.cmx] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [clang_plugin] Error 2
compilation failure; you can try running
make clean
build-infer.sh clang

@self-creative  Have you resolved this problem?  I have encountered the same error when I update infer from 0.8.1.

Same problem, any thoughts how to fix it?

same problem (macOS 10.12)

I'm getting this error on 10.11.5 as well, with some additional output below:
==> Installing infer dependency: automake
==> Downloading https://homebrew.bintray.com/bottles/automake-1.15.el_capitan.bottle.2.tar.gz
==> Pouring automake-1.15.el_capitan.bottle.2.tar.gz
/usr/local/Cellar/automake/1.15: 130 files, 2.9M
==> Installing infer dependency: libtool
==> Downloading https://homebrew.bintray.com/bottles/libtool-2.4.6_1.el_capitan.bottle.tar.gz
==> Pouring libtool-2.4.6_1.el_capitan.bottle.tar.gz
==> Caveats
In order to prevent conflicts with Apple's own libtool we have prepended a "g"
so, you have instead: glibtool and glibtoolize.
==> Summary
/usr/local/Cellar/libtool/2.4.6_1: 70 files, 3.7M
==> Installing infer dependency: ocaml
==> Downloading https://homebrew.bintray.com/bottles/ocaml-4.03.0.el_capitan.bottle.tar.gz
==> Pouring ocaml-4.03.0.el_capitan.bottle.tar.gz
/usr/local/Cellar/ocaml/4.03.0: 1,641 files, 173.7M
==> Installing infer dependency: ocamlbuild
==> Downloading https://homebrew.bintray.com/bottles/ocamlbuild-0.9.2.el_capitan.bottle.tar.gz
==> Pouring ocamlbuild-0.9.2.el_capitan.bottle.tar.gz
/usr/local/Cellar/ocamlbuild/0.9.2: 26 files, 6.6M
==> Installing infer dependency: camlp4
==> Downloading https://homebrew.bintray.com/bottles/camlp4-4.03+1.el_capitan.bottle.tar.gz
==> Pouring camlp4-4.03+1.el_capitan.bottle.tar.gz
/usr/local/Cellar/camlp4/4.03+1: 164 files, 142.2M
==> Installing infer dependency: gringo
==> Downloading https://homebrew.bintray.com/bottles/gringo-4.5.4.el_capitan.bottle.tar.gz
==> Pouring gringo-4.5.4.el_capitan.bottle.tar.gz
/usr/local/Cellar/gringo/4.5.4: 7 files, 5.6M
==> Installing infer dependency: clasp
==> Downloading https://homebrew.bintray.com/bottles/clasp-3.1.3.el_capitan.bottle.tar.gz
==> Pouring clasp-3.1.3.el_capitan.bottle.tar.gz
/usr/local/Cellar/clasp/3.1.3: 5 files, 1011.5K
==> Installing infer dependency: aspcud
==> Downloading https://homebrew.bintray.com/bottles/aspcud-1.9.1.el_capitan.bottle.2.tar.gz
==> Pouring aspcud-1.9.1.el_capitan.bottle.2.tar.gz
/usr/local/Cellar/aspcud/1.9.1: 10 files, 460.6K
==> Installing infer dependency: opam
==> Downloading https://homebrew.bintray.com/bottles/opam-1.2.2_2.el_capitan.bottle.tar.gz
==> Pouring opam-1.2.2_2.el_capitan.bottle.tar.gz
==> Caveats
OPAM uses ~/.opam by default for its package database, so you need to
initialize it first by running (as a normal user):

$  opam init

Run the following to initialize your environment variables:

$  eval `opam config env`

To export the needed variables every time, add them to your dotfiles.
  * On Bash, add them to `~/.bash_profile`.
  * On Zsh, add them to `~/.zprofile` or `~/.zshrc` instead.

Documentation and tutorials are available at https://opam.ocaml.org, or
via "man opam" and "opam --help".

Bash completion has been installed to:
  /usr/local/etc/bash_completion.d

zsh completion has been installed to:
  /usr/local/share/zsh/site-functions
==> Summary
/usr/local/Cellar/opam/1.2.2_2: 30 files, 14.9M
==> Installing infer
==> Using the sandbox
==> Downloading https://github.com/facebook/infer/releases/download/v0.9.2/infer-osx-v0.9.2.tar.xz
==> Downloading from https://github-cloud.s3.amazonaws.com/releases/29857799/bc398246-6931-11e6-951e-e92ce8ba2a57.xz?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAISTNZFOVBIJMK3TQ%2F20161101%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20161101T204506Z&X-Amz-Expires=300&X-Amz-Signature=3be0f9d5366fa5917e5407ae2d94b44051c863651b4e08247d14a8eaafd61bd1&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dinfer-osx-v0.9.2.tar.xz&response-content-type=application%2Foctet-stream
==> ./build-infer.sh java --yes
Last 15 lines from /Library/Logs/Homebrew/infer/01.build-infer.sh:

initializing opam...
Checking for available remotes: rsync and local, git.
  - you won't be able to use mercurial repositories unless you install the hg
    command on your system.
  - you won't be able to use darcs repositories unless you install the darcs
    command on your system.

[WARNING] Recommended external solver aspcud not found.
[ERROR] No OCaml compiler found in path. You should use:

            opam init --comp=VERSION

[ERROR] Initialisation failed
OpamGlobals.Exit(66)

READ THIS: https://git.io/brew-troubleshooting
If reporting this issue please do so at (not Homebrew/brew):
  https://github.com/Homebrew/homebrew-core/issues
Error: /Stage[main]/Infer/Package[infer]/ensure: change from absent to present failed: Execution of '/usr/local/bin/brew install infer --without-clang' returned 1: ==> Installing dependencies for infer: automake, libtool, ocaml, ocamlbuild, camlp4, gringo, clasp, aspcud, opam
==> Installing infer dependency: automake
==> Downloading https://homebrew.bintray.com/bottles/automake-1.15.el_capitan.bottle.2.tar.gz
==> Pouring automake-1.15.el_capitan.bottle.2.tar.gz
/usr/local/Cellar/automake/1.15: 130 files, 2.9M
==> Installing infer dependency: libtool
==> Downloading https://homebrew.bintray.com/bottles/libtool-2.4.6_1.el_capitan.bottle.tar.gz
==> Pouring libtool-2.4.6_1.el_capitan.bottle.tar.gz
==> Caveats
In order to prevent conflicts with Apple's own libtool we have prepended a "g"
so, you have instead: glibtool and glibtoolize.
==> Summary
/usr/local/Cellar/libtool/2.4.6_1: 70 files, 3.7M
==> Installing infer dependency: ocaml
==> Downloading https://homebrew.bintray.com/bottles/ocaml-4.03.0.el_capitan.bottle.tar.gz
==> Pouring ocaml-4.03.0.el_capitan.bottle.tar.gz
/usr/local/Cellar/ocaml/4.03.0: 1,641 files, 173.7M
==> Installing infer dependency: ocamlbuild
==> Downloading https://homebrew.bintray.com/bottles/ocamlbuild-0.9.2.el_capitan.bottle.tar.gz
==> Pouring ocamlbuild-0.9.2.el_capitan.bottle.tar.gz
/usr/local/Cellar/ocamlbuild/0.9.2: 26 files, 6.6M
==> Installing infer dependency: camlp4
==> Downloading https://homebrew.bintray.com/bottles/camlp4-4.03+1.el_capitan.bottle.tar.gz
==> Pouring camlp4-4.03+1.el_capitan.bottle.tar.gz
/usr/local/Cellar/camlp4/4.03+1: 164 files, 142.2M
==> Installing infer dependency: gringo
==> Downloading https://homebrew.bintray.com/bottles/gringo-4.5.4.el_capitan.bottle.tar.gz
==> Pouring gringo-4.5.4.el_capitan.bottle.tar.gz
/usr/local/Cellar/gringo/4.5.4: 7 files, 5.6M
==> Installing infer dependency: clasp
==> Downloading https://homebrew.bintray.com/bottles/clasp-3.1.3.el_capitan.bottle.tar.gz
==> Pouring clasp-3.1.3.el_capitan.bottle.tar.gz
/usr/local/Cellar/clasp/3.1.3: 5 files, 1011.5K
==> Installing infer dependency: aspcud
==> Downloading https://homebrew.bintray.com/bottles/aspcud-1.9.1.el_capitan.bottle.2.tar.gz
==> Pouring aspcud-1.9.1.el_capitan.bottle.2.tar.gz
/usr/local/Cellar/aspcud/1.9.1: 10 files, 460.6K
==> Installing infer dependency: opam
==> Downloading https://homebrew.bintray.com/bottles/opam-1.2.2_2.el_capitan.bottle.tar.gz
==> Pouring opam-1.2.2_2.el_capitan.bottle.tar.gz
==> Caveats
OPAM uses ~/.opam by default for its package database, so you need to
initialize it first by running (as a normal user):

$  opam init

Run the following to initialize your environment variables:

$  eval `opam config env`

To export the needed variables every time, add them to your dotfiles.
  * On Bash, add them to `~/.bash_profile`.
  * On Zsh, add them to `~/.zprofile` or `~/.zshrc` instead.

Documentation and tutorials are available at https://opam.ocaml.org, or
via "man opam" and "opam --help".

Bash completion has been installed to:
  /usr/local/etc/bash_completion.d

zsh completion has been installed to:
  /usr/local/share/zsh/site-functions
==> Summary
/usr/local/Cellar/opam/1.2.2_2: 30 files, 14.9M
==> Installing infer
==> Using the sandbox
==> Downloading https://github.com/facebook/infer/releases/download/v0.9.2/infer-osx-v0.9.2.tar.xz
==> Downloading from https://github-cloud.s3.amazonaws.com/releases/29857799/bc398246-6931-11e6-951e-e92ce8ba2a57.xz?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAISTNZFOVBIJMK3TQ%2F20161101%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20161101T204506Z&X-Amz-Expires=300&X-Amz-Signature=3be0f9d5366fa5917e5407ae2d94b44051c863651b4e08247d14a8eaafd61bd1&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dinfer-osx-v0.9.2.tar.xz&response-content-type=application%2Foctet-stream
==> ./build-infer.sh java --yes
Last 15 lines from /Library/Logs/Homebrew/infer/01.build-infer.sh:

initializing opam...
Checking for available remotes: rsync and local, git.
  - you won't be able to use mercurial repositories unless you install the hg
    command on your system.
  - you won't be able to use darcs repositories unless you install the darcs
    command on your system.

[WARNING] Recommended external solver aspcud not found.
[ERROR] No OCaml compiler found in path. You should use:

            opam init --comp=VERSION

[ERROR] Initialisation failed
OpamGlobals.Exit(66)

READ THIS: https://git.io/brew-troubleshooting
If reporting this issue please do so at (not Homebrew/brew):
  https://github.com/Homebrew/homebrew-core/issues```

I don't recall having to manage opam previous, should this be referred to homebrew-core? In this log we are attempting to install on a machine with no previous infer installed.

I got same problem.
something got  wrong with build-infer.sh when call opam
but I dont know where is build-infer.sh,may be I can change script manually

@self-creative can you please open a separate issue for your problem when compiling from source?
Others: we should have a new Homebrew release by next week, stay tuned.

Same issue,but i can install 0.9.3 successfully by manual installaction.

Resolved in Infer version <IP_ADDRESS>

@Will5, I tried installing infer but it is throwing below error. Same error is thrown when I did brew install opam

brew install infer

Warning: You are using OS X 10.12.
We do not provide support for this pre-release version.
You may encounter build failures or other breakages.
Please create pull-requests instead of filing issues.
==> Installing dependencies for infer: opam
==> Installing infer dependency: opam
==> Downloading https://github.com/ocaml/opam/archive/1.2.2.tar.gz
Already downloaded: /Users/dhiraj.aggarwal/Library/Caches/Homebrew/opam-1.2.2.tar.gz
==> Downloading https://gforge.inria.fr/frs/download.php/file/33593/cudf-0.7.tar.gz
Already downloaded: /Users/dhiraj.aggarwal/Library/Caches/Homebrew/opam--cudf-0.7.tar.gz
==> Downloading https://ocaml-extlib.googlecode.com/files/extlib-1.5.3.tar.gz
curl: (22) The requested URL returned error: 404 Not Found
Error: Failed to download resource "opam--extlib"
Download failed: https://ocaml-extlib.googlecode.com/files/extlib-1.5.3.tar.gz
Please have a look and help here.

Hi everyone,
I would like to install Infer. I tried to use the command  .brew install infer.  However it didn't work. In fact, I have this error :  Error: infer has been disabled because it does not build! . As I looked on the internet, apparently it is a common problem for the macOS Monterey when installing infer. I also tried the command 'brew install --dry-run infer' and this is a part of the output :
'Would install 1 formula: infer
==>Would install 6 dependencies for infer:
 libtool ninja openjdk@11 gdbm mpdecimal<EMAIL_ADDRESS>This is why I decided to install it from the source.  I followed this tutorial : https://github.com/facebook/infer/blob/main/INSTALL.md but it doesn't work. In fact, when I try to run infer, I have a  zsh command not found : infer .
My operating system and version : macOS Monterey Version 12.6
I am trying to run this command : infer run -- javac Hello.java
My code :
(base) username examples % infer run -- javac Hello.java
zsh: command not found: infer
Note : I installed the dependencies after installing infer from source.
Thank you for your help.


feat: Add MySQL support for BETWEEN arguments

Fixes https://github.com/kyleconroy/sqlc/issues/1077

Hi! Unless I'm missing something here, the BETWEEN argument is not working. The playground link for #1077 shows no parameters able to be passed for the 2 BETWEEN arguments in the query methods. Is this supposed to be working? I too cannot get BETWEEN to work correctly, as I get the same results... a query method that ignores the arguments for BETWEEN.
Playground: https://play.sqlc.dev/p/191c72c32e4c4c35ec8c7f197c20ee52e38c54c978484bc7ae9dd7f296b9b0b2
Thank you

The playground is still using version 1.10. I'm hoping to release 1.11 today

Ahh that explains it. My bad.... for whatever reason I had it in my head it was supposed to have been in the latest release.... thanks!  Easy to work-around for now, at least for my uses, but there are times when BETWEEN just makes large queries more readable.


fixes #107

added arabic + greek given and family names
only one type of event per case
no XX anymore in DoB

needs further fix

still added combination events per case, does not close #146

Reopened to force automated tests to run.

@daniel-eder this PR has not been merged, correct? can you please inform me what is the issue?

So sorry about that! I just intended to close & reopen to re-trigger the Workflow. Apparently I hit the button once too often


Please allow meeting notes to have a configurable date format

Please select if your request is either something new or an enhancement

[X] Enhancement of an existing Feature.
[ ] Request of a new feature.

Please select the area your request applies to. (Multiple selections are Possible. You can leave blank if you're not sure.)

[ ] Workspace - VSCode workspace, vaults, Intellisense/autocomplete, Dendron settings
[ ] Lookup - Dendron's Lookup Command
[ ] Views - Dendron Preview, Tree View, Side Panels in the UI
[ ] Schema - Dendron Schemas
[ ] Pod - Data import from / export to Dendron
[ ] Publish - External Site Publish
[ ] Markdown - Markdown features, such as syntax support and features

Is your feature request related to a problem? Please describe
At work we use ISO weeks (with the exception that we put two Ws instead of one for some reason). I would like to have my meeting notes generate with that format.
Describe the solution you'd like
I would like to be able to control the date format for meeting notes in the same way journal notes are controled
Describe alternatives you've considered
Manually managing it seems to be my only real option unless traits become a fully supported feature.
Additional context

thanks for the feature request. this will be slotted into our backlog


Do I need to train the new model for each constrained generation task?

Can I use the model trained in the task of unconstrained generation to perform constrained generation?

Friendly reminder: Reference 44 seems to be wrong, it is not basnet

In our paper, we trained separate models for the tasks of C → S + P, C + S → P, and Completion, while directly utilizing the model trained for unconstrained generation for the Refinement task. While it is technically feasible to use the model trained for unconstrained generation to perform all constrained generation tasks, this approach yields suboptimal performance due to the differences in data distribution.
Additionally, we believe that training a unified model capable of handling both unconstrained and constrained settings simultaneously represents a promising direction for future research, though this may require additional techniques to facilitate effective learning. Finally, we greatly appreciate your attention to the citation errors.


Installation on Ubuntu 20.04

Hello,
I am trying to install softgym on 2004. My cuda version is 11.4 and my driver is 470.129. I am using an RTX 3060 card.
I have successfully compiled Pyflex using the command in prepare_1.0.sh and compile_1.0.sh. However, when I am trying to run the example, I got the following error:
Traceback (most recent call last):
  File "examples/random_env.py", line 5, in <module>
    from softgym.registered_env import env_arg_dict, SOFTGYM_ENVS
  File "/home/hongtao/src/softgym/softgym/registered_env.py", line 1, in <module>
    from softgym.envs.pour_water import PourWaterPosControlEnv
  File "/home/hongtao/src/softgym/softgym/envs/pour_water.py", line 4, in <module>
    import pyflex
ImportError: /home/hongtao/src/softgym/PyFlex/bindings/build/pyflex.cpython-38-x86_64-linux-gnu.so: undefined symbol: cudaSetupArgument

I checked that one reason for this problem is that the running cuda version is not matched with the compiled one (#1705). But my compiling cuda version and the one shown from nvcc -V are both 11.4.
Is there a solution to this problem? Thanks!

maybe you can try docker?

Hello,
I am trying to install softgym on 2004. My cuda version is 11.4 and my driver is 470.129. I am using an RTX 3060 card.
I have successfully compiled Pyflex using the command in prepare_1.0.sh and compile_1.0.sh. However, when I am trying to run the example, I got the following error:
Traceback (most recent call last):
  File "examples/random_env.py", line 5, in <module>
    from softgym.registered_env import env_arg_dict, SOFTGYM_ENVS
  File "/home/hongtao/src/softgym/softgym/registered_env.py", line 1, in <module>
    from softgym.envs.pour_water import PourWaterPosControlEnv
  File "/home/hongtao/src/softgym/softgym/envs/pour_water.py", line 4, in <module>
    import pyflex
ImportError: /home/hongtao/src/softgym/PyFlex/bindings/build/pyflex.cpython-38-x86_64-linux-gnu.so: undefined symbol: cudaSetupArgument

I checked that one reason for this problem is that the running cuda version is not matched with the compiled one (#1705). But my compiling cuda version and the one shown from nvcc -V are both 11.4.
Is there a solution to this problem? Thanks!

I have the same problem as you. How did you solve it?


Hide the empty fields from preview

Fixes #211
This pull request hides empty fields from the preview.
Demo available at https://dev.openapi.design/feature/fix-preview-empty-fields

While reviewing this PR I found a problem with hiding Security Definitions with empty description but nonempty key. It should also be fixed in this pull request.


Failed to start container from pulled docker images.  Also, need how-to documentation

Pull docker images as provided on https://github.com/ipdk-io/ipdk

docker pull ghcr.io/ipdk-io/ipdk-ubuntu2004-x86_64:sha-b4cff43

Build container from images:

docker run ghcr.io/ipdk-io/ipdk-ubuntu2004-x86_64:sha-948e42e (image_name:tag)

Check docker container:

docker ps -a
CONTAINER ID   IMAGE                                                COMMAND   CREATED          STATUS                      PORTS     NAMES
f25bb6d204d8   ghcr.io/ipdk-io/ipdk-ubuntu2004-x86_64:sha-948e42e   "bash"    25 minutes ago   Exited (0) 25 minutes ago             dreamy_hoover

start container

docker start container_ID
[root@wp06 docker]# docker start f25bb6d204d8
f25bb6d204d8
[root@wp06 docker]# docker ps
CONTAINER ID   IMAGE     COMMAND   CREATED   STATUS    PORTS     NAMES
[root@wp06 docker]#

Inside ipdk docker run command works with -it "${ARGS[@]}" -it "${IMAGE_NAME}":"${TAG}" "${RUN_COMMAND[@]}" https://github.com/ipdk-io/ipdk/blob/main/build/scripts/ipdk.sh#L261
Have you tried with ipdk start -d command?

There's a 22.07 release package.  And 3 other packages listed under.  Please label/document what they are.

docker run -it is working.  Closing the ticket.  But still needs to label what the images are.


Electron ?

https://github.com/PrismarineJS/prismarine-viewer/tree/master/examples/electron
not sure how/if to make web and electron cohabitate, but would be nice for users

That would also make it more stable and be able to achieve higher frame rates :)

Performance would not significantly improve (not counting network latency) with electron, electron is also basically a chrome browser.

use webkit please, i dont need another chrome

@lockieluke go ahead


feat:日志以时间日期命名

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Grab Legislators from Specific Congress

The congress-legislators data provided by govtrack does not have the specific congress listed, they only have start/end dates.  I'm wondering if there is a script here that only grabs legislators from a specific congress.
The congress number and start year are linearly dependent, so this can be written into the code.  However, for code readability it would be nice if the congress number can be grabbed in a more natural way from the data.

See this function for how to go in the other direction (Congress to dates) accurately. You'd need to invert that function. But also be careful about how Congresses start and end on the same date (at noon).
See #185 for the existing issue on this.
(nb. This repo began with GovTrack's data but is now community maintained.)


Swift debugging not able to display variable values, "unable to determine byte size"

OS: macOS 10.15.5
VSCode version:  1.48.1
Extension version: 1.5.3
Toolchain version: (From lldb --version)
lldb-1<IP_ADDRESS>
Apple Swift version 5.2.4 (swiftlang-1<IP_ADDRESS> clang-1<IP_ADDRESS>)

After following this tutorial and then instructions from your manual and your wiki, I'm able to debug my tests, but I get "unable to determine byte size" when trying to inspect any of the variables by hovering over them. All of the Variables sections are also empty in the left panel.
Here's the content of the related files:
settings.json
{
  "lldb.library": "/Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Versions/A/LLDB"
}

launch.json
{
  "version": "0.2.0",
  "configurations": [
    {
      "name": "Debug tests on macOS",
      "type": "lldb",
      "request": "launch",
      "program": "/Applications/Xcode.app/Contents/Developer/usr/bin/xctest",
      "args": [
        "${workspaceFolder}/.build/debug/DataStructuresPackageTests.xctest"
      ],
      "preLaunchTask": "swift-build-tests",
      "sourceLanguages": [
        "swift"
      ]
    },
  ]
}

tasks.json
{
  "version": "2.0.0",
  "tasks": [
    // compile source and tests
    {
      "label": "swift-build-tests",
      "type": "process",
      "group": "build",
      "command": "swift",
      "args": [
        "build",
        "--build-tests"
      ]
    }
  ]
}

Thanks in advance for any help you can offer 🙏

Were you able to resolve this issue?

Just tried again, now with these versions:
OS: macOS 10.15.6
VSCode version: 1.48.2
Extension version: 1.5.3
Toolchain version: lldb-1<IP_ADDRESS>, Apple Swift version 5.3 (swiftlang-1<IP_ADDRESS> clang-1<IP_ADDRESS>)
Variable inspection is still broken. I'm able to set breakpoints and step over/into/out, but the variables panel is empty. The one small difference now is that hovering over variables has no response instead of showing "unable to determine byte size". When hovering over a variable while debugging, nothing happens.

For me, I had to set lldb.library to /Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Versions/A/LLDB on macOS to get proper Swift support.

lldb.library

Where do I find lldb.library

lldb.library

Where do I find lldb.library @svanimpe

doesn't work with nevoid (I use nvim-dap) still 'unable to determine byte size' even after specifying /Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Versions/A/LLDB

Just in case if someone want to properly debug in neovim
Here is my nvim-dap config for swift development:
local libLLDB = "/Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Versions/A/LLDB"

local cmd = "/Users/nshv/.vscode/extensions/vadimcn.vscode-lldb-1.7.0/adapter/codelldb"

dap.adapters.codelldb = function(on_adapter)
	-- This asks the system for a free port
	local tcp = vim.loop.new_tcp()
	tcp:bind("<IP_ADDRESS>", 0)
	local port = tcp:getsockname().port
	tcp:shutdown()
	tcp:close()

	-- Start codelldb with the port
	local stdout = vim.loop.new_pipe(false)
	local stderr = vim.loop.new_pipe(false)
	local opts = {
		stdio = { nil, stdout, stderr },
		args = { "--liblldb", libLLDB, "--port", tostring(port) }
	}
	local handle
	local pid_or_err
	handle, pid_or_err = vim.loop.spawn(
		cmd,
		opts,
		function(code)
			stdout:close()
			stderr:close()
			handle:close()
			if code ~= 0 then
				print("codelldb exited with code", code)
			end
		end
	)
	if not handle then
		vim.notify("Error running codelldb: " .. tostring(pid_or_err), vim.log.levels.ERROR)
		stdout:close()
		stderr:close()
		return
	end
	vim.notify("codelldb started. pid=" .. pid_or_err)
	stderr:read_start(
		function(err, chunk)
			assert(not err, err)
			if chunk then
				vim.schedule(
					function()
						require("dap.repl").append(chunk)
					end
				)
			end
		end
	)
	local adapter = {
		type = "server",
		host = "<IP_ADDRESS>",
		port = port
	}
	-- 💀
	-- Wait for codelldb to get ready and start listening before telling nvim-dap to connect
	-- If you get connect errors, try to increase 500 to a higher value, or check the stderr (Open the REPL)
	vim.defer_fn(
		function()
			on_adapter(adapter)
		end,
		800
	)
end

dap.configurations.swift = {
	{
		type = "codelldb",
		request = "launch",
		name = "DEBUG",
		program = function()
			return "${workspaceFolder}/.build/debug/" .. vim.fn.substitute(vim.fn.getcwd(), '^.*/', '', '')
		end,
		cwd = "${workspaceFolder}",
		liblldb = libLLDB,
		-- args = {
		-- 	"--liblldb"
		-- },
		stopOnEntry = false,
	},
}


Precision in PartitionDurationFormatPattern

PartitionDurationFormatPattern performs some arithmetic, for example duration.[[Seconds]] + duration.[[Milliseconds]] / 10^3 + duration.[[Microseconds]] / 10^6 + duration.[[Nanoseconds]] / 10^9. It's currently spec'ed to perform these computations with precise mathematical values, but when we pass the result to FormatNumeric, we have to convert it into an imprecise Number value. Intl.NumberFormat V3 will change FormatNumeric to operate on mathematical values, so we no longer have to loose any precision.
Q: Should Intl.DurationFormat be made dependent on Intl.NumberFormat V3, so we can get the precise output? This would also match Temporal, which typically tries to avoid imprecise Number float-64 computations.
Example:
var df = new Intl.DurationFormat("en", {
  seconds: "numeric",
  fractionalDigits: 9,
});

// 1 + (2 / 10^3) + (3 / 10^6) +<PHONE_NUMBER>740991 / 10^9)
// = 9.007200256743991 × 10^6

var duration = {
  seconds: 1,
  milliseconds: 2,
  microseconds: 3,
  nanoseconds: Number.MAX_SAFE_INTEGER,
};

// NOTE: The Number rounded result ends with "992", whereas the precise result ends with "991".
// NOTE: Performing the complete computation with Number values results in "9,007,200.256743990".
assertEq(df.format(duration), "9,007,200.256743992");

Fine either way with a slight preference for IntlMV. Let's discuss this in the next meeting.

TG2 consensus: https://github.com/tc39/ecma402/blob/master/meetings/notes-2022-12-08.md#precision-in-partitiondurationformatpattern-110

Now that NumberFormat v3 proposal is stage 3, I suppose there's no more changes necessary here?

The AO does operations on the field of the DurationFormat. The fields are created from this AO:
https://tc39.es/proposal-intl-duration-format/#sec-tointegerwithoutrounding
which says

The abstract operation ToIntegerIfIntegral takes argument argument (an ECMAScript language value) and returns either a normal completion containing an integer, or an abrupt completion. It converts argument to an integer representing its Number value (replacing NaN with 0), or throws a RangeError when that Number value is not a finite integral Number. It performs the following steps when called:

Let number be ? ToNumber(argument).
If number is NaN, +0𝔽, or -0𝔽, return 0.
If IsIntegralNumber(number) is false, throw a RangeError exception.
Return ℝ(number).

So, the slots store MVs, and we pass those MVs now directly into NFv3. So I think there's nothing that needs to be done to resolve this issue once NFv3 lands upstream. (Still waiting for your review on that :smile: )

Amazing news, @sffc! Then I'll close this issue now and spend that time reviewing NFv3 instead :innocent:


visualc: clean up the module definition

Clean up the submodules in visualc to not export all imported modules.
The one special case is vcruntime which re-exports SAL due to a
dependency in the headers.  The import of visualc however will
re-export all submodules to keep the current behaviour.  This is
required to get the ARM64 SDK building on newer MSVC toolsets.

Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.

Resolves SR-NNNN.

@swift-ci please test

@swift-ci please test

@swift-ci please test Windows platform


Update to Rust 2021

We should update our crates to rust 2021. This should mostly be doable via rustfix / cargo fix.

@thomcc can you assign this to me as well?

All yours!


Improve article 2305.17804

The safari reader view for the paper indicated in the issue title only shows the abstract, and fails to display the rest of the paper. I suspect the footnote in the abstract may be breaking the further view in reader.
iOS version 16.7
Safari: stock for os

This issue was originally reported to arXiv via our helpdesk, and the reported provided this screen shot. I was able to replicate this issue on my cellphone.

The arXiv-ids around this paper don't seem to display this issue, so it may be related to something specific to this paper's conversion.

Thanks for the report!
It is worth recording that this is an Error-severity article, and nuvalidator catches a number of invalid HTML markup in it:
https://validator.unl.edu/?doc=https%3A%2F%2Far5iv.labs.arxiv.org%2Fhtml%2F2305.17804
So this could do with how Safari recovered from those errors (<table> in <span>, and/or the duplicate attribute on a MathML node), or could be a webkit-specific CSS issue.

inconsolata.sty and arydshln.sty are the remaining packages needing latexml support.

Just checked with an older iPad with iOS version 12.5, which renders the page fully. But it did not render the math natively (used the JS polyfill instead). Good to know it's likely contained to more recent iOS versions, but naturally those are most iOS users anyway.


show-paren-mode hard to distinguish between balanced and imbalanced parens

Thanks for the issue.  I didn't have settings for show-paren-mode.  I added that in the latest commit.


No error handeling when making an error in global.less

error happened in directv-fl/sbs-fix branch

fixed in stable


Add copy to the default proc for hash.

When I using the allows filter, I can not access the value of a parameter through a symbol.
So I add to copy the default proc for hash.

https://github.com/sinatra/sinatra/blob/master/lib/sinatra/base.rb#L1069
module Sinatra
  ...
  # Base class for all Sinatra applications and middleware.
  class Base
    ...
    # Enable string or symbol key access to the nested params hash.
    def indifferent_params(object)
      case object
      when Hash
        new_hash = indifferent_hash
        object.each { |key, value| new_hash[key] = indifferent_params(value) }
        new_hash
      when Array
        object.map { |item| indifferent_params(item) }
      else
        object
      end
    end

    # Creates a Hash with indifferent access.
    def indifferent_hash
      Hash.new { |hash, key| hash[key.to_s] if Symbol === key }
    end

And nested access is succeed. May be, it's because Hash#select copies by shallow copy.

Oh wow, nice catch! I didn't realize that there was indifferent param access via the default proc. Thanks!


Trying to fix LGTM warnings

I'm playing around with LGTM, and trying to fix some alerts/warnings.
Keeping this PR up for now, so please don't merge it yet :slightly_smiling_face:

This pull request fixes 5 alerts when merging ef509e4a33fb367d41eaf95e010aefee8ff2c8ed into 49ada6e4325d88b2c7a4643e709de007121f4a04 - view on LGTM.com
fixed alerts:

4 for Variable defined multiple times
1 for Unused local variable

Comment posted by LGTM.com

Ok, nice! Please proceed... but do not touch workers/grid-workers, as I am cleaning/refactoring them heavily, ok?

So I am merging this only directly, as I removed last_epoch from the OfflineTrainer. Will open a new one later on


[Issue 7315][docker-compose]

Fixes issue #7315

(If this PR fixes a github issue, please add Fixes #<xyz>.)
Fixes #7315
(or if this PR is one task of a github issue, please add Master Issue: #<xyz> to link to the master issue.)
Master Issue: #
Motivation
It is an easy fix
Modifications
Change PULSAR_MEM for BOOKIE_MEM
Verifying this change

This change is a trivial rework / code cleanup without any test coverage.

Does this pull request potentially affect one of the following parts:
If yes was chosen, please highlight the changes

Dependencies (does it add or upgrade a dependency): (yes / no)
The public API: (yes / no)
The schema: (yes / no/ don't know)
The default values of configurations: (yes / no)
The wire protocol: (yes / no)
The rest endpoints: (yes / no)
The admin cli options: (yes / no)
Anything that affects deployment: (yes / no / don't know)

Documentation

Does this pull request introduce a new feature? (yes / no)
If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)
If a feature is not applicable for documentation, explain why?
If a feature is not documented yet in this PR, please create a followup issue for adding the documentation

/pulsarbot run-failure-checks

/pulsarbot run-failure-checks

/pulsarbot run-failure-checks

/pulsarbot run-failure-checks

/pulsarbot run-failure-checks


pkg-config file doesn't reflect 64_ symbol suffix

If you build OpenBLAS for ILP64 with the standard symbol suffix 64_
$ make INTERFACE64=1 SYMBOLSUFFIX=64_ USE_OPENMP=0 NO_STATIC=1 BINARY="64" DYNAMIC_ARCH=1 QUIET_MAKE=1
$ make INTERFACE64=1 SYMBOLSUFFIX=64_ USE_OPENMP=0 NO_STATIC=1 BINARY="64" DYNAMIC_ARCH=1 QUIET_MAKE=1 PREFIX=$PWD/tmpdir install
$ ls tmpdir/lib/
cmake  libopenblas64_p-r0.3.21.dev.so  libopenblas64_.so  libopenblas64_.so.0  pkgconfig
$ ls tmpdir/lib/pkgconfig/
openblas.pc
$ cat tmpdir/lib/pkgconfig/openblas.pc
libdir=/home/rgommers/code/tmp/OpenBLAS/tmpdir/lib
includedir=/home/rgommers/code/tmp/OpenBLAS/tmpdir/include
openblas_config= USE_64BITINT= DYNAMIC_ARCH=1 DYNAMIC_OLDER= NO_CBLAS= NO_LAPACK= NO_LAPACKE= NO_AFFINITY=1 USE_OPENMP=0 SKYLAKEX MAX_THREADS=24
version=0.3.21.dev
extralib=-lm -lpthread -lm -lpthread
suffix=64_
Name: openblas
Description: OpenBLAS is an optimized BLAS library based on GotoBLAS2 1.13 BSD version
Version: ${version}
URL: https://github.com/xianyi/OpenBLAS
Libs: -L${libdir} -lopenblas
Libs.private: ${extralib}
Cflags: -I${includedir}

If the library produced is libopenblas64_.so, then the link like should use -lopenblas64_ (and I tested that that fixes the issue I was seeing). Or more generally, it should probably contain -lopenblas${suffix} with a suffix variable defined above it.
The thing I'm less sure about is: should the produced .pc file be named openblas64_.pc instead of plain openblas.pc? Or perhaps better, don't use the symbol suffix in the name but name it openblas-ilp64.pc. That way it's actually possible to install both LP64 and ILP64 builds next to each other without a conflict, and select the one you want and know what it is without resorting to checking the binary itself via compiling some code. I'll also note that MKL uses a -lp64/-ilp64 scheme.

Possibly broken by #2965 a while ago, ironically with the expressed purpose of simplyfying side-by-side installs

So the library suffixing appears to have been broken (in the gmake build system) forever, while the cmake build does it right. (But both were not reporting the setting of INTERFACE64 a.k.a USE64BITINT). I am not entirely sure what to use for the pkgconfig file suffix in the "ILP64" case - as far as I could tell, MKL is the only example that uses ilp64/lp64, while distribution packagers of OpenBLAS appear to have been using "openblas64.pc" already (which is also what our cmake build does, and the PR now adopts is for gmake builds as well)


warn many shapes as points

This PR checks whether there is a point geometry in a shapes element and if the length of the element exceeds 1m adds an icon to the list widget item. When a user then hovers over the item they get to see a warning regarding visualization.

This could also potentially be extended to put warning signs and tooltips for the subsampling of points.

Codecov Report
Attention: Patch coverage is 86.66667% with 2 lines in your changes are missing coverage. Please review.

:exclamation: No coverage uploaded for pull request base (main@83ef3d8). Click here to learn what that means.

Files
Patch %
Lines

src/napari_spatialdata/_sdata_widgets.py
86.66%
2 Missing :warning:

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #224   +/-   ##
=======================================
  Coverage        ?   75.88%
=======================================
  Files           ?       18
  Lines           ?     2015
  Branches        ?        0
=======================================
  Hits            ?     1529
  Misses          ?      486
  Partials        ?        0

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

Thanks, this looks great! As discussed I have reduced the threshold, extended this to polygons/multipolygons (with a lower threshold) and moved the constants to the config.py file.


When training,[Variable conv1_1/weights already exists, disallowed] error occurred

Hi,  When I perform the training in the second times, the following error occurred, anyone can tell me the reason? thank you very much！ sorry,my English is very pool.......
ValueError: Variable conv1_1/weights already exists, disallowed. Did you mean to set reuse=True in VarScope?

Hi
I faced the same situation. In my one python script, I was trying to load two different models one after other. First one ran successfully but the error arose while loading the second one. I handled it by making two scripts each loading one model and calling these two scripts one after other.
Hope it helps. :) :)

@jaig Thanks your anwser！you means the weight info is saved in memory when one script is ran? If ran second time load models,first time load's weight don't allowed to change,so the error was happend?

@gherao Yes

Facing the same issue when testing:
ValueError: Variable conv1_1/weights already exists, disallowed. Did you mean to set reuse=True or reuse=tf.AUTO_REUSE in VarScope? Originally defined at:
{my_internal_model_dir_correct_path}/lib/networks/network.py", line 86, in make_var
return tf.get_variable(name, shape, initializer=initializer, trainable=trainable, regularizer=regularizer)
Unfortunately I have can't create two scripts and my model is called in sequential jobs.
Tried all options in all combinations: reuse=False, reuse=True or reuse=tf.AUTO_REUSE in variable scope and tf.reset_default_graph() before script as mentioned here  but still getting above same error.

Fixed this issue on my own. No need to change reuse variable. Just need to keep tf.reset_default_graph()  before graph is loaded(before tf.Session too) in main function. It is mentioned well in tensorflow docs.


feat: allow scripts access to all node standard objects

If you have a .js scripts that uses one of the standard available classes, you'll get a ReferenceError, since the global and globalThis object doesn't have these classes in them.
Something like this in a script won't work:
new URL("http://localhost");

This is a problem with many libraries. For example we have a script that needs to retrieve a secrets from the AWS SecretsManager, but is unable to do so, since it relies on URL to be available globally.
This PR fixes that by giving all global objects to the execution context of the script. I'm not sure if there're any security implications to consider for this. In theory it's possible that global classes could be modified by the script that is running, causing problems in the serverless execution environment. But I guess only trusted code should be run, so I don't consider this as a problem.

One more question @weixu365:
Our usage scenario is that we use TypeScript to build our serverless app. And we prefer to use TS as well for our scriptable hooks as well (relying on TS code we already have).
The current PR works well if we pack the script with webpack. But this is quite slow, and we'd rather use tsc to compile the TS code and run that .js file. But compiling the TS code with tsc in commonjs format (which we need for node), leaves references to a global exports variable (it adds this line Object.defineProperty(exports, "__esModule", { value: true });). This will give reference errors, since this is not set by the sandbox or automatically in the vm. Normally this exports variable is supposed to be loaded from the module context, but the vm doesn't seem to interpret it that way.
Is it ok to add exports to the sandbox as well to circumvent this problem? Like so:
    const sandbox = {
      ...globalProperties,
      module: buildModule(),
      require: id => sandbox.module.require(id),
      serverless: this.serverless,
      options: this.options,
      __filename: scriptFile,
      __dirname: path.dirname(fs.realpathSync(scriptFile)),
      exports: Object()
    };

Is it ok to add exports to the sandbox as well to circumvent this problem? Like so:

Sure, please add it to the context and add a test like your previous one to make sure it won't be deleted accidentally, thanks


How to make formula in the center of HTML page , but keep left align in its body.

just like this
                              x+y+z
                              +w

General purpose questions fit better on our mailing list at https://groups.google.com/forum/#!forum/mathjax-users
You will want to provide a minimal example of what you've tried. In particular, you should say what input method you're using.

Thanks.
Although, I haven't found a perfect answer yet. But I found a quit weird solution by myself.
first set the equation left align and set output format is HTML-CSS
 MathJax.Hub.Config({]
        jax: ["input/TeX", "output/HTML-CSS"],
        displayAlign:"left"
    });

then set the width of span.math to 0, so it's real width would be it's min-width
MathJax.Hub.Queue(function() {
    $("div.MathJax_Display span.math").css("width","0");
});

and add \ for every equation, whether you wan't it has a line break or not.
\[
x+y+z\\
+w\\
\]

for equations you have add the line-breaks by yourself.
\[
x+y+z+w\\
\]

for equations you in a single line, to make MathJax generate a span with class of MathJax_FullWidth instead of MathJax.

Try this:
\[{
x+y+z\\
+w
}\]

This forces the expression to be in a box that will cause line breaks to be treated as internal breaks (not centered or indented) rather than normal line breaks (affected by centering and indenting).
See if the does what you need.

Perfect! dpvc, thank you very much!


USHIFT-1487: refactor: rename prerun struct to datamanager

Initial PR to rename prerun struct to datamanger.
Since PreRun does much more now, we decided to do a refactor and change the struct name to DataManager and it's receiver functions.
/assign @pmtk

/hold
This is part of the renaming, but discussions are still happening in the Jira ticket. This PR was created to validate nothing broke CI with this rename.

/unhold
Removing hold since now we have some more direction on where we want to take this. Consensus is to keep it simple and just do a small rename of PreRun to BackupManager where it's more descriptive of its functionality.

Had a quick chat with @pmtk, DataManager seems a bit more appropriate here given that this functionality does also alter the DataDir.

I'm not totally convinced with this, but since this is my idea after all and I'm out of naming ideas... it's better than a "PreRun" which says almost nothing.
I'm applying lgtm+hold, maybe @dhellmann has some thoughts :pleading_face:
/lgtm
/hold

It looks like the final decision was to rename the type, but not the package?

It looks like the final decision was to rename the type, but not the package?

Looks like it. Package name prerun is still accurate and it contains: backup and version metadata management.
For me it's the type PreRun struct that is no longer accurate description since PreRun is no longer a single block of actions, and that struct deals with data/backup management

It looks like the final decision was to rename the type, but not the package?

Looks like it. Package name prerun is still accurate and it contains: backup and version metadata management. For me it's the type PreRun struct that is no longer accurate description since PreRun is no longer a single block of actions, and that struct deals with data/backup management

OK, I like the direction but the PR description is a bit out of date, so I wanted to verify.

/lgtm

/unhold
Updated description to reflect changes.


[HOWTO] navigate to word cross line?

evil-forward-word-begin should jump to begin of any forward words in buffer, but in doom emacs, I found that it can only jump to forward words in current line (when hit g s w). Is there any settings for me to change this behiver?

Would avy-goto-word0 be a fitting alternative?

Would avy-goto-word0 be a fitting alternative?

The tagging style of avy is different from easy-motion. In easy-motion, the matching words near the cursor will have shorter tags, such as h, j, k, which makes it more easy to move to lines near cursor, which is a high frequency operation. But in avy, the upper matching words will have shorter tags, that means it almost always need to hit 3 chars to go to matching words in last 1/3 buffer, no matter where the cursor is now.
But still, avy-goto-word0 can be an alternative, however, when I tried to config it to my config.el file, I got a strength problem, as I showed in this issue #2725 .

evil-forward-word-begin should jump to begin of any forward words in buffer

This appears to be the default behavior for gsw et co. I would recommend reporting this to evil-easymotion. For some reason, their default scope is the current line: https://github.com/PythonNut/evil-easymotion/blob/master/evil-easymotion.el#L316-L353
Otherwise, this would work around it (albeit clumsily):
(after! evil-easymotion
  (put 'visible-buffer 'bounds-of-thing-at-point (lambda () (cons (window-start) (window-end))))
  (evilem-make-motion evilem-motion-forward-word-begin #'evil-forward-word-begin :scope 'visible-buffer)
  (evilem-make-motion evilem-motion-forward-WORD-begin #'evil-forward-WORD-begin :scope 'visible-buffer)
  (evilem-make-motion evilem-motion-forward-word-end #'evil-forward-word-end :scope 'visible-buffer)
  (evilem-make-motion evilem-motion-forward-WORD-end #'evil-forward-WORD-end :scope 'visible-buffer)
  (evilem-make-motion evilem-motion-backward-word-begin #'evil-backward-word-begin :scope 'visible-buffer)
  (evilem-make-motion evilem-motion-backward-WORD-begin #'evil-backward-WORD-begin :scope 'visible-buffer)
  (evilem-make-motion evilem-motion-backward-word-end #'evil-backward-word-end :scope 'visible-buffer)
  (evilem-make-motion evilem-motion-backward-WORD-end #'evil-backward-WORD-end :scope 'visible-buffer))

evil-forward-word-begin should jump to begin of any forward words in buffer

This appears to be the default behavior for gsw et co. I would recommend reporting this to evil-easymotion. For some reason, their default scope is the current line: https://github.com/PythonNut/evil-easymotion/blob/master/evil-easymotion.el#L316-L353
Otherwise, this would work around it (albeit clumsily):
(after! evil-easymotion
  (put 'visible-buffer 'bounds-of-thing-at-point (lambda () (cons (window-start) (window-end))))
  (evilem-make-motion evilem-motion-forward-word-begin #'evil-forward-word-begin :scope 'visible-buffer)
  (evilem-make-motion evilem-motion-forward-WORD-begin #'evil-forward-WORD-begin :scope 'visible-buffer)
  (evilem-make-motion evilem-motion-forward-word-end #'evil-forward-word-end :scope 'visible-buffer)
  (evilem-make-motion evilem-motion-forward-WORD-end #'evil-forward-WORD-end :scope 'visible-buffer)
  (evilem-make-motion evilem-motion-backward-word-begin #'evil-backward-word-begin :scope 'visible-buffer)
  (evilem-make-motion evilem-motion-backward-WORD-begin #'evil-backward-WORD-begin :scope 'visible-buffer)
  (evilem-make-motion evilem-motion-backward-word-end #'evil-backward-word-end :scope 'visible-buffer)
  (evilem-make-motion evilem-motion-backward-WORD-end #'evil-backward-WORD-end :scope 'visible-buffer))

Thank you, it works!


Allow client to provide prompt token ids instead of a string

Feature request
Please add the option to provide the prompt as a list of token ids instead of a string in the text_generation.Client.generate method.
Motivation
The official implementation of the recent LLaMA-2-Chat models uses the tokenizer for every turn of a chat conversation in isolation before concatenating the token ids. I would also like to do this in my implementation. However, it's not possible to send the resulting list of tokens to TGI because it only accepts a string as a prompt.
I understand that in this specific case it might be possible to concatenate strings in the client including the string representations of the special tokens. But sometimes tokenize(a + b) != tokenize(a) + tokenize(b), so this might not be completely correct. And I have also already seen at least one other model where this is mentioned explicitly and where the authors advice to concatenate token ids instead of strings (though I unfortunately can't find that model right now).
Providing the list of token ids instead of a string is also already supported in both huggingface transformers as well as in vLLM.
Your contribution
I'm unfortunately not familiar enough with Rust to provide a PR for this feature.

There are definitely some benefits in doing this.
1- We don' t have to guess how the model processes our string input, also we can override tokenization a produce a list of ids which is impossible to create by raw tokenization (this has applications with regard of bypassing special ids for instance)
2- Tokenization can happen on the client
There are cons:

It adds most likely a lot of complexity to the current codebase
Users do have to make tokenization on the client, can send invalid ids which we now have to validate for.

I'm really worried about the added surface for this feature, so I would tend to refuse making such a change, unless we could have a very simple way of doing it.
@OlivierDehaene Wdyt ?

I agree that this would be nice and a tokenization refactor is long overdue.
We will think about it in q4.

This issue will never be stale unless the feature is added.  Remove stale label or comment or this will be closed in 5 days.


Maps do not display

Hello,
Since this morning, the maps are not displayed, however the canvas no longer exists.
I use it via the API.
It is not a problem of API keys.
API response service well "http 200" when calling javascript
the call back https://www.google.com/jsapi?callback=ivory_google_map_load response "http 302"
Thank you in advance for your answer.

Hi!
I have the same issue and I'm really freaking out because I need it to work by next week...

Hey, FYI take a look at ivory/google-map and ivory/google-map-bundle It will be maintained and upgraded to Symfony 4 soon. API bug is fixed too.


CAMB vs BBKS mismatch on simple LCDM?

So, I must be doing something wrong or missing something very obvious, but I get a large disagreement between the BBKS and CAMB transfer Pks in a simple cosmoloy without neutrinos:
import pyccl as ccl

cosmo_bbks = ccl.Cosmology(
    Omega_c=0.25, Omega_b=0.05, h=0.7, sigma8=0.8, n_s=0.96, Neff=0,
    transfer_function='bbks', matter_power_spectrum='linear', Omega_g=0.0,
    Omega_k=0, T_CMB=2.7, m_nu=0.0, m_nu_type='normal'
    )

cosmo_camb = ccl.Cosmology(
    Omega_c=0.25, Omega_b=0.05, h=0.7, sigma8=0.8, n_s=0.96, Neff=0,
    transfer_function='boltzmann_camb', matter_power_spectrum='linear', Omega_g=0.0,
    Omega_k=0, T_CMB=2.7, m_nu=0.0, m_nu_type='normal'
    )

k = np.logspace(-3, 0, 512)

pk_bbks = ccl.linear_matter_power(cosmo_bbks, k, 1.0)
pk_camb = ccl.linear_matter_power(cosmo_camb, k, 1.0)

Any ideas what I'm doing wrong?

In the example above, if change the following line:
https://github.com/LSSTDESC/CCL/blob/31dc0c911dc9f7f8cdf0389799554c274c1acc9b/pyccl/boltzmann.py#L157
by:
k *= (0.8 * cosmo['h'])

It looks like I recover the correct amplitudes at both small and large scales:

Here is a notebook to try it out:
https://gist.github.com/EiffL/f99c19b2a9d02018d34b5152e0c2bee7
So it looks to me like a problem of unit conversions between camb and CCL. Any thougts/ideas/comments @beckermr ?

Our code passed all of the benchmarks, so this is very confusing.

Have we ever done a BBKS vs CAMB comparison though? The original benchmarks for the BBKS power spectrum simply came from different users' implementations of BBKS. Then we added CLASS & CAMB. We have a consistency check between those two, but do we have anything else that could catch this?

Yeah, I don't see a check for consistency between analytic PS and Boltzmann codes. For what it's worth, BBKS/EH seem to agree with each other on one hand, and CLASS/CAMB on the other hand.
I get the same result to EH with my own code, so I would say this one is ok, and then it must be a unit conversion problem, when CCL converts to h-less units. I just can't figure out why though, it looks ok when reading the boltzmann.py code....

Ok, hold on >.< I think I was indeed doing something stupid which would explain why it didn't make sense ^^'
In the example above I was naively trying to compare the PS without neutrinos, so I grabbed an example CCL config from a BBKS test, and just replaced the transfer function with CAMB. But, I had Neff=0, which CAMB didn't complain about, but which was apparently causing the issue. with the same config, CLASS wouldn't run.
Now I get good agreement if I use the following config:
cosmo_bbks = ccl.Cosmology(
    Omega_c=0.25, Omega_b=0.05, h=0.7, sigma8=0.8, n_s=0.9, Neff=3.046,
    transfer_function='bbks', matter_power_spectrum='linear', Omega_g=0.0,
    Omega_k=0, T_CMB=2.7, m_nu=0.0, m_nu_type='normal'
    )

and just replace the transfer function:

So, false alarm I think, as I was suspecting it's mostly me not knowing what I was doing.
So that this is issue wasn't a total waste of time ^^' :

Could I add a check somewhere that ensures a correct set of params is being sent to CAMB?
Should I add a consistency check between analytic and boltzmann codes? If so, what test params would you recommend?

Ahh yes. This makes sense.

Should I add a consistency check between analytic and boltzmann codes? If so, what test params would you recommend?

sure if you want

As for correct camb params, IDK what camb thinks when we send if Neff=0. What did you think it was supposed to mean?

I didn't think it through, didn't pay attention to it. CLASS, when I eventually managed to download the repo and install it, yelled at me with the following message:
Error in Class: thermodynamics_init(L:339) :error in thermodynamics_helium_from_bbn(ppr,pba,pth);
=>thermodynamics_helium_from_bbn(L:1695) :condition (DeltaNeff < deltaN[0]) is true; You have asked for an unrealistic small value of Delta N_eff = -3.046000e+00. The corresponding value of the primordial helium fraction cannot be found in the interpolation table.  But if there is a simple way to check the neutrino parametrisation is ok in CCL, may save some time for some people down the line.

Right. @c-d-leonard has been working on the neutrino param a lot. Maybe she can weigh in?

ok this was actually not a bug, I'm gonna close it because looks unlikely I'll get to adding these extra checks in the near future :-|


Datastore basic template and operations

provides interface for converter so that work can begin separately.
provides implementation and tests for read, query, save, and delete operations.

fixes #679 .

@meltsufin @dmitry-s PTAL and LGTM

@meltsufin PTAL changes made.

@dmitry-s  would you mind approving? with that LGTM?

done


Fix due to client-side throttling, not priority and fairness

Verifying fix from PR https://github.com/aws/eks-anywhere-packages/pull/808


DOC: add note about PyFFTW in fftpack tutorial.

Follow-up of gh-5295.

@hgomersall FYI

Maybe also mention it in the release notes? Anyway, I don't see how this can be less than an improvement as is, so merging. Thank you Ralf

Good idea, I'll add to the release notes. Had some more updates of those in progress.


[How to guides] Deploying with Heroku

Linked to issue #896

As a new test is added to enforce .webp format over png so tests are failing

Change Deploy to Heroku button reference to "Deploy to Heroku" at all places

Sure, I'll do that

Change Deploy to Heroku button reference to "Deploy to Heroku" at all places

The Deploy to Heroku button is a button on the readme file that helps in deploying the repository out of the box. Deploying to Heroku is a different thing, which means deploying your own bot to heroku.

Merging PR with no conflicts and 4 approvals :)


Add pages for other technical clubs i.e. ACM, IEEE and IET.

@HarshRaj4523  I'm interested in working on this issue. Could you please assign it to me?
Thanks!


Old CSScoverage MDN page to be removed

Request type

[ ] Please close this issue, I accidentally submitted it without adding any details
[ ] New documentation
[x] Correction or update

Details

This MDN page is outdated and should be deleted: https://developer.mozilla.org/en-US/docs/Tools/CSS_Coverage
It refers to a GCLI command that a) was never really available by default and, b) doesn't work anymore since GCLI got removed.

Deleted!


update network page

update network page to use contentful item instead and add two separate tabs for dataset and metrics

closed by https://github.com/gbif/portal16/commit/5e4c161e1ee3740cdbd85e383abcf593eaf77412
It currently use the old version. once this goes live the new version is added by

adding server routes https://github.com/gbif/portal16/blob/master/app/controllers/network/key/network.ctrl.js#L12
changing client template https://github.com/gbif/portal16/blob/master/app/views/shared/layout/html/angular/routerConfig.js#L413

screenshots of updated implementation (that is currently hidden)


Move placeholder text inside lines div

Following up on #15317, we need to move the placeholder text inside the lines div so that it aligns with the cursor in the event that themes apply padding or margin to the lines div.
/cc @as-cii @Ben3eeE

@as-cii can you cherry pick this tomorrow


Tagged release

I am forking this to UKHomeOffice so I can tag a release there and have definitely stable known code, but may be nice for others to have a tagged version here.

Sure thing @timgent, good call. I just tagged 0.0.1: https://github.com/zebrafishlabs/nginx-statsd/releases/tag/0.0.1


Register word should not be reserved

010 Editor does let you create variables with "register" names. pfp does not and errors on that.

can you give a specific example? like the code youre attempting to run that reproduces the error?

At the time I reported the issue it was no more complex than:
int register;

This was actually problem in py010parser, and was fixed with: d0c-s4vage/py010parser/issues/7.
Thanks for reporting it!

@d0c-s4vage I am currently rechecking the fixes (thanks a lot for them), and this is still broken.
int register; will produce an error. I suggest this to be reopened.

I haven't pushed to pypi yet

and I just barely merged everything into the master branch - should be v0.1.15 now in the master branch

Correct, have just installed things manually and the bug is fixed.

btw, I made #pfp on irc, might be easier to chat there

thanks for all the bug reports - I really appreciate the help!

*freenode irc


Jump into the workspace

Be able to jump into the workspace when something else on the page is selected

J now jumps into the workspace if it is not selected or jumps to the top block if workspace is selected


Mattermost messages not being relayed after some time

Describe the bug
A bridge running against Mattermost fails to see messages in some Mattermost channel after some time. It looks like there was a connection issue which was not auto-recovered.
Will try enabling more verbose logging. This issue is happening constantly around 3 times since joining the bot to the mattermost team. A restart seems to help for a bit.
Screenshots/debug logs
time="2021-04-13T17:37:20Z" level=info msg="Connection succeeded" prefix=mattermost
time="2021-04-13T17:37:20Z" level=info msg="mattermost.foobar: joining town-square (ID: town-squaremattermost.foobar)" prefix=mattermost
time="2021-04-13T17:37:20Z" level=info msg="Gateway(s) started succesfully. Now relaying messages" prefix=main
time="2021-04-14T01:09:49Z" level=error msg="Connection is not alive: &model.AppError{Id:"model.client.connecting.app_error", Message:"model.client.connecting.app_error", DetailedError:"Get \"https://mattermost.domain.tld/api/v4/users/me\": context deadline exceeded (Client.Timeout exceeded while awaiting headers)", RequestId:"", StatusCode:0, Where:"https://mattermost.domain.tld/api/v4/users/me", IsOAuth:false, params:map[string]interface {}(nil)}" prefix=matterclient
time="2021-04-14T01:09:50Z" level=error msg="Connection is not alive: &model.AppError{Id:"model.client.connecting.app_error", Message:"model.client.connecting.app_error", DetailedError:"Get \"https://mattermost.domain.tld/api/v4/users/me\": context deadline exceeded (Client.Timeout exceeded while awaiting headers)", RequestId:"", StatusCode:0, Where:"https://mattermost.domain.tld/api/v4/users/me", IsOAuth:false, params:map[string]interface {}(nil)}" prefix=matterclient
time="2021-04-14T13:09:34Z" level=error msg="Connection is not alive: &model.AppError{Id:"model.client.connecting.app_error", Message:"model.client.connecting.app_error", DetailedError:"Get \"https://mattermost.domain.tld/api/v4/users/me\": context deadline exceeded (Client.Timeout exceeded while awaiting headers)", RequestId:"", StatusCode:0, Where:"https://mattermost.domain.tld/api/v4/users/me", IsOAuth:false, params:map[string]interface {}(nil)}" prefix=matterclient
time="2021-04-14T13:09:36Z" level=error msg="Connection is not alive: &model.AppError{Id:"model.client.connecting.app_error", Message:"model.client.connecting.app_error", DetailedError:"Get \"https://mattermost.domain.tld/api/v4/users/me\": context deadline exceeded (Client.Timeout exceeded while awaiting headers)", RequestId:"", StatusCode:0, Where:"https://mattermost.domain.tld/api/v4/users/me", IsOAuth:false, params:map[string]interface {}(nil)}" prefix=matterclient
time="2021-04-14T17:15:47Z" level=error msg="Connection is not alive: &model.AppError{Id:"model.client.connecting.app_error", Message:"model.client.connecting.app_error", DetailedError:"Get \"https://mattermost.domain.tld/api/v4/users/me\": context deadline exceeded (Client.Timeout exceeded while awaiting headers)", RequestId:"", StatusCode:0, Where:"https://mattermost.domain.tld/api/v4/users/me", IsOAuth:false, params:map[string]interface {}(nil)}" prefix=matterclient
time="2021-04-14T17:15:49Z" level=error msg="Connection is not alive: &model.AppError{Id:"model.client.connecting.app_error", Message:"model.client.connecting.app_error", DetailedError:"Get \"https://mattermost.domain.tld/api/v4/users/me\": context deadline exceeded (Client.Timeout exceeded while awaiting headers)", RequestId:"", StatusCode:0, Where:"https://mattermost.domain.tld/api/v4/users/me", IsOAuth:false, params:map[string]interface {}(nil)}" prefix=matterclient
time="2021-04-14T17:17:09Z" level=error msg="error:websocket: close 1006 (abnormal closure): unexpected EOF" prefix=matterclient
time="2021-04-14T17:17:09Z" level=error msg="error:websocket: close 1006 (abnormal closure): unexpected EOF" prefix=matterclient
time="2021-04-15T09:00:54Z" level=error msg="error:read tcp <IP_ADDRESS>:42100-><IP_ADDRESS>:443: use of closed network connection" prefix=matterclient
time="2021-04-15T09:00:55Z" level=error msg="Connection is not alive: &model.AppError{Id:"model.client.connecting.app_error", Message:"model.client.connecting.app_error", DetailedError:"Get \"https://mattermost.domain.tld/api/v4/users/me\": context deadline exceeded (Client.Timeout exceeded while awaiting headers)", RequestId:"", StatusCode:0, Where:"https://mattermost.domain.tld/api/v4/users/me", IsOAuth:false, params:map[string]interface {}(nil)}" prefix=matterclient
time="2021-04-15T09:00:55Z" level=info msg="Found version <IP_ADDRESS>.31.1.ddded0adf5694080dd531cd5c55789ff.false" prefix=matterclient
time="2021-04-15T09:01:00Z" level=error msg="error:read tcp <IP_ADDRESS>:42098-><IP_ADDRESS>:443: use of closed network connection" prefix=matterclient
time="2021-04-15T09:01:06Z" level=error msg="Login failed: &errors.errorString{s:"Get \"https://mattermost.domain.tld/api/v4/users?in_team=1ij6zwskciffmxinz7ys6ai9hc&page=1&per_page=200\": context deadline exceeded (Client.Timeout exceeded while awaiting headers)"}" prefix=matterclient
time="2021-04-15T09:01:06Z" level=info msg="Found version <IP_ADDRESS>.31.1.ddded0adf5694080dd531cd5c55789ff.false" prefix=matterclient
time="2021-04-15T09:01:08Z" level=info msg="found 119 users in team barfoo" prefix=matterclient
time="2021-04-15T09:01:09Z" level=info msg="found 443 users in team foobar" prefix=matterclient
time="2021-04-15T22:00:47Z" level=error msg="Connection is not alive: &model.AppError{Id:"model.client.connecting.app_error", Message:"model.client.connecting.app_error", DetailedError:"Get \"https://mattermost.domain.tld/api/v4/users/me\": context deadline exceeded (Client.Timeout exceeded while awaiting headers)", RequestId:"", StatusCode:0, Where:"https://mattermost.domain.tld/api/v4/users/me", IsOAuth:false, params:map[string]interface {}(nil)}" prefix=matterclient
time="2021-04-15T22:00:52Z" level=error msg="error:read tcp <IP_ADDRESS>:43154-><IP_ADDRESS>:443: use of closed network connection" prefix=matterclient
time="2021-04-15T22:00:55Z" level=info msg="Found version <IP_ADDRESS>.31.1.ddded0adf5694080dd531cd5c55789ff.false" prefix=matterclient
time="2021-04-15T22:00:57Z" level=info msg="found 119 users in team barfoo" prefix=matterclient
time="2021-04-15T22:00:59Z" level=info msg="found 443 users in team foobar" prefix=matterclient

Environment (please complete the following information):

OS: linux / docker image
Matterbridge version: 1.22.1-dev 3ec1a407 (basically 1.22.1 with https://github.com/42wim/matterbridge/pull/1438)

Additional context
#This is configuration for matterbridge.
#WARNING: as this file contains credentials, be sure to set correct file permissions
#See https://github.com/42wim/matterbridge/wiki/How-to-create-your-config for how to create your config
#See https://github.com/42wim/matterbridge/wiki/Settings for all settings
###################################################################
#mattermost section
###################################################################
[mattermost]
#You can configure multiple servers "[mattermost.name]" or "[mattermost.name2]"

[mattermost.barfoo]
#The mattermost hostname. (do not prefix it with http or https)
#REQUIRED (when not using webhooks)
Server="mattermost.domain.tld"

#Your team on mattermost.
#REQUIRED (when not using webhooks)
Team="barfoo"

#personal access token of the bot.
#new feature since mattermost 4.1. See https://docs.mattermost.com/developer/personal-access-tokens.html
#OPTIONAL (you can use token instead of login/password)
Token="secret"

#Whether to prefix messages from other bridges to mattermost with the sender's nick.
#Useful if username overrides for incoming webhooks isn't enabled on the
#mattermost server. If you set PrefixMessagesWithNick to true, each message
#from bridge to Mattermost will by default be prefixed by "bridge-" + nick. You can,
#however, modify how the messages appear, by setting (and modifying) RemoteNickFormat
#OPTIONAL (default false)
PrefixMessagesWithNick=true

#RemoteNickFormat defines how remote users appear on this bridge
#See [general] config section for default options
RemoteNickFormat="<{NICK}> "

[mattermost.foobar]
#The mattermost hostname. (do not prefix it with http or https)
#REQUIRED (when not using webhooks)
Server="mattermost.domain.tld"

#Your team on mattermost.
#REQUIRED (when not using webhooks)
Team="foobar"

#personal access token of the bot.
#new feature since mattermost 4.1. See https://docs.mattermost.com/developer/personal-access-tokens.html
#OPTIONAL (you can use token instead of login/password)
Token="secret"

#Whether to prefix messages from other bridges to mattermost with the sender's nick.
#Useful if username overrides for incoming webhooks isn't enabled on the
#mattermost server. If you set PrefixMessagesWithNick to true, each message
#from bridge to Mattermost will by default be prefixed by "bridge-" + nick. You can,
#however, modify how the messages appear, by setting (and modifying) RemoteNickFormat
#OPTIONAL (default false)
PrefixMessagesWithNick=true

#RemoteNickFormat defines how remote users appear on this bridge
#See [general] config section for default options
RemoteNickFormat="<{NICK}> "

###################################################################
#matrix section
###################################################################
[matrix]
#You can configure multiple servers "[matrix.name]" or "[matrix.name2]"

[matrix.foobarfoo]
#Server is your homeserver (eg https://matrix.org)
#REQUIRED
Server="https://matrix.domain.tld"

#login/pass of your bot.
#Use a dedicated user for this and not your own!
#Messages sent from this user will not be relayed to avoid loops.
#REQUIRED
#Login="user"
#Password="secret"
Token='secret'
MxID='@matterbridge:foobarfoo.tld'

# UseUserName shows the username instead of the server nickname
UseUserName=false

#RemoteNickFormat defines how remote users appear on this bridge
#See [general] config section for default options
RemoteNickFormat="<{NICK}> "

###################################################################
#General configuration
###################################################################
# Settings here are defaults that each protocol can override
[general]

## RELOADABLE SETTINGS
## Settings below can be reloaded by editing the file

#RemoteNickFormat defines how remote users appear on this bridge
#The string "{NICK}" (case sensitive) will be replaced by the actual nick.
#The string "{USERID}" (case sensitive) will be replaced by the user ID.
#The string "{BRIDGE}" (case sensitive) will be replaced by the sending bridge
#The string "{LABEL}" (case sensitive) will be replaced by label= field of the sending bridge
#The string "{PROTOCOL}" (case sensitive) will be replaced by the protocol used by the bridge
#The string "{GATEWAY}" (case sensitive) will be replaced by the origin gateway name that is replicating the message.
#The string "{CHANNEL}" (case sensitive) will be replaced by the origin channel name used by the bridge
#The string "{TENGO}" (case sensitive) will be replaced by the output of the RemoteNickFormat script under [tengo]
#OPTIONAL (default empty)
RemoteNickFormat="<{NICK}> "

#OPTIONAL (default 1000000 (1 megabyte))
MediaDownloadSize=20000000

###################################################################
#Gateway configuration
###################################################################

#You can specify multiple gateways using [[gateway]]
#Each gateway has a [[gateway.in]] and a [[gateway.out]]
#[[gateway.in]] specifies the account and channels we will receive messages from.
#[[gateway.out]] specifies the account and channels we will send the messages
#from [[gateway.in]] to.
#
#Most of the time [[gateway.in]] and [[gateway.out]] are the same if you
#want bidirectional bridging. You can then use [[gateway.inout]]
#

    # The channel key in each gateway is mapped to a similar group chat ID on the chat platform
    # To find the group chat ID for different platforms, refer to the table below
    #
    # Platform   |   Identifier name  |            Example            | Description
    # -------------------------------------------------------------------------------------------------------------------------------------
    # mattermost |      channel       |            general            | This is the channel name as seen in the URL, not the display name
    # -------------------------------------------------------------------------------------------------------------------------------------
    #   matrix   | #channel:server    |    #yourchannel:matrix.org    | Encrypted rooms are not supported in matrix
    # -------------------------------------------------------------------------------------------------------------------------------------

[[gateway]]
#REQUIRED and UNIQUE
name="barfoo-bestplace"
#Enable enables this gateway
##OPTIONAL (default false)
enable=true

    #[[gateway.inout]] can be used when then channel will be used to receive from
    #and send messages to
    [[gateway.inout]]
    account="mattermost.barfoo"
    channel="town-square"

    [[gateway.inout]]
    account="matrix.foobarfoo"
    channel="#mattermost-barfoo-meetingplace:foobarfoo.domain.tld"

[[gateway]]
#REQUIRED and UNIQUE
name="foobar-bestplace"
#Enable enables this gateway
##OPTIONAL (default false)
enable=true

    #[[gateway.inout]] can be used when then channel will be used to receive from
    #and send messages to
    [[gateway.inout]]
    account="mattermost.foobar"
    channel="town-square"

    [[gateway.inout]]
    account="matrix.foobarfoo"
    channel="#mattermost-foobar-bestplace:foobarfoo.domain.tld"

Matterbridge recently is using a rewritten mattermost client library, this issue should be fixed.


Structured Streaming support

this shall be finished before any other feature or refactor
as it involves large code refactoring

fixed with https://github.com/hdinsight/spark-eventhubs/pull/77


Add messages

Closes #29.

I'm going to go ahead and merge this. However, new "message proposals" are open!


update install docs with v0.1.0 binary links

Binary links in install docs.
Fixes #612

@bfirsh PTAL

LGTM


fix: Columns out of sync with header in FluentDatagrid

I have encountered an error, which seems to be somewhat consistent, on the Fluent DataGrid.
If you have a data grid that is to wide (not dependent on the area where it is displayed) there becomes out of sync values in the data part of the grid and the headlines of each column.
Data in the grid does not match the headlines.
See the image her:

The last there column of data are supposed to be on each of the three headlines in the image.
They are gathered in the end, underneath the last one.
The two first columns of data should be under the two previous headlines.
The column has in total 14 columns with various name lengths, but the issue seems to appear around 9-10 columns.
The size of the data fields doesn't seem to be the issue, as this is mostly single digit numbers in my Datagrid.
I have seen this issue on another table earlier, but did changes to the number of columns and did not think anymore around this.
Let me know if I can do anything further to help you reproduce the issue.
Kind regards,
Trond J. Undrum

Are you setting any widths with the GridColumnsTemplate parameter?
To be able to reproduce, we need ready-to-run project or repo. Or at least code we can copy paste.

Nope, this is plain PropertyColumns with only Title and Property.
The first column is sortable, the other columns are not sortable.
The project is a part of a larger solution, but I can try to past some code:
This is the actual data grid:
 <FluentDataGrid Items="@RecentResourcePlans.AsQueryable()" >      <PropertyColumn Title="Skole" Sortable="true" Property="@(rp => rp.SchoolOrganization.Name)" />      <PropertyColumn Title="Plannavn" Property="@(rp => rp.PlanTitle)" />      @if (VisualLastModified)      {          <PropertyColumn Title="Sist endret" Property="@(rp => rp.LastModified)" />      }      @if(VisualResources)      {          <PropertyColumn Title="Tildelt ass.hjemler" Property="@(rp => Math.Round(rp.ResourcePlannerSummary.AssingedAssistantResources,1))" />          <PropertyColumn Title="Benyttet ass.hjemler" Property="@(rp => Math.Round(rp.ResourcePlannerSummary.UsedAssistantResources, 1))" />          <PropertyColumn Title="Tildelte ped.hjemler" Property="@(rp => Math.Round(rp.ResourcePlannerSummary.AssingedTeacherResources,1))" />          <PropertyColumn Title="Benyttet ped.hjemler" Property="@(rp => Math.Round(rp.ResourcePlannerSummary.UsedTeacherResources,1))" />      }      @if(VisualGroupSize)      {          <PropertyColumn Title="Gr.Str 1-4" Property="@(rp => Math.Round(rp.ResourcePlannerSummary.GroupSize1To4,1))" />          <PropertyColumn Title="Gr.Str 5-7" Property="@(rp => Math.Round(rp.ResourcePlannerSummary.GroupSize5To7,1))" />          <PropertyColumn Title="Gr.Str 8-10" Property="@(rp => Math.Round(rp.ResourcePlannerSummary.GroupSize8To10,1))" />      }      @if(VisualStudentCount)      {          <PropertyColumn Title="Elever med lærervedtak alene" Property="@(rp => rp.ResourcePlannerSummary.StudentsWithTeacherHoursAlone)" />          <PropertyColumn Title="Elever med assistentvedtak alene" Property="@(rp => rp.ResourcePlannerSummary.StudentsWithAssistantHoursAlone)" />          <PropertyColumn Title="Elever med gruppevedtak" Property="@(rp => rp.ResourcePlannerSummary.StudentGroupResolutions)" />          <PropertyColumn Title="Elever med språkvedtak" Property="@(rp => rp.ResourcePlannerSummary.StudentsWithLanguageResolutions)" />      }  </FluentDataGrid>
Will this help?

I would suggest to first try the GridColumnTemplates parameter I mentioned. This allows you to 'hard code' the  column widths like:
<FluentDataGrid @ref="grid" Items=@items GridTemplateColumns="1fr 1fr 1fr 1fr" Style="height: 100%;">

Closing this a no further action planned


Problems using the new wxWidgets 3.1.6

Hello, your ready-made example (project) is very convenient, and from it you can understand how to connect wxWidgets to the Xcode project, but with the update of wxWidgets 3.1.6, errors occur during compilation in your project, could you please update your repository under the new wxWidgets 3.1.6, thanks!

Problem solved: https://github.com/wxWidgets/wxWidgets/issues/22445


Expose kernel version in toplevel

Motivation for this change
This came up in https://github.com/NixOS/nixpkgs/pull/105910.
Currently in several places code extracts the kernel version from the kernel symlink in toplevel. This pr instead exposes it directly in a file "kernel-version" in toplevel.
This allows to use the actual kernel version (for example with rc suffix) rather than the name of the subdirectory of lib/modules.
Also said directory may not exist (e.g. if the kernel is compiled without modules), so the old way introduced some complexity which exposing the version this way avoids.
The boot loader code will still want to support old generations for some time, so it has to fall back to the old behavior.
I adjusted systemd-boot, but my perl is not fluid enough, so I didn't touch the install-grub script; help is appreciated here.
Also install-grub appears to conflate the nixos version and the kernel version somehow?
This is WIP, because I first want to get some feedback, if that is a good approach at all.
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[ ] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

cc @lheckemann

Also install-grub appears to conflate the nixos version and the kernel version somehow?

So in particular the perl code will not care about the modules directory unless nixos-version if set, which it always is since https://github.com/NixOS/nixpkgs/commit/e3879fe365e539004942870b0757169cf757600f (Apr 2012)

Sorry for only just looking at this, what's the advantage of this over looking at the version in the linux kernel store path, i.e.
    kernel_dir = os.path.dirname(os.path.realpath("%s/kernel" % generation_dir))
    kernel_version = re.match(".*?-([0-9].*)", kernel_dir).group(1)

(plus error checking)?

Sorry for only just looking at this, what's the advantage of this over looking at the version in the linux kernel store path, i.e.
    kernel_dir = os.path.dirname(os.path.realpath("%s/kernel" % generation_dir))
    kernel_version = re.match(".*?-([0-9].*)", kernel_dir).group(1)

(plus error checking)?

right that should work, and is a lot simpler!


Docs: update integrations and verified sources pages

This PR:

Expands the integrations page with brief details on dlt sources and destinations
Links the REST API source from the sources page

I would also move "30+ databases", "rest api source" and "openapi" on top of the sidebar to make them more visible

Thanks for the idea, @AstrakhantsevaAA, I tried to addresss it a bit differently in 9feaf25


Added HealthEquity

@dimo414
1.6KB:

Thanks, that saves me some time!

This was merged, but I don't see it on the site.  Just curious if there's a reason?

@dimo414 We review merges manually before merging master with gh-pages, so there is a delay between merges and the site being updated. Right now the delay is much longer than usual, because we're trying to fix some problems that updating Semantic-UI has caused.
You can read more about merges on our wiki.

Hello @dimo414,
HealthEquity should now be visible on twofactorauth.org :smile:
Thanks again for the pull request,
psgs :palm_tree:

Thanks @psgs!


React native

Hi im very new to react native and i have made simple Map app, and I want to show also streetview. How can I use this library to do that?

Hi! I didn't try it whit React Native. (However, this is an independent streetview component, you should probably search something that contains map and streetview in one.)


Add bill card component

Each bill card displays the following about a bill:

Bill number
Bill description
Bill status and date
Bill sponsorship

I think this is good to go


Fixes for compiler warnings from gcc 7

PIng! Any further feedback or questions?

The "falls though" comments have been updated to the recommended style. Thanks for the feedback!

Any further comments or questions?

Merged to branch: pml_1.0.10


On the Settings screen, Target Category cannot be selected even if Playlist is selected.

ambient version : 1.2.0
PHP version: 8.0.24
Description
When I access ambient, I get a PHP Fatal error.
The program is stopped in the middle, so I cannot select the Target Category even if I select Playlist on the Settings screen.
How to reproduce
I downloaded it from the github repository as a zipfile and placed it in my local environment.
Possible Solution
/src/Ambient.php:236 I can't access the shutdown method and an error is occurring, so I change the visibility.
From:
    protected function shutdown(): void {
        if ( defined( 'DEBUG_MODE' ) && DEBUG_MODE ) {

To:
    public function shutdown(): void {
        if ( defined( 'DEBUG_MODE' ) && DEBUG_MODE ) {

Thank you for your report!
I tried providing version 1.2.1 with changed access modifiers for the shutdown method.
I couldn't reproduce the same symptoms in my development environment, but I'm currently not making any useful use of the shutdown method, so if it continues to be a trigger that causes errors, I'm thinking of removing the method itself.

wonderful!
No more PHP Fatal errors.
Very cool product, I love Ambient.
I forgot to write down the fatal errors I was getting.
error log
[php:error] [pid 3304:tid 1960] [client ::1:58024] PHP Fatal error: Registered shutdown function Magicmethods\Ambient::shutdown() cannot be called, function does not exist in Unknown on line 0
I think the shutdown method is not bad.
I think the method itself can be left as it may be utilized in the future.
Thanks for the fix!


UITabbar text not updated until app restart

Issue
ℹ Please provide a quick description for this issue.
Tabbar string not refreshed until app restart
Localize Environment

Localize version: 2.3.0
Xcode version: 12.5

Localize Config
/// Please put here your config
UITabBarItem(title: "More_title".localize(), image: UIImage(named: "icon-more-menu"), tag: 4)

What did you do?
ℹ I try to change the language from setting page.
What did you expect to happen?
ℹ The tabbar text should change to respective language immediately.
What happened instead?
ℹ It didnot changed to latest updated language.

+1


"Frumușica" is listed in the drop-down menu

Description:
"Frumușica" is listed in the drop-down menu alongside its corresponding county and commune, according to the law
Precondition:
The website is up an running.

Step 1
Type "Frumușica" in the search bar.

Expected results
The location is listed in the drop-down menu as "Frumușica, Botoșani".


More helpful description for native-js prop mismatch

A lot of people see this error and end up posting in our support group. The root cause is that their js and native versions are out of sync. Adding a helpful description here will unblock them on their own.

@facebook-github-bot shipit


Failed to Dockerize

Description
Version: v2.2.0
Commit: bc72e19
Description
Hi, thank you for making this framework! I found it on Medium post, and it looks promising and I would give it a try for my next project.
But recently, I try to install and gave log a bit for knowning what app and port that I was running on with goyave config, everything was fine, till I try to dockerize this app. It was running but the config file fell into default.json, I use FROM alpine:3.9 as my production build phase:
FROM golang:alpine as builder
.
.
.

FROM alpine:3.9

RUN apk add --no-cache tzdata
ENV TZ Asia/Jakarta

COPY --from=builder /go/pkg/mod/github.com/!system-!glitch/goyave/ /go/pkg/mod/github.com/!system-!glitch/goyave/
COPY --from=builder /app/config.json /app/
COPY --from=builder /app/resources /app/resources
COPY --from=builder /app/app /app/app

# Run the binary.
ENTRYPOINT ["/app/app"]

docker-compose up and the container was running, but when I hit the default port for localhost:8080, the server not actually running.
Did I do wrong? What files that I need to copy in order to make the binary runs? as you can see I already copy config.json and resources as you mentioned on documents.
Thanks once again! 😁

Hello, I think the only problem with your Dockerfile is that you forgot WORKDIR.
I used the following Dockerfile and it worked:
FROM golang:alpine as builder

WORKDIR /app

COPY . .

RUN go build

FROM alpine:3.9

WORKDIR /app

COPY --from=builder /go/pkg/mod/github.com/!system-!glitch/goyave/ /go/pkg/mod/github.com/!system-!glitch/goyave/
COPY --from=builder /app/docker-goyave ./docker-goyave
COPY resources /app/resources
COPY config.json ./config.json

EXPOSE 8080

ENTRYPOINT [ "./docker-goyave" ]

I should add this dockerfile to the documentation too.

Hey, thank you for quick response. I did set WORKDIR but I cut in the example (my bad 😅). I forgot the expose, thanks for the full example! I will try once I get home and let you know.

Just able to try this out, and thanks mate, it worked. Anyway, your idea about putting the default config bundle inside the binary would be great!
And now I'm gonna try to store something into the database. 🍻


Filter Enhancement - Show column values in drop down

Overview
This PR address the issue https://github.com/airbnb/caravel/issues/933, which is to replace the filter TextField with a FreeFormSelect to make it easier for the user to know what types of values are possible for a filter.
If their desired value is not in the list, they can still type in their custom value. (Especially common for regex operation)
The feature must be enabled on the table/datasource.
Technical Changes

Added new API endpoint /filter/<datasource_type>/<datasource_id>/<column>/
Added new function values_for_column to models.DruidDatasource and models.SqlaTable (migration script included)
values_for_column uses the same querystring as query
Currently limited to 500 values
Added new boolean column to datasources and tables to indicate allowing filter value select
add_filter in explore.jsx will now fix the filter IDs upon render instead of by prepForm on query submit

Screenshots
How filter looks:

Option on table:

TODO for Future PR

Entire filter can be redone in React
Cache filter endpoint

@mistercrunch

What causes this issue in travis-ci?

ERROR: InvocationError: could not find executable 'CODECLIMATE_REPO_TOKEN=6f24fafe1a2c958b09c0dd98e1794088285f45124de1efdcc011315957379ada'

master was failing build from a bad commit of mine attempting to setup coverage in Code Climate, my bad. Tests should pass once you rebase this branch.

@mistercrunch @xrmx Could you guys take look when you get a chance? Thanks!

This looks solid on first glance, I'll try to install it in our staging and play with it today.

bump


Suggestion: Weight limit increased/decreased based on equipped items

I would like to be able to increase the weight limit when equipping certain items.
For instance a backpack. Or cargo-pants.

While I won’t add these items per se, I’ll see what I can do to implement a system that adds it from other mods such as iron backpacks.

That would be perfect, no need to reinvent the actual backpacks. Just some way to give them a boost to your weight limit.
Thanks for looking into it.


Icons of clickable button not being rendered in GUI

Godot version
v3.5.stable.official [991bb6ac7]
System information
Windows 10 Pro, GLES2, Mobile Intel(R) 4 Express Chipset Family (<IP_ADDRESS>3))
Issue description
Hi!
I've just installed Godot, but when i run it every clickable object has no icon, and when going to Help -> About Godot the logo is extremely blurred.
Screenshots:

Steps to reproduce
Install Godot -> Run it
Minimal reproduction project
No response

Maybe related:

Duplicate of https://github.com/godotengine/godot/issues/55343.

Thx @Calinou

@Calinou  It doesn't work, trying to deploy it per app or system wide will not work!


Add internal properties for enzyme test.

I write a package called preact-test-utils. It only mock some apis that used in enzyme, I found enzyme access internal properties of react, but preact-compat have not these properties. So I want to push this code to preact-compat.
Now It can support mount mode test using enzyme. Maybe it can support shallow mode when your preact-shallow-render release.

Oh wow, this is quite the major change!  All good stuff, just there's a lot of things here that seem to be duplicated in preact/devtools.  Maybe @robertknight can help us shine some light on things since he knows a lot about this stuff too.
For my own initial look through the code, I'd like to see if we could use getters instead of componentDidMount() to allow tree traversal.  The current implementation would be a fairly huge performance hit because it crawls the DOM after every mount in order to regenerate the mocked React tree.  Also not sure how that would handle updates (since they don't trigger a remount).

Thx for your review. I will use gettters instead of call patch method after componentdidMount and componentDidUpdate.
Yes. It inspired by preact/devtools. Please @robertknight review it.

Any news？ @developit @robertknight

@windyGex Been sitting on this because of the filesize hit. Still thinking.

Should not quality be more important than file size? Especially in the production environment. We should make a balance between them. We plan to replace react with preact on Alibaba.com to improve rendering performance, but now lacks the safeguard of unit test. Sorry for my poor English.

@windyGex Absolutely, sorry - I didn't mean to imply that file size was more important.  I just am looking for ways to slim the other parts of preact-compat down in order to offset the cost of this.
What would you think of moving your changes under a conditional that is removed in prod?  I think they are mainly used by Enzyme, so that might work here?
Something like this:
if (process.env.NODE_ENV!=='production') {
  // ...
}

I found code like this:
https://github.com/developit/preact-compat/blob/master/src/index.js#L33
if (DEV) {

}

Can I use this code directly?

@windyGex should be able to, yes - if the added properties are primarily used for testing, I think this might work well.

I have moved this code to dev mode. Please review it. Thx.

Perfect, thanks. Will be looking into this today, hopefully we can merge! :)

🌈

Thanks for the reminder, haha. Super busy with Preact 8 but I've been pondering this.

Hey, I would love to have this 👍
Any way that we can help to be merged? Seems pretty traight forward...

Ends up being a battle of filesizes.  I think we can marge this and test it out though, I believe @windyGex is already using it.

Would be nice to see it merged =)

Now your can use preact-compat-enzyme alias for react, react-dom when writing unit test using enzyme.

@windyGex that is awesome!