Errno::ENOENT: No such file or directory

I am using FakeFS to capture the output Sprockets compilation. I thought this would be easy, but it hasn't been. The problem I am running into is for some reason FakeFS cannot find the fake file it created –– that is my guess.
Here is the my terminal output:
[2] pry(#<AssetFinder>)> output_dir = Rails.root.join("public/assets")
=> #<FakeFS::Pathname:/Users/newuser/w/citiesense/search/public/assets>
[3] pry(#<AssetFinder>)> output_dir.children
=> [#<FakeFS::Pathname:/Users/newuser/w/citiesense/search/public/assets/sample-a8866ad1c1fd36e33c8b25b41f1cf65b.js+>]
[4] pry(#<AssetFinder>)> manifest.compile(matcher)
Errno::ENOENT: No such file or directory - /Users/newuser/w/citiesense/search/public/assets/sample-a8866ad1c1fd36e33c8b25b41f1cf65b.js+
from /Users/newuser/.rvm/gems/ruby-2.1.5@citiesense_search/gems/fakefs-0.6.7/lib/fakefs/fileutils.rb:188:in `block in mv'

As you can see from line [3], the file seems to be in the file system, but fakefs/fileutils.rb:188 doesn't think so. This is the code that throws that error:
if (target = FileSystem.find(path))
  dest_path = if File.directory?(dest)
                File.join(dest, File.basename(path))
              else
                dest
              end
  if File.directory?(dest_path)
    fail Errno::EEXIST, dest_path unless options[:force]
  elsif File.directory?(File.dirname(dest_path))
    FileSystem.delete(dest_path)
    FileSystem.add(dest_path, target.entry.clone)
    FileSystem.delete(path)
  else
    fail Errno::ENOENT, dest_path unless options[:force]
  end
else
  fail Errno::ENOENT, path
end

Can anyone shed any light on why FileSystem.find is returning nil here?

This seems to be a duplicate of #133. Apparently FileSystem.find has problems with filenames containing a + character.

Hi @volkanunsal,
It seems like this is no longer an issue. I was able to find the file sample-a8866ad1c1fd36e33c8b25b41f1cf65b.js+ using both ruby and ruby under fakefs. I am going to close out this issue since I can't reproduce it and it's old, but please do re-open it if I misunderstood you.
With fakefs:
~/projects/fakefs/.my_tests/test_issue_310 [master|…45]
15:38 $ cat file_with_plus_write.rb
require 'fakefs'

filename = 'sample-a8866ad1c1fd36e33c8b25b41f1cf65b.js+'
File.open(filename, 'w') { |file| file.write("Some content") }
exists = File.exist?(filename)
if exists then
  puts "File exists"
else
  puts "File does not exist"
end

filename = 'a8866ad1c1fd36e33c8b25b41f1cf65b.js+'
exists = File.exist?(filename)
if exists then
  puts "File exists"
else
  puts "File does not exist"
end

~/projects/fakefs/.my_tests/test_issue_310 [master|…45]
15:38 $ ruby file_with_plus_write.rb
File exists
File does not exist
~/projects/fakefs/.my_tests/test_issue_310 [master|…45]
15:38 $

Without fakefs:
~/projects/fakefs/.my_tests/test_issue_310 [master|…45]
15:39 $ cat file_with_plus_write.rb
#require 'fakefs'

filename = 'sample-a8866ad1c1fd36e33c8b25b41f1cf65b.js+'
File.open(filename, 'w') { |file| file.write("Some content") }
exists = File.exist?(filename)
if exists then
  puts "File exists"
else
  puts "File does not exist"
end

filename = 'a8866ad1c1fd36e33c8b25b41f1cf65b.js+'
exists = File.exist?(filename)
if exists then
  puts "File exists"
else
  puts "File does not exist"
end

~/projects/fakefs/.my_tests/test_issue_310 [master|…45]
15:39 $ ruby file_with_plus_write.rb
File exists
File does not exist
~/projects/fakefs/.my_tests/test_issue_310 [master|…46]
15:39 $


Allow adding arbitrary entries to application-info

Pyctuator should allow adding arbitrary entries to the /pyctuator/info section.
See example in https://github.com/SolarEdgeTech/pyctuator/issues/50#issuecomment-892532937

Closing this - re-opened #50 instead (this is duplicate)


Agreggate function (size) not working properly after filter is applied.

There are list of objects
{
"list": [
{
"value": 1,
"present": "yes"
},
{
"value": 2,
"present": "no"
},
{
"value": 3,
"present": "yes"
}
]
}
The path<EMAIL_ADDRESS>== 'yes')].value.size() gives me wrong result.
Expected: 2
Actual: [null, null]
Looks like rather it calculate the size of the list, it calculate individuals elements inside list and since there is no string processing, it is returning null for each element, which is not expected.

More or less a duplicate of #272

Duplicate (or related to) #272


[SPARK-40620] [CORE] Simplify make offers

What changes were proposed in this pull request?
WorkerOffer build in CoarseGrainedSchedulerBackend is repeated two different places with exact same parameters. We can simplify, deduplicate and increase readability by moving that to a private function
Why are the changes needed?
Code deduplication and increase readability.
Does this PR introduce any user-facing change?
No
How was this patch tested?
Local build and test

If we ever wish to tackle this, will that make more sense to adopt Builder pattern that have every place of new WorkerOffer to go through such buildWorkerOffer?
I found 80+ place that use new WorkerOffer and they can be converted to WorkerOffer.Builder().addExecutorId().addExecutorData().addHost().....

Can one of the admins verify this patch?

If we ever wish to tackle this, will that make more sense to adopt Builder pattern that have every place of new WorkerOffer to go through such buildWorkerOffer?
I found 80+ place that use new WorkerOffer and they can be converted to WorkerOffer.Builder().addExecutorId().addExecutorData().addHost().....
Seems to me that buildWorkerOffer in this PR is more or less trying to go to Builder pattern.

These 80+ are Unit tests aren't they? In reality WorkerOffer only used handful of times as part of a SchedulerBackend and is not part of user facing API, so not sure how Builder pattern will help. This PR is just to remove/replace duplicated code with more readable one as many developers read these codes and when one see this types of dups we start wondering what is the diff.? and only to find out there is none! :) But already energy and time is spent to find this! So, IMHO this PR makes the code more clean, cut and readable.

If we ever wish to tackle this, will that make more sense to adopt Builder pattern that have every place of new WorkerOffer to go through such buildWorkerOffer?
I found 80+ place that use new WorkerOffer and they can be converted to WorkerOffer.Builder().addExecutorId().addExecutorData().addHost().....
Seems to me that buildWorkerOffer in this PR is more or less trying to go to Builder pattern.

These 80+ are Unit tests aren't they? In reality WorkerOffer only used handful of times as part of a SchedulerBackend and is not part of user facing API, so not sure how Builder pattern will help. This PR is just to remove/replace duplicated code with more readable one as many developers read these codes and when one see this types of dups we start wondering what is the diff.? and only to find out there is none! :) But already energy and time is spent to find this! So, IMHO this PR makes the code more clean, cut and readable.

I agree that this PR is useful. I was just thinking that if we can make it help other places. Let's see if other people in community has an opinion.

@srowen please review

Merged to master


Multi Target

Is there away to incorporate the number of targets or at least indicate the number of targets in range?

Not in a macro.
You could use WeakAutas or TelkMeWhen to indicate maybe but that is guncyionality outside what GSE’s area.
Timothy Minahan
M 0406 413 680  |  E<EMAIL_ADDRESS>
On 28 Nov 2018, at 5:57 am, woodgray<EMAIL_ADDRESS>wrote:
Is there away to incorporate the number of targets or at least indicate the number of targets in range?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.


Fix build on latest nightly rust (6 Sep 2022)

Fixes #4

simd_* is used in place of lanes_*
constants that can no longer be has been moved to  the appropriate
function.

Sorry for the fumble, didn't notice those vim .swp files. I've removed them from the commit now so it's only the relevant changes.


add more sophisticated algorithm for digital rain

Really cool, hey @pintosum can you change the branch to main? I think dev is 2 commits behind and I havent worked on this repo for a long time

Forgot to mention that it requires utf-8 encoding module installed for Neovim's LuaJIT, namely this: https://github.com/uga-rosa/utf8.nvim. Just for generating some neat Japanese symbols.

@tamton-aquib Well, it's ready to go

Really cool ❤
The offset at the beginning looks a bit weird but its much much better than what was before.
Thanks, by the way


Compare 24Oct_Master Requirement Matrix - APHL_Flexion with Roadmap/completed stories (Gap analysis)

Spike Goal
Identify complete MVP requirements and outline path to completion for outstanding MVP requirements.
Timebox
OCT 26 EOD
Notes
MVP spreadsheet can be found here.
Roadmap can be found here.

Yesterday, I have sent out the last set of requirements to be reviewed by 11/2. This is separate from the concurrent Development status tracking also to be finished by 11/2.


cmd/vet: warn about assembly functions using fully qualified name

See golang.org/cl/2588 for a full description.
cc @minux

only warn if GO_ARGS is present or if argument size > 0?
additionally, i think cmd/vet should warn if the frame size > 0 but
no NO_LOCAL_POINTERS in the body.


fix Disable string dictionary filtering when predicate express is not slot

Proposed changes
follow up https://github.com/apache/doris/pull/35335/files

run buildall

run buildall


Long press for Xiaomi Mija Button

This change implements a hold/long press action for the button and provides the corresponding device triggers for home assistant.

Codecov Report

Merging #783 (b60697f) into dev (6c48099) will decrease coverage by 0.18%.
The diff coverage is 31.25%.

@@            Coverage Diff             @@
##              dev     #783      +/-   ##
==========================================
- Coverage   83.08%   82.90%   -0.19%
==========================================
  Files         176      176
  Lines        3956     3971      +15
==========================================
+ Hits         3287     3292       +5
- Misses        669      679      +10

Impacted Files
Coverage Δ

zhaquirks/xiaomi/mija/sensor_switch.py
58.69% <31.25%> (-12.28%)
:arrow_down:

Continue to review full report at Codecov.

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

Pull Request Test Coverage Report for Build 568430368

5 of 16 (31.25%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.2%) to 82.901%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

zhaquirks/xiaomi/mija/sensor_switch.py
5
16
31.25%

Totals

Change from base Build 515356724:
-0.2%

Covered Lines:
3292

Relevant Lines:
3971

💛  - Coveralls


Switch workspace setting file from JSON to HJSON

HJSON is a better format for JSON files that are meant to be edited/used by humans. Let's use it instead of JSON.

Yaml was also suggested in #4851, which has an explanation of why we're using JSON.

HJSON is not YAML. It's fully backward compatible with JSON.

Hjson is a syntax extension to JSON. It's NOT a proposal to replace JSON or to incorporate it into the JSON spec itself. It's intended to be used like a user interface for humans, to read and edit before passing the JSON data to the machine.

I know, I just mean that YAML has also been suggested, and the arguments are the same.

I'm not sure the same arguments against YAML really apply here.

There is a native parser built into the runtime and we care deeply about parsing speed. For example, we parse configuration files during startup.

There is an HJSON parser npm package you can use. Optimization is usually the last reason for a specific solution, I don't think parsing HJSON should prove much more costly, if at all, than parsing JSON.

json structures are easily described using TypeScript, which is what we write 99% of the tool in. It is "natural" to use json in TypeScript.

So are hjson structures.

Code itself already has great json tooling (schema, IntelliSense, formatting). This does not mean we won't improve yaml support, I'm just pointing out we've already got this in place.

I believe the same tooling should work for hjson as well almost out of the box.

Suggesting to support both yaml and json is pragmatic but also means two code paths (bugs, bloat) and two sets of docs to maintain long term, something we would like to avoid.

I'm not suggesting that. Just support hjson (which is a superset of json).

FYI @chrisdias

Thanks for tagging @chrisdias . Could we reopen this issue until he responds?

@ripper234 thanks for the suggestion!
We discussed and have decided to stay with JSON, despite the limitations. Many of the same reasons apply as in #4851. Of utmost importance is parsing speed because we read a lot of json on startup, and the runtime has a native json parser built in - no dependencies, no module loading.  Another point that was brought up in the discussion was that if anyone wants to interop with us then they have to adopt HJSON which is a speed bump we don't want to introduce.
We recognize that the readability and editing of JSON can be challenging at times, but as you can see with the work we've been doing with settings, we're trying to improve the user experience while keeping the underlying format.
Thanks again for the suggestion, it drove a good debate, please keep them coming.

Thanks for the thorough discussion & answer 👍


bug: rank card will load weird

Describe the bug in as much detail as possible:
If you set someone's level to 1,000,000 or above the image will load but the xp bar will be invisible, well no one can even reach that level but eh who cares
To Reproduce:

set someone level to 1,000,000 or above using the setlevel command
xp bar wont load

Expected behavior:
load normally
Screenshots:

Additional context:
the link will be https://vacefron.nl/api/rankcard?username=blox&avatar=https://cdn.discordapp.com/avatars/748529326621982732/d617c84d8a2f1b95226c14abdd30767f.png?size=256&level=2.1161257e+08&rank=1&currentxp=4.219285504e+10&nextlevelxp=42322514100&previouslevelxp=0&custombg=https://xbox-store-checker.com/assets/upload/game/2020/06/optimize/9n5qmw0x81jm-background.jpg&xpcolor=<nil>
so its the &level= part thing

dont mind the shitty screenshot : )

dont mind the shitty screenshot : )

not a bug, level is way too high.

not a bug, level is way too high.


App is stuck in loading loop

Description
The app is stuck in a loading loop when starting development on the iOS simulator.
Expected Behavior
The App should only reload, when a change occured.
Observed Behavior
I start the development with yarn start und app constantly reloads although there were no changes to the code.
Environment
Please run these commands in the project folder and fill in their results:

npm ls react-native-scripts<EMAIL_ADDRESS>npm ls react-native<EMAIL_ADDRESS>npm ls expo<EMAIL_ADDRESS>node -v: v8.9.1
npm -v: 5.5.1
yarn --version: 1.3.2
watchman version: 4.9.0

Also specify:

Operating system: Mac OS X 10.12.6
Phone/emulator/simulator & version: Simulator, iOS 11.2, iPad (12.9 inch)

Reproducible Demo
$ create-react-native-app rn-test --package-manager=yarn
$ cd rn-test
$ yarn start

wait until the simulator is launched, see how the App constantly reloads

Same is happening to me. Any news here?

Seen a similar thing on occasion, found hitting CMD+R fixes the loop when it occurs but doesn't resolve the underlying issue.


CASSANDRA-19011 Fix SAI intersection queries

Fix comparison in PostingListRangeIterator for updating skip token
Fix binary search in KeyLookup.clusteredSeekToKey
Added new on-disk component for storing partition sizes by partition ID

@maedhroz @michaelsembwever I have pushed a commit with the review changes and am kicking off new CI runs for 5.0 and trunk


Work around user and group ID issues in Docker.

This merges the two set_hosts.py scripts into a new set_environment.py script that works for both the worker and girder roles.  This script sets up some /etc/hosts values (as before), can set the worker tmp_root if a command line flag is specified, can adjust the specified user's UID and GID, and adds the specified user to the host's docker group.  If the UID or GID of the user changes, all files are changed appropriately and the ~/.ansible directory is removed (somehow it remained stuck to the old UID).
The docker scripts have been modified to run the appropriate commands with the new groups, so the docker containers no longer need to be restarted to pick up the group changes.
This has been tested with a system with different UID, GID, and docker GID.  It would probably be good to test it with a system with a conflicting UID or GID.

FWIW, using gosu could help here.
Here is what we have been doing in dockcross:

https://github.com/dockcross/dockcross/blob/da5aebb14f7b3df5093604ecc45db34f42a8dac4/imagefiles/entrypoint.sh#L19-L51
https://github.com/dockcross/dockcross/blob/master/imagefiles/sudo.sh

cc: @thewtex

gosu: https://github.com/tianon/gosu

I've considered refactoring this to use chroot (of gosu), but it is working as is for our purposes, and I'd prefer to push that to a later PR.

This has been confirmed working in the field.

I'd love to get this tested and merged in (ping @jbeezley, @zachmullen, and @cdeepakroy).
As a way to show it is working, you can create a Vagrantbox using a stock Ubuntu 16.04 image.  Log in and create a new user.  Install docker and git clone this branch.  Make that user a member of the docker group.  Log in as the new user.  Run python docker_deploy.py start --latest --cli-test in the ansible directory.  This should result in success and have files in ~/.histomicstk that are owned by the new user (not UID 1001).


Update pyupgrade to py38-plus

xref: #6244

Was hoping it would be a little more exciting than this... Merging once all is green.


[BUG] offload optmizer states in zero3

Describe the bug
https://github.com/microsoft/DeepSpeed/blob/master/deepspeed/runtime/engine.py#L3736  In offloading states of zero3 engine, the assertion  'self.zero_offload_param()' return a config class but not bool, why check it as not?
'assert not self.zero_offload_param()' will always raise an error when the ds_config set as:
"offload_optimizer": {
"device": "none"
}

Good catch, thank you @Hanqer!
As long as I check the behaviors of DeepSpeed engine, it returns None when offload_param is not given. We need to cover the case the device for offloading is none. The same goes for offloading of optimizer states.
I submitted #6855 to address this issue. I would appreciate it if you could give us any feedback.

Closing as #6855 resolved this.


Unity WebGL support

Question
Hi, I wanted to use PDFToImage to view Pdfs in Unity. That works great but when I build for WebGL I get "DLLNotFoundException: unable to load DLL 'pdfium'".
Am I missing something? Would it be possible to add WebGL support?
I saw that there are pdfium builds for WASM but I am not sure how I could use them in combination with PDFToImage.

Hi @Honk5000,
thanks for your question! Unfortunately, I don't know much about Unity web deployment. We would need two native libraries for this to work: SkiaSharp and pdfium.
What would be needed for the web build? Maybe a wasm file? If you have knowledge about that, please let me know. Right now I am searching the Unity documentation for any hints on how to include native libraries.

Hi @sungaila,
thank you for your fast reply. It is unfortunate that Unity has these weird version requirements for Emscripten. I tried all day to find a solution but in the end I got another asset from the Unity Asset Store that could rasterise pdfs to images: pdf renderer
They also use pdfium and it looks like they use a JavaScript implementation of the library when using WebGL.
Thank you again for your help and time

Glad you found an alternative and sorry I couldn't help. If you find out how the WebGL integration works, please let me know.


Added schema generation for rust services and github action

Can be closed, as @nk-coding implemented the extra conversion step :)

As per @legendofa


Reimplement page layout and data update logic in Svelte

We’ll need to reimplement the whole page layout and data update logic in the Svelte app. This is probably a non trivial project that will take time to get right.

Moved to its own milestone


Update env_logger to 0.10 to fix cargo audit warning

Cargo audit is a tool that audits your dependencies for crates with security vulnerabilities reported to the RustSec Advisory Database.
Running cargo audit before resulted in:
Scanning Cargo.lock for vulnerabilities (58 crate dependencies)
Version:   0.2.14
Warning:   unsound
Title:     Potential unaligned read
Date:      2021-07-04
URL:       https://rustsec.org/advisories/RUSTSEC-2021-0145
Dependency tree:
atty 0.2.14
└── env_logger 0.9.3
    └── mdns-sd 0.8.0

warning: 1 allowed warning found

Updating env_logger to 0.10 fixes this and it doesn't introduce any breaking changes.

Ah, apparently 1.63 is required, unless raising MSRV, this cannot be done.

Ah, apparently 1.63 is required, unless raising MSRV, this cannot be done.

Sure, please raise MSRV to 1.63.  (It's surprising that env_logger would bring in rustix, luckily it's only used in tests).

MSRV of the crate (excluding dev depends) is actually 1.60, not 1.61 (and with dev its 1.63). This has been found using cargo-msrv (running cargo msrv returns 1.60 and cargo msrv -- cargo t returns 1.63 (minimum for env-logger)).
I've also added the rust-version field to the Cargo.toml to restrict the msrv (which also shows up on the crates.io site nicely).

Sorry, for second thought, I think it is better to remove the dev-dependency of env_logger.  It is actually only used in examples/ .  I think we don't really need it and a typical Rust user can always enable logging output using their favorite logger. Does it make sense?


Fatal error when exiting LibGDX game after graphic driver update

I installed new drivers for my AMD Radeon HD 69** card. After that, I get some strange exception whenever I exit a LibGDX:
A fatal error has been detected by the Java Runtime Environment:
EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000007fee145d6c4, pid=5876, tid=2100
JRE version: Java(TM) SE Runtime Environment (8.0_05-b13) (build 1.8.0_05-b13)
Java VM: Java HotSpot(TM) 64-Bit Server VM (25.5-b02 mixed mode windows-amd64 compressed oops)
Problematic frame:
C  [OPENGL32.dll+0xdd6c4]

Looks like a driver issue. I'm afraid we can't do anything about that.


error

python passgen.py -o outputFile.txt smith
Traceback (most recent call last):
File "passgen.py", line 5, in
import pyperclip
ImportError: No module named pyperclip

@TigerMax007 - did you install the required packages?


Online Dictionary

Online dictionary using HTML, CSS, JS and bootstrap.

Expected behavior
You can search for any word you will get the meaning.

Screenshots (optional)

Additional context (optional )
Please assign me this task under GSSOC'23

@MohitGupta121
Can you review it and give your feedback


fix radius calculation

Closes #184

There are some tests in test_cga.py that are marked xfail because of this bug. Can you remove the marker?

Please clarify which marker

Markers that mention the issue number you're fixing, like
https://github.com/pygae/clifford/blob/67ea8ae7b7b8004c4c8322949918d96b00e87fa7/clifford/test/test_cga.py#L84

Thanks!


nextImageExportOptimizer still exists after setting of custom folder

Hello! First of all, thank a lot for your package. I use it, and it's wonderful. However, when I set the custom image folder the next-image-export-optimizer continue to create nextImageExportOptimizer folder aside my optimized folder. My config is:
images: {
    loader: "custom",
  },
  transpilePackages: ["next-image-export-optimizer"],
  env: {
    nextImageExportOptimizer_imageFolderPath: "public/images",
    nextImageExportOptimizer_exportFolderPath: "out",
    nextImageExportOptimizer_quality: 85,
    nextImageExportOptimizer_storePicturesInWEBP: true,
    nextImageExportOptimizer_exportFolderName: "optimized",
  },

And I see two folder after export nextImageExportOptimizer and optimized. I think it's too much. Can the package doesn't create a nextImageExportOptimizer folder aside with custom folder?

Hi @rtatarinov,
I just re-tested the behavior of the nextImageExportOptimizer_exportFolderName variable and it does not create folders with the old name but it also does not delete already created folders with the previous name as expected. Maybe delete the old folders and they should not be generated again.

Yes, thank you


Improve error messages

I work in a project with some specific rust-toolchain, currently: nightly-2020-08-13.
When I tried to use flowistry, but it failed with an unhelpful error message of some build error.
It would be nice to have some more informative error message, specially in the case of a system configuration issue.
Following I added some more details of my issue.
After investigating the command line tool, I found that it was not finding librustc-driver-....
I "fixed" this issue adding the lib path to ldconfig and fter that I got this message from the command line tool:
error[E0514]: found crate `std` compiled by an incompatible version of rustc
  |
  = help: please recompile that crate using this compiler (rustc 1.57.0-nightly (aa8f2d432 2021-09-18))
  = note: the following crate versions were found:
          crate `std` compiled by rustc 1.47.0-nightly (576d27c5a 2020-08-12): /home/user/.rustup/toolchains/nightly-2020-08-13-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-afd4b9aba051f3ad.rlib

error: aborting due to previous error

During all this process the error message in VSCode was always the same of some build error.

Thanks for the bug report @janosimas! Can you tell me what the error message was?

Also if you can reproduce the bug, the "Report bug" button will post an issue containing logs with a lot more information about what happened.

Lastly: I just pushed 0.3.10 which should fix your issue with not finding the appropriate libraries.

I checked the bug report and I can see the issue.
The two commands executed do not respect the rust-toolchain file, the toolchain should be nightly-2020-08-13:
$ cargo +nightly-2021-09-19 flowistry -V
$ cargo +nightly-2021-09-19 flowistry backward_slice /home/user/dev/client/src/env.rs 1308 1308

If I try to build with nightly-2021-09-19, I get the same build errors.
When I try to execute:
$ cargo +nightly-2020-08-13 flowistry backward_slice /home/user/dev/client/src/env.rs 1308 1308

I don't get the rust library error but I get a new error:
/home/user/.cargo/bin/cargo-flowistry: error while loading shared libraries: libLLVM-13-rust-1.57.0-nightly.so: cannot open shared object file: No such file or directory

The error in VSCode is Flowistry error: build failed

@janosimas it's actually intended that Flowistry will execute with a different toolchain than was used to compile your project.
Can you try one more time and make sure Flowistry is up-to-date? 0.3.10 just released and should fix your issue.
Also I will try to make the error message more useful.

I'll try it tomorrow and post the result.
In any case, using a different toolchain will fail to build this project.

The message is still a build error, I can see in the log that the correct tooling and dependencies were installed.
The build error is caused by not using the correct toolchain.
I'll not post the full log because of company policies.

Unfortunately, Flowistry has to be built with a specific toolchain, so I can't change it to build with your project's toolchain. Is the build error about something that existed in your project's nightly (1.47) but not the current nightly (1.57)?

I understand the limitation, that's why I just wanted to improve the error message.
"Build error" is a vague and even in fair cases like this, may cause a user to scratch his head without a clue.
The errors are mostly related to old rust syntax that was deprecated.


1st symbol of re-declared will not get diagnosed as a re-declared symbol.

Description:
$title. Follow the below steps to re-produce. Note: this can happen due to the compilation order. However, it's nice to highlight all the re-declared symbols or last declared symbol.
Affected Product Version:
alpha3
OS, DB, other environment details and versions:
n/a
Steps to reproduce:

create a module.
add y.bal with a main() method inside.
add x.bal with a main() method inside.
at this point x.bals main method will get highlighted as a re-declared symbol.
now format code.
after that, y.bals main method will get highlighted as a re-declared symbol (not x.bals main method anymore).

Related Issues:
n/a

I tried this in v3.3.11 and always it shows this error at y.bal


Added electronic arts (EA) :Created file ElectronicArts.md

@draco-malfoy  sorry , it has been rectified now

@all-contributors please add @KiranThomasCherian for documentation


Group Exam Reporting

During feature testing, it was found that group exams were not being reported at all. This was due to the room table not being left joined onto the booking table, which was then being joined onto the exam table. The room table being joined normally doesn't work for group exams, as they do not have a room, they are held in an offsite location. Once this was changed to a left join, this issue was resolved. Future work will be to rework line 117 of the exam_export_list file to look for the group_exam_ind == 1 once group exam creation is resolved.

Changed the TODO to be a proper comparison for group_exam_ind, and pushed it up.
Tested by generating a new report for my local data where my test group exams exist, and making sure that rows were being written without room name fields.


Fix deprecation warning for collections

Resolves this error
flask_nav\__init__.py:49: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
    class ElementRegistry(collections.MutableMapping):

Edit: Fixes #28

The warning is an error in Python 3.10, could someone please merge this and make a new release?
ERROR tests/test_flasknav.py - AttributeError: module 'collections' has no attribute 'MutableMapping'

@shepherdjay I just noticed you also need to change the import or the module won't work:
diff --git a/flask_nav/__init__.py b/flask_nav/__init__.py
index 7c25dfa..5826b9e 100644
--- a/flask_nav/__init__.py
+++ b/flask_nav/__init__.py
@@ -1,4 +1,4 @@
-import collections
+import collections.abc
 from importlib import import_module
 import re

@@ -46,7 +46,7 @@ class NavbarRenderingError(Exception):
     pass

-class ElementRegistry(collections.MutableMapping):
+class ElementRegistry(collections.abc.MutableMapping):
     def __init__(self):
         self._elems = {}

@sbraz - Updated - sorry did not see your earlier comment been in the middle of a move.

Would it be possible to merge and release a new version? Ran into this issue as well and fixed it in analogous way locally. Would be very nice :).

Yes, please merge this!


ProxyMiddleware encodes characters allowed in path

We have a dollar sign in URL and proxy middleware converts it to %24. Unfortunately, for backend server url with $ and url with %24 are two different urls. It could be fixed by extending safe characters in middleware as it done in url_fix function, but it seems to me that the right way is to make the middleware to use REQUEST_URI/RAW_URI when possible. This way also can fix middleware for cases like the one described in https://github.com/pallets/werkzeug/issues/766.
I can send PR, but since it will require some efforts on making remove_prefix option working correctly and to ensure backward compatibility for public method proxy_to, I'd like to discuss this solution first. If it can be accepted, then I proceed.

Sounds like $ should be in the always_safe set of characters. If you can find the most up-to-date RFC describing URL safe characters, I'd be happy to accept a PR that updates the code accordingly. However, you need to find that reference first.

https://url.spec.whatwg.org/#percent-encoded-bytes
C0 Controls are characters <= 0x1f.
The C0 control percent-encode set are the C0 controls and all code points greater than U+007E (~).
The query percent-encode set is the C0 control percent-encode set and U+0020 SPACE, U+0022 ("), U+0023 (#), U+003C (<), and U+003E (>).
The path percent-encode set is the query percent-encode set and U+003F (?), U+0060 (`), U+007B ({), and U+007D (}).
So list of characters requiring percent-encoding in path segment: "#<>?`{} + control characters with code less than code of space and space itself.
What about REQUEST_URI, wouldn't it be better to keep resulting URL as close as possible to the original one?

I don't know what REQUEST_URI you're referring to, that doesn't appear in the proxy middleware module.

Sorry, I mean, what if instead of PATH_INFO use REQUEST_URI variable, so it would not require to reconstruct url and that url would contain all the same encoded characters as requested by user. If user requested /proxy/$ then proxy will request /$, if user requested /proxy/%24 proxy will send request to /%24.

REQUEST_URI is not standardized in the WSGI environ. It is not generally possible to guarantee it is available or accurate, or even named consistently (some servers set RAW_URI).

According to RFC3986 sub-delims $!&'()*+,;= are valid characters in path, query (included in pchar set), fragment, host and user info and should not be escaped. WHATWG document confirms that, see https://url.spec.whatwg.org/#host-miscellaneous for hosts limitation.
Both RFC and WHATWG allows these characters in host, but current implementation of IPv* addresses and domain names don't utilize them.
Also tested all these delimiters with Live URL Viewer tool, it only fails on host for my browser implementation, but the same happens with ~ already included to always_safe.
I suggest to include all $!&'()*+,;= characters in always_safe. We can ignore issue with host, as url_quote never used to quote host name and % is invalid character in host in last WHATWG document anyway.

Happy to review a PR.


Xiu yan

提交Xiu Yan图标

Why delete other assets?

sorry，i am not good at this
------------------ Original ------------------
From: Crossle Song<EMAIL_ADDRESS>Date: Mon,Feb 24,2020 3:35 PM
To: MixinNetwork/asset-profile<EMAIL_ADDRESS>Cc: 修言<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [MixinNetwork/asset-profile] Xiu yan (#53)

Why delete other assets?

should i try to be right again?

Why delete other assets?

因为不太会弄，我以为只需要提交我的就行了，所以把别的删了，我提交的内容正确吗，可以帮我提交上去吗，还是我要重新弄一下。


TypeError: As of 3.10, the loop parameter was removed from Lock() since it is no longer necessary

Hi mate,
Apologies if your repeating yourself but im honestly getting desperate for help lol. When connecting the attached code to WSS, i get the following error: 'TypeError: As of 3.10, the loop parameter was removed from Lock() since it is no longer necessary' for the below code. More specifically in this para:
 def main():
    event_filter = contract.events.PairCreated.createFilter(fromBlock='latest')
    loop = asyncio.get_event_loop()
    try:
        loop.run_until_complete(
            asyncio.gather(
                log_loop(event_filter,2 )))

    finally:
        loop.close()

I would truly appreciate a review of the code whenever you get a second as im exchausting all options lol.
Let me know if you need more code etc, Cheers

Well I'm not seeing anything related to websockets in that code and the error you're reporting is raised by asyncio.
Can you confirm you have the latest version of websockets installed?

Well I'm not seeing anything related to websockets in that code and the error you're reporting is raised by asyncio.
Can you confirm you have the latest version of websockets installed?

Hi Augustin cheers for the reply, current version is 1.2.1. Im connecting to a node via WS earlier in the code so nothing visible in the attached code.

Probably you're looking at the version of another library because websockets never had a version 1.2.1: https://websockets.readthedocs.io/en/stable/project/changelog.html

I had the same, it went away updating to version 10.1.


Provide software mock

In order to develop and debug software communicating with the Wifi Servo Bridge, a pure software mock should be provided

Implemented in d2d2ac72ed40f72829520866a484b2c484a269ba


Split arc into segments for DXF export

Hi
I recently updated my kerf reference generator script:
https://maker.js.org/playground/?script=https://gist.githubusercontent.com/3kmch/0d7bbf16b193e010f20fee8230c8dd4c/raw/576664ffddf199f9f356ac6bd5cc6f74559f565c/kerf.js
It works perfectly as long as I don't import it into the crappy piece of software which drives the Chinese lasercutter. All the fillets are shown as chamfer.

Is there an easy method of splitting all arcs into segments or a path of segments? I guess this way the lasercutter would have less problems to get them right.
It's bit embarrassing but I'm not able to get rid of the "Font Selector" in the customizer. How can I hardcode that? I'm not a coder. So please don't judge me by my second question and my code structure. ;-)
Thanks, Kurt

Hi Kurt!
Thanks for posting this question, and we welcome coders of all levels 👍
Here's a function that will straighten out those RoundRectangles:
function straightenRoundRect(roundRect, facetSize) {

    //replace an arc (path) with a series of lines (model)
    function corner(id) {

        //get the arc and remove it from the roundRect
        var arc = roundRect.paths[id];
        delete roundRect.paths[id];

        //get the points along the arc, of the facetSize
        var points = makerjs.path.toKeyPoints(arc, facetSize);

        //connect the points as lines, add this model to roundRect
        var straightened = new makerjs.models.ConnectTheDots(false, points);
        roundRect.models[id] = straightened;
    }

    //create a place to put all the models
    roundRect.models = {};

    ["TopRight", "TopLeft", "BottomRight", "BottomLeft"].forEach(corner);
}

Now, about removing that font selector: You'll need to write some asynchronous code, since we have to wait for the font to download. If you are writing a custom web page, take a look at this example in the docs. In the Maker.js playground, there's a special playgroundRender function you can call once your asynchronous calls are complete and you'd like to render a model:
//load a font asynchronously
opentype.load('/fonts/allertastencil/AllertaStencil-Regular.ttf', function (err, font) {

    if (err) {
        alert('the font could not be loaded :(');
    } else {
        //you can now pass the font to a function.

        //we will just create a Text model as an example:
        var textModel = new makerjs.models.Text(font, 'Hello', 100);

        //now call playgroundRender, which only works in the Maker.js playground app.
        playgroundRender(textModel);
    }
});

Finally - this is a really cool model! Would you mind sharing it as a demo that I can feature on the site?
-Dan

Hi Dan
Thank you for your reply and the detailed comments. I would love to see the model on your site. :)
The arcs are now perfect!
https://maker.js.org/playground/?script=https://gist.githubusercontent.com/3kmch/0d7bbf16b193e010f20fee8230c8dd4c/raw/25123b27809f08b37b802d5604c7f5301747c4f7/kerf.js
Regarding the font stuff I have no clue how I could do that. Do I have to pack everything into this function?
Kurt

Hi Kurt,
Yes you'd need to call you code from the function. If it's not a problem, can we just leave the font as  it is, with the Font selector?

Hi Dan
Now the script is finished and some documentation done on: https://www.thingiverse.com/thing:2854454
Thank you for your support. :)
Kurt

Cool design!

Hi Kurt, your design is now featured on the site! 🥇
You can update your URLs to https://maker.js.org/playground/?script=kerf-compensation and you won't need to see the warning message.
Thanks!
Dan


Added selcoupdepouce and selcoupdepouce-test to communities.json

But it’s hidden true.
Doesn’t work?
On Thu, 18 Jan 2024 at 21:23, Kevin Sundar Raj @.***>
wrote:

@.**** commented on this pull request.
In assets/config/v3/communities.json
https://github.com/citizenwallet/app/pull/92#discussion_r1457941448:

   "community": {

       "name": "Bonne Heure Test",

       "hidden": true,

       "description": "Système d'Échange Local de Villers-la-Ville",

       "url": "https://selcoupdepouce.be",

       "alias": "selcoupdepouce-test",

       "logo": "http://localhost:3001/communities/selcoupdepouce/sel-coin.svg"

   },

   "scan": {

       "url": "https://alfajores.celoscan.io",

       "name": "Celo Testnet Explorer"

   },

   "indexer": {

       "url": "https://indexer-celo.internal.citizenwallet.xyz",

       "ipfs_url": "https://indexer-celo.internal.citizenwallet.xyz",

       "key": "x"

   },

   "ipfs": {

       "url": "https://ipfs.internal.citizenwallet.xyz"

   },

   "node": {

       "url": "https://alfajores-forno.celo-testnet.org",

       "ws_url": "wss://alfajores-forno.celo-testnet.org"

   },

   "erc4337": {

       "rpc_url": "http://localhost:3000/rpc",

       "paymaster_address": "0xdc894C6E509751970c7C9c29973Ec3c48F096a9a",

       "entrypoint_address": "0x45Ca5c69Cb15876418491585f6aD159Bd4b6F4C8",

       "account_factory_address": "0x26F7a5BD591030f17331fff1A79339a1eA722055",

       "paymaster_rpc_url": "http://localhost:3000/rpc",

       "paymaster_type": "cw",

       "gas_extra_percentage": 50

   },

   "token": {

       "standard": "erc20",

       "address": "0x452F7ff3e55fe29f481841985dE7f4939FD645fa",

       "name": "Bonne Heure Test",

       "symbol": "BHR",

       "decimals": 6

   },

   "profile": {

       "address": "0x0a9f4B7e7Ec393fF25dc9267289Be259Ec3FB970"

   },

   "plugins": [

       {

           "name": "Top Up",

           "icon": "http://localhost:3001/communities/selcoupdepouce/sel-coin.svg",

           "url": "http://localhost:3001/selcoupdepouce"

       }

   ],

   "version": 1

There are localhost endpoints here, can't release this to prod.
I included the other one already in the app.
—
Reply to this email directly, view it on GitHub
https://github.com/citizenwallet/app/pull/92#pullrequestreview-1830496977,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAASE5S5G3QTFCA3HUW6I2LYPGADZAVCNFSM6AAAAABB7IKTYSVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMYTQMZQGQ4TMOJXG4
.
You are receiving this because you authored the thread.Message ID:
@.***>

How can I deploy this change for the web for my demo?

I found out how to deploy :-)

