RuntimeError: CUDA Setup failed despite GPU being available.

(llama) zijinhong@DGX-Station-A800:~$ python -m bitsandbytes
False
===================================BUG REPORT===================================
/raid/home/zijinhong/anaconda3/envs/llama/lib/python3.10/site-packages/bitsandbytes/cuda_setup/main.py:166: UserWarning: Welcome to bitsandbytes. For bug reports, please run
python -m bitsandbytes
warn(msg)
================================================================================
/raid/home/zijinhong/anaconda3/envs/llama/lib/python3.10/site-packages/bitsandbytes/cuda_setup/main.py:166: UserWarning: /raid/home/zijinhong/anaconda3/envs/llama did not contain ['libcudart.so', 'libcudart.so.11.0', 'libcudart.so.12.0'] as expected! Searching further paths...
warn(msg)
/raid/home/zijinhong/anaconda3/envs/llama/lib/python3.10/site-packages/bitsandbytes/cuda_setup/main.py:166: UserWarning: Found duplicate ['libcudart.so', 'libcudart.so.11.0', 'libcudart.so.12.0'] files: {PosixPath('/usr/local/cuda/lib64/libcudart.so.11.0'), PosixPath('/usr/local/cuda/lib64/libcudart.so')}.. We select the PyTorch default libcudart.so, which is {torch.version.cuda},but this might missmatch with the CUDA version that is needed for bitsandbytes.To override this behavior set the BNB_CUDA_VERSION=<version string, e.g. 122> environmental variableFor example, if you want to use the CUDA version 122BNB_CUDA_VERSION=122 python ...OR set the environmental variable in your .bashrc: export BNB_CUDA_VERSION=122In the case of a manual override, make sure you set the LD_LIBRARY_PATH, e.g.export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-11.2
warn(msg)
/raid/home/zijinhong/anaconda3/envs/llama/lib/python3.10/site-packages/bitsandbytes/cuda_setup/main.py:166: UserWarning: /usr/local/cuda/lib64: did not contain ['libcudart.so', 'libcudart.so.11.0', 'libcudart.so.12.0'] as expected! Searching further paths...
warn(msg)
The following directories listed in your path were found to be non-existent: {PosixPath('/var/lib/nvidia-mig-manager/checkpoint.json')}
CUDA_SETUP: WARNING! libcudart.so not found in any environmental path. Searching in backup paths...
DEBUG: Possible options found for libcudart.so: {PosixPath('/usr/local/cuda/lib64/libcudart.so.11.0'), PosixPath('/usr/local/cuda/lib64/libcudart.so')}
CUDA SETUP: PyTorch settings found: CUDA_VERSION=113, Highest Compute Capability: 8.0.
CUDA SETUP: To manually override the PyTorch CUDA version please see:https://github.com/TimDettmers/bitsandbytes/blob/main/how_to_use_nonpytorch_cuda.md
CUDA SETUP: Required library version not found: libbitsandbytes_cuda113.so. Maybe you need to compile it from source?
CUDA SETUP: Defaulting to libbitsandbytes_cpu.so...
================================================ERROR=====================================
CUDA SETUP: CUDA detection failed! Possible reasons:

You need to manually override the PyTorch CUDA version. Please see: "https://github.com/TimDettmers/bitsandbytes/blob/main/how_to_use_nonpytorch_cuda.md
CUDA driver not installed
CUDA not installed
You have multiple conflicting CUDA libraries
Required library not pre-compiled for this bitsandbytes release!
CUDA SETUP: If you compiled from source, try again with make CUDA_VERSION=DETECTED_CUDA_VERSION for example, make CUDA_VERSION=113.
CUDA SETUP: The CUDA version for the compile might depend on your conda install. Inspect CUDA version via conda list | grep cuda.
================================================================================

