Error installing on MacOS Big Sur

The installation breaks when building wheel for jsonnet.  Would you have suggestions to get around it?  This is with:

MacOS Big Sur 11.5.2
Xcode 12.5.1
gcc 11.1.0
setuptools 58.0.4

Full error message is included below:

Building wheel for jsonnet (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /Users//opt/anaconda3/envs/relatio_env/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/y0/qbyqy5l536z1nlbmf82zldj00000gn/T/pip-install-p_4plavj/jsonnet_c6060f3b530b4452b587087546ce28d3/setup.py'"'"'; file='"'"'/private/var/folders/y0/qbyqy5l536z1nlbmf82zldj00000gn/T/pip-install-p_4plavj/jsonnet_c6060f3b530b4452b587087546ce28d3/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/y0/qbyqy5l536z1nlbmf82zldj00000gn/T/pip-wheel-jjlhu9fk
cwd: /private/var/folders/y0/qbyqy5l536z1nlbmf82zldj00000gn/T/pip-install-p_4plavj/jsonnet_c6060f3b530b4452b587087546ce28d3/
Complete output (100 lines):
running bdist_wheel
running build
running build_ext
c++ -c -g -O3 -Wall -Wextra -Woverloaded-virtual -pedantic -std=c++0x -fPIC -Iinclude -Ithird_party/md5 -Ithird_party/json core/desugarer.cpp -o core/desugarer.o
c++ -c -g -O3 -Wall -Wextra -Woverloaded-virtual -pedantic -std=c++0x -fPIC -Iinclude -Ithird_party/md5 -Ithird_party/json core/formatter.cpp -o core/formatter.o
c++ -c -g -O3 -Wall -Wextra -Woverloaded-virtual -pedantic -std=c++0x -fPIC -Iinclude -Ithird_party/md5 -Ithird_party/json core/libjsonnet.cpp -o core/libjsonnet.o
c++ -c -g -O3 -Wall -Wextra -Woverloaded-virtual -pedantic -std=c++0x -fPIC -Iinclude -Ithird_party/md5 -Ithird_party/json core/lexer.cpp -o core/lexer.o
c++ -c -g -O3 -Wall -Wextra -Woverloaded-virtual -pedantic -std=c++0x -fPIC -Iinclude -Ithird_party/md5 -Ithird_party/json core/parser.cpp -o core/parser.o
In file included from core/parser.cpp:18:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:321:9: error: no member named 'signbit' in the global namespace
using ::signbit;
~~^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:322:9: error: no member named 'fpclassify' in the global namespace
using ::fpclassify;
~~^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:323:9: error: no member named 'isfinite' in the global namespace; did you mean 'finite'?
using ::isfinite;
~~^
/usr/local/include/math.h:752:12: note: 'finite' declared here
extern int finite(double)
^
In file included from core/parser.cpp:18:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:324:9: error: no member named 'isinf' in the global namespace
using ::isinf;
~~^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:325:9: error: no member named 'isnan' in the global namespace
using ::isnan;
~~^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:326:9: error: no member named 'isnormal' in the global namespace
using ::isnormal;
~~^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:327:9: error: no member named 'isgreater' in the global namespace
using ::isgreater;
~~^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:328:9: error: no member named 'isgreaterequal' in the global namespace
using ::isgreaterequal;
~~^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:329:9: error: no member named 'isless' in the global namespace
using ::isless;
~~^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:330:9: error: no member named 'islessequal' in the global namespace
using ::islessequal;
~~^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:331:9: error: no member named 'islessgreater' in the global namespace
using ::islessgreater;
~~^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:332:9: error: no member named 'isunordered' in the global namespace
using ::isunordered;
~~^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:333:9: error: no member named 'isunordered' in the global namespace
using ::isunordered;
~~^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:644:26: error: no template named 'numeric_limits'
bool _FloatBigger = (numeric_limits<_FloatT>::digits > numeric_limits<_IntT>::digits),
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:644:60: error: no template named 'numeric_limits'
bool _FloatBigger = (numeric_limits<_FloatT>::digits > numeric_limits<_IntT>::digits),
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:645:18: error: no template named 'numeric_limits'
int _Bits = (numeric_limits<_IntT>::digits - numeric_limits<_FloatT>::digits)>
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:645:50: error: no template named 'numeric_limits'
int _Bits = (numeric_limits<_IntT>::digits - numeric_limits<_FloatT>::digits)>
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:650:17: error: no template named 'numeric_limits'
static_assert(numeric_limits<_FloatT>::radix == 2, "FloatT has incorrect radix");
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:653:25: error: no template named 'numeric_limits'
return _FloatBigger ? numeric_limits<_IntT>::max() :  (numeric_limits<_IntT>::max() >> _Bits << _Bits);
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [core/parser.o] Error 1
Traceback (most recent call last):
File "", line 1, in
File "/private/var/folders/y0/qbyqy5l536z1nlbmf82zldj00000gn/T/pip-install-p_4plavj/jsonnet_c6060f3b530b4452b587087546ce28d3/setup.py", line 75, in
test_suite="python._jsonnet_test",
File "/Users//opt/anaconda3/envs/relatio_env/lib/python3.7/site-packages/setuptools/init.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/Users//opt/anaconda3/envs/relatio_env/lib/python3.7/distutils/core.py", line 148, in setup
dist.run_commands()
File "/Users//opt/anaconda3/envs/relatio_env/lib/python3.7/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/Users//opt/anaconda3/envs/relatio_env/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/Users//opt/anaconda3/envs/relatio_env/lib/python3.7/site-packages/wheel/bdist_wheel.py", line 299, in run
self.run_command('build')
File "/Users//opt/anaconda3/envs/relatio_env/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/Users//opt/anaconda3/envs/relatio_env/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/Users//opt/anaconda3/envs/relatio_env/lib/python3.7/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/Users//opt/anaconda3/envs/relatio_env/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/Users//opt/anaconda3/envs/relatio_env/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/private/var/folders/y0/qbyqy5l536z1nlbmf82zldj00000gn/T/pip-install-p_4plavj/jsonnet_c6060f3b530b4452b587087546ce28d3/setup.py", line 54, in run
raise Exception('Could not build %s' % (', '.join(LIB_OBJECTS)))
Exception: Could not build core/desugarer.o, core/formatter.o, core/libjsonnet.o, core/lexer.o, core/parser.o, core/pass.o, core/static_analysis.o, core/string_utils.o, core/vm.o, third_party/md5/md5.o

ERROR: Failed building wheel for jsonnet
Running setup.py clean for jsonnet
Successfully built relatio
Failed to build jsonnet
Installing collected packages: zipp, typing-extensions, traitlets, six, pyrsistent, importlib-metadata, attrs, wcwidth, tornado, pyzmq, python-dateutil, pyparsing, ptyprocess, parso, nest-asyncio, jupyter-core, jsonschema, ipython-genutils, entrypoints, webencodings, pygments, pycparser, prompt-toolkit, pickleshare, pexpect, packaging, nbformat, matplotlib-inline, MarkupSafe, jupyter-client, jedi, decorator, backcall, appnope, testpath, pandocfilters, nbclient, more-itertools, mistune, jupyterlab-pygments, jinja2, ipython, defusedxml, debugpy, cffi, bleach, argcomplete, terminado, Send2Trash, pytz, pyasn1, prometheus-client, nbconvert, jaraco.functools, ipykernel, argon2-cffi, urllib3, tempora, rsa, pyasn1-modules, protobuf, numpy, notebook, murmurhash, jaraco.text, jaraco.classes, idna, cymem, click, charset-normalizer, catalogue, cachetools, zc.lockfile, widgetsnbextension, wasabi, typer, tqdm, srsly, soupsieve, sortedcontainers, smmap, smart-open, sgmllib3k, requests, regex, qtpy, pydantic, preshed, portend, lxml, jupyterlab-widgets, joblib, jmespath, jaraco.collections, googleapis-common-protos, google-auth, filelock, cryptography, cheroot, chardet, blis, tokenizers, thinc, spacy-legacy, scipy, sacremoses, qtconsole, pyyaml, python-docx, pdfminer.six, pathy, oauthlib, nltk, jupyter-console, ipywidgets, huggingface-hub, google-crc32c, google-api-core, gitdb, future, feedparser, dill, cherrypy, botocore, beautifulsoup4, backports.csv, xxhash, transformers, torch, toml, threadpoolctl, subprocess32, spacy, shortuuid, sentry-sdk, s3transfer, requests-oauthlib, pyarrow, py, psutil, promise, pluggy, pillow, patternfork-nosql, pathtools, pandas, munch, multiprocess, jupyter, iso-639, iniconfig, google-resumable-media, google-cloud-core, GitPython, fsspec, docker-pycreds, configparser, cached-property, werkzeug, wandb, torchvision, termcolor, tensorboardX, tensorboard-plugin-wit, tensorboard-data-server, sqlitedict, sentencepiece, scikit-learn, pytest, overrides, markdown, lmdb, jsonnet, h5py, grpcio, google-cloud-storage, google-auth-oauthlib, fairscale, datasets, checklist, boto3, base58, absl-py, wrapt, word2number, tensorflow-estimator, tensorboard, py-rouge, opt-einsum, networkx, kiwisolver, keras-preprocessing, keras, jsonpickle, google-pasta, gast, ftfy, flatbuffers, cycler, conllu, clang, astunparse, allennlp, tensorflow-hub, tensorflow, pyvis, matplotlib, gensim, allennlp-models, relatio
Running setup.py install for jsonnet ... error
ERROR: Command errored out with exit status 1:
command: /Users//opt/anaconda3/envs/relatio_env/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/y0/qbyqy5l536z1nlbmf82zldj00000gn/T/pip-install-p_4plavj/jsonnet_c6060f3b530b4452b587087546ce28d3/setup.py'"'"'; file='"'"'/private/var/folders/y0/qbyqy5l536z1nlbmf82zldj00000gn/T/pip-install-p_4plavj/jsonnet_c6060f3b530b4452b587087546ce28d3/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /private/var/folders/y0/qbyqy5l536z1nlbmf82zldj00000gn/T/pip-record-p6obmgna/install-record.txt --single-version-externally-managed --compile --install-headers /Users//opt/anaconda3/envs/relatio_env/include/python3.7m/jsonnet
cwd: /private/var/folders/y0/qbyqy5l536z1nlbmf82zldj00000gn/T/pip-install-p_4plavj/jsonnet_c6060f3b530b4452b587087546ce28d3/
Complete output (102 lines):
running install
running build
running build_ext
make: core/desugarer.o' is up to date.   make: core/formatter.o' is up to date.
make: core/libjsonnet.o' is up to date.   make: core/lexer.o' is up to date.
c++ -c -g -O3 -Wall -Wextra -Woverloaded-virtual -pedantic -std=c++0x -fPIC -Iinclude -Ithird_party/md5 -Ithird_party/json core/parser.cpp -o core/parser.o
In file included from core/parser.cpp:18:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:321:9: error: no member named 'signbit' in the global namespace
using ::signbit;
~~^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:322:9: error: no member named 'fpclassify' in the global namespace
using ::fpclassify;
~~^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:323:9: error: no member named 'isfinite' in the global namespace; did you mean 'finite'?
using ::isfinite;
~~^
/usr/local/include/math.h:752:12: note: 'finite' declared here
extern int finite(double)
^
In file included from core/parser.cpp:18:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:324:9: error: no member named 'isinf' in the global namespace
using ::isinf;
~~^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:325:9: error: no member named 'isnan' in the global namespace
using ::isnan;
~~^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:326:9: error: no member named 'isnormal' in the global namespace
using ::isnormal;
~~^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:327:9: error: no member named 'isgreater' in the global namespace
using ::isgreater;
~~^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:328:9: error: no member named 'isgreaterequal' in the global namespace
using ::isgreaterequal;
~~^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:329:9: error: no member named 'isless' in the global namespace
using ::isless;
~~^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:330:9: error: no member named 'islessequal' in the global namespace
using ::islessequal;
~~^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:331:9: error: no member named 'islessgreater' in the global namespace
using ::islessgreater;
~~^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:332:9: error: no member named 'isunordered' in the global namespace
using ::isunordered;
~~^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:333:9: error: no member named 'isunordered' in the global namespace
using ::isunordered;
~~^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:644:26: error: no template named 'numeric_limits'
bool _FloatBigger = (numeric_limits<_FloatT>::digits > numeric_limits<_IntT>::digits),
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:644:60: error: no template named 'numeric_limits'
bool _FloatBigger = (numeric_limits<_FloatT>::digits > numeric_limits<_IntT>::digits),
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:645:18: error: no template named 'numeric_limits'
int _Bits = (numeric_limits<_IntT>::digits - numeric_limits<_FloatT>::digits)>
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:645:50: error: no template named 'numeric_limits'
int _Bits = (numeric_limits<_IntT>::digits - numeric_limits<_FloatT>::digits)>
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:650:17: error: no template named 'numeric_limits'
static_assert(numeric_limits<_FloatT>::radix == 2, "FloatT has incorrect radix");
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:653:25: error: no template named 'numeric_limits'
return _FloatBigger ? numeric_limits<_IntT>::max() :  (numeric_limits<_IntT>::max() >> _Bits << _Bits);
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [core/parser.o] Error 1
Traceback (most recent call last):
File "", line 1, in
File "/private/var/folders/y0/qbyqy5l536z1nlbmf82zldj00000gn/T/pip-install-p_4plavj/jsonnet_c6060f3b530b4452b587087546ce28d3/setup.py", line 75, in
test_suite="python._jsonnet_test",
File "/Users//opt/anaconda3/envs/relatio_env/lib/python3.7/site-packages/setuptools/init.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/Users//opt/anaconda3/envs/relatio_env/lib/python3.7/distutils/core.py", line 148, in setup
dist.run_commands()
File "/Users//opt/anaconda3/envs/relatio_env/lib/python3.7/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/Users//opt/anaconda3/envs/relatio_env/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/Users//opt/anaconda3/envs/relatio_env/lib/python3.7/site-packages/setuptools/command/install.py", line 61, in run
return orig.install.run(self)
File "/Users//opt/anaconda3/envs/relatio_env/lib/python3.7/distutils/command/install.py", line 545, in run
self.run_command('build')
File "/Users//opt/anaconda3/envs/relatio_env/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/Users//opt/anaconda3/envs/relatio_env/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/Users//opt/anaconda3/envs/relatio_env/lib/python3.7/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/Users//opt/anaconda3/envs/relatio_env/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/Users//opt/anaconda3/envs/relatio_env/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/private/var/folders/y0/qbyqy5l536z1nlbmf82zldj00000gn/T/pip-install-p_4plavj/jsonnet_c6060f3b530b4452b587087546ce28d3/setup.py", line 54, in run
raise Exception('Could not build %s' % (', '.join(LIB_OBJECTS)))
Exception: Could not build core/desugarer.o, core/formatter.o, core/libjsonnet.o, core/lexer.o, core/parser.o, core/pass.o, core/static_analysis.o, core/string_utils.o, core/vm.o, third_party/md5/md5.o

ERROR: Command errored out with exit status 1: /Users//opt/anaconda3/envs/relatio_env/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/y0/qbyqy5l536z1nlbmf82zldj00000gn/T/pip-install-p_4plavj/jsonnet_c6060f3b530b4452b587087546ce28d3/setup.py'"'"'; file='"'"'/private/var/folders/y0/qbyqy5l536z1nlbmf82zldj00000gn/T/pip-install-p_4plavj/jsonnet_c6060f3b530b4452b587087546ce28d3/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /private/var/folders/y0/qbyqy5l536z1nlbmf82zldj00000gn/T/pip-record-p6obmgna/install-record.txt --single-version-externally-managed --compile --install-headers /Users//opt/anaconda3/envs/relatio_env/include/python3.7m/jsonnet Check the logs for full command output.

@wtsong just to make sure:

do you have M1 mac?
which python version are you using?
did you first upgrade pip, wheel and setuptools via python -m pip install -U pip wheel setuptools?

Hi Andrei @aplamada:

No, I have the Intel Mac,
I created a clean conda environment with python 3.7.11
Yes, pip, wheel and setuptools are all up to date.

Great! I probably have a very similar system with yours. But you might have some changes to your config file. Make sure that you have a pretty clean .bash_profile and .profile files.
I suggest that you start with a new conda env, called next also relation.
Please try the next commands:
$ conda activate
$ conda create -n relatio python=3.7.11
$ conda activate relatio
$ python -m pip install -U pip wheel setuptools
$ python -m pip install git+https://github.com/relatio-nlp/relatio

I checked my jsonnet
Collecting jsonnet>=0.10.0
  Using cached jsonnet-0.17.0-cp37-cp37m-macosx_10_9_x86_64.whl

Thanks! Followed all the steps.  I am still having trouble at the jsonnet step though.  Same error messages as before.  If you have any suggestions let me know.  I might try reinstalling Anaconda if it is working for you with a similar configuration.
This is my .bashrc:
export PATH="$PATH:$HOME/.rvm/bin"
export GEM_HOME=$HOME/gems
export PATH=$HOME/gems/bin:$PATH

And this is my .bash_profile:
[[ -s "$HOME/.profile" ]] && source "$HOME/.profile" # Load the default .profile

export RBENV_ROOT=/usr/local/var/rbenv
export PATH=$PATH:/Users/myusername/bin
eval "$(rbenv init -)"

# added by Anaconda3 2019.07 installer
# >>> conda init >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$(CONDA_REPORT_ERRORS=false '/Users/myusername/anaconda3/bin/conda' shell.bash hook 2> /dev/null)"
if [ $? -eq 0 ]; then
    \eval "$__conda_setup"
else
    if [ -f "/Users/myusername/anaconda3/etc/profile.d/conda.sh" ]; then
# . "/Users/myusername/anaconda3/etc/profile.d/conda.sh"  # commented out by conda initialize
        CONDA_CHANGEPS1=false conda activate base
    else
        \export PATH="/Users/myusername/anaconda3/bin:$PATH"
    fi
fi
unset __conda_setup
# <<< conda init <<<

# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/Users/myusername/opt/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
    eval "$__conda_setup"
else
    if [ -f "/Users/myusername/opt/anaconda3/etc/profile.d/conda.sh" ]; then
        . "/Users/myusername/opt/anaconda3/etc/profile.d/conda.sh"
    else
        export PATH="/Users/myusername/opt/anaconda3/bin:$PATH"
    fi
fi
unset __conda_setup
# <<< conda initialize <<<

# Source bashrc for customization
if [ -f ~/.bashrc ]; then
    source ~/.bashrc
fi

Please try to reinstall Anaconda (or you might try miniconda).
First remove Anaconda.
In case you use Homebrew , you can install miniconda directly https://formulae.brew.sh/cask/miniconda.
Please let us know.
In case you still experience issues please contact directly jsonnet team since your issue is related to this package.

@wtsong you mentioned that you have gcc 1.1.0 .
I guess there is an issue there. Please have a look bellow at my version
$ gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 12.0.5 (clang-1<IP_ADDRESS>)
Target: x86_64-apple-darwin20.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

Great, thanks so much @aplamada!  That was exactly the problem. My gcc/g++ compilers point to brew installations rather than xcode installations, which somehow caused problem for jsonnet.
What worked for me is to remove completely the /usr/local/ folder, particularly brew, as per this suggestion.  I tried using aliases to point gcc/g++ to the latest version, but didn't seem to help.
The installation problem occured for:
$ gcc --version
gcc (Homebrew GCC 11.1.0) 11.1.0

After resetting /usr/local the compilers are the same as your version, and installation goes through:
$ gcc --version
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 12.0.5 (clang-1<IP_ADDRESS>)

👍

You are welcome!
If you simply install gcc you should get only gcc-11. I guess there was a something else on top.
$ ls /usr/local/bin/gcc-*
/usr/local/bin/gcc-11        /usr/local/bin/gcc-ar-11     /usr/local/bin/gcc-nm-11     /usr/local/bin/gcc-ranlib-11

I am happy that your issue is solve.


config: validate online configurable thread pools (tikv#11159)

What is changed and how it works?
Close  #11159
What's Changed:

validate online configurable thread pools

Related changes
Check List
Tests

Manual test

test with mysql client

No code

Side effects

Performance regression
No
Breaking backward compatibility
No

Release note
None

/merge

/merge

/merge

/label needs-cherry-pick-5.4

/run-cherry-picker


Change the player loop property into more readable value

Sometimes it leads us to check the context about what 0 1 2 means, so I think changing them into enum or something like player.loop === "LOOPED_TRACK" would be preferable.

this will available in today's update

Done


StartLine display

Display StartLine only if range is no precise

:tada: This issue has been resolved in version 1.35.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Added link to demo page

Hope you don't mind -- just annoys me every time I google AxisJS that there's not a direct link to the demo page!

Lulz, this seems blindingly obvious in retrospect. Thanks!


add makecmap

PR checklist
Closes #XXX

[ ] This comment contains a description of changes (with reason).
[ ] If you've fixed a bug or added code that should be tested, add tests!
[ ] If you've added a new tool - have you followed the module conventions in the contribution docs
[ ] If necessary, include test data in your PR.
[ ] Remove all TODO statements.
[ ] Emit the versions.yml file.
[ ] Follow the naming conventions.
[ ] Follow the parameters requirements.
[ ] Follow the input/output options guidelines.
[ ] Add a resource label
[ ] Use BioConda and BioContainers if possible to fulfil software requirements.
Ensure that the test works with either Docker / Singularity. Conda CI tests can be quite flaky:

[ ] PROFILE=docker pytest --tag <MODULE> --symlink --keep-workflow-wd --git-aware
[ ] PROFILE=singularity pytest --tag <MODULE> --symlink --keep-workflow-wd --git-aware
[ ] PROFILE=conda pytest --tag <MODULE> --symlink --keep-workflow-wd --git-aware

Hi Yumi, I can see you have two scripts in the makecmap image ( https://gitlab.internal.sanger.ac.uk/tol-it/software/docker-images/-/tree/main/makecmap/scripts ).
This module is for the fa2cmap_multi_color.pl script, so makecmap/fa2cmap_multi_color could be a more suitable name ? Then you can have makecmap/rename_cmapids.pl for the other one


Switch to using K3s for CI instead of RKE

Once https://github.com/k3s-io/k3s/issues/1445 is closed, we should switch CI over to using a build of K3s in Docker to test helm-controller, instead of using RKE1 as we currently do. This would provide a more directly comparable environment to how helm-controller is most frequently run.

CI can be switched over now whenever as I've closed the mentioned issue

Should we consider kind?


how to locally host mimic3 or piper?

using ovos-docker what is the best way to run its self hosted TTS / STT ?

You can have a look to this repo https://github.com/OpenVoiceOS/ovos-docker-tts
I have to write the README.
mkdir -p ~/ovos-tts-stt/config
docker compose up -d ovos_tts_piper

Here is the content of ~/ovos-tts-stt/config/mycroft.conf for the TTS configuration
{
  "tts": {
    "ovos-tts-plugin-piper": {
      "use_cuda": true,
      "voice": "amy-low"
    },
    "ovos-tts-plugin-mimic3": {
      "voice": "en_UK/apope_low"
    }
  }
}

For the STT you could have a look here https://github.com/OpenVoiceOS/ovos-docker-stt

Feel free to re-open if needed. :+1:


RichTextField not working?

Hello!
When adding a new RichTextField instance (Wagtail 2.0 or 2.1), I get a JS error and the Draftail editor doesn't show up.
VM743:1 Uncaught SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at Object.b [as initEditor] (draftail.js:1)
    at eval (eval at FormContainer.componentDidMount (condensedinlinepanel.bundle.js:15), <anonymous>:1:17)
    at FormContainer.componentDidMount (condensedinlinepanel.bundle.js:15)
    at e.notifyAll (condensedinlinepanel.bundle.js:15)
    at r.close (condensedinlinepanel.bundle.js:15)
    at r.closeAll (condensedinlinepanel.bundle.js:1)
    at r.perform (condensedinlinepanel.bundle.js:1)
    at o.perform (condensedinlinepanel.bundle.js:1)
    at o.perform (condensedinlinepanel.bundle.js:1)

Tried it on both versions, I may be doing something wrong but it looks like this is the case.
Thank you

related to #48
Is indeed broken, likely do to the new editor added in wagtail 2.0

Any update on this? I'll try to fix this if I have the time.

This issue should now be fixed by https://github.com/wagtail/wagtail-condensedinlinepanel/pull/56


Unable to see org repos

I am unable to see org repos when configuring the integration - only seeing personal repos.

Integrations are installed per user/organization. Make sure to select an organization here https://github.com/integrations/greenkeeper/installations/new


fix: empty push

Fix pushing an empty Executor

How does an empty executor directory even make it to the needs.prep-push-bed.outputs.matrix ?

How does an empty executor directory even make it to the prep-push-bed.outputs.matrix ?

It's because of this line https://github.com/jina-ai/executors/blob/11a488acb56865f96a7816d2d9b915a5ff0c2041/scripts/get-all-test-paths.sh#L30
If it's an empty array, it prints an empty string

Ok, so if I understand correctly, this happens when in fact no executors have been changed (e.g. if only the directory's readme is updated)?

Ok, so if I understand correctly, this happens when in fact no executors have been changed (e.g. if only the directory's readme is updated)?

Yes, or other non-executor files


Local pull request success status testing

Docs Build status updates of commit b4ce7ca:
:clock10: Pending: waiting for processors (13 builds ahead of you)
:warning: Docs Build is busy, currently there are 13 builds ahead of this one, for more information you can view the Build queue graph on the Docs Portal.

Docs Build status updates of commit b4ce7ca:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

E2E_DocsBranch_Dynamic/index.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel


[Serde reflection] New experimental tracer based on Deserialization

Motivation
Make it possible to generate an IDL-like format based on the serde Deserialize trait in addition to the Serialize trait.
Test Plan
cargo x test -p libra-serde-reflection
cargo run -p generate-format
cargo run -p generate-format -- --with_deserialize   # currently crashing due to handwritten checks in deserializers

Related PRs
https://github.com/libra/libra/pull/2867

@bors-libra r=bmwill

:pushpin: Commit 340120b has been approved by bmwill

:hourglass: Testing commit 340120b20a6fc10f9d41740dc1e00ede115f0143 with merge 124485857d8c68ea1f237ce6c5f9b8177244509f...

:sunny: Test successful - checks-actions_land_blocking_test, checks-circle_commit_workflow
Approved by: bmwill
Pushing 124485857d8c68ea1f237ce6c5f9b8177244509f to master...


Outline tree

This refactors the Outline of a database into a Tree structure, which has very lightweight node ID's which can be recorded outside of the database.
Statement nodes (axioms and theorems) are now also included in the outline.

@digama0 Can we merge like this?


Support for getSalesReports, getSalesReportsForAllCalendarUnits

Please review. This has been my first real Python code in many years. ;)

These are all valid points. I extended the script to fit my needs.
I have used a previous tool that stored the reports in the way the are received (as GZ). My workflow just uses these. I have not yet had the time to expose this setting as I still don’t have a way I like. Currently sticking with just changing the value in the script. ;)


feat(ocm): add openApi schema and OpenApiRouter

Description:
Introduces openapi schema for ocm-backend.
Introduces autogeneration of openapi documentation via yarn build:api-docs
Introduces openapi-utils dependency that adds:

A typed express router
Some examples:

(When openapi.yaml specifies endpoint /example that requires name query param.)
Validation and verification tooling
For example when calling /example endpoint without name:

 curl -X GET http://localhost:7007/api/ocm/hello                                                                                ─╯
{"error":{"name":"InputError","message":"request/query must have required property 'name'","stack":"InputError:
...

2024-08-13T14:48:35.814Z backstage error Request failed with status 400 request/query must have required property 'name' type=errorHandler cause=undefined name=InputError stack=InputError: request/query must have required property 'name'
    at /home/dzemanov/Projects/janus/backstage-plugins/node_modules/@backstage/backend-openapi-utils/dist/index.cjs.js:23:10
    at handleReturn (/home/dzemanov/Projects/janus/backstage-plugins/node_modules/express-promise-router/lib/express-promise-router.js:24:23)
...

option to autogenerate client code like Apis via:
yarn backstage-repo-tools package schema openapi generate client --client-package <directory>
For ocm, this command could be run when inside ocm-backend folder:
yarn backstage-repo-tools package schema openapi generate client --client-package plugins/ocm-common
Example of how this autogenerated code looks like can be seen here:
https://github.com/backstage/backstage/tree/master/packages/catalog-client/src/generated

this could be used to generate catalog entities with swagger openapi docs (haven't tried this one yet)
https://www.npmjs.com/package/@backstage/plugin-catalog-backend-module-backstage-openapi

The openapi.generated.ts needs to be regenerated when openapi schema changes via running:
yarn build:api-server .
"@backstage/repo-tools"` must be installed in root workspace for it to run.
Reference: https://backstage.io/docs/openapi/01-getting-started/
Fixes:
RHIDP-3570

One thing I would mention is that I didn't add security to openapi.yaml schema because that way openApiRouter checks that requests contain it and for dev development it was giving Error: Authorization header required.


wkhtmltopdf is using deprecated qtwebkit

Describe the bug
wkhtmltopdf is using a deprecated versioin of qtwebkit. qtwebkit also has to be compiled on the users PC which takes a while.
Steps To Reproduce
Steps to reproduce the behavior:

add wkhtmltopdf to environment.systemPackages
rebuild Nixos

Expected behavior
wkhtmltopdf doesn't use qtwebkit but only the needed libraries.
Please see https://github.com/NixOS/nixpkgs/issues/53079 and https://github.com/NixOS/nixpkgs/issues/208707#issuecomment-1374802438
Notify maintainers
@jb55

The expected behaviour doesn't seem to be possible (wkhtmltopdf/wkhtmltopdf#3391), and since the project is abandoned upstream, I have no doubt that the project will be removed from nixpkgs in the future.
Closing in favour of #53079.


Add Client Demographics

Ethnicity
American Indian and Alaska Native
Asian
Black
Hispanic and Latino
Multiracial
Native Hawaiian and Other Pacific Islander
White
Prefer Not to Say
Gender
Educational level
Disability

Done.


Fix None arg and Tuple arg comparison for vectorize

In tinygrad/ops.py, the following pattern is currently making the comparison between tuplized operands for commutative ops.
symbolic = symbolic_simple+PatternMatcher([
  # ** COMMUTATIVE flipping **
  (UPat(GroupOp.Commutative, name='x'), lambda x: x.replace(src=x.src[::-1]) if x.src[1].tuplize < x.src[0].tuplize else None),
  # group like

This is currently creating an error in the cases where one operand is a Ops.VECTORIZE with a None arg and the other is a Ops.VECTORIZE with a Tuple arg. So, I created a method to standardize the creation of vectorize UOps with a method that sets the default arg to an empty tuple

Why does VECTORIZE have a tuple arg?


[auto-merge] branch-22.10 to branch-22.12 [skip ci] [bot]

auto-merge triggered by github actions on branch-22.10 to create a PR keeping branch-22.12 up-to-date. If this PR is unable to be merged due to conflicts, it will remain open until manually fix.

FAILURE - Unable to auto-merge. Manual operation is required.
{'message': 'Pull Request is not mergeable', 'documentation_url': 'https://docs.github.com/rest/reference/pulls#merge-a-pull-request'}

Please use the following steps to fix the merge conflicts manually:
# Assume upstream is NVIDIA/spark-rapids remote
git fetch upstream branch-22.10 branch-22.12
git checkout -b fix-auto-merge-conflict-6802 upstream/branch-22.12
git merge upstream/branch-22.10
# Fix any merge conflicts caused by this merge
git commit -am "Merge branch-22.10 into branch-22.12"
git push <personal fork> fix-auto-merge-conflict-6802
# Open a PR targets NVIDIA/spark-rapids branch-22.12

IMPORTANT: Before merging this PR, be sure to change the merging strategy to Create a merge commit (repo admin only).
Once this PR is merged, the auto-merge PR should automatically be closed since it contains the same commit hashes

I will take care of the merge conflict


Research CssVariables from MUI

Current Behavior

Desired Behavior

Implementation

Acceptance Tests

Mockups

Contributor Guide

🎨 Wireframes and designs for Layer5 site in Figma (open invite)

MUI has release version 6. Will need to revisit this issue to see if CssVariables can assist with the theme in the long run.

This makes much sense.


Adds a format option to writeFileManifest(), defaulting to 'iife'

R: @addyosmani @gauntface
Fixes #221
I've added an extra test to confirm that the exception we expect is thrown when a bad format is passed in. I didn't add an extra test to actually confirm that the output of the writeFileManifest({format: 'es'}) command is a valid ES2015 file with the expected entries, though. I didn't see where the equivalent test was to confirm that the previous output was valid—if you could point me in the right direction, @gauntface, I'll add that test to this PR.

I don't think there is a good test for the validity of the manifest file.
Because it's inlined in the generated sw (Which is where all the tests were originally written for) it's assumed it works, but you are right, this should have additional tests. I'd likely take the approach of running the JS file through vm.runInNewContext(JSfileContent) and examine the values the file defines.
Maybe raise and issue to implement the tests and not block on this PR.


Prevent the opening of installed apps

In any search results, such as Instagram, if you click on the link the corresponding application installed on the phone will open.
Perhaps this can be fixed so it does not happen, and put into the settings for users to turn on and off.

This is on iOS to be exact.

Hi. Thanks for the suggestion.
This is WKWebView's default behaviour and currently has no public API for disabling it.  See this SO for more details:
https://stackoverflow.com/questions/38450586/prevent-universal-links-from-opening-in-wkwebview-uiwebview/44942814#44942814

Ahh. I wasn’t aware of that. Guess that’s something to always watch out for. Thank you.

Going to close this as we're discussing what we can do about it internally, but for now there's not much we can do really.


Fixed deadlock in sgmv_shrink kernel caused by skewed segments

When there is a large imbalance (>= 65 elements in the batch) in the size of two or more segments in a batch, it can lead to deadlocks in the sgmv_shrink kernel.
The crux of the issue was that each grid block can execute a dynamic number of steps depending on the size of its segment (s_end - s_start). However, during each step the block will call grid.sync(). If one block executes more steps than another, it will call grid.sync() a different number of times, leading to a deadlock.
The solution presented here is to compute the max number of steps from the largest segment, and then call grid.sync() at the end of the kernel for the difference between the max steps and the current block's steps.
Because the length of the s vector is generally very small (< batch size), the loop here should not introduce noticeable latency. However, it may be worth exploring more optimized solutions to this problem in a follow-up.
Note that this issue only occurs when using cooperative groups.
Related:

https://github.com/predibase/lorax/pull/156
https://github.com/predibase/lorax/issues/149

cc @abcdabcd987

Thanks!
@yzh119 Can you take a look?


Build failure: quickbms

Steps To Reproduce
Steps to reproduce the behavior:

nix-shell -p quickbms

Build log
https://gist.github.com/rvanlaar/decc031474bfb7fa67523e9e1cec27a0
Notify maintainers
@samuelgrf
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
this path will be fetched (0.00 MiB download, 0.00 MiB unpacked):
  /nix/store/4l09rh46bvvp84d8xm879zrqkix4cyy1-nix-info
copying path '/nix/store/4l09rh46bvvp84d8xm879zrqkix4cyy1-nix-info' from 'https://cache.nixos.org'...
 - system: `"x86_64-linux"`
 - host os: `Linux 5.19.0-35-generic, Ubuntu, 22.04.2 LTS (Jammy Jellyfish), nobuild`
 - multi-user?: `no`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.13.2`
 - channels(roland): `"nixpkgs"`
 - nixpkgs: `/home/roland/.nix-defexpr/channels/nixpkgs`

It's possible that this package just isn't buildable
One of the errors encountered is:
perform.c:1394:109: error: 'RSA_SSLV23_PADDING' undeclared (first use in this function); did you mean 'RSA_NO_PADDING'?
RSA_SSLV23_PADDING is not supported in recent openssl versions.


VS 2017.3 template issues

When running the templates from VS2017.3, the following issues occur:

Immediately after creating a new project, it display a dialog box containing the string "npm install". This must be the "manual install" instructions. This should not occur when running from inside VS - it should only be used when running from the CLI. Update: fixed in 728b18431dbe731d4cfbbde4c98c1c35d097a667
On build, the TypeScript tooling logs this warning: warning : Your project does not specify a TypeScriptToolsVersion. The latest available TypeScript compiler will be used (2.3). To remove this warning, set TypeScriptToolsVersion to a specific version or "Latest" to always select the latest compiler.. Update: fixed in 8396be24c8779f5b29f77f2c5dbcc20a9418eb58
The "ASP.NET Core Web Server" console shows OperationCanceledException errors being logged each time HMR rebuilds the app and stops the old one. This doesn't affect the running application, but is distracting and would ideally not appear. Update: fixed in 5e7bb0f5c5a12cce07f6d37384f05983d4d16ef8

All fixed


added Lao language support

This PR added Lao language translation for validation messages.

Hi @saypadith,
Thanks for your great contribution.
I'm using Google Translate to validate the translations and I've noticed that the minLength and maxLength translations say that the "value must be greater/less than" and not "length of value must be greater/less than"

Is this just a Google Translate issue? Should I go ahead and merge as is?

Yes. That's is a Google Translate issue. Please go ahead

Check out the latest version of form_builder_validators which has your changes published.
Thanks again for your input. Greatly appreciated.


SimpleFS: Windows globbing

This is windows only for now, but as Max points out, the kbfs globbing should be included on other platforms. That part is TBI.
This introduces a pretty big mock interface for SimpleFS that can be filled out if we want.

Reassigning my review to @oconnor663

Btw @zanderz can you change the name of the PR to be the subject?

I think we should forget about literal stars in dir elements or filenames, it's not supported on Windows anyway

Admittedly stars in filenames are pretty weird. Square braces aren't necessarily so weird though. I have a bunch of them (mostly MP3's and image files) in my own Dropbox folder right now. Will brainstorm with you in person.


[Feature Request]: Generalize reading arbitrary types from files.

What would you like to happen?
Currently, when using a file based source implementation to read data from files we have 2 output options:

read only the content of the each line of each file into a PCollection
read the content of a file, key each line in the file with the file name and put it into a PCollection (through direct usage of the ReadAllViaFileBasedSourceWithFilename PTransform)

While this cover a large bulk of the desired read operations, we can generalize the current implementation to allow a much larger space of possibilities for the users.
Issue Priority
Priority: 2 (default / most feature requests should be filed as P2)
Issue Components

[ ] Component: Python SDK
[X] Component: Java SDK
[ ] Component: Go SDK
[ ] Component: Typescript SDK
[X] Component: IO connector
[ ] Component: Beam YAML
[ ] Component: Beam examples
[ ] Component: Beam playground
[ ] Component: Beam katas
[ ] Component: Website
[ ] Component: Spark Runner
[ ] Component: Flink Runner
[ ] Component: Samza Runner
[ ] Component: Twister2 Runner
[ ] Component: Hazelcast Jet Runner
[ ] Component: Google Cloud Dataflow Runner

.take-issue


Replace dummy wallet data with real data

@cokes518 For this issue I brought in the transactions activity data and filter. We will still need to bring in the data for the top half of the screen and also create the activity details page.

@cokes518 For this issue I brought in the transactions activity data and filter. We will still need to bring in the data for the top half of the screen and also create the activity details page.

Thanks @matthewcarlreetz I'll file a new issue to track the left over work.

Thanks @matthewcarlreetz I'll file a new issue to track the left over work.


ili934xnew.py module has mixed settings

Hi Jeff, I've noticed some of the settings in the ili934xnew.py module are mixed up, here are my findings.
Test platform: M5Go
Width and height are mixed up and opposite of what's expected
The rotations are mapped oddly too:
r=0 mirrored 0 degrees
r=1 mirrored 90 degrees
r=2 mirrored 180 degrees
r=3 mirrored 270 degrees
r=4 normal 180 degrees
r=5 normal 270 degrees
r=6 normal 0 degrees
r=7 normal 90 degrees
Hope this is helpful information for you.

Thanks - these are from an update to the repository by vitasam.


Use newer go-hal

to test novarion servers

@Gerrit91 full machine lifecycle PXE -> allocation -> reboot persistence -> deletion -> PXE was successfully tested in the field.


"Correction_*" should be name of inserted parent, not the functional node.

When exporting cameras or lights, we have to inject a Correction_ node as discussed elsewhere (https://github.com/KhronosGroup/glTF-Blender-Exporter/issues/265, https://github.com/KhronosGroup/glTF-Blender-Exporter/issues/113). However, I think we could make this less confusing for users by putting the prefix on the wrapper, not on the node that references the camera or light. Current behavior:

Since the user knows they've created a light named "Spot", it would be nice if searching for the node named "Spot" in the loaded model would give them a light. This makes the wrapper less awkward, I think.

Also, I think the default direction of the light's correction_quaternion is backwards —

object
front / direction

model
+Z

light
+Z

camera
-Z

The Correction_ nodes "are" the corrections, as any animations still target the original Light or Camera nodes with its original name. Furthermore, theCamera or Light still do have their original name. The correction is in "between" these two elements.

I think I disagree on this — my mental model is that a node referencing a camera is a camera; it cannot also be a mesh, for example. From that perspective, it's much more intuitive to users if the name they put on the camera is applied to the node that references a camera. The "correction" is the fact that we need a wrapping node around the camera at all, otherwise there would only be one node. Practically, we've had users report confusion when they call scene.getObjectByName('MyCamera') and the result is not a camera.

In glTF, by default, the light points to -z. Hower, the shader uses z for calculations.

From the KHR_lights_punctual spec:

...emit light in the direction of the local +z axis.

I'm not sure what shaders you're referring to, but I've implemented the extension (https://gltf-viewer.donmccurdy.com/) and lights are facing the opposite way as I see in Blender. 🙃

Regarding the light, the specification is wrong or not written correctly, as it should not conflict e.g. with OpenGL:
As shown, you supply a vector of four values (x, y, z, w) for the GL_POSITION parameter. If the last value, w, is zero, the corresponding light source is a directional one, and the (x, y, z) values describe its direction. This direction is transformed by the modelview matrix. By default, GL_POSITION is (0, 0, 1, 0), which defines a directional light that points along the negative z-axis.
https://www.glprogramming.com/red/chapter05.html
In Blender, the node name and the light/camera do both have names. The name of the camera/light is exported 1:1 to glTF (see lights and cameras JSON section). Also, the node name is exported 1:1 to glTF. And the correction node name is a modification of the node name - not from the light or camera.
A node referencing a camera or light is not a camera, as it also can contain a mesh and also child nodes. Blender is naming the node and the light/camera in many cases the same.

No worries about the name, then. Let’s follow up about the light direction on the PR.


[FLINK-27502] Add file Suffix to data files

What is the purpose of the change
Add file Suffix to data files, close FLINK-27502
Verifying this change
org.apache.flink.table.store.format.FileFormatSuffixTest

Thanks @hililiwei for the contribution! Looks nice~ I left some comments.

thank you for review, PTAL.

You can run a  mvn spotless:apply after modification.

You can run a mvn spotless:apply after modification.

done.

Error:  Failures:
Error:    DataFilePathFactoryTest.testNoPartition:46
expected: /tmp/junit13044672734532131/bucket-123/data-de33b78b-2802-49a0-8ec7-cbeeed7af049-0
 but was: /tmp/junit13044672734532131/bucket-123/data-de33b78b-2802-49a0-8ec7-cbeeed7af049-0.orc
Error:    DataFilePathFactoryTest.testWithPartition:64
expected: /tmp/junit3939205851475787579/dt=20211224/bucket-123/data-8a204f50-ad09-4e55-a41f-39c94da0863c-0
 but was: /tmp/junit3939205851475787579/dt=20211224/bucket-123/data-8a204f50-ad09-4e55-a41f-39c94da0863c-0.orc
[INFO]

Test failure, you need to adjust some testing codes too.

Updated and passed the fork repo CI. Please let it run again, i will see if there are any other mistakes. @JingsongLi

thanks for review.


On the first time opening Log Dialog, the bot answers random phrases

Hi,
Whenever you open, for the first time, the Log Dialog window, after the first message, the bot sends random messages based on trained entities.

If you click on "Done Testing" then try again, the issue does not occur again.

Hi @BelvedereHenrique - thanks for reporting.  This can occur if there are multiple browser windows open (possibly among other cases).  We have a fix coming; we'll update this issue when that's merged into master.  Thanks!

Fixed in #192 (dev branch)


ci: test msan

Signed-off-by: Keith Smiley<EMAIL_ADDRESS>

I'm not sure how to differentiate between cases caused by components not being built with msan, vs false positives, there are quite a few logs on this: https://dev.azure.com/cncf/envoy/_build/results?buildId=105416&view=logs&s=4f7d954b-a765-565f-91a2-c04870dab43f&j=4e2e4662-2d21-5726-b4bc-9ff5cd6a179b

Last time I checked MSAN (1-1.5 years ago) mostly are valid ones, there are quite a few places needed to be fixed.


Update eShop to use built-in OpenAPI support

Gonna merge this into the release/9.0 branch since I'd like to work on updating that to consume the latest RC1 bits.


2.1.0 gives HTTP 404 errors for routes to class library controllers (and only when published)

From @gordon-matt on June 21, 2018 5:14
I have just recently moved from 2.0 to 2.1 and everything seemed fine in my development environment, but as soon as I deployed the code, I got HTTP 404 errors for my routes to controllers in class libraries. This did not happen in 2.0 and I don't know how to solve it yet.
My solution is rather large, but I have extracted parts of it into a small-ish demo you can find here: https://github.com/gordon-matt/LibraryRoutesNotWorking. Instructions for setup are in the README.md.
Copied from original issue: dotnet/sdk#2350

I hope someone can look at this soon, as it's quite a big issue - why something that worked perfectly fine in 2.0 is now broken in 2.1 and worse yet - it behaves perfectly fine still in Visual Studio / IIS Express.. but when publishing it to full IIS, then we get the 404s. That doesn't make much sense. Last note: I also just updated to 2.1.1 to try and it's the same thing there as well. What can I do?

Quite similar issue here with Asp Net Core 2.1.1
I have configured my method to use route param like this:
[HttpGet, Route("Services/{id=1}")]
public IActionResult Services(int id)
{}

Is there anything I can do to fix it?
When I follow link mysite/Services I get everything rigth, but when I try to use param id like mysite/Services/1 I've got all my .css and .js files not found:
Failed to load resource: the server responded with a status of 404 (Not Found): site.js:1
Failed to load resource: the server responded with a status of 404 (Not Found): site.css:1
...

@mkArtakMSFT / @kichalla / @rynowak / @JamesNK - any ideas on this?

Investigating this now...

@Eilon @kichalla
Looks like I've fooled myself.
I've received this error again now and I've looked at full .js and .css files paths in DevTools.
All of a sudden the path was like mysite/Services/wwwroot/css/site.css
This happened because of the src attr in the link tag in my layout page. I've written css/site.css, but should have written ~/css/site.css.
Sorry for bothering.
But nevertheless it's still a question for me: why my app tried to get files not in root folder, but in folder from route.

@nartalex I might be wrong, but I don't think your issue is related here... unless your "Services" action is inside a class library and works during development, but not in production. If that's not the case for you, you might want to consider opening a separate issue.

@gordon-matt Could you please slim down your repro? I am having difficulty using your repro currently.

@kichalla Believe it or not, what you are looking at is already very much slimmed down. Could you elaborate on what difficulties you are having? I'm pretty sure all the setup instructions are in the README, but it's possible I have missed a step, Please let me know what the problem is.

If you're trying to find where the admin pages are located, they're in the Framework.Web project, under Areas/Admin

Are these the only controllers that are causing the problem and they exist in a different class library than the main app? Can these just be put in a simple repro app without all other dependent components? basically controllers and actions and minimal code in those actions(return null etc.)?

Did you even look at the code yet?
"Are these the only controllers that are causing the problem and they exist in a different class library than the main app?"

The main app is called "MainApp". I did that to make it obvious. The only admin controller in the main app is the admin home page and you can ignore it.

"Can these just be put in a simple repro app without all other dependent components? basically controllers and actions and minimal code in those actions(return null etc.)?"

If you look at the controllers, you'll see they just return a partial view - there's no real logic in them at all.. everything is handled in JavaScript, because the admin are is an SPA (using Aurelia). You can't get much simpler than just returning a partial view. Please do look closer - I;m sure you will see it's very simple already. See the TenantController for a simple example... just test that and see what happens... it's fine during development but gives a 404 in IIS. This does not happen in 2.0 - only in 2.1 and 2.1.1.

@gordon-matt - thank you for sharing the repro. The more it is slimmed down to the core problem, the easier it will be for us to look at and get a faster response to you. By removing any unnecessary parts of the app, we should be able to investigate very quickly.

Look guys, I appreciate that you are very busy and all... and I'm not trying to be a pain. On the contrary I am actually trying to make things easy - it took me a few hours already to slim down my repo to what it currently is - removing stuff that is not necessary... and when @kichalla asked me to do something specific (minimal code in the actions), then I answered that it is already done. I mean, look at this one:
[Route("")]
public IActionResult Index()
{
	if (!CheckPermission(StandardPermissions.FullAccess))
	{
		return Unauthorized();
	}

	WorkContext.Breadcrumbs.Add(T[FrameworkWebLocalizableStrings.Tenants.Title].Value);

	ViewBag.Title = T[FrameworkWebLocalizableStrings.Tenants.Title].Value;
	ViewBag.SubTitle = T[FrameworkWebLocalizableStrings.Tenants.ManageTenants].Value;

	return PartialView();
}

If you want, just comment out everything except the last line there and run it. I mean really guys.. ignore 99% of the code in the rep and just focus on the few controllers in Framework.Web - Run the MainApp, go to the admin area, click on Configuration and choose "Tenants"... test that page, okay? I mean if it's absolutely necessary, I can try to slim down further, but it may take me several hours more and really, I don't see the point. You can ignore the other code...
Tell you what, I will try to find time within the next few days to slim it further, but please do at least try to reproduce the problem first - it should be very easy... just look at any page - use the Tenants page for example... look at it in Visual Studio and then try to browse to it when deployed to IIS. You will see it only works in development and not in production. This shouldn't take long to test.
I will message back here once I've had the time to slim it down further as well.

@kichalla / @Eilon OK guys, I have stripped out a bunch of code. There's only the 1 controller in the library now for you to focus on: "TenantController". I retested it and same results - works in Visual Studio, but not in IIS.

@gordon-matt Thanks for making the changes, but I see that the repro still needs a database setup. Can you further slim it down? We need a minimal repro for this. Could you repro it with a File -> New project and just putting in relevant controllers and show us the issue?

@kichalla As per the README (step 8), you can find the database in the _Database directory in the solution root. It's very small.

Hi @gordon-matt.
While we understand the repro you've provided seems small in comparison to the full project you have, it's not what is expected from our end. The state we expect a repro project to be is a simple ready-to-run project, without much setup requirements. And the instructions for the repro are mainly navigation related (after running click this, then that - and it'll repro).
There is a reason for this. That is, in many cases customer identify the issues they run into on their own, when starting to slim down the project to a minimal repro state. In many cases, the root cause for issues ends up being in their own code. Hence, we ask customers to remove all the unnecessary aspects from repro projects.

Quick update: I have further slimmed it down, but probably not enough to your liking yet. Please be patient, as I am very busy at the moment, juggling various projects. I will post a message here once done slimming it down as far as I can.

One issue after another.
I have been struggling with simple routing for over 18 hours.
I declared a simple controller, simple action and when I navigate to it, I get 404.
I sympathize with you @gordon-matt
I may have to reimplement my project in another language

@kichalla There would be no need. Thanks so much.
I actually migrated from 2.0 to 2.1 and started experiencing that issue.
I had to create a new 2.1 project and followed the arrangement of the middlewares in the StartUp class.
I noticed that the arrangement is important and it is working now.
Thanks for reaching out. I was frustrated yesterday

I think that both @nartalex and now @smithaitufe are having 404 issues that are totally unrelated here. FYI to anyone else with 404 issues: this issue is only for cases that meet the following conditions:

The route that is failing is in a class library (not the main app)

The problem only happens in IIS (but works fine in Visual Studio)

The code worked perfectly fine in 2.0, but moving to 2.1 broke it.

If this is not your scenario, please open a different issue. Thanks.

@smithaitufe if you have more info about what you discovered regarding the middleware, we would certainly appreciate if you would share that with us. We are looking at some improvements to routing for the 2.2 and future 3.0 releases of ASP.NET Core so maybe there's something we could do to make it easier to diagnose the type of error(s) and problem(s) you were seeing.

OK guys, I removed caching, localization, settings, helper classes, scheduled tasks, logging, the dynamic navigation system, the theme engine, the multi tenancy system and a whole lot more... And as for the database. it now only has membership tables and 1 table for testing the problem with the library routes. Please tell me this is now a sufficient amount of slimming down...

@gordon-matt Thanks for working on this, but is the database here required to repro it? can it be avoided?

OMG... seriously? The database is tiny and takes a few moments to restore in SQL Server. Yes, it's necessary.. Come on, I've spent countless hours already on this to make changes as you've asked. You're not going to make me spend a few more hours rewriting it so you can avoid a 30 second database restore, are you?

As @mkArtakMSFT had mentioned earlier, we want to make sure that the issue you are seeing is not something related to your code itself (as this is what we have seen in many circumstances), so it would be great if you can slim down the application which focuses the problem that you mentioned in the OP i.e hitting a 404 when trying to reach controllers.

Have you even tried to look at it yet?

How would removing the database help? The action in the controller is NEVER hit (when in IIS), so it doesn't even get so far as to execute any db related code for that page... thus, the db related code is NOT an issue to be considered.

As I have mentioned before, it works 100% perfectly fine in 2.0.. it's only when I move to the 2.1 NuGet packages that it stops working properly. This is with zero changes to my own code between 2.0 and 2.1 packages...

I guess I have no choice but to try to slim it down further, but honestly I'm getting very frustrated now because it really seems to me like you've not even tried to have a look since this last time I slimmed it down heavily. I've spent a great deal of time on doing that already and now I need to do more which IMHO is completely unnecessary. If you want me to completely remove the databse, I am going to have to rewrite the thing to remove the identity membership system... and for what? To save you a 30 second db restore.. because like I said above: the db is obviously NOT a factor here.. because the action in the controller is never hit in the first place and all it's supposed to be doing anyway is returning a partial view. I mean look at this:
public class TenantController : Controller
{
    [Route("")]
    public IActionResult Index()
    {
        return PartialView();
    }
}

Do you really think the database is a factor here?

@kichalla : I found some time and removed the database and all membership code for you. That was completely unnecessary IMHO, but since you were insistent, it is now done and as expected, same results still. I really hope this can be solved soon.

@gordon-matt Thanks for the update. I am able to reproduce the issue i.e hitting /admin/tenants gives a 404 response. When I take a look at the log file, I see the following:
2018-08-14 16:51:17.9661 - INFO: Request starting HTTP/1.1 GET http://localhost:8080/admin/tenants
2018-08-14 16:51:17.9661 - INFO: Request starting HTTP/1.1 GET http://localhost:8080/admin/tenants
2018-08-14 16:51:17.9694 - INFO: Route matched with {area = "Admin/Tenants", action = "Index", controller = "Tenant"}. Executing action Framework.Web.Areas.Admin.Tenants.Controllers.TenantController.Index (Framework.Web)
2018-08-14 16:51:17.9694 - INFO: Route matched with {area = "Admin/Tenants", action = "Index", controller = "Tenant"}. Executing action Framework.Web.Areas.Admin.Tenants.Controllers.TenantController.Index (Framework.Web)
2018-08-14 16:51:17.9694 - INFO: Executing action method Framework.Web.Areas.Admin.Tenants.Controllers.TenantController.Index (Framework.Web) - Validation state: Valid
2018-08-14 16:51:17.9694 - INFO: Executing action method Framework.Web.Areas.Admin.Tenants.Controllers.TenantController.Index (Framework.Web) - Validation state: Valid
2018-08-14 16:51:17.9694 - INFO: Executed action method Framework.Web.Areas.Admin.Tenants.Controllers.TenantController.Index (Framework.Web), returned result Microsoft.AspNetCore.Mvc.PartialViewResult in 0.5603ms.
2018-08-14 16:51:17.9694 - INFO: Executed action method Framework.Web.Areas.Admin.Tenants.Controllers.TenantController.Index (Framework.Web), returned result Microsoft.AspNetCore.Mvc.PartialViewResult in 0.5603ms.
2018-08-14 16:51:18.2508 - INFO: Executed action Framework.Web.Areas.Admin.Tenants.Controllers.TenantController.Index (Framework.Web) in 281.3225ms
2018-08-14 16:51:18.2508 - INFO: Executed action Framework.Web.Areas.Admin.Tenants.Controllers.TenantController.Index (Framework.Web) in 281.3225ms
2018-08-14 16:51:18.2752 - ERROR: An unhandled exception has occurred while executing the request.
EXCEPTION: System.InvalidOperationException: Cannot find compilation library location for package 'Microsoft.Win32.Registry'
   at Microsoft.Extensions.DependencyModel.CompilationLibrary.ResolveReferencePaths(ICompilationAssemblyResolver resolver, List`1 assemblies)
   at System.Linq.Enumerable.SelectManySingleSelectorIterator`2.MoveNext()
   at Microsoft.AspNetCore.Mvc.Razor.Compilation.MetadataReferenceFeatureProvider.PopulateFeature(IEnumerable`1 parts, MetadataReferenceFeature feature)
   at Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationPartManager.PopulateFeature[TFeature](TFeature feature)
   at Microsoft.AspNetCore.Mvc.Razor.Internal.DefaultRazorReferenceManager.GetCompilationReferences()
   at System.Threading.LazyInitializer.EnsureInitializedCore[T](T& target, Boolean& initialized, Object& syncLock, Func`1 valueFactory)
   at Microsoft.AspNetCore.Mvc.Razor.Internal.DefaultRazorReferenceManager.get_CompilationReferences()
   at Microsoft.CodeAnalysis.Razor.CompilationTagHelperFeature.GetDescriptors()
   at Microsoft.AspNetCore.Razor.Language.DefaultRazorTagHelperBinderPhase.ExecuteCore(RazorCodeDocument codeDocument)
   at Microsoft.AspNetCore.Razor.Language.DefaultRazorEngine.Process(RazorCodeDocument document)
   at Microsoft.AspNetCore.Razor.Language.RazorProjectEngine.Process(RazorProjectItem projectItem)
   at Microsoft.AspNetCore.Mvc.Razor.Internal.RazorViewCompiler.CompileAndEmit(String relativePath)
   at Microsoft.AspNetCore.Mvc.Razor.Internal.RazorViewCompiler.OnCacheMiss(String normalizedPath)
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.AspNetCore.Mvc.Razor.Internal.DefaultRazorPageFactoryProvider.CreateFactory(String relativePath)
   at Microsoft.AspNetCore.Mvc.Razor.RazorViewEngine.CreateCacheResult(HashSet`1 expirationTokens, String relativePath, Boolean isMainPage)
   at Microsoft.AspNetCore.Mvc.Razor.RazorViewEngine.OnCacheMiss(ViewLocationExpanderContext expanderContext, ViewLocationCacheKey cacheKey)
   at Microsoft.AspNetCore.Mvc.Razor.RazorViewEngine.LocatePageFromViewLocations(ActionContext actionContext, String pageName, Boolean isMainPage)
   at Microsoft.AspNetCore.Mvc.Razor.RazorViewEngine.FindView(ActionContext context, String viewName, Boolean isMainPage)
   at Microsoft.AspNetCore.Mvc.ViewEngines.CompositeViewEngine.FindView(ActionContext context, String viewName, Boolean isMainPage)
   at Microsoft.AspNetCore.Mvc.ViewFeatures.PartialViewResultExecutor.FindView(ActionContext actionContext, PartialViewResult viewResult)
   at Microsoft.AspNetCore.Mvc.ViewFeatures.PartialViewResultExecutor.ExecuteAsync(ActionContext context, PartialViewResult result)
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeResultAsync(IActionResult result)
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeNextResultFilterAsync[TFilter,TFilterAsync]()
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Rethrow(ResultExecutedContext context)
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.ResultNext[TFilter,TFilterAsync](State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeResultFilters()
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeNextResourceFilter()
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Rethrow(ResourceExecutedContext context)
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeFilterPipelineAsync()
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeAsync()
   at Microsoft.AspNetCore.Builder.RouterMiddleware.Invoke(HttpContext httpContext)
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.Invoke(HttpContext context)
2018-08-14 16:51:18.2752 - ERROR: An unhandled exception has occurred while executing the request.
EXCEPTION: System.InvalidOperationException: Cannot find compilation library location for package 'Microsoft.Win32.Registry'
   at Microsoft.Extensions.DependencyModel.CompilationLibrary.ResolveReferencePaths(ICompilationAssemblyResolver resolver, List`1 assemblies)
   at System.Linq.Enumerable.SelectManySingleSelectorIterator`2.MoveNext()
   at Microsoft.AspNetCore.Mvc.Razor.Compilation.MetadataReferenceFeatureProvider.PopulateFeature(IEnumerable`1 parts, MetadataReferenceFeature feature)
   at Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationPartManager.PopulateFeature[TFeature](TFeature feature)
   at Microsoft.AspNetCore.Mvc.Razor.Internal.DefaultRazorReferenceManager.GetCompilationReferences()
   at System.Threading.LazyInitializer.EnsureInitializedCore[T](T& target, Boolean& initialized, Object& syncLock, Func`1 valueFactory)
   at Microsoft.AspNetCore.Mvc.Razor.Internal.DefaultRazorReferenceManager.get_CompilationReferences()
   at Microsoft.CodeAnalysis.Razor.CompilationTagHelperFeature.GetDescriptors()
   at Microsoft.AspNetCore.Razor.Language.DefaultRazorTagHelperBinderPhase.ExecuteCore(RazorCodeDocument codeDocument)
   at Microsoft.AspNetCore.Razor.Language.DefaultRazorEngine.Process(RazorCodeDocument document)
   at Microsoft.AspNetCore.Razor.Language.RazorProjectEngine.Process(RazorProjectItem projectItem)
   at Microsoft.AspNetCore.Mvc.Razor.Internal.RazorViewCompiler.CompileAndEmit(String relativePath)
   at Microsoft.AspNetCore.Mvc.Razor.Internal.RazorViewCompiler.OnCacheMiss(String normalizedPath)
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.AspNetCore.Mvc.Razor.Internal.DefaultRazorPageFactoryProvider.CreateFactory(String relativePath)
   at Microsoft.AspNetCore.Mvc.Razor.RazorViewEngine.CreateCacheResult(HashSet`1 expirationTokens, String relativePath, Boolean isMainPage)
   at Microsoft.AspNetCore.Mvc.Razor.RazorViewEngine.OnCacheMiss(ViewLocationExpanderContext expanderContext, ViewLocationCacheKey cacheKey)
   at Microsoft.AspNetCore.Mvc.Razor.RazorViewEngine.LocatePageFromViewLocations(ActionContext actionContext, String pageName, Boolean isMainPage)
   at Microsoft.AspNetCore.Mvc.Razor.RazorViewEngine.FindView(ActionContext context, String viewName, Boolean isMainPage)
   at Microsoft.AspNetCore.Mvc.ViewEngines.CompositeViewEngine.FindView(ActionContext context, String viewName, Boolean isMainPage)
   at Microsoft.AspNetCore.Mvc.ViewFeatures.PartialViewResultExecutor.FindView(ActionContext actionContext, PartialViewResult viewResult)
   at Microsoft.AspNetCore.Mvc.ViewFeatures.PartialViewResultExecutor.ExecuteAsync(ActionContext context, PartialViewResult result)
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeResultAsync(IActionResult result)
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeNextResultFilterAsync[TFilter,TFilterAsync]()
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Rethrow(ResultExecutedContext context)
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.ResultNext[TFilter,TFilterAsync](State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeResultFilters()
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeNextResourceFilter()
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Rethrow(ResourceExecutedContext context)
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeFilterPipelineAsync()
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeAsync()
   at Microsoft.AspNetCore.Builder.RouterMiddleware.Invoke(HttpContext httpContext)
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.Invoke(HttpContext context)
2018-08-14 16:51:18.2961 - INFO: Request finished in 329.977ms 404
2018-08-14 16:51:18.2961 - INFO: Request finished in 329.977ms 404

cc @pranavkm

@gordon-matt You can fix your issue by having the following line in MainApp.csproj file:
 <CopyRefAssembliesToPublishDirectory>true</CopyRefAssembliesToPublishDirectory>
Just FYI...you can read about  Razor Class Library and convert your Framework.Web project to that.

@kichalla I appreciate your finally looking at this. Thank you. So why is it that referenced assemblies are copied to the publish directory in 2.0 but not in 2.1? Could someone explain the reasoning for changing this?

So why is it that referenced assemblies are copied to the publish directory in 2.0 but not in 2.1? Could someone explain the reasoning for changing this?

There's some documentation about it here: https://docs.microsoft.com/en-us/aspnet/core/razor-pages/sdk?view=aspnetcore-2.1#runtime-compilation-of-razor-views. Part of the change in 2.1.0 was to enable build and publish time compilation of views by default. For most users, the experience using this is pretty transparent. Embedded views is one of the few cases that this doesn't really migrate very well. Admittedly we didn't do a good job of calling this out as part of our 2.1 migration notes. I've sent a PR to call this out in the migration notes: https://github.com/aspnet/Docs/pull/8091

@pranavkm Thanks for the explanation and the documentation link. I will look into migrating to "Razor Class Libraries" in future. For now, setting CopyRefAssembliesToPublishDirectory to true seems to be working fine. Feel free to close this issue unless there's something you guys would like to add here first.

Thanks for your patience with this issue!


Loader order confusion: feature suggestion

One of the confusions I have seen and experienced with every loader is when the order of loaders matters.  It is similar to the confusion when passing in arguments to a function that takes a lot of them:
omg('this', 'function', 'takes', 'a', 'lot', 'of', 'arguments', 'I', 'hope', 'the order is correct')

In that case, there are solutions that can remove the need to know the order, for example:
much({ better: 'this', is: 'easier', to: 'maintain' })

I wonder if fuse use a declarative approach to loaders if that might be easier to debug?
fsbx.FuseBox.init({
        homeDir: "src/client",
        log: false,
        sourceMap: {
            bundleReference: 'app.js.map',
            outFile: `${devReactFolder}/bundles/app.js.map`
        },
        plugins: {
            JSON: true,
            TypeScriptHelpers: true,
            CSS: true,
            SASS: { outputStyle: 'compressed' },
            CSSResource: { inline: true},
            Custom: { someOpt: 'hi' }
        },
        outFile: `${devReactFolder}/bundles/app.js`,
    }).devServer(">[development.tsx] +process -lazy.ts", opts);

This would require a couple of changes

some way to register a plugin
some way to declare plugin order

For the first, it would probably be enough to have the key add Plugin and instantiate
For the second, there can be a default order for built-in plugins, and custom plugins can describe an existing plugin they should precede or leave blank if order is unimportant.
thoughts?

Thanks!
I understand what you mean. And now imagine a case

You need to 'fix' this library jstree/dist/themes/default/style.css using CSSResourcePlugin
You are dealing with raw CSS, which should not go to the CSSResourcePlugin
Your primary approach is with SASSPlugin + CSSPlugin which inlines the styles.

plugins: [
        [/node_modules.*\.css$/, CSSResourcePlugin({ inline: true }), CSSPlugin() ],
        [/lib.*\.css$/,  CSSPlugin({inline : true}) ],
        [ SassPlugin(), CSSPlugin() ]
    ]

Plus, in your case, we need to define all the chains manually, as SASS plugin for example just transpiles, the bundling happens in CSSPlugin.
But it could become even more complicated. Some people would like to store there stuff into a database for example.
[SaSSPlugin, RethingDb()]

In a nutshell, you can pipe anything to anywhere with the current architecture. Objects would work nicely if a project is simple enough.

I am adding debug mode, which could be easily activated in the config
debug : true

Or by having --debug in the arguments, which should significantly help with debugging.
What do you think?

I see your point about flexibility, it does seem an array is simpler for that case.
Also, yes to debug mode.
I have 2 major long-term interests in fuse box.
The first is easy debugging of problems caused by fusebox. When a problem happens with webpack, the combination of shoddy documentation, internally complex code and a zillion similar options makes debugging basically "try whatever stack overflow says" the only option. To this end, I'd like to see easy test running and full coverage a first class goal. Have a wallabyjs configuration in the root that anyone can use. Design so that code fits on a single page and does one thing per file, split things up if necessary. Whatever it takes to ensure a Javascript expert new to fusebox can read the code and understand how it works without having to read 10 files.
The second is graduated complexity and difficulty.  Instead of designing with the most advanced user in mind first, I would like to see configuration start with simple for the most common cases, and complex only when necessary. To that end, I would recommend that plug-ins like sass and less by default pass control to the css plugin, and have a configuration option for experts to avoid this (revising my first suggestion based on new knowledge, in other words). Having a "beginner mode" which is on by default and must be explicitly disabled would be great. It would log everything, give warnings if configuration is Wonky.
I'm also not a fan of magic, so I am not asking you to do anything that would obscure the way it works :). It's always a delicate balance.
The original subject bears no relation to what I just said, so I leave it to you to decide whether this should split up or continue as a brainstorm and then generate new issues after things are clearer.

Oh and making sure there is only ever 1 way to configure the exact same thing. That kind of simplicity yields much more dynamic complexity.

@cellog thanks so much for your contribution. We should definitely continue discussing it.
I agree with you that arrays might look a bit confusing at first, especially if you need to keep the order in mind. Regarding a "beginner mode" - Object style looks awesome, but what about the complicated cases I mentioned above? How about the export mode, where you need to pipe different CSS files into different plugins.
A 1 way to configure the exact same thing - yes to it. Having 2 ways Objects for beginners and arrays for experts does not sound good.
Regarding logging, I have started doing it already. Gradually we will cover everything and make it easy to read.

Oh I want to be clear: scrap my original idea. Arrays are better.
What I was imagining was more that SassPlugin would automatically call CSSPlugin (beginner mode) unless explicitly asked not to (expert mode)
It would also be cool if there was a command to generate a configuration, like create-react-app does (and others). Also a command to upgrade configuration to make it easy to adapt to new design choices
But no to object. Since objects cannot work for expert situations, my original idea is not the right solution.

What about CSSPlugin having it all?
CSSPlugin( { type : "sass | less | stylus", config : {} })

Now that sounds good. Just have to think about how to keep CSSPlugin from getting too bloated.
Perhaps the CSS bundle idea is something more generic? I am thinking a BundlePlugin which is used to take all the files from the plugins before it in the list and make a single file from it.
But before I get too excited I should note that I'm getting ahead of myself :)
I think perhaps instead of "type" the option could be "sass" or "less" and so on which would allow us to pass in options as a secondary step between beginner and expert
CSSPlugin( { less: true | { options})

If this kind of thing seems appealing as a general Idea, I am imagining the docs could be organized in those sections as well. Beginner - intermediate - advanced.
Do let me know if these ideas become too intrusive ;)

@cellog absolutely not, In fact, @devmondo suggested that, and now he is probably reading it and saying to himself "I told him" ;-)
Let's brush the CSSPlugin first (basic functionality) take a look here, it's getting better. I am removing CSSBundle plugin cuz of its redundancy.
And then we can move on to organising the docs and introducing the N00b mode. ;-)

@nchanged you bet i am 😠

Haha OK you two, get a room ;)
Sounds good. I'm going to keep my distance from the code for a bit, and try to document things as a way of clarifying how it works and also to keep you honest. I'd also like to work on a wallabyjs configuration so test coverage is easier to do real time. At least until you finish your fancy test runner thingy.
I'd like to add one more idea: I think it's wise for there to be logically grouped configuration as we've been talking about here. I don't feel the same way about source. I think having each file do 1 thing is wise both for ease of refactoring and ease of understanding how things click. So extracting smushing several files into one file into a Bundle plugin, but having a "bundle" option that pulls in this file is a good model in my opinion. Keeps the user interface simple and intuitive, keeps developing side simple and intuitive. Win-win. Put another way, this makes deleting code a lot easier, and that will reduce the technical debt down the road.

@cellog I will prepare tests for the CSSPlugin, so we can proceed with the docs ;-)

@cellog just want to say, that we really appreciate your style of detailing your proposals and your humble attitude, we are really being empowered by this kind of behaviour, and we hope that your contribution style set a raw model for others to make FuseBox the ultimate tool :)

My pleasure. :)
I came of age (open source-wise) on the wild west of the PHP mailing list,
so I've learned a few things about not causing nuclear meltdowns, haha :)

Closing this for now. Please feel free to check the latest bleeding edge version<EMAIL_ADDRESS>and documentation for it http://fuse-box.org:3333. You are welcome to re-open it elsewise ;-)


Node self-reference leaks on quit if it is typed

Godot 3.1
Godot 3.2.2 beta3
If you do this in a script, Godot will leak on quit:
extends Node

var _tilemap := self

ERROR: ~List: Condition ' _first != __null ' is true.
   At: ./core/self_list.h:111
ERROR: ~List: Condition ' _first != __null ' is true.
   At: ./core/self_list.h:111
WARNING: cleanup: ObjectDB Instances still exist!
     At: core/object.cpp:2092

It won't leak if the variable is not typed.
I suspect that happens because the type system tried to reference the script itself, which creates an embarrassing cyclic reference.
Curiously, that doesn't happen if you do it on a local variable.

related to:
https://github.com/godotengine/godot/issues/38768
https://github.com/godotengine/godot/pull/36851#issuecomment-621184844


How to use this permanently

Hi,
This is less of an "issue" and more of a question -- so, that docker run command sets everything up, right? What is the Right Way to start that container at boot? Does it "start over" every time or is there some kind of persistent state that it uses? (I feel like there would have to be a persistent state so that your OTP data stays the same between server reboots?)
Thanks.

When you bind-mount a local directory (--volume /path/on/host:/etc/openvpn) the config files will be persistent on the host between restarts.
You can also add --restart=always to your docker run command to ensure it starts up again on failure or if the host reboots.


CDS Service Request fhirAuthorization broken in 0.5.1 and above

In attempting to upgrade from 0.5.0, I started receiving a 401 Unauthorized Exception when executing a plan definition. After debugging, I found that the fhirAuthorization clause specified by CDS Hooks (https://cds-hooks.hl7.org/ballots/2018May/specification/1.0/#fhir-resource-access) is no longer forming a proper request to the EHR. The hook request used to have the following format:
"fhirAuthorization": {
     "access_token": "blah",
     "token_type": "Bearer",
     "expires_in": 300,
     "scope": "patient/*.read",
     "subject": "cds-service4"
 }

Through a lot of trial and error, I eventually found I could modify the hook request like this and it would properly authenticate:
"fhirAuthorization": {
        "access_token": "Bearer blah",
        "token_type": "Authorization",
        "expires_in": 300,
        "scope": "patient/*.read",
        "subject": "cds-service4"
    }

This does not match the 1.0 or current draft specification for CDS Hooks. If CQF Ruler requires a different syntax, can you add documentation somewhere? This is unexpected.

I tracked down the original code in 0.5.0 that process the Authorization header properly. It was in the (now removed) class EvaluationContext, and here's the relevant method:
public IGenericClient getHookFhirClient() {
        IGenericClient client = this.fhirContext.newRestfulGenericClient(this.hook.getRequest().getFhirServerUrl());
        if (this.hook.getRequest().getFhirAuthorization() != null
                && hook.getRequest().getFhirAuthorization().getTokenType().equals("Bearer")) {
            BearerTokenAuthInterceptor authInterceptor = new BearerTokenAuthInterceptor(
                    hook.getRequest().getFhirAuthorization().getAccessToken());
            client.registerInterceptor(authInterceptor);

            // TODO: account for the expires_in, scope and subject properties within
            // workflow
        }

        LoggingInterceptor loggingInterceptor = new LoggingInterceptor();
        loggingInterceptor.setLogRequestSummary(true);
        loggingInterceptor.setLogRequestHeaders(true);
        loggingInterceptor.setLogRequestBody(true);
        loggingInterceptor.setLogResponseSummary(true);
        loggingInterceptor.setLogResponseHeaders(true);
        loggingInterceptor.setLogResponseBody(true);
        client.registerInterceptor(loggingInterceptor);

        return client;
    }

This was replaced by the method resolveRemoteClient in the CQLEvaluationHelper. But that method no longer has the full hook information, only the EndpointInfo:
public IGenericClient resolveRemoteClient(EndpointInfo endpoint) {
		IGenericClient remoteClient = fhirContext.newRestfulGenericClient(endpoint.getAddress());
		endpoint.
		if (endpoint.getHeaders() != null) {
			AdditionalRequestHeadersInterceptor headerInterceptor = new AdditionalRequestHeadersInterceptor();
			for (HeaderInfo header : getHeaderNameValuePairs(endpoint.getHeaders())) {
				headerInterceptor.addHeaderValue(header.getName(), header.getValue());
			}
			remoteClient.registerInterceptor(headerInterceptor);
		}
		return remoteClient;
	}

One simple way I found to fix this is to add a check for the header name "Bearer" in this method and do the correct conversion. I also found it useful to reintroduce the LoggingInterceptor so the requests were transparent.
	public IGenericClient resolveRemoteClient(EndpointInfo endpoint) {
		IGenericClient remoteClient = fhirContext.newRestfulGenericClient(endpoint.getAddress());
		if (endpoint.getHeaders() != null) {
			AdditionalRequestHeadersInterceptor headerInterceptor = new AdditionalRequestHeadersInterceptor();
			for (HeaderInfo header : getHeaderNameValuePairs(endpoint.getHeaders())) {
				if (header.getName().equals("Bearer")) {
					Clients.registerBearerTokenAuth(remoteClient, header.getValue());
				} else {
					headerInterceptor.addHeaderValue(header.getName(), header.getValue());
				}
			}
			remoteClient.registerInterceptor(headerInterceptor);
		}
		LoggingInterceptor loggingInterceptor = new LoggingInterceptor();
		loggingInterceptor.setLogRequestSummary(true);
		loggingInterceptor.setLogRequestHeaders(true);
		loggingInterceptor.setLogRequestBody(true);
		loggingInterceptor.setLogResponseSummary(true);
		loggingInterceptor.setLogResponseHeaders(true);
		loggingInterceptor.setLogResponseBody(true);
		remoteClient.registerInterceptor(loggingInterceptor);
		return remoteClient;
	}

For anyone encountering this, I have not verified personally but a colleague has reported this issue was fixed in 0.13.0.


test: command keys

Investigating the keys command (to use it in docker to replace the authorized_keys file), I wrote some tests that could be useful to keep to ensure that the command is working well.

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@47c24be). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master    #9357   +/-   ##
=========================================
  Coverage          ?   41.36%
=========================================
  Files             ?      567
  Lines             ?    73500
  Branches          ?        0
=========================================
  Hits              ?    30402
  Misses            ?    39300
  Partials          ?     3798

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 47c24be...01f3e08. Read the comment docs.

I thought we were going to migrate to the internal SSH on docker because that's the only way to get rootless docker?

@zeripath I am for using internal ssh but I don't think that everyone are currently.

I will maybe propose a PR in this direction and see what happen :smile:


Integrated Danger to post diffs generated on Travis

Integrated Danger to post diffs generated on Travis
Failure example
Here is an example when Snapshot test fail and we want to have a look on diff images without running these tests again on a personal machine:

Install aws cli and set up aws access keys from Travis environmental variables.
Snapshot tests fail;
We jump to the after_failure step, where:

All images are removed from s3 bucket for current branch if there were any;
All new images are deployed;
The list of images on bucket/Failures/branch_name is saved in a .json file as an array of strings;
Then launches a Dangerfile with a script to post failures for each failed test case, with one shown image from it and with all others, hidden under the spoiler.

Preview of the comment:

In this example, we can see a test target and a test case that has failed, one image with diffs and a Details block with all other images.
Success example

If Travis exits with 0, all images for this branch on s3 will be deleted;
Danger launches, doesn't find a json file with keys and removes a comment from PR,

@RomanTysiachnik rebase and merge please


mockImplementationOnce should fall back to mockReturnValue after being called

Do you want to request a feature or report a bug?
Feature
What is the current behavior?
If you first define a mock:
const mockedFunction = jest.fn().mockReturnValue('some value');

And then override its implementation for one time:
mockedFunction.mockImplementationOnce(() => 'some other value');

Then it won't get back to the original value after calling the mock implementation:
expect(mockedFunction()).toBe('some other value');
expect(mockedFunction()).toBe('some value');

The error is:
expect(received).toBe(expected)

Expected value to be (using ===):
  "some value"
Received:
  undefined

Difference:

  Comparing two different types of values. Expected string but received undefined.

What is the expected behavior?
That, given that no other implementation was defined initially, it would revert back to returning 'some value' as defined using mockReturnValue.
Perhaps there's a good reason why it doesn't do that, but I'm reporting it just in case it's an oversight :)
Please provide your exact Jest configuration and mention your Jest, node, yarn/npm version and operating system.
$ jest --version
v20.0.4

$node --version
v6.11.2

$ yarn --version
1.0.1

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 16.04.3 LTS
Release:	16.04
Codename:	xenial

mockImplementationOnce falls back to mockImplementation and mockReturnValueOnce to mockReturnValue. As far as I can tell, it's by design, names are interconnected.
You can however do this:
const mockedFunction = jest.fn(() => 'some value') // shorthand for mockImplementation()
mockedFunction.mockImplementationOnce(() => 'some other value');
expect(mockedFunction()).toBe('some other value');
expect(mockedFunction()).toBe('some value');

Personally I wouldn't like nor advise to mix these two.

Agree with @thymikee

It's your call of course, but is there a reason you wouldn't want to mix the two? I parsed mockReturnValueOnce(value) as a shorthand for mockImplementationOnce(() => value), but apparently that's not the case?

It's not a shorthand, mock can have no implementation, e.g. when it's an object or a string and cannot be called.


error while downloading

youtube-dl http://video.fc2.com/en/content/20140513qsb6VSB7
[fc2] 20140513qsb6VSB7: Downloading webpage
Traceback (most recent call last):
File "/usr/lib64/python2.6/runpy.py", line 122, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/usr/lib64/python2.6/runpy.py", line 34, in _run_code
exec code in run_globals
File "/usr/local/bin/youtube-dl/main.py", line 19, in
File "/usr/local/bin/youtube-dl/youtube_dl/init.py", line 410, in main
File "/usr/local/bin/youtube-dl/youtube_dl/init.py", line 400, in _real_main
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1653, in download
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 655, in extract_info
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 286, in extract
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/fc2.py", line 89, in _real_extract
File "/usr/lib64/python2.6/urllib.py", line 1234, in quote
safe_map[c] = (c in safe) and c or ('%%%02X' % i)
TypeError: 'in ' requires string as left operand

I can reproduce this problem on Python 2.6, but not 2.7, so it's a bug in youtube-dl under 2.6.


Build a Spring App with CockroachDB and JDBC Doc Update

Re: Build a Spring App with CockroachDB and JDBC
Issue Description
Add retry classifier logic/examples to the current doc
Suggested Resolution
See here for examples.

ping @vy-ton @bobvawter