Shouldn't we enable this?

From:

To:

(we'll leave it to Guil to design a much better loading screen, but that at least it's fixed for darkmode)

But it’s hidden true. Doesn’t work?
…
On Thu, 18 Jan 2024 at 21:23, Kevin Sundar Raj @.> wrote: @.* commented on this pull request. ------------------------------ In assets/config/v3/communities.json <#92 (comment)>: > + "community": { + "name": "Bonne Heure Test", + "hidden": true, + "description": "Système d'Échange Local de Villers-la-Ville", + "url": "https://selcoupdepouce.be", + "alias": "selcoupdepouce-test", + "logo": "http://localhost:3001/communities/selcoupdepouce/sel-coin.svg" + }, + "scan": { + "url": "https://alfajores.celoscan.io", + "name": "Celo Testnet Explorer" + }, + "indexer": { + "url": "https://indexer-celo.internal.citizenwallet.xyz", + "ipfs_url": "https://indexer-celo.internal.citizenwallet.xyz", + "key": "x" + }, + "ipfs": { + "url": "https://ipfs.internal.citizenwallet.xyz" + }, + "node": { + "url": "https://alfajores-forno.celo-testnet.org", + "ws_url": "wss://alfajores-forno.celo-testnet.org" + }, + "erc4337": { + "rpc_url": "http://localhost:3000/rpc", + "paymaster_address": "0xdc894C6E509751970c7C9c29973Ec3c48F096a9a", + "entrypoint_address": "0x45Ca5c69Cb15876418491585f6aD159Bd4b6F4C8", + "account_factory_address": "0x26F7a5BD591030f17331fff1A79339a1eA722055", + "paymaster_rpc_url": "http://localhost:3000/rpc", + "paymaster_type": "cw", + "gas_extra_percentage": 50 + }, + "token": { + "standard": "erc20", + "address": "0x452F7ff3e55fe29f481841985dE7f4939FD645fa", + "name": "Bonne Heure Test", + "symbol": "BHR", + "decimals": 6 + }, + "profile": { + "address": "0x0a9f4B7e7Ec393fF25dc9267289Be259Ec3FB970" + }, + "plugins": [ + { + "name": "Top Up", + "icon": "http://localhost:3001/communities/selcoupdepouce/sel-coin.svg", + "url": "http://localhost:3001/selcoupdepouce" + } + ], + "version": 1 There are localhost endpoints here, can't release this to prod. I included the other one already in the app. — Reply to this email directly, view it on GitHub <#92 (review)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAASE5S5G3QTFCA3HUW6I2LYPGADZAVCNFSM6AAAAABB7IKTYSVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMYTQMZQGQ4TMOJXG4 . You are receiving this because you authored the thread.Message ID: @.***>