CUDA SETUP: Something unexpected happened. Please compile from source:
git clone https://github.com/TimDettmers/bitsandbytes.git
cd bitsandbytes
CUDA_VERSION=113 make cuda11x
python setup.py install
CUDA SETUP: Setup Failed!
Traceback (most recent call last):
File "/raid/home/zijinhong/anaconda3/envs/llama/lib/python3.10/runpy.py", line 187, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/raid/home/zijinhong/anaconda3/envs/llama/lib/python3.10/runpy.py", line 146, in _get_module_details
return _get_module_details(pkg_main_name, error)
File "/raid/home/zijinhong/anaconda3/envs/llama/lib/python3.10/runpy.py", line 110, in _get_module_details
import(pkg_name)
File "/raid/home/zijinhong/anaconda3/envs/llama/lib/python3.10/site-packages/bitsandbytes/init.py", line 6, in
from . import cuda_setup, utils, research
File "/raid/home/zijinhong/anaconda3/envs/llama/lib/python3.10/site-packages/bitsandbytes/research/init.py", line 1, in
from . import nn
File "/raid/home/zijinhong/anaconda3/envs/llama/lib/python3.10/site-packages/bitsandbytes/research/nn/init.py", line 1, in
from .modules import LinearFP8Mixed, LinearFP8Global
File "/raid/home/zijinhong/anaconda3/envs/llama/lib/python3.10/site-packages/bitsandbytes/research/nn/modules.py", line 8, in
from bitsandbytes.optim import GlobalOptimManager
File "/raid/home/zijinhong/anaconda3/envs/llama/lib/python3.10/site-packages/bitsandbytes/optim/init.py", line 6, in
from bitsandbytes.cextension import COMPILED_WITH_CUDA
File "/raid/home/zijinhong/anaconda3/envs/llama/lib/python3.10/site-packages/bitsandbytes/cextension.py", line 20, in
raise RuntimeError('''
RuntimeError:
CUDA Setup failed despite GPU being available. Please run the following command to get more information:
    python -m bitsandbytes

    Inspect the output of the command and see if you can locate CUDA libraries. You might need to add them
    to your LD_LIBRARY_PATH. If you suspect a bug, please take the information from python -m bitsandbytes
    and open an issue at: https://github.com/TimDettmers/bitsandbytes/issues

My detailed environment: CUDA Version: 11.4, torch Version: 1.12.1+cu113

Bitsandbytes was not supported windows before, but my method can support windows.（yuhuang）
1  open folder J:\StableDiffusion\sdwebui，Click the address bar of the folder and enter CMD
or WIN+R, CMD  。enter，cd /d J:\StableDiffusion\sdwebui
2  J:\StableDiffusion\sdwebui\py310\python.exe -m pip uninstall bitsandbytes
3 J:\StableDiffusion\sdwebui\py310\python.exe -m pip uninstall bitsandbytes-windows
4 J:\StableDiffusion\sdwebui\py310\python.exe -m pip install https://github.com/jllllll/bitsandbytes-windows-webui/releases/download/wheels/bitsandbytes-0.41.1-py3-none-win_amd64.whl
Replace your SD venv directory file（python.exe Folder） here（J:\StableDiffusion\sdwebui\py310）

I'm using ubuntu system, seems bitsandbytes-windows do not solve for this issue.

sorry,you are  ubuntu system,CUDA Version: 11.4, torch Version: 1.12.1+cu113.
Bitsandbytes can support ubuntu.（yuhuang）
1  open folder J:\StableDiffusion\sdwebui，Click the address bar of the folder and enter CMD
or WIN+R, CMD  。enter，cd /d J:\StableDiffusion\sdwebui
2  J:\StableDiffusion\sdwebui\py310\python.exe -m pip uninstall bitsandbytes
3 J:\StableDiffusion\sdwebui\py310\python.exe -m pip uninstall bitsandbytes-windows
4 J:\StableDiffusion\sdwebui\py310\python.exe -m pip install https://github.com/TimDettmers/bitsandbytes/releases/download/0.41.0/bitsandbytes-0.41.0-py3-none-any.whl
Replace your SD venv directory file（python.exe Folder） here（J:\StableDiffusion\sdwebui\py310）

For people having problems getting bitsandbytes to work in Linux, here's the way I got it running:

Using Conda/Mamba, I installed bitsandbytes 0.41.0 from conda-forge (https://anaconda.org/conda-forge/bitsandbytes) - by doing:
mamba install bitsandbytes -c conda-forge

Ran diagnostics which gave several warnings and errors: python -m bitsandbytes

Looked up libbitsandbytes:
find / -name 'libbitsandbytes*.so' 2>/dev/null
...
/home/user/miniforge3/envs/c/lib/python3.10/site-packages/bitsandbytes/libbitsandbytes_cuda112.so

The cause of the problem was that I'm using CUDA 11.8, but the bitsandbytes package was compiled using number 11.2 (hence the 112 in the filename) and it was looking for libbitsandbytes_cuda118.so which is not there.
So, I used the number at the end of the found filename (112) to set the BNB_CUDA_VERSION env var:
export BNB_CUDA_VERSION=112
(For continued use add the export to your .bashrc)

Now run python -m bitsandbytes and it will hopefully report success at the end:
================================================================================
WARNING: Manual override via BNB_CUDA_VERSION env variable detected!
BNB_CUDA_VERSION=XXX can be used to load a bitsandbytes version that is different from the PyTorch CUDA version.
If this was unintended set the BNB_CUDA_VERSION variable to an empty string: export BNB_CUDA_VERSION=
If you use the manual override make sure the right libcudart.so is in your LD_LIBRARY_PATH
For example by adding the following to your .bashrc: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:<path_to_cuda_dir/lib64
Loading CUDA version: BNB_CUDA_VERSION=112
================================================================================
...
...
SUCCESS!
Installation was successful!

BTW, cuda_setup/main.py appears to have a bug in method determine_cuda_runtime_lib_path() line 294 where the found lib paths are cleaned up, which makes it useless to set LD_LIBRARY_PATH.
But setting BNB_CUDA_VERSION as above overrides this bug.

pip install bitsandbytes-windows

You are a legend!  I've been going mad uninstalling and reinstalling CUDA etc

still can't get it to work, i think it's because of the replacing the SD venv directory file part that I'm not understanding.


Enable MCS cplex java if the octave engine is selected

@axelvonkamp Looks like this is working. Can you confirm?

Yes, it is working for me too.


meson: 0.64.1 -> 1.0.0

Description of changes
Changes: https://github.com/mesonbuild/meson/compare/0.64.1...1.0.0
Fixes https://github.com/NixOS/nixpkgs/issues/211842

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.05 Release Notes (or backporting 22.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[ ] Fits CONTRIBUTING.md.

Built all the way to systemd without issue.

Same for nixosTests.simple.

What about Darwin Intel?

It's failing due to timeout.

Looks like me at #206799

Despite the major version bump, the changes does not look that scary, I think we are good to give it a try.

The situation is far better than I originally anticipated.

Please update

I had to locally revert 022c01aa39f1df76eab961967ce48bdcbfe16684 while testing on aarch64-darwin, but am not on a clean branch. Just a heads up that this quite possibly broke darwin.

We could just save it for later. The test is just a nice to have.


Can WebGL be fully supported?

Hi, this is a really cool project! I was considering doing something similar myself/forking the "graphQL-client-unity" project because I didn't like how it hides too much behind its gui in scriptable objects, and I also wanted something that was a Unity package. This project seems like a really good start.
Now, I mainly develop for WebGL, though. So it would be good to clarify exactly what works, and what doesn't.

This should work with all platforms (Mono/IL2CPP) except for WebGL, since Unity WebGL has issues with threading. If you are using WebGL, this package may be hit-or-miss for you at the present time. It makes use of UnityWebRequest where possible, but the WebSockets are the main issue, so subscriptions may not properly work. If you do not need subscriptions, WebGL may work just fine.

Specifically, the "may or may not" without WebSockets part may be good to clarify.
I think some parts of the Task API may be problematic on WebGL, but I don't know enough about it to say whether the parts used here are safe for WebGL or not, but in any case most of it should be possible to fix by using UniTask instead, in any case that's what I normally use myself to be on the safe side.
It would also be cool to check if the solution proposed here is enough to be able to support subscriptions on WebGL as well.
I'll do some prototyping, just wanted to say hi and hear your thoughts on:

Adding CySharp.UniTask as a dependency if there are issues with Task on WebGL
Alternatively adding CySharp.UniTask as an optional dependency and have ifdefs to alias to it installed.
Add some jslib helper code to support subscriptions

Hi Johan!
I made this for the same reasons as you say, I felt that writing GraphQL queries within the Unity GUI was cumbersome and slow. I much preferred within GraphQL files and testing them within GraphiQL.
The reason that I originally wrote that WebGL "may or may not" work properly is precisely because of the problem with websockets on WebGL. The websockets are just used for subscriptions though, so if you don't need those, then it works just fine. (But most people probably use GraphQL for the subscription part.)
Now, we at Last Abyss don't use WebGL with real-time networking capabilities for anything at the moment, so it's hard to say if I would be able to test a proper WebGL project with GraphQL integration. I would definitely need help with that. I also would like to add some proper tests into the package at some point, but dev bandwidth is low for us right now.
We currently don't even use GraphQL for any of our projects at the moment, so testing this package is already fairly difficult. If you would like to try out this package (and figure out issues with WebGL), you are more than welcome to! We can figure out solutions for WebGL as we get to them.
As for my thoughts:
https://gamedev.stackexchange.com/questions/176842/how-can-i-use-websockets-in-a-unity-webgl-project
The solution proposed here is definitely interesting. If it's unobstrusive to the other platforms, we could definitely add this in with no issues.

Adding CySharp.UniTask as a dependency if there are issues with Task on WebGL
I wouldn't do this directly, see below.

Alternatively adding CySharp.UniTask as an optional dependency and have ifdefs to alias to it installed.
This is something that could be added. Perhaps some kind of #ifdef with an installer if WebGL is detected, and then an #else for uninstalling the dependency when the platform is switched again.

Add some jslib helper code to support subscriptions
This can definitely be supported with the solution proposed above. I am not entirely familiar with calling native browser functionality from Unity WebGLs, so perhaps you could give some insight on how this works?

@johanhelsing Would you like write access to the repo? Your contributions have already been very valuable to the project.

Hi Navid!

The reason that I originally wrote that WebGL "may or may not" work properly is precisely because of the problem with websockets on WebGL. The websockets are just used for subscriptions though, so if you don't need those, then it works just fine. (But most people probably use GraphQL for the subscription part.)

Ok, I think I get it :) Just hoping we can change "If you do not need subscriptions, WebGL may work just fine." to "If you do not use subscriptions, WebGL will work just fine.".

we at Last Abyss don't use WebGL with real-time networking capabilities for anything at the moment, so it's hard to say if I would be able to test a proper WebGL project with GraphQL integration.

I'm using mutations and queries using this library in a small game I'm working on. So far no issues with WebGL. I can update the readme if nothing bad happens the next few days.

Alternatively adding CySharp.UniTask as an optional dependency and have ifdefs to alias to it installed.

This is something that could be added. Perhaps some kind of #ifdef with an installer if WebGL is detected, and then an #else for uninstalling the dependency when the platform is switched again.

Great, then we have a backup plan of sorts :) Hopefully we don't need it 🤞. I think as we don't use anything that starts new threads (like Task.Delay for instance) we should be good, though I'm no expert on this.

Add some jslib helper code to support subscriptions

This can definitely be supported with the solution proposed above. I am not entirely familiar with calling native browser functionality from Unity WebGLs, so perhaps you could give some insight on how this works?

Nice :)
I did it like this in another project
#if UNITY_WEBGL
#if !UNITY_EDITOR
using System.Runtime.InteropServices;
#endif
using UnityEngine;

public class WebGLHelpers : MonoBehaviour
{
#if UNITY_EDITOR
    public static int AddOpenUrlInNewTabClickHandler(string url)
    {
        Debug.LogWarning("JavaScript doesn't work in the editor. Make a build or switch platforms.");
        return 0;
    }
#else
    [DllImport("__Internal")]
    public static extern int AddOpenUrlInNewTabClickHandler(string url);
#endif
}
#endif // UNITY_WEBGL

Then the actual js is in a .jslib file which is following a special unity convention and has access to the browser apis.
As for subscriptions, I'm not completely sure if I have the need for it yet, I'll have a go at it if/when I need it.

@johanhelsing Would you like write access to the repo? Your contributions have already been very valuable to the project.

Thanks! That would be really cool 😄
I have some questions regarding how you like to run things, but I'll open a separate issue for this to not spam this thread in case anyone else wants to have a go at the rest of the WebGL stuff later :)

@NavidK0 This project looks like it should solve it: https://github.com/endel/NativeWebSocket
Would you be ok with adding a dependency?

@NavidK0 This project looks like it should solve it: https://github.com/endel/NativeWebSocket
Would you be ok with adding a dependency?

This project looks good, no DLLs required. Yeah, we can add this for WebGL support. I would only use it for WebGL support and not rewrite the core system so that platforms like game consoles aren't affected.

@johanhelsing On second thought, it might actually be worth rewriting the socket code using NativeWebSocket instead? It seems it uses System.Net.Websockets anyways, so it should work just fine on consoles... (I think...)
Then we'd be able to keep the codebase clean while also getting WebGL/HTML5 support for "free".

hey did you start doing this? I think this is the way to go, too.

hey did you start doing this? I think this is the way to go, too.

Me? No, haven't had a need graphql for a while, so feel free to take the lead if you want to!

I have not added new features to this library either, as we haven't required GraphQL in our games for a long while.
Unfortunately, changing the internal web socket to use NativeWebSocket requires much testing that I don't have the time for.


Relative import path is not resolved on Windows

Symptoms
There is an annoying error message warning about relative import not in import map.
Environment
OS: Windows 11
Deno:
deno 1.22.2 (release, x86_64-pc-windows-msvc)
v8 <IP_ADDRESS>
typescript 4.6.2

ultra version: master branch
Reproduction

Clone the example create-ultra-app repo
Change all references of deno/x to github master
Get the error when visiting any other path

Error log:
TypeError: Relative import path "src/api" not prefixed with / or ./ or ../ and not in import map from "https://raw.githubusercontent.com/exhibitionist-digital/ultra/master/src/server/requestHandler.ts"
    at async importAPIRoute (https://raw.githubusercontent.com/exhibitionist-digital/ultra/master/src/server/requestHandler.ts:120:17)
    at async Server.requestHandler (https://raw.githubusercontent.com/exhibitionist-digital/ultra/master/src/server/requestHandler.ts:124:25)
    at async Server.#respond (https://deno.land/std@0.135.0/http/server.ts:298:18)

The API still renders however

V2 has rewritten and cleaner path manipulation, this should no longer be an issue, but please reopen if you still run into errors.


Filtering with 'vulnerable_cpe' results in 400 error

cvemap version: v0.0.7

Current Behavior:

When trying to filter in cvemap using vulnerable_cpe, the command fails with a 400 error.
Additionally, when searching with -cpe it yields no results if an asterisk is used, but if the correct Adobe Acrobat version is sent, then it gives the expected CVEs. Results should be yielded even with an asterisk.
Expected Behavior:

Steps To Reproduce:

Run 'cvemap'
Use vulnerable_cpe in command

Anything else:

Reported in Discord, here: https://discord.com/channels/695645237418131507/1199356116031787058/1262747003230752909

Are there any updates on this issue? :D


Flake8 fixes

This PR fixes 3 classes of flake8 lints in newer flake8 editions (ambiguous variable name, unknown escape, and bare except). These are all plausibly error sources and I am happy to have them fixed.
I suggest W504 is better to just ignore and have proposed doing so here -- it's a "which side of a binary operator should a newline go on" issue -- and it seems like a cause of needless churn rather than an important potential bug. Googling around, nobody seems to think it's an especially robust choice and even Flake8's page related to the previous state of affairs, when the bit was set the other way has truly perplexing language on it.

@swift-ci please test

@swift-ci python lint

@swift-ci please test

@swift-ci python lint

Build failed
Swift Test OS X Platform
Git Sha - a133a3cf2fcc876200f816bb9d12a30ac915395f

Build failed
Swift Test Linux Platform
Git Sha - a133a3cf2fcc876200f816bb9d12a30ac915395f

@swift-ci please test and merge


registry disks against private registry are not pulled

kubevirt is not able to launch a vm with a registry disk when the corresponding node doesnt have access to docker.io, although this node does have access to a (private) registry  hosting all the relevant images.
the events of the virt-launcher pod show that the kubevirt specific containers are successfully pulled but not the registry ones
 Events:
  Type     Reason     Age              From                                          Message
  ----     ------     ----             ----                                          -------
  Normal   Scheduled  2m               default-scheduler                             Successfully assigned virt-launcher-stupefied-kowalevski-vwd5s to ocp-master-1.xxx.com
  Normal   Pulling    2m               kubelet, ocp-master-1.xxx.com  pulling image "ocp-node-2.xxx.com:5000/openshift3/virt-launcher:v0.7.0-alpha.2"
  Normal   Started    2m               kubelet, ocp-master-1.xxx.com  Started container
  Normal   Pulled     2m               kubelet, ocp-master-1.xxx.com  Successfully pulled image "ocp-node-2.xxx.com:5000/openshift3/virt-launcher:v0.7.0-alpha.2"
  Normal   Created    2m               kubelet, ocp-master-1.xxx.com  Created container
  Warning  Unhealthy  2m (x5 over 2m)  kubelet, ocp-master-1.xxx.com  Readiness probe failed: cat: /tmp/healthy: No such file or directory
  Warning  Failed     1m (x3 over 2m)  kubelet, ocp-master-1.xxx.com  Error: ErrImagePull
  Normal   Pulling    1m (x3 over 2m)  kubelet, ocp-master-1.xxx.com  pulling image "kubevirt/cirros-registry-disk-demo:v0.7.0-alpha.2"
  Warning  Failed     1m (x3 over 2m)  kubelet, ocp-master-1.xxx.com  Failed to pull image "kubevirt/cirros-registry-disk-demo:v0.7.0-alpha.2": rpc error: code = Unknown desc = All endpoints blocked.
  Warning  Failed     1m (x3 over 2m)  kubelet, ocp-master-1.xxx.com  Error: ImagePullBackOff
  Normal   BackOff    1m (x4 over 2m)  kubelet, ocp-master-1.xxx.com  Back-off pulling image "kubevirt/cirros-registry-disk-demo:v0.7.0-alpha.2"

@karmab did you create an imagePullSecret: https://kubevirt.io/api-reference/master/definitions.html#_v1_registrydisksource?

@karmab that might also help: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/

@karmab can you also try if an ordinary pod with an image from there can start in you cluster on one of the nodes which should be able to pull the image?

i m able to pull images from the private registry, which is actually insecure, so doesnt require secret data

@karmab kubelet pulls it as image for a pod, or you can pull it via docker pull?

as per our IRC discussion, i m closing.
as i m using this private registry, i also need to include its information in the vm definition
        registryDisk:
          image: cnv-ocp-node-2-xxx.com:5000/kubevirt/cirros-registry-disk-demo:latest


associated plans

Closes #321

adds the associated plans attribute to the transformation mapping query so they are also returned in that query
displays the associated plans count in the list view item and the associated plan names in the list view detail. Display nothing if there are no associated plans.
correctly pluralizes "Source Cluster(s)", "Target Cluster(s)", and "Associated Plan(s)" in the list item count - previously that was not done...

Would like to iterate on #310 next after we have API direction.

Tested and looks great!


name: openkimmodels vs. openkim-models

@jan-janssen any reason this is named without the dash as opposed to with a dash (which is how this package is named in all of our other binary distributions)?

I guess that was just my personal preference, but we can change it. I am going to contact the conda-forge core team about how to do it.

We can rename the package by creating a new pull request, so that is definitely something we can do once we get it working.
https://conda-forge.org/docs/orga/guidelines.html?highlight=rename#renaming-packages


Demo exception

Type of changes

[ ] Bug fix
[ ] New feature
[ ] Documentation / docstrings
[ ] Tests
[x] Example

Checklist

[x] I've run the latest black with default args on new code.
[x] I've updated CHANGELOG.md and CONTRIBUTORS.md where appropriate.
[ ] I've added tests for new code.
[x] I accept that @willmcgugan may be pedantic in the code review.

Description
Added a simple example with an exception traceback

Thanks.


Inexact alarms scheduled by AlarmManager.set()

By the way, I also found AlarmManager.set is used to schedule a timeout in NotificationActionUtils. For your reference, the behaviour of this API is changed since API 19, afterwards, the alarms scheduled by this API will be treated as inexact. (doc). After API 19, setExact will schedule the alarm at the exact time.

Fixed in 1.1.10


STP 951 designer form phase banner settings

Description

Implement designer phase banner settings
Refactor FormDetails component (TSify, move to components/FormDetails folders, break down components)
Deprecate FormDetails hapi/lab tests and write new tests using Jest/RTL

Type of change

[X] New feature (non-breaking change which adds functionality)

How Has This Been Tested?
Before PR's can be merged they will need to be tested by QA and approved where
applicable. To flag the change to QA assign @XGovFormBuilder/qa as one of the reviewers.

[X] I have added tests that prove my fix is effective or that my feature works
[X] I have manually tested the designer to check feature works as expected and posted form JSON is correct.

Checklist:

[X] My changes do not introduce any new linting errors
[X] I have performed a self-review of my own code
[X] I have commented my code, particularly in hard-to-understand areas
[X] I have made corresponding changes to the documentation and versioning
[X] My changes generate no new warnings
[X] I have added tests that prove my fix is effective or that my feature works
[X] New and existing unit tests pass locally with my changes
[X] I have rebased onto master and there are no code conflicts
[X] I have checked deployments are working in all environments
[X] I have updated the architecture diagrams as per Contribute.md

merged @RichardBray, also thansk for the review :thumbsup:

merged @RichardBray, also thansk for the review :thumbsup:


Issue with disable web security in Chromium and Chrome in Mac

I am using puppeteer to open an iframe in browser which has allowed only same origin. So if i open chrome with flag --disable-web-security, The embedding of iframe works.
But here is the problem, If i use chrome instance of my Mac with params
This works
const browser = await puppeteer.launch({
   executablePath: '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome',
   ignoreDefaultArgs: true,
   args: [
     "--disable-web-security",
     "--user-data-dir",
     "--enable-usermedia-screen-capturing",
     "--allow-http-screen-capture",
     "--start-fullscreen",
     "--kiosk",
     "--disable-infobars"
   ],
   headless: false,
 });

This doesn't because it uses Chromium.
  const browser = await puppeteer.launch({
    ignoreDefaultArgs: true,
    args: [
      "--disable-web-security",
      "--user-data-dir",
      "--enable-usermedia-screen-capturing",
      "--allow-http-screen-capture",
      "--start-fullscreen",
      "--kiosk",
      "--disable-infobars"
    ],
    headless: false,
  });

Even If i change the first part of using chrome with different dir it doesn't work.
For eg this doens't work either
const browser = await puppeteer.launch({
    executablePath: '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome',
    ignoreDefaultArgs: true,
    args: [
      "--disable-web-security",
      "--user-data-dir=/tmp/crm",
      "--enable-usermedia-screen-capturing",
      "--allow-http-screen-capture",
      "--start-fullscreen",
      "--kiosk",
      "--disable-infobars"
    ],
    headless: false,
  });

I tried running chromium that comes with puppeteer directly using command:
./Chromium --disable-web-security --user-data-dir
and opened the page manually which has iframe from different origin. I still got an error:
Refused to display 'url' in a frame because it set 'X-Frame-Options' to 'sameorigin'.
Wondering why disable web security is not working with pupeeteer. I am using

Puppeteer version: 1.11.0
Platform / OS version: Mac OS Mojave
Node.js version: 10.6.0

same here :(

Any idea why it works differently on Chromium with Puppeteer ? Using the command bellow works.
open -n -a /usr/local/lib/node_modules/puppeteer/.local-chromium/mac-662092/chrome-mac/Chromium.app --args --user-data-dir="/tmp/chrome_dev_test" --allow-file-access-from-file

any update?

Yeah. Well, you can set a cookie called SameSite:none;
Cookie Docs
This will enable to completely disable security using,
page.SetCookie method
Pupeteer Docs Here

--disable-web-security flag

Hi, this works for me:
const browser = await puppeteer.launch({
   '--disable-features=SameSiteByDefaultCookies,CookiesWithoutSameSiteMustBeSecure'
})

I wonder if it's still an issue in the latest version?


sqlite: add SqliteConnectOptions::shared_cache()

This makes it possible to open database in shared cache mode without
having to construct sqlite:// URL with ?cache=shared flag.

Enabling shared cache seems to fix performance regression compared to rusqlite at https://github.com/deltachat/deltachat-core-rust/issues/2353 for me.


no-unused-modules does not work properly with flow types exports

This PR introduces support for Flow type exports https://github.com/benmosher/eslint-plugin-import/pull/1542
However, it only takes into account the identifier import style
https://github.com/benmosher/eslint-plugin-import/pull/1542/files#diff-48b646acd6be2c915b501dc667163bd4
And it does not work for the declaration import style. Example
Module a.js:
export type A = 'string'

Module b.js:
import type { A } from 'a.js'`

Will result in an error in module A:
ESLint: exported declaration 'A' not used within other modules(import/no-unused-modules)

Note:
It seems to work fine for me if I use identifier import style
import { type A } from 'a.js'`

cc @rfermann

Thanks for adding, @ljharb.
@yamov i‘m not familiar with flow at all. If you could provide all different ways of imports and exports particularly used by flow, I would be willing to (try to) add support for these.

@rfermann  thanks a lot for your reply and for your effort.
Flow docs show these examples
exports.js
// @flow
export default class Foo {};
export type MyObject = { /* ... */ };
export interface MyInterface { /* ... */ };

imports.js
// @flow
import type Foo, {MyObject, MyInterface} from './exports';

AFAICS this doc is not complete (unfortunately, Flow is notorious for bad documentation 😞) and there can be these ways of importing Flow types:
import type { MyObject } from './exports'

and
import { type MyObject } from './exports'

Ironically, the second way works fine with no-unused-modules but is not documented in the Flow docs.
Please let me know if I can provide any additional info.

The first step should probably be reverting #1542 and releasing a patch

👍

While scanning the source code, i found this pull request. After commenting out all changes on ExportMap.js made by this PR,  all examples provided by @yamov start to work (except the exported interface, which requires a modification of no-unused-modules).
After reading the related issue, there was a fix in place which has been reverted and replaced with the fix provided in the PR mentioned above.
@ljharb can we revert the PR #1494 and restore the original fix instead? This would help increasing the flow support for no-unused-modules.

@rfermann sure, want to open up a PR that does that?

Reluctantly. Just thought about it again. Maybe it's better to include @maxmalov, who created the other PR. He is familiar with the issue and might find another way to fix it.
@maxmalov could you please do a qick analysis if there are other ways to fix the original issue?

I guess this line causes the issue since it completely skips the whole module and that's why import type { A } from '...') reports an error.
On the other hand, it isn't clear to me why import { type A } from '...' works since imports with only flow types are skipped too here
Not sure I'll be able to do any quick investigations in a few weeks. It makes sense to revert #1494, but it worth adding some tests for this particular issue, so anyone can revisit fix for #1343 later

On the other hand, it isn't clear to me why import { type A } from '...' works since imports with only flow types are skipped too here

That's because in this case specifier.importKind does not equal type. It equals value instead, hence it isn't catched.
Meanwhile i reverted the changes of #1493 locally but kept the tests, trying to make them still pass but with different changes on the source files. Only one is left so far, so if I am lucky, I will be able to provide a solution soon.

Make sure you’re using babel-eslint or flow parser https://astexplorer.net/#/gist/052189089ff2f468742815723f2dfeba/latest
Otherwise it isn’t possible to detect whether import specifier is a type or a value

Also, instead of removing only type imports from the dependency graph we can add some meta information to them, e.g typesOnly: true. This can be used in the cycle calculation phase later, and hopefully will fix no-unused-module rule. Since types module will exist in the dependency tree, but will be treated differently only in no-cycle rule.

Also, instead of removing only type imports from the dependency graph we can add some meta information to them

Btw, looks like this PR #1231 already do this, except import { type Foo } specifiers

@maxmalov if you'd like to post a link to a branch on #1231, especially if you can also add test coverage, I'd be more than happy to pull them in and get that PR landed.

@ljharb the next week is pretty busy for me, but I guess I'll have some free time after that for a fix and test coverage

@maxmalov thanks for linking to the other PR. Surprisingly I (partially) came to the same solution without even looking at this one :sweat_smile:
The downside is, this does not make all tests provided by @maxmalov pass. Although the last test for no-cycle is supposed to fail, it always fails with a wrong error message. It is failing in line 3, not in line 4 as supposed by the test.
But I am not sure if the test is supposing the correct line number in this case, as both lines are importing from the same file.
Can someone else being more familiar with this rule have a look at the test and tell me, if the test is assuming the correct line number to fail?

The downside is, this does not make all tests provided by @maxmalov pass. Although the last test for no-cycle is supposed to fail, it always fails with a wrong error message. It is failing in line 3, not in line 4 as supposed by the test

@rfermann it looks like the issue related to multiple imports from the same module. Consider the following example:
// @flow

import type { MyType } from './types';
import { type OtherType, myVariable } from './types';

The first is the import declaration with importKind: type. The second one is more complex, it is the import declaration without importKind, but it nests one import specifier with importKind: type.
How I understand the current implementation, only the first import will be captured, leaving the second one untracked. This approach works for no-cycle rule in plain JS, since no matter how often the same module is being imported. But this makes things complicated since to make no-cycle rule work with flow ExportMap has to merge all kinds of multiple imports from the same module into a single record.

The first step should probably be reverting #1542 and releasing a patch

I'm sorry, but are there any objections?

FYI: no-cycle probably shouldn't ignore Flow imports
https://github.com/benmosher/eslint-plugin-import/issues/1098#issuecomment-564805161

@Hypnosphi This was my original idea fix https://github.com/benmosher/eslint-plugin-import/issues/1564#issuecomment-565276520, but after a few tries I've ended up in a case when ExportMap is pretty hard to use in this solution

I see. Do you think #1542 can be reverterted for now, until a proper solution is found? It fixed #1540 which is less critical than this one, at least for me

This was re-introduced in 2.22.0, maybe caused by https://github.com/benmosher/eslint-plugin-import/pull/1819
Actually, now even import { type A } from 'a.js' doesn't mark A as used
@ljharb please reopen

@Hypnosphi sure. we should add some tests to prevent that from happening again. cc @nicolashenry

I will take a look when I have more time but it seems that I may introduced wrongly TypeAlias and InterfaceDeclaration by babel-eslint as Typescript types when it seems to be Flow types. So some typescript tests which existed before my changes were probably relying wrongly on babel-eslint parser and I tried to make it compatible with it too but it was probably a bad idea unless some people are using babel-eslint parser with Typescript source code instead of @typescript-eslint/parser or typescript-eslint-parser.
I will try to change typescript tests to use typescript parsers only or maybe try to do a proper fix for Flow type imports but I am not a Flow user so I will may have some difficulties to do it.

@Hypnosphi Can you provide me a test case? I can't reproduce using unit tests from https://github.com/benmosher/eslint-plugin-import/pull/1542 even adding import type { A } from 'a.js' test case.

@nicolashenry sure: https://github.com/Hypnosphi/import-flow-repro

@Hypnosphi It seems to be linked to the loading order, if I rename a.js to b.js, b.js to a.js and I change from './a' to from './b' in your repository I no longer have the error... I am not sure about how to fix this for now.

@ljharb I created https://github.com/benmosher/eslint-plugin-import/pull/1906 to ignore Flow types again. I think babel-eslint parser causes an issue in module load ordering when flow type imports are used but I don't think that I can fix it (unless you have an idea on how to do it).


Installation issue with extension in a11y Jupyterhub

Getting the following error message when I tried installing this extension in a11y hub
    INFO:hatch_jupyter_builder.utils:> /tmp/pip-build-env-pcjqeru6/overlay/bin/jlpm run build:prod
      Type Error: Cannot read properties of undefined (reading '/tmp/pip-req-build-t06b3xii/.pnp.cjs')
          at a4 (/tmp/pip-build-env-pcjqeru6/overlay/lib/python3.11/site-packages/jupyterlab/staging/yarn.js:390:12692)
          at i0e (/tmp/pip-build-env-pcjqeru6/overlay/lib/python3.11/site-packages/jupyterlab/staging/yarn.js:390:13173)
          at Object.pf (/tmp/pip-build-env-pcjqeru6/overlay/lib/python3.11/site-packages/jupyterlab/staging/yarn.js:390:13402)
          at /tmp/pip-build-env-pcjqeru6/overlay/lib/python3.11/site-packages/jupyterlab/staging/yarn.js:694:4608
          at Object.Fa (/tmp/pip-build-env-pcjqeru6/overlay/lib/python3.11/site-packages/jupyterlab/staging/yarn.js:390:10714)
          at ml.findPackageLocation (/tmp/pip-build-env-pcjqeru6/overlay/lib/python3.11/site-packages/jupyterlab/staging/yarn.js:694:4563)
          at /tmp/pip-build-env-pcjqeru6/overlay/lib/python3.11/site-packages/jupyterlab/staging/yarn.js:423:1264
          at Function.from (<anonymous>)
          at RB (/tmp/pip-build-env-pcjqeru6/overlay/lib/python3.11/site-packages/jupyterlab/staging/yarn.js:423:1008)
          at f7 (/tmp/pip-build-env-pcjqeru6/overlay/lib/python3.11/site-packages/jupyterlab/staging/yarn.js:423:1589)
      Traceback (most recent call last):
        File "/srv/conda/envs/notebook/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "/srv/conda/envs/notebook/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/srv/conda/envs/notebook/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 152, in prepare_metadata_for_build_wheel
          whl_basename = backend.build_wheel(metadata_directory, config_settings)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-pcjqeru6/overlay/lib/python3.11/site-packages/hatchling/build.py", line 58, in build_wheel
          return os.path.basename(next(builder.build(directory=wheel_directory, versions=['standard'])))
                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-pcjqeru6/overlay/lib/python3.11/site-packages/hatchling/builders/plugin/interface.py", line 147, in build
          build_hook.initialize(version, build_data)
        File "/tmp/pip-build-env-pcjqeru6/normal/lib/python3.11/site-packages/hatch_jupyter_builder/plugin.py", line 94, in initialize
          raise e
        File "/tmp/pip-build-env-pcjqeru6/normal/lib/python3.11/site-packages/hatch_jupyter_builder/plugin.py", line 89, in initialize
          build_func(self.target_name, version, **build_kwargs)
        File "/tmp/pip-build-env-pcjqeru6/normal/lib/python3.11/site-packages/hatch_jupyter_builder/utils.py", line 117, in npm_builder
          run([*npm_cmd, "run", build_cmd], cwd=str(abs_path))
        File "/tmp/pip-build-env-pcjqeru6/normal/lib/python3.11/site-packages/hatch_jupyter_builder/utils.py", line 231, in run
          return subprocess.check_call(cmd, **kwargs)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/srv/conda/envs/notebook/lib/python3.11/subprocess.py", line 413, in check_call
          raise CalledProcessError(retcode, cmd)
      subprocess.CalledProcessError: Command '['/tmp/pip-build-env-pcjqeru6/overlay/bin/jlpm', 'run', 'build:prod']' returned non-zero exit status 1.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

CondaEnvException: Pip failed

Here is the link to the latest circle CI build - https://app.circleci.com/pipelines/github/berkeley-dsep-infra/datahub/4207/workflows/d83818a5-fd86-48ac-a407-fedd69419440/jobs/56909

@ryanlovett Have you encountered this error before?

Closing this issue as it got fixed with publishing to pypi


Make a cute little API

Goal: user uploads a PDF, program processes it into natural language, run the model on it, spit out entities and their labels
Starting point: using this article which talks about PyPDF2
Maybe additional feature would be you can submit your own annotations of the data to help improve the model and have it also spit out metrics?

API should:

load the trained spacy model
have a single endpoint that:

takes in a string value
returns a JSON dictionary with a list of instruments and missions identified

for the PDF processing

take a look at PFF Miner as that is what we used for processing the PDFs originally into natural language for training
can also use Apache Tika as it has several PDF parsers
use the text cleaning code we already have after parsing the PDFs before feeding into spacy and hitting the rest api

The rest API is a means to an end 😄
I wouldn't worry about annotations.

api_stuff folder in the repo holds api.py, which you can run and then access localhost/5000 on your browser. The user submits text, and the API spits out a table of each entity it recognized plus its label and how confident it is in that label. I don't know if this is proper git flow but I'm going to close this and create a new gentle issue for hopeful PDF processing in the future.


a bug I need to report

which means I found out that nxy is still working on this project.  He is so Juan.

Thanks, I'll keep juaning~~~


HTML escape not working for dojo status

Looking at https://zen.coderdojo.com/dashboard/edit-dojo/0be123e7-c9be-4002-a3cf-f0c8550f749a in German,
the status is not correctly shown:

I can reproduce. The same fix that applies to the Portuguese translation issues also clears this one up. Still on review though: https://github.com/CoderDojo/cp-zen-platform/pull/782

This works now, thanks @josmas! :)


[Question] ts_project mechanism of increasing heap memory?

Sorry if this is a dumb question, but I couldn't find a method of upping the heap memory on ts_project's even after skimming the implementation
Here's how I usually bump the heap memory in package.json "tsc-all": "yarn cross-env NODE_OPTIONS='--max-old-space-size=8192' tsc -b typescript/tsconfig.json"
Run + output:
bazel build //typescript:all_ts

INFO: Analyzed target //typescript:all_ts (0 packages loaded, 0 targets configured).
INFO: Found 1 target...
ERROR: /Users/ray/workspace/redacted/typescript/BUILD.bazel:273:11: Compiling TypeScript project //typescript:all_ts [tsc -p typescript/tsconfig.json] failed: Worker process did not return a WorkResponse:

---8<---8<--- Start of log, file at /private/var/tmp/_bazel_ray/0a45558874bc1f97bcaab4f86b774d47/bazel-workers/worker-9-TsProject.log ---8<---8<---
Running TsProject as a Bazel worker

<--- Last few GCs --->

[9229:0x7f8318008000] 16634251 ms: Mark-sweep 4024.9 (4129.0) -> 4008.9 (4129.0) MB, 1149.5 / 0.0 ms  (average mu = 0.148, current mu = 0.028) allocation failure scavenge might not succeed
[9229:0x7f8318008000] 16635436 ms: Mark-sweep 4024.7 (4129.0) -> 4009.0 (4129.2) MB, 1152.9 / 0.0 ms  (average mu = 0.091, current mu = 0.027) allocation failure scavenge might not succeed

<--- JS stacktrace --->

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
 1: 0x1040f4bf5 node::Abort() (.cold.1) [/private/var/tmp/_bazel_ray/0a45558874bc1f97bcaab4f86b774d47/external/nodejs_darwin_amd64/bin/nodejs/bin/node]
 2: 0x102de8349 node::Abort() [/private/var/tmp/_bazel_ray/0a45558874bc1f97bcaab4f86b774d47/external/nodejs_darwin_amd64/bin/nodejs/bin/node]
 3: 0x102de84bf node::OnFatalError(char const*, char const*) [/private/var/tmp/_bazel_ray/0a45558874bc1f97bcaab4f86b774d47/external/nodejs_darwin_amd64/bin/nodejs/bin/node]
 4: 0x102f6a987 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [/private/var/tmp/_bazel_ray/0a45558874bc1f97bcaab4f86b774d47/external/nodejs_darwin_amd64/bin/nodejs/bin/node]
 5: 0x102f6a923 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/private/var/tmp/_bazel_ray/0a45558874bc1f97bcaab4f86b774d47/external/nodejs_darwin_amd64/bin/nodejs/bin/node]
 6: 0x10310c005 v8::internal::Heap::FatalProcessOutOfMemory(char const*) [/private/var/tmp/_bazel_ray/0a45558874bc1f97bcaab4f86b774d47/external/nodejs_darwin_amd64/bin/nodejs/bin/node]
 7: 0x10311004d v8::internal::Heap::RecomputeLimits(v8::internal::GarbageCollector) [/private/var/tmp/_bazel_ray/0a45558874bc1f97bcaab4f86b774d47/external/nodejs_darwin_amd64/bin/nodejs/bin/node]
 8: 0x10310c92d v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) [/private/var/tmp/_bazel_ray/0a45558874bc1f97bcaab4f86b774d47/external/nodejs_darwin_amd64/bin/nodejs/bin/node]
 9: 0x103109e4d v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/private/var/tmp/_bazel_ray/0a45558874bc1f97bcaab4f86b774d47/external/nodejs_darwin_amd64/bin/nodejs/bin/node]
10: 0x103117230 v8::internal::Heap::AllocateRawWithLightRetrySlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/private/var/tmp/_bazel_ray/0a45558874bc1f97bcaab4f86b774d47/external/nodejs_darwin_amd64/bin/nodejs/bin/node]
11: 0x1031172b1 v8::internal::Heap::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/private/var/tmp/_bazel_ray/0a45558874bc1f97bcaab4f86b774d47/external/nodejs_darwin_amd64/bin/nodejs/bin/node]
12: 0x1030e4347 v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationType, v8::internal::AllocationOrigin) [/private/var/tmp/_bazel_ray/0a45558874bc1f97bcaab4f86b774d47/external/nodejs_darwin_amd64/bin/nodejs/bin/node]
13: 0x10349bf4e v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [/private/var/tmp/_bazel_ray/0a45558874bc1f97bcaab4f86b774d47/external/nodejs_darwin_amd64/bin/nodejs/bin/node]
14: 0x103845a19 Builtins_CEntry_Return1_DontSaveFPRegs_ArgvOnStack_NoBuiltinExit [/private/var/tmp/_bazel_ray/0a45558874bc1f97bcaab4f86b774d47/external/nodejs_darwin_amd64/bin/nodejs/bin/node]
/private/var/tmp/_bazel_ray/0a45558874bc1f97bcaab4f86b774d47/execroot/redacted/bazel-out/darwin-opt-exec-2B5CBBC6/bin/external/npm_typescript/tsc_worker.sh: line 472:  9229 Abort trap: 6           "$JS_BINARY__NODE_WRAPPER" ${JS_BINARY__NODE_OPTIONS[@]+"${JS_BINARY__NODE_OPTIONS[@]}"} -- "$entry_point" ${ARGS[@]+"${ARGS[@]}"} 0<&0
---8<---8<--- End of log ---8<---8<---
Target //typescript:all_ts failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 81.888s, Critical Path: 79.71s
INFO: 3 processes: 2 internal, 1 local.
FAILED: Build did NOT complete successfully

You can adjust it in .bazelrc, add a line like this and it is applied in the build step:
build --action_env="NODE_OPTIONS=--max-old-space-size=2048"

with the current version of rules_ts you can

load("@aspect_bazel_lib//lib:directory_path.bzl", "directory_path")
load("@aspect_rules_js//js:defs.bzl", "js_binary")
load("@aspect_rules_ts//ts:defs.bzl", "ts_project")

directory_path(
  name = "tsc_entrypoint",
  directory = "@npm_typescript//:node_modules/typescript/dir",
  path = "bin/tsc",
)

js_binary(
    name = "tsc_with_more_heap",
    data = ["@npm_typescript//:node_modules/typescript"],
    entry_point = ":tsc_entrypoint",
    node_options = ["--max-old-space-size=8192"],
)

ts_project(
    name = "big",
    srcs = ["big.ts"],
    tsc = ":tsc_with_more_heap",
)

I'll add to our examples here

fix in https://github.com/aspect-build/rules_ts/pull/230
(note, it doesn't need the directory_path part of the answer above because I added a public visibility)

Thanks again for the fast reply + PR Alex!


Not an issue, it's a question

Is PolicyPlus working as group policy management console too? GPMC is needed to disable defender updates.

The GPMC is for managing multiple Group Policy Objects across a domain. The settings you're looking for are very likely set within a GPO, in which case the Local Group Policy Editor can probably set them for a single computer. If they're under an Administrative Templates branch, Policy Plus will be able to see them too. (Caveat: a few policies, especially related to updates, are sometimes ignored by their target applications on non-Enterprise editions. It's worth a try, though.)

As i see on some sites, GPMC is needed to close Defender. It downloads updates every day, i don't want this. Is there any way to stop receiving updates for Defender? I have windows 10 home. I installed gpedit.msc using this site: https://www.majorgeeks.com/content/page/enable_group_policy_editor_in_windows_10_home_edition.html

Hmm, try looking through the instructions to see if they eventually ask you to navigate to something under "Administrative Templates." If so, navigate through that same subpath in Policy Plus.
Unfortunately I don't know the details of Windows Defender, so I don't know which policies you are looking for or whether Windows Defender would respect them on Home editions. (Even if Policy Plus adjusts the Registry correctly, that doesn't matter if the target application ignores the setting.)
If I remember correctly, the linked method of installing gpedit.msc produces a Local Group Policy Editor that looks right but doesn't actually apply any settings to the Registry. Nevertheless, it might be your best hope if the policy of interest is outside Administrative Templates.

So there's nothing to do in win 10 home?  Where can i find a key to get pro upgrade for free?

So there's nothing to do in win 10 home?

Depending on what kind of policy is needed and whether Home editions' version of Defender consults it, it might be possible to change the behavior on Home—I'm just saying that I don't know enough about Defender specifically to say. :) Again, you can try looking ahead in the instructions you found to see if any of the folders you need to navigate through have an equivalent in the LGPE / Policy Plus. You could also try asking about the Defender configuration or Registry settings in a more general forum.

Is there an .exe in github to disable uploads for defender?

Not that I know of, sorry. It depends again on how the policy is set and whether Defender checks it on Home editions. If the Home edition of Defender doesn't check for any such policy, no such EXE could exist. (Well, unless it somehow altered Defender itself, but at some point the side effects of the workaround are worse than the original problem.)

Where can i find a key to get pro upgrade for free?

Home to Pro is a paid upgrade, so any free key is either ineffective here (e.g. volume activation pseudo-key) or illegal.

And how can uninstall group policy?

Thank you for keeping record of the installation. The batch file used DISM to install several packages whose names are shown after "adding package" in your screenshot. You can probably therefore use DISM to remove the packages. Caution! I have not tested this, so any attempt is at your own risk. Here is an example; I think you can change the package name after /packagename: and repeat for each package.


Boxed traits should work in unions.

Support for graphql trait objects has been added, but it should also work as a member of a Union
The following fails with the error: the trait bound Box<dyn ProductTrait>: async_graphql::ObjectType is not satisfied
pub trait ProductTrait: Send + Sync {
    fn id(&self) -> &str;
}

#[Object]
impl dyn ProductTrait {
    #[graphql(name = "id")]
    async fn gql_id(&self, _ctx: &Context<'_>) -> &str {
        self.id()
    }
}

#[derive(Union)]
pub enum Content {
    Product(Box<dyn ProductTrait>),
}

Thanks for the sponsorship, I'll fixed this tomorrow. 🙂

Fixed in 3.0.21


Default instance property is not applicable to this element

I just ran into the following issue in 6.0.1. Setting a margin in SceneBuilder:

generates the following fxml:
<?xml version="1.0" encoding="UTF-8"?>

<?import javafx.geometry.Insets?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.layout.HBox?>

<HBox xmlns="http://javafx.com/javafx/19" xmlns:fx="http://javafx.com/fxml/1">
   <children>
      <Button text="Button">
         <HBox.margin>
            <Insets top="10.0" />
         </HBox.margin>
      </Button>
   </children>
</HBox>

Compiling this results in
[ERROR] /<path>/CompileFxml.java:[22,8] Default instance property is not applicable to this element.
[ERROR]   file:/<path>/margintest.fxml:12

Missed this part of static properties handling for some reason. Fixed. Thanks for the report!


[RFE] app.conf editor doesn't scroll back to the top on selection of new app

Hi
Being a bit pedantic, but thought i'd log it
Steps to reproduce.

Import .conf file
Select an app to view with a large number of components
Focus the newly open app.conf window
Scroll down to the bottom of the file
Under the config explorer pane, select another app.

The updated app.conf window stays at the previous line number, or moves to the end if the config isn't as big.
Cheers
Simon

Hi @raZorTT, I've noticed this also.  I think there is a command to scroll to the top of the screen.  I can probably add that as part of the editor rewrite, or it might be a non-issue as we transition these files to a virtual file system.  Changing this to an RFE for future work

Configured this render to scroll to top as requested.  released in v3.5


feat: new multiprotocol support

Change Summary
This PR adds multi protocol support to frames.js.
Merge Checklist

[x] PR has a Changeset
[ ] PR includes documentation if necessary
[ ] PR updates the boilerplates if necessary

Closed in favour of #517


Email message is rendered from template in one line

My email templates contains multiple lines but I receive the message in one line.
My message template is:
Hello {{name}}!
Start your session with your friends by going to following URL:

{{sessionUrl}}

But I receive my message as:
Hello James! Start your session with your friends by going to following URL: http://theurl.com

Any ideas why this is happening? I tried to view the message from webmail and same thing happens there too.
I tried to check issues from nodemailer and mustache.js in case if someone has reported about the same problem but no results..

@bmeck Do you know if there is a fix for the newline spacing issue? I am still experiencing it. I do realize this was a decade ago


docs: Add resources for learning electron

Would you like to accept my repository for example using emitter events with node integration?
I'm using the latest electron version of the electron quick start.

Thank you for the contribution, but these existing repos are maintainer repos, and as such this would most likely live more effectively in community resources.


Style section of dev guide missing reference

When we copied the style section of the dev guide (I guess from the code-conventions.md file?) the reference to the original document got lost.
This is not something we wrote, so we should mention our source!

Avoid assigning, rather mention. Check team conventions.
The reference you are looking at is at the bottom of the article.

On 04.05.2016, at 21:58, Daren Thomas<EMAIL_ADDRESS>wrote:
Assigned #177 to @JIMENOFONSECA.
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub

@daren-thomas can we close this?

yes we can!


ocaml-ng.ocamlPackages_5_1.ocaml: init at 5.1.0-rc3

Description of changes
https://discuss.ocaml.org/t/third-and-hopefully-last-release-candidate-for-ocaml-5-1-0/12975
A few libraries still fail to build (mdx, apron, etc.)
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[x] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.11 Release Notes (or backporting 23.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

@GrahamcOfBorg build ocaml-ng.ocamlPackages_5_1.utop


Plat 5144 remove background service

Approved, but did not merge due to the build failing

Still failing
com.fitpay.android.paymentdevice.impl.DeviceParallelSyncTest > syncTest FAILED
    java.lang.AssertionError at DeviceParallelSyncTest.java:215

Tests has been fixed, but some times they randomly fails probably because of some issues on a server. For instance we don't receive all APDU packages.


[Task]: Implement logger

What needs to be done?
No response
Who is responsible?
No response
Due date (optional)
No response
Additional notes
Remove std::cout log message and implement logger

Implemented logger function


navbar and slider

Hello,
Can i have navbar and slider example?

Here's the navbar example: https://tailwindcss.com/docs/examples/navigation

Hello,
Thanks but in https://picturepan2.github.io/spectre/experimentals.html#sliders It make sliders without JS.


Problem after running an executable compiled file: error: TypeError: mod5.stripAnsi is not a function

Hi!
Thanks for this great utility. It is neat to use.
The problem
After running an executable file, straight after using a command  deno compile. I am getting an error:
error: TypeError: mod5.stripAnsi is not a function
    at Spinner.updateLines (file://$deno$/bundle.js:8079:33)
    at Spinner.set text (file://$deno$/bundle.js:8022:14)
    at new Spinner (file://$deno$/bundle.js:7984:19)
    at wait (file://$deno$/bundle.js:7957:12)
    at task (file://$deno$/bundle.js:8129:21)
    at loadColorsConfig (file://$deno$/bundle.js:10458:11)
    at file://$deno$/bundle.js:10482:7

I am lost on how to solve it by myself. Therefore I ask for guidance.
There was no problem or any error while using the command  deno run ....
Just in case I have disabled the snippet where I am using your spinner, it works (my own CLI program), so I can rule out that the problem isn't with my code.
Additional info:

wait: v.0.1.10
Deno: v1.10.2
OS: Manjaro Linux x86_64
Shell: zsh 5.8

This is most likely a problem with the SWC bundler of deno and does not have anything to do with wait. I will try updating our deps in case thats the problem but if not you will simply have to wait. Look for issues in the main deno repo which may be related (keywords could be: swc, bundle, compile, compiling dependencies)


Add system with lower priority during iteration

Hey
If you add a system during iteration (so inside an other system)
if the system add has a priority lower than current system in update, the order is fuck.
example : system with priority 1, 4 5, 10
at start u add 1,5,10
during first update of system 5 u add system 4
the system called in this update is  1, 5, 5, 10
System manager should implement a delayed operation like entity manager
example code at AddRemoveSystemDuringIterationTest.java
/**
 * 3 systems add at engine start with priority 1, 5, 10
 * System 5 add system with priority 4 during first iteration by system 5
 *
 */
public class AddRemoveSystemDuringIterationTest {
    Engine engine;
    List<Integer> systemCallOrder; //updateIndex -> list by priority
    boolean firstUpdateDone = false;

    private void addSystemUpdateCall(EntitySystem entitySystem) {
        systemCallOrder.add(entitySystem.priority);
    }

    @Before
    public void setUp() {
        engine = new Engine();
        systemCallOrder = new ArrayList<>();
        firstUpdateDone = false;
    }

    @Test
    public void addSystemDuringIterationTest() {
        engine = new Engine();
        EntitySystem system1 = new NamedSystem(1) {
        };
        EntitySystem system10 = new NamedSystem(10) {
        };
        final EntitySystem system4 = new NamedSystem(4) {  //System added during update
        };
        EntitySystem system5 = new NamedSystem(5) {

            @Override
            public void update(float deltaTime) {
                super.update(deltaTime);
                if (!firstUpdateDone) {
                    getEngine().addSystem(system4);
                    firstUpdateDone = true;
                }
            }
        };

        engine.addSystem(system1);
        engine.addSystem(system10);
        engine.addSystem(system5);

        engine.update(1); //it add system 45 add system 4 during iteration

        List<Integer> expected = Arrays.asList(1, 5, 10); //system 4 should not be called
        Assert.assertArrayEquals(expected.toArray(), systemCallOrder.toArray()); // result 1, 5, 5, 10

        systemCallOrder.clear();
        engine.update(1);
        expected = Arrays.asList(1, 4, 5, 10); //second update ok
        Assert.assertArrayEquals(expected.toArray(), systemCallOrder.toArray());

    }

    private class NamedSystem extends EntitySystem {

        public NamedSystem(int priority) {
            super(priority);
        }

        @Override
        public void update(float deltaTime) {
            addSystemUpdateCall(this);
        }
    }
}

thanks for reading

Thanks for opening the issue.
Would the processing flag in the EntitySystem class be sufficient? https://github.com/libgdx/ashley/blob/master/ashley/src/com/badlogic/ashley/core/EntitySystem.java#L71.
You could add all the systems you'll need in your game before starting to update and enable/disable them as needed.


2.0 tooltip tests not being run

This is because the test file is still called bootstrap-twipsy.js while the test runner refers to bootstrap-tooltip.js

got it thanks!


Current Trail experience give an error when creating new Segments

When trying to create a new segment on 2 different marketing trails, both give me an error when creating a new segment. ; Exception 'InvalidPluginExecutionException' occured: Error during retrieval of Configuration Entity: entity doesn't exist., CorrelationId: e7f08ef3-0d16-4467-b67e-2f198185afd0

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 6b95a247-8f4e-f8de-54b7-f8525a2cdcba
Version Independent ID: 8e86e4dd-23eb-1b9a-e4cd-ede2acb0278a
Content: Create a marketing segment (Dynamics 365 for Marketing)
Content Source: ce/marketing/create-segment.md
Service: dynamics-365-marketing
GitHub Login: @kamaybac
Microsoft Alias: kamaybac

@basvb1992, thank you for contacting Microsoft. That sounds like an issue with your specific instance. Please contact Microsoft Support for assistance.


poetry install python X.Y fails with "No pre-built available..."

Most major versions of python give an error like:
proto run python 3.11
Error: plugin::call_func::failed
  × No pre-built available for version 3.11.9 (via https://github.com/indygreg/python-build-standalone)! Try
  │ installing another version for the time being.

This is on Windows 11 and happens for every major version I've tried except 3.10.
The current best workaround is to specify a previous patch version.

Recurrence of #11

@rotu Can you paste logs? This plugin hasn't really changed in a long time.
All the available releases are here: https://github.com/moonrepo/python-plugin/blob/master/releases.json

Here's an example on my Mac. I don't think it's a problem in the source code of this plugin, but that the versions are out of sync with what's provided by indygreg.
> proto run python 3.11 --log trace
[DEBUG 2024-04-12 22:23:59.488] proto  Running proto v0.34.3  bin="proto" args=["run", "python", "3.11", "--log", "trace"] pid=48906
[TRACE 22:23:59.491] starbase::app  Running startup phase with 2 systems
[DEBUG 22:23:59.493] proto_core::proto:detect_proto_env  Creating proto environment, detecting store  store="/Users/dan/.proto"
[TRACE 22:23:59.494] starbase::app  Running analyze phase with 3 systems
[TRACE 22:23:59.494] proto_core::proto_config:load_proto_configs  Traversing upwards and loading .prototools files
[DEBUG 22:23:59.495] proto_core::proto_config:load_proto_configs  Loading .prototools  file="/Users/dan/.proto/.prototools"
[TRACE 22:23:59.495] starbase_utils::fs:load_proto_configs  Opening file  file="/Users/dan/.proto/.prototools"
[TRACE 22:23:59.495] starbase_utils::fs_lock:load_proto_configs  Locking file  file="/Users/dan/.proto/.prototools"
[TRACE 22:23:59.496] starbase_utils::fs_lock:load_proto_configs  Unlocking file  file="/Users/dan/.proto/.prototools"
[TRACE 22:23:59.496] schematic::config::loader:load_proto_configs  Loading partial configuration  config="ProtoConfig"
[TRACE 22:23:59.496] schematic::config::loader:load_proto_configs  Creating layer from source  config="ProtoConfig" source="<code>"
[TRACE 22:23:59.500] schematic::config::loader:load_proto_configs  Merging partial layers into a final result  config="ProtoConfig"
[DEBUG 22:23:59.500] proto_core::proto_config:load_proto_configs  Merging loaded configs
[DEBUG 22:23:59.500] proto_core::proto_config:load_proto_configs  Merged 1 configs
[TRACE 22:23:59.500] starbase::app  Running execute phase with 2 systems
[DEBUG 22:23:59.500] proto_core::tool_loader:run  Finding a configured plugin  tool="python"
[DEBUG 22:23:59.501] proto_core::tool_loader:run  Using a built-in plugin  plugin="source:https://github.com/moonrepo/python-plugin/releases/download/v0.9.0/python_plugin.wasm"
[TRACE 22:23:59.501] warpgate::loader:run  Creating plugin loader  cache_dir="/Users/dan/.proto/plugins"
[TRACE 22:23:59.501] warpgate::loader:run  Loading plugin python  id="python"
[TRACE 22:23:59.502] starbase_utils::fs:run  Reading file metadata  file="/Users/dan/.proto/plugins/python-b9493bb66417130c3a39c64107dfeb41bbdcaba202b3f50466b93ef70c7c4e3e.wasm"
[TRACE 22:23:59.503] warpgate::loader:run  Plugin already downloaded and cached  id="python" path="/Users/dan/.proto/plugins/python-b9493bb66417130c3a39c64107dfeb41bbdcaba202b3f50466b93ef70c7c4e3e.wasm"
[DEBUG 22:23:59.503] proto_core::tool_loader:run  Loading WASM plugin  source="/Users/dan/.proto/plugins/python-b9493bb66417130c3a39c64107dfeb41bbdcaba202b3f50466b93ef70c7c4e3e.wasm"
[TRACE 22:23:59.503] warpgate::plugin:run  Storing plugin identifier  id="python"
[TRACE 22:23:59.503] warpgate::plugin:run  Storing host environment  env={"arch":"arm64","libc":"gnu","os":"macos","home_dir":{"path":"/userhome/","virtual_prefix":"/userhome","real_prefix":"/Users/dan"}}
[DEBUG 22:23:59.503] proto_core::tool:run  Creating tool python and instantiating plugin
[TRACE 22:23:59.542] warpgate::plugin:run  Created plugin container  id="python" plugin="02d55cbf-5ce9-45cc-9620-615c157a2223"
[DEBUG 22:23:59.542] proto_core::tool:run  Created tool python and its WASM runtime
[TRACE 22:23:59.542] warpgate::plugin:run  Calling plugin function register_tool  id="python" plugin="02d55cbf-5ce9-45cc-9620-615c157a2223" input={"id":"python"}
[TRACE 22:23:59.544] warpgate::plugin:run  Called plugin function register_tool  id="python" plugin="02d55cbf-5ce9-45cc-9620-615c157a2223" output={"inventory":{},"name":"Python","plugin_version":"0.9.0","type":"Language"}
[DEBUG 22:23:59.544] proto_core::tool_manifest:run  Loading manifest.json  file="/Users/dan/.proto/tools/python/manifest.json"
[TRACE 22:23:59.544] starbase_utils::fs:run  Opening file  file="/Users/dan/.proto/tools/python/manifest.json"
[TRACE 22:23:59.544] starbase_utils::fs_lock:run  Locking file  file="/Users/dan/.proto/tools/python/manifest.json"
[TRACE 22:23:59.544] starbase_utils::fs_lock:run  Unlocking file  file="/Users/dan/.proto/tools/python/manifest.json"
[DEBUG 22:23:59.545] proto_core::version_detector:run  Using explicit version passed on the command line  tool="python" version=Req(VersionReq { comparators: [Comparator { op: Tilde, major: 3, minor: Some(11), patch: None, pre: Prerelease("") }] })
[DEBUG 22:23:59.545] proto_core::tool:run  Resolving a semantic version or alias  tool="python" initial_version="~3.11"
[DEBUG 22:23:59.545] proto_core::tool:run  Loading available versions  tool="python"
[TRACE 22:23:59.545] starbase_utils::fs:run  Reading file metadata  file="/Users/dan/.proto/tools/python/remote-versions.json"
[TRACE 22:23:59.545] starbase_utils::fs:run  Reading file  file="/Users/dan/.proto/tools/python/remote-versions.json"
[TRACE 22:23:59.546] starbase_utils::json:run  Reading JSON file  file="/Users/dan/.proto/tools/python/remote-versions.json"
[TRACE 22:23:59.546] proto_core::version_resolver:run  Resolving a version with manifest  candidate="~3.11"
[TRACE 22:23:59.546] proto_core::version_resolver:run  Found a requirement, resolving further  requirement="~3.11"
[TRACE 22:23:59.546] proto_core::version_resolver:run  Resolved to remote available version  version="3.11.9"
[DEBUG 22:23:59.546] proto_core::tool:run  Resolved to 3.11.9  tool="python" version="3.11.9"
[DEBUG 22:23:59.546] proto_core::tool:run  Checking if tool is installed  tool="python" install_dir="/Users/dan/.proto/tools/python/3.11.9"
[DEBUG 22:23:59.546] proto_core::tool:run  Tool has not been installed  tool="python"
[DEBUG 22:23:59.547] proto::commands::run:run  Auto-install setting is configured, attempting to install
[DEBUG 22:23:59.547] proto_core::tool:run  Checking if tool is installed  tool="python" install_dir="/Users/dan/.proto/tools/python/3.11.9"
[DEBUG 22:23:59.547] proto_core::tool:run  Tool has not been installed  tool="python"
[DEBUG 22:23:59.547] proto::commands::install:run  Installing Python with version 3.11.9 (from 3.11.9)
⠁ Installing Python 3.11.9                                                      [TRACE 22:23:59.548] starbase_utils::net:run:is_offline  Checking for an internet connection  timeout=750
━━         Installing Python 3.11.9                                             [TRACE 22:23:59.548] starbase_utils::net::offline  Resolving <IP_ADDRESS>:53
[TRACE 22:23:59.574] starbase_utils::net:run:is_offline  Online!
[TRACE 22:23:59.574] starbase_utils::fs_lock:run  Locking directory  dir="/Users/dan/.proto/tools/python/3.11.9"
[TRACE 22:23:59.574] starbase_utils::fs:run  Creating file without truncating  file="/Users/dan/.proto/tools/python/3.11.9/.lock"
[TRACE 22:23:59.574] starbase_utils::fs_lock:run  Waiting to acquire lock on directory  lock="/Users/dan/.proto/tools/python/3.11.9/.lock"
[TRACE 22:23:59.575] starbase_utils::fs_lock:run  Acquired lock on directory, writing PID  lock="/Users/dan/.proto/tools/python/3.11.9/.lock" pid=48906
[DEBUG 22:23:59.575] proto_core::tool:run  Installing tool from a pre-built archive  tool="python"
[DEBUG 22:23:59.575] warpgate::client:run  Creating HTTP client
━━━━       Installing Python 3.11.9                                             [DEBUG 22:23:59.783] warpgate::client:run  Created HTTP client
[TRACE 22:23:59.784] warpgate::plugin:run  Calling plugin function download_prebuilt  id="python" plugin="02d55cbf-5ce9-45cc-9620-615c157a2223" input={"context":{"proto_version":"0.34.3","tool_dir":{"path":"/proto/tools/python/3.11.9","virtual_prefix":"/proto","real_prefix":"/Users/dan/.proto"},"version":"3.11.9"},"install_dir":{"path":"/proto/tools/python/3.11.9","virtual_prefix":"/proto","real_prefix":"/Users/dan/.proto"}}
[DEBUG 22:23:59.786] extism::pdk:run  Fetching https://raw.githubusercontent.com/moonrepo/python-plugin/master/releases.json  plugin="02d55cbf-5ce9-45cc-9620-615c157a2223"
━━━━━      Installing Python 3.11.9                                             [TRACE 22:23:59.896] starbase_utils::fs_lock:run  Unlocking directory  dir="/Users/dan/.proto/tools/python/3.11.9"
[TRACE 22:23:59.896] starbase_utils::fs:run  Removing file  file="/Users/dan/.proto/tools/python/3.11.9/.lock"
[TRACE 22:23:59.899] starbase::app  Running shutdown phase with 1 systems
Error: plugin::call_func::failed

  × No pre-built available for version 3.11.9 (via https://github.com/
  │ indygreg/python-build-standalone)! Try installing another version for the
  │ time being.

The prebuilts don't have 3.11.9 yet (at least I don't see it), only 3.11.8, so this error is correct.

Yes, the error is correct. It's still not-so-great a user experience when nearly every 3.X version fails. Maybe proto should ignore or merely warn on unavailable releases?
> proto run python 3.11
Error: plugin::call_func::failed

  × No pre-built available for version 3.11.9 (via https://github.com/
  │ indygreg/python-build-standalone)! Try installing another version for the
  │ time being.

> proto run python 3.10
Error: plugin::call_func::failed

  × No pre-built available for version 3.10.14 (via https://github.com/
  │ indygreg/python-build-standalone)! Try installing another version for the
  │ time being.

> proto run python 3.9
Error: plugin::call_func::failed

  × No pre-built available for version 3.9.19 (via https://github.com/
  │ indygreg/python-build-standalone)! Try installing another version for the
  │ time being.

> proto run python 3.8
Error: plugin::call_func::failed

  × No pre-built available for version 3.8.19 (via https://github.com/
  │ indygreg/python-build-standalone)! Try installing another version for the
  │ time being.

The version resolution is isolated from the download, so having the download somehow downlevel the version isn't possible, and would just result in some weirdness. I'm not sure what the best solution is here. Should probably just figure out python build.


Update dependencies

Move simple-json-fetch to dep (missing when install from boilerplate)
Allow peerDep whatwg-fetch >= 0.9.0 (React is using 0.11.0, no reason to use older one)
Remove react-jsx-.... (not needed anymore)
Added missing babel-eslint to opPeerDeps
Move remark* from devDep to opPeerDeps
Remove hightlight.js from opPeerDeps (became a dep of remark-highlight.js)

Current coverage is 67.57%

Merging #324 into next will increase coverage by +0.24% as of 1c20e28

@@             next    #324   diff @@
=====================================
  Files          42      43     +1
  Stmts         548     552     +4
  Branches        0       0
  Methods
=====================================
+ Hit           369     373     +4
  Partial         0       0
  Missed        179     179

Review entire Coverage Diff as of 1c20e28

Powered by Codecov. Updated on successful CI builds.

Well. There is some missing deps: remark and remark-*

The problem is: from our project it's (from what I know) impossible to test deps that should be in deps, because to run test we use devdeps so if a dep is in devdeps instead of deps, we just don't know it.
Anyway, we should be careful and try ourself  from git before cutting a release.

from our project it's (from what I know) impossible to test deps that should be in deps

I am aware of that. I'm  starting a fresh new project using latest commit in next branch.
I'll update this PR with all missing deps that I can find

I updated the PR. Let's hope I didn't break anything.

PR updated


Gramaddict Crashes Terminal When Opening Instagram

What happened:
I successfully install gramaddict as well as adb on both pc and smartphone in as well as configured yaml config file.
However upon opening instagram from within gramaddict the terminal in which the program was running crashes.
What you expected to happen:
expected gramaddict to work as described.
How to reproduce it (as minimally and precisely as possible):
##############################################################################
For more information on parameters, refer to:
https://docs.gramaddict.org/#/configuration?id=configuration-file

Note: be sure to comment out any parameters not used by adding a # in front
AGAIN: YOU DON'T HAVE TO DELETE THE LINE, BUT ONLY COMMENT IT WITH A #!
##############################################################################
General Configuration
##############################################################################
username: 'redacted' # you have to put your IG name here!
device: put_your_device_id_there # 'adb devices' in the console to know it.  It's needed only if you have more than 1 device connected
app-id: com.instagram.android
use-cloned-app: false
screen-sleep: true
screen-record: false
speed-multiplier: 1
debug: false
close-apps: false
disable-block-detection: false
disable-filters: false
dont-type: false
scrape-to-file: scraped.txt
#total-crashes-limit: 5
##############################################################################
Actions
##############################################################################
Interaction
blogger-followers: [ 'kyotopill', 'dazexgod' ]
#blogger-following: [ username1, username2 ]
blogger-post-likers: [ 'kyotopill', 'dazexgod' ]
blogger: [ 'kyotopill', 'dazexgod' ]
hashtag-likers-top: [ 'drumandbass', 'dnb' ]
#hashtag-likers-recent: [ hashtag1, hashtag2 ]
#hashtag-posts-top: [ hashtag1, hashtag2 ]
#hashtag-posts-recent: [ hashtag1, hashtag2 ]
#place-posts-top: [ place1, place2 ]
#place-posts-recent: [ place1, place2 ]
#place-likers-top: [ place1, place2 ]
#place-posts-recent: [ place1, place2 ]
#place-likers-top: [ place1, place2 ]
#place-likers-recent: [ place1, place2 ]
#interact-from-file: [usernames1.txt 10-15, usernames2.txt 3]
#posts-from-file: posts.txt
feed: 2-5 # is the number of likes you will give in feed
Special modifier for jobs and sources
#shuffle-jobs: true
#truncate-sources: 2-5
#delete-interacted-users: true
watch-video-time: 15-35
watch-photo-time: 3-4
blogger-post-limits: 2 this feature is not implemented at this moment
#can-reinteract-after: -1 # -1 or commented for disable this feature, otherwise the amount of hours that have to pass from the last interaction
pre-script: pre_script_path_here
post-script: post_script_path_here
Unfollow
unfollow: 10-20
unfollow-any: 10-20
unfollow-non-followers: 10-20
unfollow-any-non-followers: 10-20
unfollow-any-followers: 10-20
unfollow-from-file: [usernames1.txt 7-15, usernames2.txt 6]
sort-followers-newest-to-oldest: false
Post Processing
analytics: false # no more supported
telegram-reports: false # for using telegram-reports you have also to configure telegram.yml in your account folder
##############################################################################
Source Limits
##############################################################################
interactions-count: 30-40
likes-count: 1-2
likes-percentage: 100
stories-count: 1-2
stories-percentage: 30-40
carousel-count: 2-3
stories-percentage: 30-40
carousel-count: 2-3
carousel-percentage: 60-70
max-comments-pro-user: 1-2
comment-percentage: 30-40
pm-percentage: 30-40
interact-percentage: 30-40
follow-percentage: 30-40
follow-limit: 50
skipped-list-limit: 10-15
skipped-posts-limit: 5
fling-when-skipped: 0
min-following: 100
##############################################################################
Total Limits Per Session
##############################################################################
total-likes-limit: 150
total-follows-limit: 50
total-unfollows-limit: 50
total-watches-limit: 150
total-successful-interactions-limit: 150
total-interactions-limit: 300
total-comments-limit: 5
total-pm-limit: 5
total-scraped-limit: 100
##############################################################################
Ending Session Conditions
##############################################################################
end-if-likes-limit-reached: true
end-if-follows-limit-reached: false
end-if-watches-limit-reached: false
end-if-comments-limit-reached: false
end-if-pm-limit-reached: false
##############################################################################
Scheduling
##############################################################################
#working-hours: [1.50-16.40, 18.15-22.46]
#time-delta: 2-3
repeat: 280-320
total-sessions: -1 # -1 or commented for infinite sessions
Anything else we need to know?:
I really have no idea why this is occurring. Has this happened to anyone else before?
Environment:

GramAddict version: 3.1.5
Device Model/Emulator Type: Samsung Galaxy S20
Android Version: 12
Instagram Version: latest
Discord Ticket ID:           *(if submitting crash log)

Relevant Logs:

*Note: if you have a crash log, please do not attach the archive here as this is not a secure place to upload the sensitive data inside. Please open a ticket in Discord in #lobby and provide the ticket ID here.

your problem doesn't look like a bot problem, and in any case, nothing has been provided to this report, except a part of the config


Not Incrementing Correctly

Just did a fresh install on Ubuntu 20.04.
The first client had the .2 IP address, however when I created a second client it also had .2
Third, and Forth clients got .3 and .4
Seems to be an issue during setup.

Sorry, but can't reproduce this:
# cat first.conf | grep Address
Address = <IP_ADDRESS>/24
# cat second.conf | grep Address
Address = <IP_ADDRESS>/24
# cat third.conf | grep Address
Address = <IP_ADDRESS>/24

I have also reviewed the offending code and can't find anything wrong.


Pretrained Transformer weights

May I ask how did you get the pre-training parameters? Because I tried to make some modifications inside the backbone network, but it is hard to learn well, guess it is not the pre-training parameters.

Hi, we use pre-trained weight from MAE.


Change log files for support + mongo services during install hook for snap

Currently, to set the log files locations in services for the snap, we apply sed at build time to use /var/snap/edgex/common/..., but this assumes that $SNAP_COMMON is indeed the same as /var/snap/edgex/common which it may not always be. For instance on Arch Linux it is somewhere else. A better strategy is to change this during the install hook, where we have the full path that $SNAP_COMMON will expand to.
See for example

mongo: https://github.com/edgexfoundry/edgex-go/blob/california/snap/snapcraft.yaml#L312
core-command: https://github.com/edgexfoundry/edgex-go/blob/california/snap/snapcraft.yaml#L356
etc.

Note that actually we don't need to handle the mongo shell script during the install hook, as it's a shell script and will pick up the value of the environment variable dynamically at runtime, unlike the config files which don't do any such expansion.
We should however replace the hard-coded /var/snap/edgexfoundry/common with $SNAP_COMMON.

Note that this was also fixed with https://github.com/edgexfoundry/edgex-go/pull/615


Signing key is unavailable from rabbitmq.com

Currently Cloudflare says, the rabbitmq-release-signing-key.asc - which is mentioned in the documentation - is unavailable with the reason "Origin is unreachable". Other mirrors and the website are working, only the signing key is unavailable.
Url: https://www.rabbitmq.com/rabbitmq-release-signing-key.asc
Screenshot from cloudflare: https://i.imgur.com/w1nGEM7.png
The key is unavailable at least 1.5 hours so I opened this ticket because that problem doesn't looks temporary for me.

Hello, we are aware of this issue and are working on a fix. Please see this.

thanks for quick answer!


turtleBot3 Waffle-Pi won't move when setting a 2D Nav Goal

ISSUE TEMPLATE ver. 0.4.0

Which TurtleBot3 platform do you use?

[ ] Burger
[ ] Waffle
[x] Waffle Pi

Which ROS is working with TurtleBot3?

[ ] ROS 1 Kinetic Kame
[ ] ROS 1 Melodic Morenia
[x] ROS 1 Noetic Ninjemys
[ ] ROS 2 Dashing Diademata
[ ] ROS 2 Eloquent Elusor
[ ] ROS 2 Foxy Fitzroy
[ ] etc (Please specify your ROS Version here)

Which SBC(Single Board Computer) is working on TurtleBot3?

[ ] Intel Joule 570x
[ ] Raspberry Pi 3B+
[x] Raspberry Pi 4 (4GB RAM Model)
[ ] etc (Please specify your SBC here)

Which OS you installed on SBC?

[x] Raspbian distributed by ROBOTIS (https://www.robotis.com/service/download.php?no=2066)
[ ] Ubuntu MATE (16.04/18.04/20.04)
[ ] Ubuntu preinstalled server (18.04/20.04)
[ ] etc (Please specify your OS here)

Which OS you installed on Remote PC?

[ ] Ubuntu 16.04 LTS (Xenial Xerus)
[ ] Ubuntu 18.04 LTS (Bionic Beaver)
[x] Ubuntu 20.04 LTS (Focal Fossa)
[ ] Windows 10
[ ] MAC OS X (Specify version)
[ ] etc (Please specify your OS here)

Specify the software and firmware version(Can be found from Bringup messages)

Software version: ?
Firmware version: ?

Specify the commands or instructions to reproduce the issue.
$ roslaunch turtlebot3_navigation turtlebot3_navigation.launch map_file:=$HOME/map.yaml

Copy and Paste the error messages on terminal.
(NO ERROR) - Simply the bot won't move or do anything when I set the 2D Nav Goal on rviz

Please describe the issue in detail.

I followed the Robotis Guide, we installed and configured the Remote PC, the SBC and the OpenCR, we eventually got the robot moving using teleop package (with keyboard) and also with the remote controller. We also achived to make a little office map with SLAM, when we start turtlebot3_navigation the office map appears, the robot appears, we set the position of the robot and he almost-automatically gets the exact position- helped by a little manual moving with teleop-  but finally, when we set the 2D Nav Goal with the red arrow, it doesn't do anything.
Besides, the map we see in rviz navigation hasn't got any colors, just the black of the walls, but not the blue/red/green of the inflation and that stuff, nor the dynamic window square. We need help, please.

Thank you
Already checked:
·  TurtleBot's battery is at good level
· Teleop process is killed before executing navigation
·  Due to Internal Proxy denying exit to the Internet, we can't sync times between RB4 and RemotePC using NTP servers so we tried to manually sync clocks using date -s , we achieved to get rid of "Costmap2D Transform Timeout" error but another one appeared instead: "Timed out waiting for transform from base_footprint to map to become available before running costmap, tf error: canTransform: target_frame map does not exist"
-- COMMANDS EXECUTED --

roscore (SBC)
bringup robot.launch (SBC)
bringup remote.launch (Remote PC)
TURTLEBOT3_MODEL variable (waffle_pi) added to the ~/.bashrc file
turtlebot3_slam (makes a good map, moving the tb3 with teleop or the bluetooth controller)
rosrun map_save
roslaunch turtlebot3_navigation navigation (with the map saved)
Setted aprox. Location in Rviz with the green arrow
A little manual move with the teleop so AMCL quickly does the magic and sets tb3 at good position in the map
Setted the /map option on Rviz display left column to get rid of Map Yellow Warning
Setted a 2D Nav Goal with red arrow
Checked that nothing is done
Checked that no /cmd_vel is published with rostopic
Noticed that no colours appear on the 2D Map visualization on Rviz, only the Waffle Pi icon and its green detection points and black walls and obstacles, but no colour information about inflation values and that stuff.

@ROBOTIS-Will @kaym9n @robotpilot could anyone help me? Thank you

@ROBOTIS-Will .....

Hi @jesusramondovale
I'm sorry about the delayed response.
Are there any error in topics in RViz window?
I'm not sure what you mean by no colors on Rviz, but if the costmap is not appeared on your RViz window, I'd recommend remove the navigation package and install it again.
Any screen captured image would be very helpful to understand your symptom.
Thanks!

Hi @ROBOTIS-Will . Thank you for your response, it's now working fine. The only problem was about sync times between clocks of the external PC's CPU and tb3-Raspberry's CPU. We couldn't use NTP because of the f*ckn enterprise proxy but we eventually achieved the sync manually and everything just started working like it has to.
We are now migrating all to ROS2 and making a "mono-machine" system, where all nodes are 'hosted' under the same CPU (Raspi) to make them completely autonomous --and to avoid sync times also xd
Again, thank you for your response, and I'll close the issue


Add starters for fabric8/camel etc spring-boot-starters

to the forge spring-boot project-new command so we have ours included as well.

examples off the top of my head:

https://github.com/fabric8io/spring-cloud-kubernetes for spring-cloud-kubernetes + zipkin + netflix
https://github.com/fabric8io/kubeflix
CXF - though not sure the starter is ready https://issues.apache.org/jira/browse/CXF-6834 https://github.com/spring-projects/spring-boot/pull/5659


feat: basic point fee explanation

Changes proposed in this pull request

Made basis point fee explanation on Admin UI adapt to user input

Context

fixes #2089

Input = 200

input = 3

No input

Checklist

[x] Related issues linked using fixes #number
[ ] Tests added/updated
[ ] Documentation added
[ ] Make sure that all checks pass
[ ] Postman collection updated

Hi @Shubham2503 ! Thank you for contributing! Could you please run pnpm format to fix the formatting issues?

@Shubham2503 thanks so much for the contribution. It looks good! I just have a few suggestions and fixes. Please reach out if you have any questions about my feedback.

@sabineschaller, @JoblersTune  thanks for the feedback. I've completed refactoring, it's ready for review now.

Thank you for Contributing to Interledger during Hacktoberfest. If you have any accepted PRs, You can claim your Swag here. Last date to fill up the form is December 10th, 2023. @Shubham2503


Using obsolete record field makes whole record construction expression obsolete

Origial issue: RIDER-25876

Repro as seen on screenshot. Maybe it'll make more sense to highlight only field assignment?

I think this one is tricky. There's no such thing as a "partially available" record, where one N fields are obsolete and M fields are not. If one field is obsolete, the whole thing is, so error recovery marks the whole thing as deprecated. I think the warning could be applied only to the field in question so it doesn't mislead about other fields, but since it's impossible to create a record without an obsolete field I can see why it marks the whole thing.

Doesn't seem like a bug, but I agree with @cartermp .
To me, [<Obsolete;DefaultValue>] on a field sort of makes sense since you can construct the record with providing that field, but [<Obsolete>] on its own does not.


[Task]: Integrate both Level 1 and Level 2 together

Rubric Criteria

[X] Gameplay
[ ] Graphics
[ ] Design
[X] User Experience
[ ] Scripting
[ ] Sound
[ ] Quality
[ ] Process

Briefly, what are you going to work on?
I am going to collaborate with my groupmate in order to combine our two levels together and make sure they make sense for the player.  I will make notes on what works and doesn't work for the player whether it be for collision or if it is fun for a player to do something.
Provide at least one example of a similiar element in another game.
I don't have an example that would show integration of two levels at the moment.
What is needed to implement the task?
Unity 3D objects and Unity Asset store assets.
What is the biggest risk it will not get done?
The biggest risk is having our objects being different sizes and making sure the scalability is correct in a way that makes sense.
How do I know it is ready? (Test case)
When there are 2 levels that can be played through and they are integrated correctly so the player can move around in the play space.

https://sdccd.instructure.com/accounts/81284/external_tools/466346?launch_type=global_navigation


Clarify Save flow in combination with WOPI Client not able to save

We implemented the "good weather" part of the WOPI protocol (Office Online Service) and are missing the error handling part.
Specifically:
When a PutFile call to OOS is executed the WOPI client could be unable to save the document.
How can we:

notify OOS that the WOPI client is unable to save
give the user feedback that saving failed, eg "Sorry, your changes weren't saved. To continue editing this document, please copy your changes and refresh the page".

@mkruitz I apologize for the delay in responding to this issue. I somehow missed it when you filed it earlier this year. I'm not sure what you're asking, though. Can you clarify?
If a WOPI client makes a PutFile request, then the WOPI server can respond with any HTTP code listed in the documentation. That is, the server could return a 401 or 404 to indicate that the user doesn't have permissions to edit the file. Or they could return a 409 to indicate that the file is locked and the PutFile request did not have the correct lock ID. Etc.
How the WOPI client behaves in response to these HTTP codes is dependent on the client.

@tylerbutler No problem.
After retesting the failing scenario we cannot reproduce the results we had in Januari.
Our guess is that the dutch translations are updated / return a better message (eg. "Sorry, your changes weren't saved. To continue editing this document, please copy your changes and refresh the page" in dutch "Uw wijzigingen zijn niet opgeslagen. Kopieer uw wijzigingen en vernieuw de pagina als u dit documentbestand verder wilt bewerken.").