I did not see hidden. Then it should be fine. It's just that localhost won't do anything since your phone won't run a server for itself.


fix empty content in logs

We cannot see content of logs after https://github.com/lf-edge/eve/commit/e96d88903d6e77a32079373b333eb36ee8b9bfb6
https://github.com/lf-edge/eden/issues/242
Signed-off-by: Petr Fedchenkov<EMAIL_ADDRESS>

Thanks @giggsoff

Bte @eriknordmark eden log is your friend ;-)


Added some line break style.

This is just your style. If everyone does this, I would change them all to tabs.
Also, @return null|Player and @return null | Player are different.


Support acess to class methods(dynamically)

Problem

A feature that would suit Prisma very well is support for the methods of the PrismaClient class, dynamically. Follow the following example:
`typescript
import {PrismaClient} from "@prisma/client";
const prisma = new PrismaClient();
const getValues = async (tbl_name: string) => {
const rows = await prisma[tbl_name].findMany();
console.log(rows);
}
getValues();
`
This way, there is always an error, stating that being the string type, cannot be used as an index...
Alternative one (actually)
`typescript
import {PrismaClient} from "@prisma/client";
const prisma = new PrismaClient();
const getValues = async () => {
const rows = await prisma.users.findMany();
console.log(rows);
}
`
I tirelessly searched for an answer and still, without success. If there is any solution (using typescript), it would help a lot. Thanks in advance.

Use a narrower type rather than a string and restrict the parameter of getValues to the valid model property names using a union type. For example, if you have tables A, B and C, then it might look like this:
- const getValues = async (tbl_name: string) => {
+ const getValues = async (tbl_name: 'a' | 'b' | 'c') => {
    const rows = await prisma[tbl_name].findMany();

If you don't want to write them all by yourself explicitly, you can also use this:
- import {PrismaClient} from "@prisma/client";
+ import { Prisma, PrismaClient } from "@prisma/client";

- const getValues = async (tbl_name: string) => {
+ const getValues = async (tbl_name: Prisma.TypeMap['meta']['modelProps']) => {
    const rows = await prisma[tbl_name].findMany();


Error when applying a CDL as a Look

In OCIO v2, if a Look contains a CDLTransform or FileTransform defining/pointing to a no-op CDL, picking a View that uses said Look generates an error. Here’s an example:
import PyOpenColorIO as ocio
config = ocio.Config.CreateFromStream('''\
ocio_profile_version: 1
roles:
  scene_linear: raw
displays:
  default:
    - !<View>
      name: cdl
      colorspace: raw
      looks: cdl
looks:
  - !<Look>
    name: cdl
    process_space: raw
    transform: !<CDLTransform> {}
colorspaces:
  - !<ColorSpace>
    name: raw
''')
config.getProcessor('raw', 'default', 'cdl', ocio.TransformDirection.TRANSFORM_DIR_INVERSE)

Traceback (most recent call last):
  File "/path/to/the/script.py", line 9, in <module>
    config.getProcessor('raw', 'default', 'cdl', PyOpenColorIO.TransformDirection.TRANSFORM_DIR_INVERSE)
PyOpenColorIO.Exception: BuildColorSpaceOps failed, null dstColorSpace.

Note that this also happens if the CDL is filled up but still a no-op, i.e. the slope explicitly set to 1 in all channels etc. Also, this happens regardless of the ocio_profile_version, and isn’t the expected behaviour in OCIO v1.

@UnaiM thanks for reporting the problem.
Which branch did you use for testing?
The master branch already contains a fix concerning an empty look but the RB-2.0 does not (i.e. PR #1443 is waiting for approval and merge).

@UnaiM The pull request is now merged in RB-2.0

Thanks @hodoulp, however after trying the example above on a fresh RB-2.0 build, it still errors the same.


MusicBot

Hi All
Serious noob to coding and working my way around some aspects of software. Own and manage a discord server and got the amazing MusicBot to work.
Only thing I would like to know is how to load a playlist at startup instead of the bots random searches. Would preffer a set youtube playlist.
Thanks in advance

Thats easy, the bot doesnt do a random search is has an autoplaylist.txt file in the config location with about 6000 some odd songs to start with
Also, people here get a little uppity about answering questions that are plain and simple in the comments. If you found out how to enable auto play list you skipped the comment that tells you where to pull it from.
Let me know if you have more questions i have been running 6 bots now for about 3 months.


Stop Parallel Jobs and Fail Build When One Job Fails

We have a scenario where several jobs run in parallel and then a subsequent job is dependent on these parallel jobs to pass before it starts (using dependsOn). Is it possible to tell the build to stop Job B that is currently running when Job A, which is running in parallel, fails? Note that Job B doesn't have a conditional dependency on Job A, but Job C has a condition for both to pass (using dependsOn).
Currently we have to wait for Job A and Job B to complete (with either failing) before Job C is then determined to not run and the build is marked failed. We'd like to kill the build ASAP to free up build resources for other pipelines to consume. Your help is appreciated.
Thanks

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

ID: 3f151218-9a11-0078-e038-f96198a76143
Version Independent ID: 09c4d032-62f3-d97c-79d7-6fbfd89910e9
Content: Conditional tasks - Azure Pipelines & TFS
Content Source: docs/pipelines/process/conditions.md
Product: devops
GitHub Login: @andyjlewis
Microsoft Alias: alewis

We do not have a fast fail option on parallel jobs. Parallel jobs run independently until each of them finish. We understand your scenario and will look into it; however it is unlikely to be addressed in the near future.

For me, naïvely thinking, this should be easy to implement: The failed job already reports back to the ado services (✓), and ado services can already cancel jobs (✓), just what is missing, the second needs to be automatically triggered from the first (✗).

Is this still not possible?

@jontreynes -- Jonathan, thank you for your follow-up.  Please consider these resources:

Azure DevOps Services
Azure DevOps on Stack Overflow

It's not just about performance but also the awkwardness when, for instance, one job fails within a minute, while another continues for over 30 minutes, even though the user is aware that the entire stage is doomed to failure.

@all -- if you feel this is a product bug, please add it here:

Developer Community


fix:  修复存在 0 时，数值为 number 时，排序错误的问题

👀 PR includes

✨ Feature

[ ] New feature

🎨 Enhance

[ ] Code style optimization
[ ] Refactoring
[ ] Change the UI
[ ] Improve the performance
[ ] Type optimization

🐛 Bugfix

[X] Solve the issue and close #0

🔧 Chore

[X] Test case
[ ] Docs / demos update
[ ] CI / workflow
[ ] Release version
[ ] Other ()

📝 Description
fix:  修复存在 0 时，排序错误的问题
🖼 Screenshot

Before
After

❌
✅

🔗 Related issue link

🔍 Self-Check before the merge

[ ] Add or update relevant docs.
[ ] Add or update relevant demos.
[ ] Add or update test case.
[ ] Add or update relevant TypeScript definitions.

:tada: This PR is included in version @antv/s2-v1.25.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


highlighting lines with mouse cursor jumps on linux ARM64

Does this issue occur when all extensions are disabled?: Yes/No

VS Code Version: 1.66.2
OS Version:

linux

uname -a
Linux ubuntu-linux-20-04-desktop 5.13.0-35-generic #40~20.04.1-Ubuntu SMP Mon Mar 7 09:21:14 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux

mac

macOS Monterey 12.3.1

Steps to Reproduce:

Highlight lines of text and move cursor outside of the immediate text editor. i.e. hover over the line numbers as you move up/down to highlight more text

Expected behavior:

Lines are still highlighted if mouse cursor is outside of the main editor screen as per behavior on other platforms and OS's

Current behavior:

When highlighting text the lines are not highlighted when the cursor is outside of the text editor. When the cursor re-enters the text editor the lines are highlighted again. See attached screen grabs of macOS vs Linux

linux arm64 (parallels)

ran with code-insiders --disable-extensions
https://user-images.githubusercontent.com/38127975/163900607-d105a561-75cd-4074-8ff6-92405fc79bd8.mov

mac arm64 M1

https://user-images.githubusercontent.com/38127975/163900635-890375e7-2219-4e10-955f-a2f655afde1e.mov

Let's track in #146947


chore(deps): update ci dependencies

This PR contains the following updates:

Package
Type
Update
Change

common-dev-assets

digest
0f1f11e -> 97bdd73

github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper
require
patch
v1.42.3 -> v1.42.4

go (source)
toolchain
patch
1.23.3 -> 1.23.4

Release Notes

terraform-ibm-modules/ibmcloud-terratest-wrapper (github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper)
v1.42.4
Compare Source
Bug Fixes

deps: update gomod (#902) (13ddc16)

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

/run pipeline

/run pipeline

ℹ Artifact update notice
File name: tests/go.mod
In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

5 additional dependencies were updated

Details:

Package
Change

github.com/IBM-Cloud/power-go-client
v1.8.3 -> v1.9.0

golang.org/x/crypto
v0.29.0 -> v0.30.0

golang.org/x/sync
v0.9.0 -> v0.10.0

golang.org/x/sys
v0.27.0 -> v0.28.0

golang.org/x/text
v0.20.0 -> v0.21.0

/run pipeline

/run pipeline

ℹ Artifact update notice
File name: tests/go.mod
In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

5 additional dependencies were updated

Details:

Package
Change

github.com/IBM-Cloud/power-go-client
v1.8.3 -> v1.9.0

golang.org/x/crypto
v0.29.0 -> v0.30.0

golang.org/x/sync
v0.9.0 -> v0.10.0

golang.org/x/sys
v0.27.0 -> v0.28.0

golang.org/x/text
v0.20.0 -> v0.21.0

/run pipeline

ℹ Artifact update notice
File name: tests/go.mod
In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

5 additional dependencies were updated

Details:

Package
Change

github.com/IBM-Cloud/power-go-client
v1.8.3 -> v1.9.0

golang.org/x/crypto
v0.29.0 -> v0.30.0

golang.org/x/sync
v0.9.0 -> v0.10.0

golang.org/x/sys
v0.27.0 -> v0.28.0

golang.org/x/text
v0.20.0 -> v0.21.0

/run pipeline

/run pipeline

ℹ Artifact update notice
File name: tests/go.mod
In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

5 additional dependencies were updated

Details:

Package
Change

github.com/IBM-Cloud/power-go-client
v1.8.3 -> v1.9.0

golang.org/x/crypto
v0.29.0 -> v0.30.0

golang.org/x/sync
v0.9.0 -> v0.10.0

golang.org/x/sys
v0.27.0 -> v0.28.0

golang.org/x/text
v0.20.0 -> v0.21.0

/run pipeline

/run pipeline

:tada: This PR is included in version 1.15.5 :tada:
The release is available on:

GitHub release
v1.15.5

Your semantic-release bot :package::rocket:


error in hue build

Hi if you could help me please with this issue :
Download error on https://pypi.infra.cloudera.com/api/pypi/pypi-public/simple/logilab-astng/: [Errno -2] Name or service not known -- Some packages may not be found!
Download error on https://pypi.infra.cloudera.com/api/pypi/pypi-public/simple/: [Errno -2] Name or service not known -- Some packages may not be found!
No local packages or download links found for logilab-astng>=0.24.3
error: Could not find suitable distribution for Requirement.parse('logilab-astng>=0.24.3')
/home/hduser/hue/desktop/devtools.mk:34: recipe for target 'pylint[0.28.0]' failed
make[2]: *** [pylint[0.28.0]] Error 1
make[2]: Leaving directory '/home/hduser/hue/desktop'
/home/hduser/hue/desktop/devtools.mk:42: recipe for target '/home/hduser/hue/build/.devtools' failed
make[1]: *** [/home/hduser/hue/build/.devtools] Error 2
make[1]: Leaving directory '/home/hduser/hue/desktop'
Makefile:148: recipe for target 'desktop' failed
make: *** [desktop] Error 2
ubuntu 16.04
thank you !

unfortunately problem still remains.

./build/env/bin/pip install logilab-astng
indeed probably


Bug Report : Subclass Name

I'm having a problem: Subclass name doesn't appear

and it is not appearing in the "spells" option, a button to show the "item" conjuration on the right side tab, as in the previous tabs they have this option I believe to be a bug.

I've already activated the hero tool alone, with all modules deactivated, which confirmed me to be a bug and not a compatibility error.
Thanks for your attention, the tool is amazing.

oops! can you put me here the version of the 5e system and module you are using ?

Foundry: V9 comp 245
dnd 5e: 1.6.3
Module Hero: 1.8.2

Oh,  definitely a bug, thanks! I broke something trying to make the module a little more good-looking when interacting with DDBImporter classes, I even missed adding an i18n translation value!
If you disable this module setting it should be back to how it looked before, I will try to fix this tomorrow or beginning of next week in a more permanent fashion.


doc: specs

Overview

Checklist

[ ] New and updated code has appropriate documentation
[ ] New and updated code has new and/or updated testing
[ ] Required CI checks are passing
[ ] Visual proof for any user facing features like CLI or documentation updates
[ ] Linked issues closed with keywords

Codecov Report

Merging #116 (81680cc) into main (df01474) will decrease coverage by 0.07%.
The diff coverage is n/a.

:exclamation: Current head 81680cc differs from pull request most recent head 4bc23ab. Consider uploading reports for the commit 4bc23ab to get more accurate results

@@            Coverage Diff             @@
##             main     #116      +/-   ##
==========================================
- Coverage   69.09%   69.02%   -0.07%
==========================================
  Files          37       37
  Lines        2967     2967
==========================================
- Hits         2050     2048       -2
- Misses        766      768       +2
  Partials      151      151

see 1 file with indirect coverage changes

High-Level Q: What kind of spec is this and who is it targeted for?
It looks pretty Golang implementation-specific, and AFAIK, specs are meta descriptions of protocols and behaviors decoupled from implementation details. Usually, their target is a client implementer who needs to understand how things work. From my understanding, this is excellent code documentation, but not the spec. I wonder if we should aim to extract all the protocol information into an independent doc separating docs from specs or at least make the protocol description part of the documentation.
Anyway, this is awesome, and I am very grateful for this ❤
I will review this in batches, and the first one is P2P doc review

thanks for your review @Wondertan
i am writing this specs from the perspective of the consumer (e.g. rollkit, in future other frameworks). i agree that it includes interface definitions in a specific language (golang), however i don't think it will prevent a non-golang adopter from understanding and consuming it. the whole idea here is to clearly specify the interfaces and implicit/explicit assumptions made. we have followed similar strategy in specifying rollkit.
i agree that we can add a protocol section which tries to summarize the components without getting into the details. but i don't think we should try to make two separate documents (specs and impl details) imho.
if we want, we can convert the golang interface definitions to language independent. let me know.

@Wondertan let me revise this based on your comments and try to make certain parts golang independent. Will request review soon.

@Wondertan tried to generalize as much as i can. as discussed, we can revisit regularly and keep improving. wdyt?

@gupadhyaya, getting back to this finally

So, I added a rendered link to the PR description with rendered specs readme and realized that linking between symlinks defined in the specs folder and the actual specs markdown does not work. Do we really need this symlink redirection? I think we can directly point root specs README to the relevant md files.
cc @MSevey (as I see you set it up this way)

@Wondertan what is the actual issue? The rendered readme works fine for me, plus you can see the rendered version in the diff.
The symlinks were a way to keep the specs close to the code to encourage keeping them up to date.

@MSevey, try clicking links to Components on the rendered page

@MSevey, try clicking links to Components on the rendered page and you will see

oh right, yea we've talked about this internally. The Github UI doesn't support symlinks, but that is fine since we are optimizing for the rendered website and keeping the specs close to the code.

@MSevey, which rendered website?

I think we should make it work for both GH and the rendered website(or whatever it is) by removing symlinks and linking directly.

@Wondertan the specs site https://celestiaorg.github.io/go-header/
to make it work with both I would just not link to the specs folder.  the specs folder is essentially a wrapper to enable a deployed specs website.
The original discussion the team had came down to whether or not we want the spec md files in the specs folder or close to the code. Since there was a preference for keeping the specs md files close to the code, we set up the specs folder with symlinks to make the website work.
So to make it work on the GH UI we just shouldn't reference the specs folder outside the specs folder.

So to make it work on the GH UI we just shouldn't reference the specs folder outside the specs folder.

@MSevey, Do you mean pointing to the code directly like in here?

Yea, if a the spec in pkgA wants to reference the spec in pkgB, it should link directly to pkgB not the spec/src/spec/pkgB symlink location.


Add a code below the QR code that a user can type in

Sometimes the QR code fails to scan. There is no security reason I can think of why a code word/phrase could not be placed below the QR code and you would then be able to enter it into the website by hand.
Unlike Submitty code words in RCOS, this code word would only work when the QR code works so therefore it would still detect live attendance just as well.

Ok new idea. The venue QR codes should be links with the code embeded in the link. Then if I use my normal QR code scanner it will open venue directly and verify or if I am already on venue it can extract out the code from the link and use that.
So if right now the QR code returns jasdfuvijsiodfoiajfeia383iwfnu3u you could make it return something like https://www.venue-meetings.com/#/lecture_info/614a196f729242002b3a6cba/attend?code=jasdfuvijsiodfoiajfeia383iwfnu3u
so the first part is the direct link to the meeting and then I just added /attend?code=jasdfuvijsiodfoiajfeia383iwfnu3u to the end to verify.


Fix typo in SSL_CTX_set_alpn_select_cb documentation

implementating - implementing

[x] documentation is added or updated

This PR is in a state where it requires action by @openssl/otc but the last update was 30 days ago

This pull request is ready to merge

This was already fixed by #24949
Thank you for your PR anyway.


Evaluate packer

We have been told there is a tool, packer, which can be used to build images. We could evaluate this tools and see if we could leverage an existing tool to create our ROS 2 image builder.
@shuhaowu Are you familiar with this tool?
Resources:

https://www.packer.io/
https://medium.com/@source4learn/how-to-build-a-custom-raspberry-pi-os-image-using-packer-da83be261687
https://linuxhit.com/build-a-raspberry-pi-image-packer-packer-builder-arm/
https://github.com/solo-io/packer-plugin-arm-image

https://github.com/marketplace/actions/packer-github-actions

Yes. When I built this tool originally, I evaluated Packer. Maybe I'm not an expert user, but it failed my requirements on two accounts:

I couldn't figure out how to pause and cross compile.
Packer doesn't allow the for interrupt and resume as far as I saw. That kind of system is very tedious to work with (as I have a lot of experience doing that kind of work), as any minor typo requires a complete restart of the build, which with qemu can take upwards of 20 min depending on what you're doing.

There are also some annoyances in having to write shell scripts in JSON, and not be able to easily test incrementally. As a result, I just wrote my own because it's not that hard to do (basically chroot + run scripts..).

@shuhaowu Ah, that makes a lot of sense. My understanding is that packer would be use to parametrize the image building. For example in case we want to support many SBCs, OS, kernel versions, etc. I don't think this will be the case for us the short-middle term. If that's the case in the far future that would be good news.
I suggest to close the issue for the moment.
FYI @LanderU @razr

Sounds good.
As a minor note, the builder I have, especially with the ini files, will allow for multiple SBC, OS, kernel versions as well to be parameterized.


Contributor changes

Hey guys, I'm not totally sure what's going on here. I must have some formatting differences or something, but I didn't mean to change these files that are different... Also, it says the pull request can't automatically be merged. So if we have to find a different way to get the code in, that's fine. The changes aren't that big anyway :)

Okay, so I ran a grunt prod before committing this time, so now the commit can be automatically merged. I also believe I have all of the pre-existing changes this time. @thorsenty , wanna take a look?

+!


SnappyMail using Squire

You wanted to drop a line for projects using Squire.
I'm using a modified version of Squire in SnappyMail.
https://github.com/the-djmaze/snappymail
Demo how it works (with mobile UI to swipe between toolbar options) can be found at https://snappymail.eu/demo/
Most changes can be found between your pull requests.
If you want more of them, i will provide them.
Shall i also provide a new demo to replace the one of the intern?

Hi. Thanks for letting me know! I've added SnappyMail to the list of Squire users in the readme. Thanks for the offer of a new demo, but I think I'd like it to be built on the Overture integration, so unless you fancy learning about Overture we'll get to it ourselves at some point.


Incorrect title

Only first word should be cap'ed

First pull request (and what a monumental one) - sorry if I messed up.

no problem! Fix the tests, too! :)

hmm - the new commit was automagically added to the existing pr? I have to study this PR stuff.
Have I just started my career as Open Source Developer?

Yes you have! Thanks for your contribution!

Added this fix to the Swift version as well: https://github.com/ArtSabintsev/Siren/releases/tag/3.1.7


Regression: workspaces don't always respect monitor bind after powering up again

I'm on 0.26.0, which gave a warning about the deprecation of wsbind in favour of workspaces. After adapting my config accordingly I notice a regression in behaviour:

Observed behavour: I have two monitors, when they power up again, I often find my workspaces on the wrong monitor rather than the one I configured.
Expected behaviour: I'd expect the workspaces to be strictly on the monitor I defined, which was the case with wsbind.

My hypothesis is that one monitor becomes available a little bit (<1s?) earlier than the other, and Hyprland chooses to use that as the other is not up yet, but does not correct the situation once the other becomes available.
Possibly related issues:

https://github.com/hyprwm/Hyprland/issues/2332
https://github.com/hyprwm/Hyprland/issues/2199

Log excerpt when monitors connect again:
[LOG] Framebuffer created, status 36053
[LOG] Framebuffer created, status 36053
[LOG] Framebuffer created, status 36053
[LOG] Framebuffer created, status 36053
[LOG] Allocated texture for BGTex
[LOG] Background created for monitor DP-3
[LOG] Shaders initialized successfully.
[LOG] Registered signal for owner 563449cfb840: 563449ca73b8 -> 563449cfb850 (owner: SSessionLockSurface)
[LOG] Registered signal for owner 563449cfb840: 563449ca73c8 -> 563449cfb8b8 (owner: SSessionLockSurface)
[LOG] Registered signal for owner 563449cfb840: 563447c9e548 -> 563449cfb920 (owner: SSessionLockSurface)
[LOG] Fading out a non-existent LS??
[LOG] Registered signal for owner 563449cd0f90: 563447c39388 -> 563449cd1170 (owner: layerSurface)
[LOG] Registered signal for owner 563449cd0f90: 563449d254d0 -> 563449cd1038 (owner: layerSurface)
[LOG] Registered signal for owner 563449cd0f90: 563449d254e0 -> 563449cd10a0 (owner: layerSurface)
[LOG] Registered signal for owner 563449cd0f90: 563449d254f0 -> 563449cd1108 (owner: layerSurface)
[LOG] Registered signal for owner 563449cd0f90: 563449d25500 -> 563449cd11d8 (owner: layerSurface)
[LOG] LayerSurface 563449d25410 (namespace wallpaper layer 0) created on monitor DP-3
[LOG] LayerSurface 563447bdce10 arranged: x: 0 y: 0 w: 2160 h: 3840 with margins: t: 0 l: 0 r: 0 b: 0
[LOG] Monitor DP-3 layers arranged: reserved: 0.000000 0.000000 0.000000 0.000000
[LOG] Adding completely new monitor.
[LOG] Registered signal for owner 563449cd33e0: 5634475eb240 -> 563449cd35e0 (owner: )
[LOG] Registered signal for owner 563449cd33e0: 5634475eb2d0 -> 563449cd3648 (owner: )
[LOG] Registered signal for owner 563449cd33e0: 5634475eb2c0 -> 563449cd36b0 (owner: )
[LOG] Registered signal for owner 563449cd33e0: 5634475eb250 -> 563449cd3718 (owner: )
[LOG] Registered signal for owner 563449cd33e0: 5634475eb260 -> 563449cd3780 (owner: )
[LOG] Registered signal for owner 563449cd33e0: 5634475eb280 -> 563449cd37e8 (owner: )
[LOG] Applying monitor rule for DP-2
[LOG] Setting preferred mode for DP-2
[LOG] Monitor DP-2 -> destroyed all render data
[LOG] Monitor DP-2 layers arranged: reserved: 0.000000 0.000000 0.000000 0.000000
[LOG] Monitor DP-2 data dump: res<EMAIL_ADDRESS>scale 1.00, transform 0, pos 2160x1680, 10b 0
[LOG] Added new monitor with name DP-2 at 2160,1680 with size 3840x2160, pointer 5634475eb0f0
[LOG] New monitor: WORKSPACEID 2, exists: 0
[LOG] Monitor DP-2 layers arranged: reserved: 0.000000 0.000000 0.000000 0.000000
[LOG] SessionLockSurface 563449cfb840 mapped
[LOG] Set keyboard focus to surface 563447c9e280
[LOG] Applying monitor rule for DP-3
[LOG] Setting preferred mode for DP-3

Having the same issue since the change.

monitor = DP-1, 2560x1440@179.960007,0x0,1
monitor = DP-2, 2560x1440@179.960007,2560x0,1
workspace = 1, monitor:DP-1
workspace = 11, monitor:DP-2

Tried using this workspace, still when I start up Hyprland up '2' workspace shows up on DP-2 instead of '11'

Is this actual?

Still a thing?

I am no longer sure, as I no longer use my laptop with an external monitor.
On Sat, Dec 21, 2024 at 5:21 AM izmyname @.***> wrote:

Still a thing?
—
Reply to this email directly, view it on GitHub
https://github.com/hyprwm/Hyprland/issues/2459#issuecomment-2558088046,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AUCYQHMRJBTOPNJ4PDBC3QL2GVFNJAVCNFSM6AAAAABL2NRKYCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNJYGA4DQMBUGY
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

closing then, feel free to reopen if happens again


Advertisement modification, broadcaster new logic

Description
This PR modifies the advertisement logic

[x] the Broadcaster creates 2 resources on remote cluster: a secret that allows the foreign cluster to create resources on home cluster (at the moment everything) and the Advertisement itself
[x] the Advertisement now has an object reference to the previous secret
[ ] when the foreign cluster receives the Advertisement, the Controller will be triggered and use this secret to give to the VK the permission it needs

It also slightly modifies the discovery module in order to allow the broadcaster to create Secrets on the remote cluster

/rebase


Some minor documentation tweaks for typos and clarity.

Looks like a merge conflict; would you mind rebasing?

You'll have to help me out… I can't see a conflict. There was one, but I believe I resolved it.

Seems like I can make a manual merge commit. Thanks!


i.liich.me seems to be dead

@SanchezSihaya It seems like your site is dead. Can you confirm it's status?

all good its back up


Build Error for new projects or Quickstart repo

Repro steps (MacOS):
Clone the Quickstart repo: git@github.com:steebchen/prisma-go-demo.git
Run 'go build'
Observed: ERROR: package slices is not in GOROOT (/usr/local/go/src/slices)
The same error occurs when you create a new project.

Please use upgrade go to 1.21, or downgrade to an older version of prisma-client-go.


Bump dependencies

Changes:

static, templates folders - due to pre-commit formatters
requirements - bumped to the latest ones
ci/cd scripts - CI moved to CD (almost w.o. changes, only bumped deps of actions), added CI script with linters
didn't add mypy since it requires too much changes for specifying methods signatures (but we might add it later)

Verified on dev


Corrected certbot installation command typo

(missing install in apt-get command).

Awesome thanks!
Quick question: what is your opinion on certbot (letsencrypt) VS self signed?

Certbot is quite nice, but requires to have open access and default ports. Eg. you can't run it behind firewall (without having to open it for a short period).

Will have a look!


Update EmbeddedMode.md

remove comment on bus access only for IoT Core

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

windows-iotcore/develop-your-app/EmbeddedMode.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Are multi object writes performant?

If I want to write 50 objects, like with
    const promises: Promise<any>[] = [];
    for (const params of paramsArray)
      promises.push(this.MmkvData.setMapAsync(params.logId, params.logData));

    await Promise.all(promises);

Does it have a good performance? Are the writes somehow "batched"? Or, if each write takes 10ms, it will take 500ms?
If not, could you add this functionality?

yes


Failing ubuntu tests

We still get these failures on ubuntu/linux checks:

Error in validObject(.Object): invalid class "ddenseModelMatrix" object: superclass "xMatrix" not defined in the environment of the object's class

Is there anything we can do about this? Or we should skip BFBayesFactor tests on ubuntu

I tried doing a lot of things to deal with this issue; it still persists somehow. I am out of ideas.

Ok, let's close this issue. Maybe it's so tricky that it can't be easily solved in GitHub actions in general?


ES6: Remove redundant namespace declaration

When converting ECMAScript 6 modules, it is not necessary to add an extra namespace declaration. The namespace will be declared through goog.provide. When processing the goog.provide, the compiler will then add a JSDoc @const tag to the namespace. (https://github.com/google/closure-compiler/blob/master/src/com/google/javascript/jscomp/ProcessClosurePrimitives.java#L1423).
For example, instead of converting the following ES6 module:
// calculator.js
export function square(x) {
        return x * x;
}

to:
goog.provide("module$calculator");
function square$$module$calculator(x) {
  return x * x;
}
var module$calculator = {};
module$calculator.square = square$$module$calculator;

it will now be converted to:
goog.provide("module$calculator");
function square$$module$calculator(x) {
  return x * x;
}
module$calculator.square = square$$module$calculator;

which will later be converted to:
var /** @const */ module$calculator = {};
function square$$module$calculator(x) {
  return x * x;
}
module$calculator.square = square$$module$calculator;

We want people to be able to use ES6 modules without having to process Closure primitives.

Ah, yes, that is exactly what we are trying to do. We are using the ProcessEs6Modules class directly from Clojure to convert ES6 modules. Unfortunately, the extra var declaration is causing problems when trying to load the converted module in a ClojureScript Node REPL, since the Node REPL is running scripts in a separate context.
How would the changes prevent people from using converted ES6 modules?

Michael, the proposed translation seems completely fine to me. What do you mean by not using process-closure-primitives? The pass emits goog.provide/require anyway, so we can't avoid that. Do you mean sth about when running uncompiled?

Ok after discussing with @dimvar I think this PR looks good to me :)

lgtm


(maint) Clarify error on Timeout::Error exception

This is another improvement for PUP-3238, though not a solve.
It turns out Net::HTTP will raise other errors, such as Timeout::Error, in
addition to the previously caught EOFErrors. To further clarify to the user
what is happening when these network issues occur, this commit also catches and
adds contexual information to Timeout::Error exceptions.
For completeness, in the event any other type of exception is raised we also
catch it and add the uri context. Seconds elapsed is omitted in the general
case because not knowing what the exception is, it's not certain whether or
not seconds elapsed will be relevant.
See also: bd737a89a213e15c3d1db32e64bd596b08886b2a

CLA signed by all contributors.

@reidmv could you target this PR to 6.0.x (or 5.5.x if need be)?

@joshcooper re-targeted to 5.5.x


Allow configurable root path for HTTP API

Describe the solution you'd like
Even though our server API only listens to /namespaces, /cluster, and /system-info, some users may still want that at a deeper level (as opposed to their proxies trimming it off), so allow users to specify a path prefix.

Thank you for your feature request! We understand the desire for more granular control over the API path prefix. Currently, Temporal only supports the /namespaces, /cluster, and /system-info paths.
As a workaround, you can consider setting up a proxy that would handle the path prefixing before forwarding requests to Temporal. This allows you to maintain your desired API path structure while still utilizing Temporal's core functionalities.
We appreciate your feedback and will consider it for future development.

Thank you for your feature request!
While we currently don't have the option to specify a path prefix, you can achieve similar functionality by using a proxy server in front of Temporal. The proxy server can handle routing requests to the specific endpoints you're interested in.
Let me know if you have any other questions.

Thank you for the feature request! We appreciate your suggestion to allow users to specify a path prefix for Temporal's API.
While this feature is not currently available, you can work around it by using a proxy server that removes the path prefix from the request before forwarding it to Temporal. This would allow users to access the API at a deeper level while still ensuring that the server only listens to the /namespaces, /cluster, and /system-info endpoints.
We will keep your feedback in mind for future development.

Thanks for the feature request!  We understand the need for more granular control over the API path prefix.  While we don't currently offer a way to directly configure the prefix, you can achieve a similar outcome by using a proxy that modifies the path before it reaches Temporal. This way, the API will still be accessible at the desired path without changing Temporal's configuration.
Link to Temporal Proxy documentation

Thank you for the feature request! We appreciate the suggestion. Currently, Temporal doesn't support specifying a path prefix for the HTTP API.
You can work around this limitation by using a reverse proxy in front of your Temporal server. The proxy can handle the path prefix and route requests to the correct endpoints on the Temporal server.
Here are some popular reverse proxy options:

Nginx
Apache HTTP Server
HAProxy
Traefik

These options provide different features and configurations, so you can choose the one that best fits your needs.


qstore1

default_transaction_read_only is a postgresql parameter , should be replaced by read_only

@HamzaAqel : Thanks for your contribution! The author(s) have been notified to review your proposed change.


Do not hide S3 access errors

If e.g. the wrong AWS profile is used the download of the open datasets which are stored in S3 will fail. These errors was completely hidden and was instead displayed as if the dataset does not exists, e.g.:
hub.util.exceptions.DatasetHandlerError: A Hub dataset does not exist at the given path (hub://activeloop/mnist-train). Check the path provided or in case you want to create a new dataset, use hub.empty().

This commit creates a new excpetion type which is not excepted to make it clear that it is an AWS S3 access error that is the cause.
🚀 🚀 Pull Request
Checklist:

[x]  My code follows the style guidelines of this project and the Contributing document
[ ]  I have commented my code, particularly in hard-to-understand areas
[ ]  I have kept the coverage-rate up
[x]  I have performed a self-review of my own code and resolved any problems
[x]  I have checked to ensure there aren't any other open Pull Requests for the same change
[ ]  I have described and made corresponding changes to the relevant documentation
[x]  New and existing unit tests pass locally with my changes

Changes
This commit makes the error messages more useful for debugging. E.g, consider a user who has a default region setup for AWS:
#~/.aws/config
[default]
region: eu-north-1

When the user wants to try out hub they do:
python -c "import hub; hub.load('hub://activeloop/mnist-train')"

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/daniel/src/Hub/hub/api/dataset.py", line 407, in load
    raise DatasetHandlerError(
hub.util.exceptions.DatasetHandlerError: A Hub dataset does not exist at the given path (hub://activeloop/mnist-train). Check the path provided or in case you want to create a new dataset, use hub.empty().

The error message states that the dataset does not exist, this is really confusing for someone who has not used Hub before.
After this change the error will instead be:
python -c "import hub; hub.load('hub://activeloop/mnist-train')"

Traceback (most recent call last):
  File "/home/daniel/src/Hub/hub/core/storage/s3.py", line 251, in get_bytes
    return self._get_bytes(path, start_byte, end_byte)
  File "/home/daniel/src/Hub/hub/core/storage/s3.py", line 224, in _get_bytes
    resp = self.client.get_object(Bucket=self.bucket, Key=path, Range=range)
  File "/home/daniel/workspace/shared_source/tflite-deep-learning-axis-camera/venv/lib/python3.10/site-packages/botocore/client.py", line 386, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/home/daniel/workspace/shared_source/tflite-deep-learning-axis-camera/venv/lib/python3.10/site-packages/botocore/client.py", line 705, in _make_api_call
    raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (InvalidAccessKeyId) when calling the GetObject operation: The AWS Access Key Id you provided does not exist in our records.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/daniel/src/Hub/hub/core/storage/s3.py", line 262, in get_bytes
    return self._get_bytes(path, start_byte, end_byte)
  File "/home/daniel/src/Hub/hub/core/storage/s3.py", line 224, in _get_bytes
    resp = self.client.get_object(Bucket=self.bucket, Key=path, Range=range)
  File "/home/daniel/workspace/shared_source/tflite-deep-learning-axis-camera/venv/lib/python3.10/site-packages/botocore/client.py", line 386, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/home/daniel/workspace/shared_source/tflite-deep-learning-axis-camera/venv/lib/python3.10/site-packages/botocore/client.py", line 705, in _make_api_call
    raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (InvalidAccessKeyId) when calling the GetObject operation: The AWS Access Key Id you provided does not exist in our records.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/daniel/src/Hub/hub/util/keys.py", line 174, in dataset_exists
    storage[get_dataset_meta_key(FIRST_COMMIT_ID)]
  File "/home/daniel/src/Hub/hub/core/storage/lru_cache.py", line 189, in __getitem__
    result = self.next_storage[path]
  File "/home/daniel/src/Hub/hub/core/storage/s3.py", line 211, in __getitem__
    return self.get_bytes(path)
  File "/home/daniel/src/Hub/hub/core/storage/s3.py", line 261, in get_bytes
    with manager(self, new_error_cls):  # type: ignore
  File "/home/daniel/src/Hub/hub/core/storage/s3.py", line 77, in __exit__
    raise self.error_class(exc_value).with_traceback(exc_traceback)
  File "/home/daniel/src/Hub/hub/core/storage/s3.py", line 262, in get_bytes
    return self._get_bytes(path, start_byte, end_byte)
  File "/home/daniel/src/Hub/hub/core/storage/s3.py", line 224, in _get_bytes
    resp = self.client.get_object(Bucket=self.bucket, Key=path, Range=range)
  File "/home/daniel/workspace/shared_source/tflite-deep-learning-axis-camera/venv/lib/python3.10/site-packages/botocore/client.py", line 386, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/home/daniel/workspace/shared_source/tflite-deep-learning-axis-camera/venv/lib/python3.10/site-packages/botocore/client.py", line 705, in _make_api_call
    raise error_class(parsed_response, operation_name)
hub.util.exceptions.S3GetAccessError: An error occurred (InvalidAccessKeyId) when calling the GetObject operation: The AWS Access Key Id you provided does not exist in our records.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/daniel/src/Hub/hub/api/dataset.py", line 406, in load
    if not dataset_exists(cache_chain):
  File "/home/daniel/src/Hub/hub/util/keys.py", line 177, in dataset_exists
    raise AuthorizationException("The dataset storage cannot be accessed") from err
hub.util.exceptions.AuthorizationException: The dataset storage cannot be accessed

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

Hey there @daniel-falk. Thank you so much for the comtribution! Can you please sign the Contributor Locense Agreement so we can review and merge the contribution? Also, please hit me up in slack (slack.activeloop.ai) so we can send over some swag your way. :) we really appreciate the contribution!

Thanks @mikayelh! CLA signed and you have a message in slack.

Hey @daniel-falk thanks a lot for your patience. I'm very sorry it's taking so long to review this PR. Can you pls resolve conflicts and we'll review this asap. Thanks again for your the contribution!!!

Thanks for your contribution @daniel-falk! PR should be good to merge once conflicts are resolved

Actually seems like if this issue has been solved by 3a9400b67? It does not seem like if I can reproduce it anymore :+1:

...perhaps not. I can still reproduce it if I try to load a dataset from an S3 bucket and there are no credentials configured:
python -c "import deeplake; deeplake.load('s3://fixedit-dev-test/deeplake-test')"
Error in sys.excepthook:
Traceback (most recent call last):
  File "/home/daniel/src/Hub/venv/lib/python3.10/site-packages/humbug/report.py", line 498, in _hook
    self.error_report(error=exception_instance, tags=tags, publish=publish)
  File "/home/daniel/src/Hub/venv/lib/python3.10/site-packages/humbug/report.py", line 244, in error_report
    traceback.format_exception(
TypeError: format_exception() got an unexpected keyword argument 'etype'

Original exception was:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/daniel/src/Hub/deeplake/api/dataset.py", line 426, in load
    raise DatasetHandlerError(
deeplake.util.exceptions.DatasetHandlerError: A Deep Lake dataset does not exist at the given path (s3://fixedit-dev-test/deeplake-test). Check the path provided or in case you want to create a new dataset, use deeplake.empty().

this is actually triggered from:
Original exception was:
Traceback (most recent call last):
  File "/home/daniel/src/Hub/deeplake/core/storage/s3.py", line 237, in get_bytes
    return self._get_bytes(path, start_byte, end_byte)
  File "/home/daniel/src/Hub/deeplake/core/storage/s3.py", line 210, in _get_bytes
    resp = self.client.get_object(Bucket=self.bucket, Key=path, Range=range)
  File "/home/daniel/src/Hub/venv/lib/python3.10/site-packages/botocore/client.py", line 515, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/home/daniel/src/Hub/venv/lib/python3.10/site-packages/botocore/client.py", line 917, in _make_api_call
    http, parsed_response = self._make_request(
  File "/home/daniel/src/Hub/venv/lib/python3.10/site-packages/botocore/client.py", line 940, in _make_request
    return self._endpoint.make_request(operation_model, request_dict)
  File "/home/daniel/src/Hub/venv/lib/python3.10/site-packages/botocore/endpoint.py", line 119, in make_request
    return self._send_request(request_dict, operation_model)
  File "/home/daniel/src/Hub/venv/lib/python3.10/site-packages/botocore/endpoint.py", line 198, in _send_request
    request = self.create_request(request_dict, operation_model)
  File "/home/daniel/src/Hub/venv/lib/python3.10/site-packages/botocore/endpoint.py", line 134, in create_request
    self._event_emitter.emit(
  File "/home/daniel/src/Hub/venv/lib/python3.10/site-packages/botocore/hooks.py", line 412, in emit
    return self._emitter.emit(aliased_event_name, **kwargs)
  File "/home/daniel/src/Hub/venv/lib/python3.10/site-packages/botocore/hooks.py", line 256, in emit
    return self._emit(event_name, kwargs)
  File "/home/daniel/src/Hub/venv/lib/python3.10/site-packages/botocore/hooks.py", line 239, in _emit
    response = handler(**kwargs)
  File "/home/daniel/src/Hub/venv/lib/python3.10/site-packages/botocore/signers.py", line 105, in handler
    return self.sign(operation_name, request)
  File "/home/daniel/src/Hub/venv/lib/python3.10/site-packages/botocore/signers.py", line 189, in sign
    auth.add_auth(request)
  File "/home/daniel/src/Hub/venv/lib/python3.10/site-packages/botocore/auth.py", line 418, in add_auth
    raise NoCredentialsError()
botocore.exceptions.NoCredentialsError: Unable to locate credentials

...but this is just swallowed somewhere.

This commit solves this specific error, but I think a larger issue is that we have a catch all except which always reraises the S3GetError(err) exception which then seems to be swallowed and replaced with the message that the dataset does not exist. This is also very confusing during development since any programming error inside the try-catch will just generate the same message about dataset not existing.

Hi @farizrahman4u  and @AbhinavTuli, I did some minor changes to fix the incorrect and ignored type-hints in the s3.py file. Do you want to look again or can we merge?

It does not seem like the failing tests are related to my changes? One of the failing tests is due to the deeplake __vrsion__ string and the other seems to be failing the test when decoding images. Do you think it is issues that are solved so I should rebase to latest main?

@daniel-falk please pull main to fix backward compatibility issues.


Minor fixes and buttons implementation

fixed FileTranslationService,
added switchToProfileView and switchToHistoryView in loggedInView buttons,
minor adjustments to chatBot UI

need to adjust README file in accordance to Quercus software documentation module


Update tune-performance-defender-antivirus.md

updated platform version requirement

@JohanFreelancer9 - kindly do the copy editor review for this PR. Thanks


User2Group-Assignment empty

Hello together,
what a great project :-)!
I tried to assign a user to multiple groups as administrator.
In the user management section -> user profile, the location and group field is blocked for any inputs?
I can't assign just one group. Only way I found, is in the self-registration form to register for one group in the moment of registration.
Did I miss some options?
THX

Ok, now I may understand the userstory and found a bug?
Nevertheless, REGmon looks best for our usecase.
To clarify if I am right?
In calendar view I have to choose the right location and user to get the appropriate Option-Buttons where I can assign users to groups. As I see it's not provided to assign one user to multiple locations. Despite of that it's possible to assign one group admin to different groups of different locations but the groupadmin itself is not able to switch to a second location to administrate the other group. bug?
When you add a new user as Admin->GroupAdmin through usermanagement-grid (admin) or groupmanagement-grid (groupuser-management-button) the method misses to set the users initial location_id and group_id. So the add-user-method in php/ajax.users.php should be similar to login/registration.php

Hi QuasiMoko,
first of all, thanks for participating in the project and sharing feedback!
Do you want to share what your usecase looks like? :)

As I see it's not provided to assign one user to multiple locations.

Yes, all users - except admin - are meant to be assigned to only one single location and corresponding (subset of) groups.

Despite of that it's possible to assign one group admin to different groups of different locations but the groupadmin itself is not able to switch to a second location to administrate the other group. bug?

Assigning users to groups of different locations shouldn't be possible, so yes, this is a bug.

In calendar view I have to choose the right location and user to get the appropriate Option-Buttons

Yes, the displayed content in options view depends only on the chosen group, while the calendar view depends on chosen group and user (user-dropdown disappears when toggling to options view). This is true for all profiles.

I tried to assign a user to multiple groups as administrator.

This functionality is not intended at the moment. New users can be created either by self-registration or by admin profiles via group-options->group-users. In both cases, the user is assigned to this one group only.
If users want to be in more than one group, they need to request access via the group dropdown. Public groups are visible for all users, private groups can be requested by entering the key via "Private Group...". Admin profile may allow/deny access. Groups with access are marked with a green checkmark.

When you add a new user as Admin->GroupAdmin through usermanagement-grid (admin) or groupmanagement-grid (groupuser-management-button) the method misses to set the users initial location_id and group_id. So the add-user-method in php/ajax.users.php should be similar to login/registration.php.

As far as I can see, this is correct, thanks for the hint. Maybe @kencreek can check as well.

Hi @ChristianStrotkoetter,
thanks for your reply.
My usecase is as following and I'm not sure how to build the best structure to organize it in REGmon, yet:

We want to monitor our teamsport-athletes, training at different locations in up to 3-6 different teams and coaches in school, club and assosiation.
For the vizualistation we want to see the individual athlete over all attended groups in the one hand and the training-groups as the teams in the other hand.
the coaches should see all individual results (over all attended teams) of the athletes assigned in their team, to see e.g. training load of other trainings etc.

May you can give me some good hints that it's as easy as possible to handle especially for the athletes?
Thanks a lot


Fixed python 2/3 compatibility issue with Queue

Coverage increased (+0.04%) to 83.24% when pulling a89a7e1e795e275f11ec606cf5671c4ed89f6916 on justincsmith:bug-compat-queue into 17fbd70a49e8fadb98c38bee189084420098d617 on RadishLLC:master.


Release 1.42.0 on rubygems

Is your feature request related to a problem? Please describe.
https://github.com/grpc/grpc/releases/tag/v1.42.0 exists, but hasn't been released at https://rubygems.org/gems/grpc
Describe the solution you'd like
A new release
Describe alternatives you've considered
Using the 1.42.0.pre1 release.
Additional context
1.42.0 is necessary for arm macs.

The release process isn't finished yet.  We're working on it.