version detection crashes on certain files

I've noticed that flit fails to detect the __version__ field correctly in certain files due to the ast parsing logic. For instance, building the following project raises an AttributeError in flit_core.common.get_docstring_and_version_via_ast
pyproject.toml
[build-system]
requires = ["flit_core >=2,<4"]
build-backend = "flit_core.buildapi"

[tool.flit.metadata]
module = "flittest"
author = "mands"
author-email =<EMAIL_ADDRESS>
flittest.py
"""docstring"""

a = {}
a["test"] = 3

__version__ = "0.0.1"

if __name__ == "__main__":
   print("hello")

flit build
Traceback (most recent call last):
  File "/home/mands/.local/bin/flit", line 8, in <module>
    sys.exit(main())
  File "/home/mands/.local/lib/python3.8/site-packages/flit/__init__.py", line 170, in main
    main(args.ini_file, formats=set(args.format or []),
  File "/home/mands/.local/lib/python3.8/site-packages/flit/build.py", line 45, in main
    sb = SdistBuilder.from_ini_path(ini_file)
  File "/home/mands/.local/lib/python3.8/site-packages/flit/sdist.py", line 145, in from_ini_path
    return super().from_ini_path(str(ini_path))
  File "/home/mands/.local/lib/python3.8/site-packages/flit_core/sdist.py", line 102, in from_ini_path
    metadata = common.make_metadata(module, ini_info)
  File "/home/mands/.local/lib/python3.8/site-packages/flit_core/common.py", line 368, in make_metadata
    md_dict.update(get_info_from_module(module))
  File "/home/mands/.local/lib/python3.8/site-packages/flit_core/common.py", line 178, in get_info_from_module
    docstring, version = get_docstring_and_version_via_ast(target)
  File "/home/mands/.local/lib/python3.8/site-packages/flit_core/common.py", line 133, in get_docstring_and_version_via_ast
    child.targets[0].id == "__version__" and
AttributeError: 'Subscript' object has no attribute 'id'

Potentially a bit of an odd-case, but I have to automate conversion of such files often and often append the version to existing files to get them to build with flit.
Related - it would be great if we could optionally specify the version field in the pyproject.toml file and skip looking in the code in those cases.

Thanks, good point.
There's discussion underway to define a standard for putting metadata in pyproject.toml - that will likely include an optional version field, and if it's set then flit will respect it.

Sounds great - yes an optional version field would be incredibly useful.

#348 fixes the error in the simple test case. Do you want to try it on the real case where you discovered this?


PETA-81 create password storage feature and create user api

Create password storage by hashing the user password to store the password security.
Implement createUser API and its unit tests.
Create a special matcher in createUser API UT to compare the matching body due to the hashed password.

looking good


Packaging documentation

Since we now have a desktop entry and a metadata file for Linux, it'd be best to add documentation on packaging on Linux.
Just an FYI, the following line will need to be removed once there is an actual release:
https://github.com/Lea-fish/Leafish/blob/08a98f0135255b40e37037fd965afb0874d6bbdb/packaging/leafish.metainfo.xml#L25
I can be assigned if needed.

Wait, why would documentation be needed? I assume distro packagers already know how to package a Rust-based package, and there is nothing special here.

I thought I was already clear, sorry for that.
The cargo part is the easiest part, but everything lying under the packaging directory and the icons are the "tricky" parts, because the packager will have to add the files in the needed locations.
Not everyone likes using cargo, myself included. I prefer using native package managers to install packages, whether they use cargo or not, that's another story.
Just my personal opinion. If you are against it, then I'm completely okay with closing the issue.
On September 9, 2021 6:31:37 AM EDT, Bart Ribbers @.***> wrote:

Wait, why would documentation be needed? I assume distro packagers already know how to package a Rust-based package, and there is nothing special here.
--
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
https://github.com/Lea-fish/Leafish/issues/123#issuecomment-915965266

I'm not necessarily against it, I just don't see much of a reason for it. I prefer native distro packages as well, but they are still made using cargo. Besides building the binary distributions will have to install the desktop file and icons, but to a distro packager that is all quite obvious and they know where it all should go (I can know, I am one (for Alpine Linux)).

True. I'll see if someone objects. I don't mind closing this issue if deemed unecessary.


WASI preview2 support

First, thank you for the invaluable work on container2wasm. The project has significantly simplified the process of running containerized workloads as WebAssembly modules, bringing portability and scalability benefits to diverse environments. I’ve been particularly impressed by its ease of use and the reliable runtime environment it provides.
However, I’d like to request adding support for the latest WASI Preview2 specification. This feature is becoming increasingly important, as it unlocks critical capabilities like networking, file system enhancements, and more robust I/O operations that developers need to run more complex or interactive workloads in WebAssembly-based environments.
Why WASI Preview2 Support Matters:

Network Access: With WASI Preview2, we can enable native outbound and inbound networking, vastly expanding the types of workloads container2wasm can support. This is crucial for services that need to communicate over HTTP, gRPC, or other protocols without requiring complicated workaround layers.
More Advanced Use Cases: As the WebAssembly ecosystem matures, many developers are moving beyond simple compute tasks and exploring use cases like proxying, microservices, distributed systems, and edge computing. WASI Preview2 serves as a key building block for these more complex scenarios.
Ecosystem Standardization: The WASI specifications are coalescing around Preview2. By embracing this standard, container2wasm would remain aligned with the broader WebAssembly ecosystem. This ensures better interoperability, long-term maintainability, and a smoother upgrade path as WASI evolves.

Please let me know how I can help. I am particularly interested in helping with adding networking support.

@JMLX42 Thanks for the suggestion. Yes, we would love to support  wasip2. Container2wasm relies on third-party toolchain for compiling  emulators for WASI, so we'll need at least the following tasks:

TODO for x86_64 containers (based on Bochs emulator)

In Dockerfile, bump up wasi-sdk version to the version that supports wasip2 (>= wasi-sdk 22 ?)
In Dockerfile, add support for wasip2 to toolchain used by container2wasm

wasi-vfs (https://github.com/kateinoigakukun/wasi-vfs)
wizer (https://github.com/bytecodealliance/wizer)
binaryen(asyncify) (https://github.com/WebAssembly/binaryen)

In Dockerifle, compile the emulator for wasip2 using the above toolchain
Next step: migrate NW-related logic to wasip2, etc.

Similar tasks will be needed for riscv(TinyEMU-based) containers as well.


Disable EnableAutomTLSCheckPolicies due to race condition

See https://github.com/istio/istio/issues/34227
[ ] Configuration Infrastructure
[ ] Docs
[ ] Installation
[ ] Networking
[ ] Performance and Scalability
[ ] Policies and Telemetry
[ ] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure
Pull Request Attributes
Please check any characteristics that apply to this pull request.
[ ] Does not have any user-facing changes. This may include CLI changes, API changes, behavior changes, performance improvements, etc.

@howardjohn: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Rerun command

integ-ipv6-k8s-tests_istio
09fb98ad37be62c938f5a77cf9820d68d066f2c8
link
/test integ-ipv6-k8s-tests_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@howardjohn: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Rerun command

integ-ipv6-k8s-tests_istio
09fb98ad37be62c938f5a77cf9820d68d066f2c8
link
/test integ-ipv6-k8s-tests_istio

integ-distroless-k8s-tests_istio
09fb98ad37be62c938f5a77cf9820d68d066f2c8
link
/test integ-distroless-k8s-tests_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@howardjohn: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Rerun command

integ-ipv6-k8s-tests_istio
09fb98ad37be62c938f5a77cf9820d68d066f2c8
link
/test integ-ipv6-k8s-tests_istio

integ-distroless-k8s-tests_istio
09fb98ad37be62c938f5a77cf9820d68d066f2c8
link
/test integ-distroless-k8s-tests_istio

integ-security-k8s-tests_istio
09fb98ad37be62c938f5a77cf9820d68d066f2c8
link
/test integ-security-k8s-tests_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

I do not think we want it running in tests, it has a race condition that will crash the istiod and make tests flake (which is how I found it)

Ah... but I need to disable the test that depends on it

sure. then you can comment out the automtls-*-workload.yaml test introduced in the original PR.


(GH-2879) Adding out::verbose

This adds out::verbose to Bolt, which allows for similar functionality as out::message, but only prints when run in verbose mode.
!feature

Add out::verbose
(#2879)

Bolt now has out::verbose which prints messages when run  in verbose mode.

I'm not sure what github doesn't like about the release notes.


[New game]: Picture Puzzle Game

🎮 Game Request
Game logic and basic description

Showing a picture to you.
Along side also showing a grid of puzzle through the parts of the picture.
Solve that picture and join images by matching the complete image.

Point down the features
Game points

Timer will be available for you.
How much time will you take to solve the challenge.
This is just a time race and enjoy the game.

 Thank you so much for your raising the issue💗
It’s all yours, you can come anytime again and make some contributions! 🚀
Alone, we can do little, but together we can do so much! 😇


No screenshot on player

Is it just me or does the screenshot that's supposed to appear on the player when you load/refresh a page not work for HTML5?  It works for Flash.

I don't get it about what "screenshot" are you talking about..

Sorry for late reply I didn't get a notification from github. Yes I mean the thumbnail (I thought the thumbnails were only for the tiny pics). I can see it when using Flash player or when using HTML5 on the redesigned player (www.youtube.com/testtube) but not using the default HTML5 player.
I am using the latest dev script but it's been happening for as long as I can remember. I am using Firefox 39.0. This problem doesn't happen when using HTML5 on other youtube scripts like Youtube+.

Any suggestions? Is it possibly some setting in YTC that's causing it not to appear?

Hmm, maybe some addons are causing this? Try disabling them..

But I tested it on a new firefox profile with no other addons

You have to turn off auto-buffering for the thumbnail in the main player to show up.

I already had auto-buffering turned off for all the options: Prevent auto-buffering, Prevent playlist auto-buffering, Prevent tab auto-buffer, and Prevent tab playlist auto-buffering.
I'm currently using the redesigned youtube player (https://www.youtube.com/testtube) which does show the thumbnail but it won't let me switch back to the original player anymore. I guess this is going to be the default player now.

I never signed up for the YouTube betas/tests and I have the new player. I think it was widespread update around two weeks ago.

I guess the problem is solved then since this is the default player. I don't like that it doesn't tell you the length of the video without playing it first.

Yes, I agree! That has been bothering me too. Everything else is an improvement so I don't mind it overall.


[Errno 2] No such file or directory after upgrading to 20.1

Home Assistant release (hass --version):
20.1
Python release (python3 --version):
3.5.1 (v3.5.1:37a07cee5969, Dec  6 2015, 01:38:48) [MSC v.1900 32 bit (Intel)]
Component/platform:
Windows (10 x64)
Description of problem:
After upgrading to release 3c364fa7e94d5955ae87ac4295cf5797ba6337fe(HASS 20.1)
This may be a noob error as I am new to Python and Home Assistant, but after upgrading to 20.1, I received the following error.
[Errno 2] No such file or directory causing hass to fail to start.
After unstalling and reverting to 20.0 the error disappeared. After reinstalling 20.1 the error re-appeared.
Additional info:
Upgrade was initially aborted due to home assistant still running. After stopping Home assistant upgrade was successful, yet I received the error message.

The difference between 0.20.0 and 0.20.1 is small enough. The only change that was applied is in the restart related code so it is unclear how the change would affect normal startup.
There is not enough detail in your report to figure out what could be going on here.

Are there other messages aside from the [Errno 2] No such file or directory message?
Having something like a traceback that shows which files/lines/statements are involved.
How did you start home assistant? using python -m homeassistant, hass? From a virtualenv?
Did you specify any additional command line options, like --pid-file?

I took a look at the changes, and I did not expect it to be related to the change in code, but maybe to the deployment. (if that is even possible)
I started from hass.exe, and this was the only error displayed. I think this might also be the reason there was no traceback.
I now upgraded home assistant and started using python -m homeassistant, which starts perfectly, without error nor warnings.

I am having the same issue, running on Windows 10. Running hass.exe from cmd prompt returns the ''[Errno 2] No such file or `directory'' message, and that's as far as it gets. Nothing changed for me except for the upgrade from 20.0 to 20.1

If python -m homeassistant works, but hass.exe doesn't work it seems to me there is some odd pip installation issue going on here.
I looked at previous point releases and I think only updating the version number in homeassistant.const was needed, but maybe I missed something in the hotfix-20-1 pull request?

No, the point release was done as usual
On Mon, May 23, 2016, 19:15 Jan Harkes<EMAIL_ADDRESS>wrote:

If python -m homeassistant works, but hass.exe doesn't work it seems to
me there is some odd pip installation issue going on here.
I looked at previous point releases and I think only updating the version
number in homeassistant.const was needed, but maybe I missed something in
the hotfix-20-1 pull request?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
https://github.com/home-assistant/home-assistant/issues/2138#issuecomment-221148596

Upgrading to 0.20.2 fixed the issue.
I kept a copy of the 0.20.1 executable and it differs in size from the 0.20.2 version. There's something fishy going on here.

20.3 is causing this issue to reappear for me..

I also have the problem on 20.3


chore: refactor issue creator multiplier

Resolves: #583
Follow up to https://github.com/ubiquity/ubiquibot/pull/588 which was closed and cannot be reopened due to force push.
QA done, comments history is available at #588.

QA done, comments history is available at https://github.com/ubiquity/ubiquibot/pull/588.

I didn't understand it. What do you mean by this?

QA done, comments history is available at #588.

I didn't understand it. What do you mean by this?

Hi @web4er thank you for starting the review, I meant QA linked to the original pr

Hi @web4er thank you for starting the review, I meant QA linked to the original pr

The QA that you have to provide is showing the changes working using your local instance or QA bot instance  by creating an issue and explaining step by step. https://github.com/ubiquity/ubiquibot#how-to-qa-any-additions-to-the-bot
QA done by workflow or the team is different.

@web4er I currently cannot execute QA due to https://github.com/ubiquity/ubiquibot/issues/620 , and would be grateful if the project team did the QA and verified the PR, as discussed here https://github.com/ubiquity/ubiquibot/pull/588#issuecomment-1673202715 .

Hi @web4er , @pavlovcik according to https://github.com/orgs/ubiquity/projects/23/views/1 the QA status column is done for #588 , does it mean that this pull request can be merged?

Hi @web4er , the bot is pinging me about lack of progress. I would be grateful if you tested and provided feedback.

Also @Draeieg when you get the chance

QA: https://github.com/ubiquity-whilefoo/ubiquibot/issues/27
Error I get in terminal:
ERROR (event): require() of ES Module ubiquity/ubiquibot/node_modules/mdast-util-from-markdown/index.js from ubiquity/ubiquibot/lib/src/helpers/comment.js not supported.
Instead change the require of index.js in ubiquity/ubiquibot/lib/src/helpers/comment.js to a dynamic import() which is available in all CommonJS modules.

@gitcoindev can you please merge latest development branch into this PR because there were changes related to issue creator reward

Hi @whilefoo thank you for checking. Normally I would do a rebase on top of latest development but this would require force push which I tried already here, will do the merge now and resolve conflict as you suggested.

@whilefoo all good, I merged latest development branch and resolved conflicts, please check now.

@gitcoindev can you please merge latest development branch into this PR because there were changes related to issue creator reward

There is a button on the GitHub pull request view UI (here) at the bottom that allows you to get the latest changes from development. I believe it just performs a simple merge on behalf of the bounty hunter. I would encourage direct changes like this instead of waiting for the bounty hunter to do it.

The branch is out-of-date again after new updates, but I believe @pavlovcik 's approach can be used after the requested change is approved by @web4er .

I am going to do a QA today and then will approve it.

Hi @pavlovcik it seems that Preview deployment check is missing because it expired and it blocks merging, can this be triggered again?

Hi @pavlovcik it seems that Preview deployment check is missing because it expired and it blocks merging, can this be triggered again?

I just deleted the deployments on the repository settings. It didn't do anything but hopefully I didn't break something else.

Thank you for merging!


mim-solvers: init at 0.0.5

Description of changes
This add mim-solvers, an "Implementation of numerical solvers" used in the Machines in Motion Laboratory at  NYU.
Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[x] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Please check ofborg aarch64-linux build failure. Can we disable that test?

nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review pr 345494

x86_64-linux

:white_check_mark: 3 packages built:

mim-solvers
python311Packages.mim-solvers
python312Packages.mim-solvers

aarch64-linux

:white_check_mark: 3 packages built:

mim-solvers
python311Packages.mim-solvers
python312Packages.mim-solvers

x86_64-darwin

:white_check_mark: 3 packages built:

mim-solvers
python311Packages.mim-solvers
python312Packages.mim-solvers

aarch64-darwin

:white_check_mark: 3 packages built:

mim-solvers
python311Packages.mim-solvers
python312Packages.mim-solvers


Collapsing margins

Will this layout support collapsing margins, like described here: https://css-tricks.com/what-you-should-know-about-collapsing-margins/?

Interesting, I didn't know about this! I don't foresee css-layout supporting this though as collapsing margins don't seem to be part of the flexbox display model. You can try it yourself by editing the sample in the link you posted to use display: flex on the body and divs. Now margin stacks instead of collapses.
This library does not try to implement all of css but instead we focus on implementing flexbox and related properties.


error when Building 'rclcpp_tutorials'

OS envrionment: ubuntu 16.04
ros2 version: bouncy
I cannt find the get_rclcpp_information command.
+++ Building 'rclcpp_tutorials'
Running cmake because arguments have changed.
==> '. /home/itfanr/ros2_ws/build/rclcpp_tutorials/cmake__build.sh && /usr/bin/cmake -DBUILD_TESTING=0 -DCMAKE_INSTALL_PREFIX=/home/itfanr/ros2_ws/install /home/itfanr/ros2_ws/src/tutorials/rclcpp_tutorials' in '/home/itfanr/ros2_ws/build/rclcpp_tutorials'
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found ament_cmake: 0.5.1 (/opt/ros/bouncy/share/ament_cmake/cmake)
-- Found PythonInterp: /usr/bin/python3 (found suitable version "3.5.2", minimum required is "3")
-- Using PYTHON_EXECUTABLE: /usr/bin/python3
-- Found example_interfaces: 0.5.0 (/opt/ros/bouncy/share/example_interfaces/cmake)
-- Found rclcpp: 0.5.1 (/opt/ros/bouncy/share/rclcpp/cmake)
-- Found rmw_implementation_cmake: 0.5.0 (/opt/ros/bouncy/share/rmw_implementation_cmake/cmake)
-- Found sensor_msgs: 0.5.1 (/opt/ros/bouncy/share/sensor_msgs/cmake)
-- Found rmw_fastrtps_cpp: 0.5.1 (/opt/ros/bouncy/share/rmw_fastrtps_cpp/cmake)
-- Found fastrtps_cmake_module: 0.5.1 (/opt/ros/bouncy/share/fastrtps_cmake_module/cmake)
-- Found FastRTPS: /opt/ros/bouncy/include
CMake Error at CMakeLists.txt:29 (get_rclcpp_information):
  Unknown CMake command "get_rclcpp_information".
Call Stack (most recent call first):
  /home/itfanr/ros2_ws/build/rclcpp_tutorials/call_for_each_rmw_implementation.cmake:1 (targets)
  /opt/ros/bouncy/share/rmw_implementation_cmake/cmake/call_for_each_rmw_implementation.cmake:57 (include)
  CMakeLists.txt:56 (call_for_each_rmw_implementation)

-- Configuring incomplete, errors occurred!
See also "/home/itfanr/ros2_ws/build/rclcpp_tutorials/CMakeFiles/CMakeOutput.log".

<== Command '. /home/itfanr/ros2_ws/build/rclcpp_tutorials/cmake__build.sh && /usr/bin/cmake -DBUILD_TESTING=0 -DCMAKE_INSTALL_PREFIX=/home/itfanr/ros2_ws/install /home/itfanr/ros2_ws/src/tutorials/rclcpp_tutorials' failed in '/home/itfanr/ros2_ws/build/rclcpp_tutorials' with exit code '1'
<== Command '. /home/itfanr/ros2_ws/build/rclcpp_tutorials/cmake__build.sh && /usr/bin/cmake -DBUILD_TESTING=0 -DCMAKE_INSTALL_PREFIX=/home/itfanr/ros2_ws/install /home/itfanr/ros2_ws/src/tutorials/rclcpp_tutorials' failed in '/home/itfanr/ros2_ws/build/rclcpp_tutorials' with exit code '1'

Duplicate of #22.


Fix HA 2024.11 warning

After updating to 2024.11, I got this warning during startup:
Config was used from fmi, this is a deprecated alias which will be removed in HA Core 2025.11. Use homeassistant.core_config.Config instead, please report it to the author of the 'fmi' custom integration

A bit annoying that homeassistant.core_config.Config was added in 2024.11 (in https://github.com/home-assistant/core/pull/129163) 😬 So maybe we should do it a bit more gracefully to not break those running older versions.

Done, first trying homeassistant.core_config.Config and if it didn't exist, importing homeassistant.core.Config instead.

Thanks a lot!
Annoying solution from HA team but this fix looks good solution.


Can't get live image on doorbell in lovelace (TCP port not avail?)

Please check Services, Known Bug / Issues and Troubleshooting over here first: https://github.com/fuatakgun/eufy_security/blob/master/README.md
Describe the bug
Clicking on the lovelace card does not give me the live doorbell. Other frontend stuff seems to work ok.
To Reproduce
Steps to reproduce the behavior:

Go to 'Lovelace card'
Click on 'Doorbell image'
Scroll down to 'n/a'
See error (see screenshots)

Expected behavior
Live image
Screenshots
See attached
**Hardware Information about Home Assistant
Runs on laptop in VM
**Hardware Information about Cameras

Camera Model
Eufy battery 2K doorbell
Live Streaming Protocol: RTSP or P2p
P2P is enabled

Additional context
Whole bunch of errors in the logs, not sure if significant. FFmpeg i have enabled in configuration.yaml by doing ffmpeg: , no parameters.

This is a know issue: https://github.com/fuatakgun/eufy_security/issues/102
Until this is resolved, you can use webrtc integration which is more reliable and faster.

I am using webrtc integration :-)

Can you try to reload the integration? You seem to have too many errors there

Just reloaded. I'm now getting these only:

Can you give more details for first and second errors?

I take it back, i get all error messages again.
In order :
The first 2 seem to be related to the eufy alarm panel:

Task exception never retrieved:

Error adding entities to ...

Error ffmpeg not running

Doorbell video thread exception..

FFmpeg already running!

Stop ffmpeg exception:

I'm sure most of them are related somehow and can all be condensed in one error. The installation went fine and i see no problems on the frontend, so not sure what these are about.
Thanks for helping out.

Maybe i need to remove the ffmpeg: from my configuration.yaml ? I think i read somewhere it's not needed anymore. Maybe that's what's causing those errors?

Ffmpeg is one issue and alarm control panel is another one.
You can disable alarm control panel so it will not generate errors until we fix it.
For ffmpeg, cam you confirm if you are able to run ffmpeg over ssh under hassos or ubuntu (not in docker)

just trying to find out how to disable protected mode and log in to the container. Also just added ffmpeg_bin /usr/bin/ffmpeg to the configuration and restarted, see if that fixes anything.

ok, so adding the ffmpeg_bin /usr/bin/ffmpeg parameters to ffmpeg: gave me video, works great. One down.
i see streaming - p2p in the screenshot, so that's good.
I do see that after watching live video stream when i go back to the autogenerated lovelace dashboard the regular eufy card doesn't display a screenshot as it normally would, just is grey. Not sure why.
I still get the doorbell stop ffmpeg exception and doorbell video thread exception errors though, might have something to do with that.

please share your camera with me over eufy mobile app following instructions from README file, i will take a look at the issue.

let's resolve this and create a separate one, this is getting longer and untrackable.


Can't run "npm run start"

When I run npm run start after npm install there is an error
Starting '<anonymous>'... [10:10:56] '<anonymous>' errored after 12 ms [10:10:56] Error: spawn ./node_modules/.bin/electron ENOENT     at Process.ChildProcess._handle.onexit (internal/child_process.js:232:19)     at onErrorNT (internal/child_process.js:407:16)     at process._tickCallback (internal/process/next_tick.js:63:19) [10:10:56] 'start' errored after 856 ms

Did you resolve it?

i have the same error

[10:04:32] Finished 'build-css' after 34 ms
[10:04:32] Starting 'build-js'...
[10:04:32] Finished 'build-js' after 504 ms
[10:04:32] Finished 'build' after 545 ms
[10:04:32] Starting ''...
[10:04:32] '' errored after 6.49 ms
[10:04:32] Error: spawn ./node_modules/.bin/electron ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
at onErrorNT (internal/child_process.js:362:16)
at _combinedTickCallback (internal/process/next_tick.js:139:11)
at process._tickDomainCallback (internal/process/next_tick.js:219:9)
[10:04:32] 'start' errored after 663 ms
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>start: gulp start
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR!  I had same problem in Windows 10 and i resolved changing the following line a gulpfile.js:
From:
const cmd   = (name) => ./node_modules/.bin/${name};
To:
const cmd   = (name) => path.join('.', 'node_modules', '.bin', name);
Additionally, i added the cwd:'.' parameter in spawn options under gulp.task

@guibonafini Could you please add a pull request?

Pull request added


Add JS-X-Ray warnings translation

Sub-issue related to: https://github.com/NodeSecure/ci/issues/5 (please read it for initial context).
The goal is to add a new section to translate JS-X-Ray warnings legends (they are documented here).
These translations can be used later by API to translate warnings in our tools like CI.
We expect french and english to be covered in the PR. We will probably discuss improving the descriptions (so don't worry about being wrong about that).

@Mathieuka take the issue.

@all-contributors please add @Mathieuka for code, translation


@autorest/core didn't pick the pinned version "3.0.6326", instead it picked the latest version

We pinned version: 3.0.6326 in autorest.csharp repo here but autorest picked '@autorest/core' - '3.0.6348' version instead.
For reference  check here.

We also pin the autorest version in https://github.com/Azure/autorest.csharp/blob/feature/v3/package.json#L7


Provide logic which return a CVE id instead of VulnDB ID for a single reference.

What this PR does / why we need it:
This change will determine the size of the NVD data structure and if
it is of size one element, the cve_id will be reported instead of the
vulndb_id.
Which issue this PR fixes
fixes #: 442
https://github.com/anchore/enterprise/issues/442
Special notes:

I would also strongly recommend unit tests for the newly introduced methods and may be integration tests in downstream repo to test this functionality

I would also strongly recommend unit tests for the newly introduced methods and may be integration tests in downstream repo to test this functionality

Touré's rebase pulled commits that have already been merged, probably because the rebase was done against a stale branch without fetching the changes. Cleaned up the rebase and pushed the changes to the PR

Touré's rebase pulled commits that have already been merged, probably because the rebase was done against a stale branch without fetching the changes. Cleaned up the rebase and pushed the changes to the PR

Touré's rebase effort rolled back use of normalized ID for blacklist evaluation. Reintroduced that change back into the PR

Touré's rebase effort rolled back use of normalized ID for blacklist evaluation. Reintroduced that change back into the PR


Fixed slash in SystemURL parameter

SystemURL should always end with a / in WHMCS, so adding another / isn't required and causes errors.

I see. Thanks!


Idea: Import strategies from other packages if they exists

A few of the strategies here are already in other packages. I think if someone already created the individual package of some of them it would be useful to re-export them from remix-auth-socials so you don't need to maintain a copy of the strategy, and while most strategies are probably not going to change a lot if a bug was found in one of them it can be fixed in a single place.
Some strategies already published independently:

https://github.com/sergiodxa/remix-auth-github
https://github.com/JonnyBnator/remix-auth-discord
https://github.com/pbteja1998/remix-auth-google
https://github.com/juhanakristian/remix-auth-microsoft

There's also https://github.com/chadelofson/remix-auth-facebook but it's not implemented yet.

So i'm not rushing to do this because of a few things:

Trusting that the maintainers will actually fix problems, right now it's whoever was first got it, and we don't know how uptake will go
The quality is different between packages, eg:
remix-auth-google has no tests
remix-auth-discord is the only one that exports the scope options type

Right now I can at least provide a consistent experience in one spot, and if all the other packages remain stable and eventually follow the same pattern I can re-export


Scratch does not get reset for 404 page

Via: http://discuss.gohugo.io/t/scratch-not-getting-cleared-for-404-pages/1534
$.Scratch does not get reset for rendering the 404 page.
Potentially combine with #1316

I agree about the link to #1336, but that need more than one code line.


[Bug] misplaced playback bar

Whats the bug?
since Spicetify update 2.20.3 the bar is no longer properly positioned

Product info:
Spicetify version : 2.20.3
Spotify version : <IP_ADDRESS>9.ga3ae422d
Your config-xpui.ini
[Setting]
current_theme           = marketplace
inject_theme_js         = 1
inject_css              = 1
replace_colors          = 1
check_spicetify_upgrade = 0
spotify_path            = C:\Users\Nans\AppData\Roaming\Spotify
prefs_path              = C:\Users\Nans\AppData\Roaming\Spotify\prefs
spotify_launch_flags    =
color_scheme            =
overwrite_assets        = 0
[Preprocesses]
disable_ui_logging    = 1
remove_rtl_rule       = 1
expose_apis           = 1
disable_upgrade_check = 1
disable_sentry        = 1
[AdditionalOptions]
extensions            = fullScreenWrapper.js
custom_apps           = marketplace|lyrics-plus
sidebar_config        = 1
home_config           = 1
experimental_features = 1
[Patch]
; DO NOT CHANGE!
[Backup]
version = <IP_ADDRESS>9.ga3ae422d
with    = 2.20.3
OS
Windows
I checked all issues and mine is different

[X] Yes, I checked all issues

@Tetrax-10, I have the same issue on marketplace and script-installed theme variants of nord.


allow minor drift in pnpm versions

Changes
This updates pnpm to latest (9.1.0) and prevents CI from failing when there is a new version of pnpm in the future.
Testing
N/A
Docs
N/A

Thats brave :D
We got this which made us lock the pnpm version locally and in CI.
https://github.com/pnpm/pnpm/issues/6648
but hopefully they stoped doing breaking changes randomly..

Yeah there is a risk, but we can always lock it down in CI if we run into issues in the future.


Adds welcome message for database projects

Just a simple welcome message for empty state with buttons to help user get started

Coverage decreased (-0.02%) to 34.245% when pulling 8c9cca959355bb97b3fef0167ece05ae1aa6917a on benjin/welcome into c8a3fbca47a7d2a79bf628c36093a9860a39074c on master.


Add missing 2022 Rav4 Firmware

From 23e0360acaefab4d

discord thread: https://discord.com/channels/469524606043160576/1029813145696489582/1029850160974549083


Change Edge version for disabling modifying document.domain

According to this, the Edge version for disabling modifying document.domain has been changed from v106 to v109.

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

File
Status
Preview URL
Details

microsoft-edge/web-platform/site-impacting-changes.md
:white_check_mark:Succeeded
View

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

@dan-wesley since you've made the change on the mentioned doc, can you please take a look at this PR?

LGTM from the Web Platform team too!


contributing/data-model-schema: Delete obsolete autogen documentation

/cc @hflynn
Since the autogen stuff is now completely automatic, removing this section outright.

Build still red https://ci.openmicroscopy.org/view/Docs/job/CONTRIBUTING-merge-docs/1340/console - there's a reference in L172 that needs removing too

The editing documentation guide needs the bio-formats section updating too - I'll open a separate PR for that

https://ci.openmicroscopy.org/view/Docs/job/CONTRIBUTING-merge-docs/1342/ is green now with my PR included too.
Since this just removes stuff on the page we know needs updating anyway, I'm just going to merge it, thanks.


OgE Integration

[x] Flame graph support on network requests
[x] Run queries against app network

Closed via #41


LEAN-3034: Exporting citations

Once this is approved and the implementation is agreed on, I'll create a ticket for the WM to send the citations style & locale.
Most of the current implementation is based on what we have in manuscripts-library.

I'm wondering if it's time to merge manuscripts-library into manuscripts-transform. I don't see any case where we would want transform without the logic of library. @IslamJMomani @mbartenev-atypon

I don't see any case where we would want transform without the logic of library

I didn't get that. Could you please elaborate more on the benefits of doing that?
In general, I'm not in favor of merging these modules. I would prefer to keep them separate.

I'm wondering if it's time to merge manuscripts-library into manuscripts-transform. I don't see any case where we would want transform without the logic of library. @IslamJMomani @mbartenev-atypon

I see that the library comes along with transform normally, but unless there is a risk of some convoluted interdependency between these modules, I would prefer to keep them separated. This is because transform is a huge module by itself and library receives it's own specific updates frequently. So mostly for house keeping reasons, so to say, to me it makes more sense to have 2 modules.

The main reason I'm suggesting merging the two modules is that now we need "library" logic in the transform, but since library has a dependency on transform, we can't add library as a dependency to transform. The options we have are:
Duplicate the code. This is what was done in this PR.
Remove the transform dependency from library. This way we can add library as a dependency to transform and share the code.
Merge the modules. This is my suggestion.
Note that until a year ago, there was a cyclic dependency between the modules, which indicates to me that there is a boundary problem with the modules. I think the problem is that transform contains too much, for example, if we extracted the JATS logic into its own module, we wouldn't need this cyclic dependency. I guess that's a 4th option we can pursue.
Thoughts? @IslamJMomani @mbartenev-atypon @hhusban @mbetamony

"I would vote for the second option. Removing the transform dependency from the library seems like an achievable task, and sharing the code is the right way to go."

I agree

w issue
Edit
Hide
Delete

Any thoughts on moving JATS code out of transform? This way:

We can have the transform focused on json schema to prosemirror transformation.
No need to add library dependency to transform, since JATS is the only user.

I do agree with separating the import/export logic from the encode/decode logic.

I scheduled a quick call tomorrow to discuss this.

I thought about it more, and extracting the JATS code to its own module feels like something we should do, as transform just has too much in it.
If there is consensus by the team around another solution, I'm happy to go with that.

I also experimented with removing the transform dependency from library, and although most of it was smooth (most usages should not be there in the first place), there were a couple of usages that were problematic: buildBibliographicName and buildBibliographicDate. This is another example of logic that (to me) doesn't fit in the transform; it feels more appropriate to have the builders defined in json-schema.

@mbetamony I'm assuming the current implementation functions correctly. Maybe having the duplication here is best way forward until we figure out the proper way to fix it.

As long as we can preserve testing suites in the transform as we have them now, I'm ok with this.

Can someone please review this?

I've created PRs to add builders to json-schema, and remove transform dependency from library, so it should be possible to use the library here as follows:
// setup the provider. Should be done once. See the bibliography plugin in body-editor as an example
const provider = new CitationProvider({
  getLibraryItem: (id: string) => modelMap.get(id),
  citationStyle: csl.style,
  locale: csl.locale,
})

// collect citation nodes in order (using node.descendents)
const nodes = ...
const citations = buildCitations(nodes)
const citationTexts = provider.rebuildState(citations)

----

// "citation" node handler
const id = node.attrs.id
const text = citationTexts.get(id)

----

// when building the ref-list. This ensures only cited references are there, and that they're in correct order.
const [meta] = provider.makeBibliography()
for (const id of meta.entry_ids) {
    ...
}


Facet Subdivision

Hello, I am looking at numpy-stl to use in to import stl files for a python based geometrical optics model and I need a way to set a maximum facet area. I had assumed a median subdivision algorithm was the best way to go but do you have any advice on the most efficient way to implement it? I'm still working out the structure for adding and removing facets.

If I understand correctly, you are trying to calculate the convex hull, right?
The qhull library is pretty good at that, the scipy module has an interface to calculate it: http://scipy.github.io/devdocs/generated/scipy.spatial.ConvexHull.html
Just note that it is a very heavy operation and could take a long time.
Alternatively, you can get a pretty nice approximation using an octree or kd-tree

Not the Convex Hull no, I will be passing the facet vertices to a ray
casting algorithm to work out which facets are 'visible' from a set angle.
Due to demands of accuracy I need to ensure that no facet has an area
larger than a tenth of a wavelength or similar. Happily if I calculate the
midpoint between each vertices then those give the central point and 6
equal area smaller triangles. I'm still digging into your excellent code
and I thought getting your advice on how its meant to be manipulated would
be most helpful.
On 7 Jan 2016 6:13 p.m., "Rick van Hattem"<EMAIL_ADDRESS>wrote:

If I understand correctly, you are trying to calculate the convex hull,
right?
The qhull library is pretty good at that, the scipy module has an
interface to calculate it:
http://scipy.github.io/devdocs/generated/scipy.spatial.ConvexHull.html
Just note that it is a very heavy operation and could take a long time.
Alternatively, you can get a pretty nice approximation using an octree or
kd-tree
—
Reply to this email directly or view it on GitHub
https://github.com/WoLpH/numpy-stl/issues/20#issuecomment-169760480.

Ah, yes... I see your point.

I think i'm going about this the wrong way. I can access the facet points through either mesh.mesh.vectors or mesh.mesh.points, but when I have calculated the six new triangles to replace the single facet which is to large, how do I remove the existing facet, then add new ones on? I assumed that pop() would work but it isn't an included method. Is the most robust way to alter the facets of an object to take the mesh.Mesh.vectors, and alter that array and add the new vertices to that, then pass it back in as data['vectors'] as shown in your modifying mesh objects example?

The basic data store within the mesh objects is the Mesh.data Numpy array. That limits modification somewhat however as numpy arrays have a fixed size, the only way to add/remove rows is by creating a new array. So if you wish to remove rows I would recommend creating a new array with the correct amount of rows and write the data to that. After that you can create a new Mesh object.

Ok thank you, I had come to that to conclusion, will it calculate the normals and areas for the new mesh object automatically?

When you create a mesh object it automatically takes care of the normals: https://github.com/WoLpH/numpy-stl/blob/master/stl/base.py#L154-L155
The areas isn't updated automatically but can be updated through the update_areas function: https://github.com/WoLpH/numpy-stl/blob/master/stl/base.py#L204

I've written a simple function to split any stl facets larger than a specified area into six smaller triangles with identical areas, but it seems to generating some odd results, i'm not sure if the normals are updating correctly either. I've included a rendering of the original test object and the new one with smaller facets. Both rectangles should be identical in size, just defined by different sized facets.
This is the rough code
#Facet Update Module
from stl import mesh
import numpy as np

def perp(a):
    b = np.empty_like(a)
    b[0] = -a[1]
    b[1] = a[0]
    return b

def line_intersect(a1,a2, b1,b2) :
    da = a2-a1
    db = b2-b1
    dp = a1-b1
    dap = perp(da)
    denom = np.dot( dap, db)
    num = np.dot( dap, dp )
    return (num / denom.astype(float))*db + b1

def mid(a,b):
    midpoint=np.zeros([2])
    midpoint=[(a[0]+b[0])/2.,(a[1]+b[1])/2.,(a[2]+b[2])/2.]
    return midpoint

def triangle_split(vertices):
    six_triangle_vertices=np.zeros([6,3,3])
    centroid=line_intersect(vertices[0],mid(vertices[1],vertices[2]),vertices[1],mid(vertices[0],vertices[2]))
    six_triangle_vertices[0]=[vertices[0],mid(vertices[0],vertices[1]),centroid]
    six_triangle_vertices[1]=[mid(vertices[0],vertices[1]),vertices[1],centroid]
    six_triangle_vertices[2]=[vertices[1],mid(vertices[1],vertices[2]),centroid]
    six_triangle_vertices[3]=[mid(vertices[1],vertices[2]),vertices[2],centroid]
    six_triangle_vertices[4]=[vertices[2],mid(vertices[0],vertices[2]),centroid]
    six_triangle_vertices[5]=[mid(vertices[0],vertices[2]),vertices[0],centroid]
    return six_triangle_vertices

def area_fix(object_list,area_limit):
    areas=[]
    large_facets=[]
    fixed_list=[None]*len(object_list)
    #large_facets becomes an index of the index of facets in each object which are larger than requested
    for count in range(len(object_list)):
        areas.append(object_list[count].areas)
        large_facets.append([v for v,x in enumerate(areas[count]) if x >= area_limit])
        object_vectors=np.zeros([len(object_list[count].data['vectors']),3,3])
        object_vectors=object_list[count].data['vectors']
        trimmed_object_vectors=np.delete(object_vectors,[large_facets[count]],0)
        for count2 in range(len(large_facets[count])):
            facet_vectors=object_list[count].data['vectors'][large_facets[count][count2]]
            new_object_vectors=np.zeros([6,3,3])
            new_object_vectors=triangle_split(facet_vectors)
            trimmed_object_vectors=np.append(trimmed_object_vectors,new_object_vectors,axis=0)
        new_object=np.zeros(len(trimmed_object_vectors), dtype=mesh.Mesh.dtype)
        new_object['vectors']=trimmed_object_vectors
        fixed_list[count]=mesh.Mesh(new_object.copy())
        fixed_list[count].update_areas

    return fixed_list```

Well, that indeed looks a tad broken, I can't really tell you what the problem is straight up but I see at least 1 small error in the code. You're not calling update_areas, it's a function that needs to be called for it to work.

I have found the problem with the code, the algorithm I was using for generating the central point was returning NaN instead of the coordinates in many circumstances, and this has been fixed now.


Implemented testing of unification

Codecov Report

Merging #25 (c7e01fc) into master (5b4f6c4) will increase coverage by 31.98%.
The diff coverage is n/a.

@@              Coverage Diff              @@
##             master      #25       +/-   ##
=============================================
+ Coverage     29.33%   61.31%   +31.98%
- Complexity      285      703      +418
=============================================
  Files           232      232
  Lines          3849     3849
  Branches        551      551
=============================================
+ Hits           1129     2360     +1231
+ Misses         2616     1095     -1521
- Partials        104      394      +290

Impacted Files
Coverage Δ

...a/org/uast/uast/generated/tree/green/Addition.java
69.38% <0.00%> (+6.12%)
:arrow_up:

...rg/uast/uast/generated/tree/java/rules/Rule19.java
93.33% <0.00%> (+6.66%)
:arrow_up:

...org/uast/uast/generated/tree/green/Identifier.java
68.96% <0.00%> (+6.89%)
:arrow_up:

src/main/java/org/uast/uast/base/ListUtils.java
57.14% <0.00%> (+7.14%)
:arrow_up:

...rg/uast/uast/lang/java/JavaRawToNodeConverter.java
100.00% <0.00%> (+9.52%)
:arrow_up:

...uast/uast/generated/tree/green/StatementBlock.java
73.17% <0.00%> (+12.19%)
:arrow_up:

.../java/org/uast/uast/lang/AntlrToNodeConverter.java
95.00% <0.00%> (+12.50%)
:arrow_up:

...g/uast/uast/generated/tree/js/rules/Matcher35.java
20.00% <0.00%> (+20.00%)
:arrow_up:

...in/java/org/uast/uast/generated/tree/js/Yield.java
25.00% <0.00%> (+25.00%)
:arrow_up:

.../org/uast/uast/generated/tree/green/Dimension.java
50.00% <0.00%> (+25.00%)
:arrow_up:

... and 152 more

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 5b4f6c4...c7e01fc. Read the comment docs.


v3.2.x

The new APIs to be added in the new minor version [will be updated]:

Group namespace specifiers
...
New documentation:
Guidelines for new APIs to be suggested / implemented
Open new discussion for new API or other ideas to be added in the plugin

The changes are released in v3.2.0


Autopage

Since the latest update of coreprotect, the autopage functionality of watson seems to feel ro recognize to autopage to the end. I've had to manually skip trough all the pages for a few weeks now and eventually it just gets very hard
Is there any way this can be fixed on watsons end? Would be nice as this is very timeconsuming.
Greetings

This is fixed in a wip version of coreprotect/watson since it will be totally different how it will work

Could you elaborate on "wip version" Is that another version of coreprotect I have to install to ensure functionallity?

In development branch this works, but now it needs to be merged by coreprotect still, just waiting for that.

Any update on this? As it looks like, autopaging is still not working atm...or did I miss something?

@PaBox autopage should still work, the issue here originally was for improving the autopage so it doesnt skip thru all of them etc.
If the autopage doesn't work for you, feel free to hop in the discord where i can help you.


RuntimeError: Library libcublas.so.12 is not found

Ubuntu 20.84
CUDA 11.8
Nvidia Driver 525.147.05
Python 3.8
Pytorch 2.2.1+cu118
cuBLAS <IP_ADDRESS>
cuDNN <IP_ADDRESS>
The service works well enough when using CPU, but I  cannot get it to work with CUDA. Every guide I have have followed so far has used CUDA 11.8 but it seems that the version of cTranslate2 used in faster-whisper 1.0.0 now requires CUDA12 libraries.
On trying to use CUDA I get the Error: RuntimeError: Library libcublas.so.12 is not found

I had the same problem.
I was able to solve it by following the hint here https://github.com/SYSTRAN/faster-whisper/issues/516#issuecomment-1902687567 in order to add the correct virtual environment paths to the LD_LIBRARY_PATH
Steps (starting from your cloned folder)
source .venv/bin/activate

pip install nvidia-pyindex
pip install nvidia-cublas
pip install nvidia-cudnn

deactivate

export LD_LIBRARY_PATH=${PWD}/.venv/lib64/python3.11/site-packages/nvidia/cublas/lib:${PWD}/.venv/lib64/python3.11/site-packages/nvidia/cudnn/lib:$LD_LIBRARY_PATH

then it can be run with
script/run --model tiny-int8 --language en --uri 'tcp://<IP_ADDRESS>:10300' --data-dir /data --download-dir /data --device cuda

see https://github.com/rhasspy/wyoming-faster-whisper/issues/35#issuecomment-2305540613 this is working currently.


INTERFACE_NOT_THREAD_SAFE should not apply to dependencies

I have a Java class annotated with @ThreadSafe and it uses the pervasive SLF4j Logger for logging.  Infer/RacerD complains that Logger should be declared ThreadSafe -- INTERFACE_NOT_THREAD_SAFE  :-)
Obviously it's not within my power to do that; it's in a dependency of my project.

You may find the --external-java-packages option useful, it should suppress reports in external packages.

I tried to use external-java-packages vis-a-vis Sonatype Lift (whom I am also in contact with for support).  But the results (of Lift invoking Infer) show that ThreadSafe annotated classes which use SLF4J (despite me trying to tell RacerD to ignore SLF4J) are still reporting the problem.  Does anything jump out at you as a problem?  Well never mind; I think configuring package-by-package is a losing strategy anyway.  Realistically I'm going to have to just configure Lift to ignore all INTERFACE_NOT_THREADSAFE. I find RacerD's default mode here with respect to this issue type very surprising; it seems to not recognize what an "external" package is by itself (which it should be able to do based source file availability of course).  A TODO for a better RacerD.

Good.


[WIP] Rules from html attributes

This adds another source of rules for vee-validate, it allows the plugin to pull rules from native HTML5 elements using HTML form validation API
For example:
<input type="email" name="field" v-model="val" required v-validate>

This will validate the field with the following rules: required and email.
Here is a table of attributes that translates to a rule:

Attribute Name
value
Rule

type
"email"
"email"

type
"number"
"decimal"

min
val
min_value: val

max
val
max_value: val

pattern
rgx
regex: rgx

As I am working on this, more rules can be added in the future.

Beware of number, it needs the step attribute as well to support floats.
e.g. step="any"
Another thing, you better use valueAsNumber instead of value.

Thanks but the decimal rule supports floats, unlike the numeric rule. All rules cast the value to numbers properly before attempting any validation or checks if its not the case feel free to point out where would it fail.

Thanks but the decimal rule supports floats

Yeah that's the problem because the default with the number type is to return false for validity.valid for floats when the step is not properly set. Hence your rule would return true but you would have a validity.stepMismatch set to true: you gotta take into account the step attribute.

Thanks for the explanation, I will be sure to take it into account 😄

Just saying that you will need a new rule for integers because the numeric one doesn't cover negative integers.


adding a condition if current file is not supported for adding header.

I tried to run the autocmd in a file that is not in the list of filetypes, it occurs to me an error, so I add a condition for verifying if current file is supported.

Thanks!


Convert IAvaloniaXamlIlParentStackProvider to eager one if needed

What does the pull request do?
This PR correctly handles IAvaloniaXamlIlParentStackProvider parents that don't implement the new IAvaloniaXamlIlEagerParentStackProvider, in the generated XAML Context.
This happens when a XAML file compiled with Avalonia 11.0 implicitly loads a XAML file that is now compiled with Avalonia 11.1 (for example, loading FluentTheme).
What is the current behavior?
An InvalidCastException occurs.
What is the updated/expected behavior with this PR?
No exception, everything works.
How was the solution implemented (if it's not obvious)?
An intermediate XamlIlParentStackProviderWrapper is instantiated if needed.
Fixed issues

Fixes #16020

Unfortunate that the RC has been released without this.


Allow urls across sessions?

I just upgraded to 1.5.1 (from 1.3.1) and was put off by the verbosity of the URL warnings.  Similar to the user in issue #744 I make a lot of remote calls, so I'd like to silence everything.  page.driver.allow_url('*') seems to work, unless I'm using multiple sessions within a test.  As soon as I spin up a new session (Capybara::Session.new(Capybara.javascript_driver)), the warnings start up again.  Is there any way to silence this globally without having to call allow_url('*') from within each session?

We recently accepted a pull request which allows for silencing all the warnings for a session: https://github.com/thoughtbot/capybara-webkit/commit/6e485ca45db7f3c559d647f15fd7863ac5ae4bbd
We're in the process of working through a global (all sessions) way of doing configuration: https://github.com/thoughtbot/capybara-webkit/pull/756
Currently, you'll need to call allow_url for each session. In RSpec, you can use a before block for this.


Feat/decode key hash

What kind of change does this PR introduce (bug fix, feature, docs update, ...)?
Feature: Decode Key Hash
This new feature would propose a function to decode a key hash, by providing, either the keyname, either the ERC725Y json schema associated to the key hash, and would return the dynamic parameters (type and value) from the key hash.
What is the current behaviour (you can also link to an open issue here)?
No way to decode the dynamic parts of a key hash from its schema definition.
Open issue: https://github.com/ERC725Alliance/erc725.js/issues/253
What is the new behaviour (if this is a feature change)?
Function to decode a key hash from its associated key name or erc725y json schema, returning the dynamic key parts with their type and value.
Other information:
decodeKeyHash
ERC725.decodeKeyHash(keyHash, keyNameOrSchema);

Decode the values of the dynamic parts of a hashed key used on an ERC725Y contract according to the LSP2 ERC725Y JSON Schema Standard.
decodeKeyHash is available as either a static or non-static method so can be called without instantiating an ERC725 object.
Parameters
1. keyHash - String
The bytes32 key hash that needs to be decoded
2. keyNameOrSchema - String or ERC725JSONSchema
The key name or erc725y json schema associated to the key hash to decode, for instance: MySuperKey:<address>.
Returns

Name
Type
Description

dynamicKeyParts
{type: string, value: string OR number OR boolean}[]
The dynamic key parts decoded from the key hash.

Example
ERC725.decodeKeyHash('0x35e6950bc8d21a1699e50000cafecafecafecafecafecafecafecafecafecafe', 'MyKeyName:<address>');
// [{
//   type: 'address',
//   value: '0xCAfEcAfeCAfECaFeCaFecaFecaFECafECafeCaFe'
// }]

ERC725.decodeKeyHash('0x35e6950bc8d21a1699e5000000000000000000000000000000000000f342d33d', 'MyKeyName:<uint32>');
// [{ type: 'uint32', value:<PHONE_NUMBER> }]

ERC725.decodeKeyHash('0x35e6950bc8d21a1699e5000000000000000000000000000000000000abcd1234', 'MyKeyName:<bytes4>');
// [{ type: 'bytes4', value: 'abcd1234' }]

ERC725.decodeKeyHash('0x35e6950bc8d21a1699e50000aaaabbbbccccddddeeeeffff1111222233334444', 'MyKeyName:<bytes32>');
// [{
//   type: 'bytes32',
//   value: 'aaaabbbbccccddddeeeeffff1111222233334444'
// }]

ERC725.decodeKeyHash('0x35e6950bc8d21a1699e500000000000000000000000000000000000000000001', 'MyKeyName:<bool>');
// [{ type: 'bool', value: true }]

ERC725.decodeKeyHash('0x35e6950bc8d20000ffff000000000000000000000000000000000000f342d33d', 'MyKeyName:<bytes2>:<uint32>');
// [
//   { type: 'bytes2', value: 'ffff' },
//   { type: 'uint32', value:<PHONE_NUMBER> }
// ]

// This method is also available on the instance:
myErc725.decodeKeyHash('0x35e6950bc8d20000ffff000000000000000000000000000000000000f342d33d', 'MyKeyName:<bytes2>:<uint32>');

note: name could be decodeMappingKey

Codecov Report

Merging #254 (e04ac88) into develop (b8a01b7) will increase coverage by 0.33%.
The diff coverage is 90.24%.

@@             Coverage Diff             @@
##           develop     #254      +/-   ##
===========================================
+ Coverage    82.39%   82.73%   +0.33%
===========================================
  Files           17       18       +1
  Lines          909      950      +41
  Branches       202      213      +11
===========================================
+ Hits           749      786      +37
- Misses          88       90       +2
- Partials        72       74       +2

Impacted Files
Coverage Δ

src/lib/decodeKeyHash.ts
89.47% <89.47%> (ø)

src/index.ts
77.00% <100.00%> (+0.71%)
:arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Test bower repository

[x] Test install in online
[ ] Test install in offline
[ ] Test register

change package. but i get same result
$ bower register indolering/hello-world git://github.com/indolering/hello-world.git
bower indolering/hello-world#* resolve git://github.com/indolering/hello-world.git#*
bower indolering/hello-world#*         download https://github.com/indolering/hello-world/archive/master.tar.gz
bower indolering/hello-world#*          extract archive.tar.gz
bower indolering/hello-world#*         resolved git://github.com/indolering/hello-world.git#3f6a59c1c4
? Registering a package will make it installable via the registry (http://localhost/nexus/repository/bower-hosted), continue? Yes
bower indolering/hello-world           register git://github.com/indolering/hello-world.git
bower                                  EUNKNOWN Unknown error: 401 - undefined

change protocol. but i get same result.
$ bower register indolering/hello-world http://github.com/indolering/hello-world.git
bower indolering/hello-world#* resolve http://github.com/indolering/hello-world.git#*
bower indolering/hello-world#*         download https://github.com/indolering/hello-world/archive/master.tar.gz
bower indolering/hello-world#*          extract archive.tar.gz
bower indolering/hello-world#*         resolved http://github.com/indolering/hello-world.git#3f6a59c1c4
? Registering a package will make it installable via the registry (http://localhost/nexus/repository/bower-hosted), continue? Yes
bower indolering/hello-world           register http://github.com/indolering/hello-world.git
bower                                  EUNKNOWN Unknown error: 401 - undefined


Crescendo wp5 diag co2

Integrate new features in ocean diagnostics for CO2 ocean data of Landschutzer (2014).
This is the split branch of previous PR #895 only for diagnostics tool.

Everything looks good to me (but I have not run the recipe). Out of curiosity, could you share an image here that uses the new extent argument to the map diagnostics?

Everything looks good to me (but I have not run the recipe). Out of curiosity, could you share an image here that uses the new extent argument to the map diagnostics?

@ledm At the moment, the extend option is active only when user defined maps range are provided to saturate extreme values of the contour.
Here below an example of the recipe output for CO2 fluxes (fgco2).
In this specific case the 'model over obs' subplot (bottom right) is not generated since the variable has valid negative values that cannot be log transformed.

Here the example to the sea surface CO2 partial pressure (spco2)

Can you please fix the Codacy issues?

done

@bouweandela if the PR is ok, would it be possible to finalize your review.

Thanks you for fixing the Codacy issues. Can you also click the New duplication tab on Codacy and see if you can move this kind of copy/pasted code into functions?

Thanks you for fixing the Codacy issues. Can you also click the 'New duplication' tab on Codacy and see if you can move this kind of copy/pasted code into functions?

I made only a couple of additions and, frankly speaking, I think that the author of the scripts would be more entitled to do such changes.

I made only a couple of additions and, frankly speaking,

Strange that is says New duplication indeed, it should say Old duplication.

I think that the author of the scripts would be more entitled to do such changes.

Thanks, I now see that I already asked him to do that some time ago #817

@mattiarighi @bouweandela The tests still fails with errors likely due to the requested removal of field property from the recipe workflow (#775).
If you agree I can revert few changes done in this PR and leave the revision of field for the ongoing PR #970, so we can close the present work and I will start from here with diagnostics using CMIP6 data.

If you agree I can revert few changes done in this PR and leave the revision of field for the ongoing PR

Yes, that would be great

If you agree I can revert few changes done in this PR and leave the revision of field for the ongoing PR

Yes, that would be great

@bouweandela done.
If test are now ok, it would be great to have this back in version2_development branch to go further on with new developments for diags using CMIP6 data.

Since #970 has been merged, I've removed field again from the recipe.

🎉 🎉 :beer:


feat(ci/KAG-1793): add lint and sast workflows using shared actions

@curiositycasualty - Please give this PR a review.


@conda-forge-admin, please add bot automerge

@conda-forge-admin, please add bot automerge

Hi! This is the friendly automated conda-forge-webservice.
I just wanted to let you know that I added bot automerge in conda-forge/prometheus_flask_exporter-feedstock#6.


mpfs: Add configurable support for domain init

OpenSBI domain init support for mpfs
Signed-off-by: Jouni Ukkonen<EMAIL_ADDRESS>Summary
Impact
Testing

Closing this, as already merged with other PRs


safari error not able to load project by using this slideshow is there any configuration

safari error not able to load project by using this slideshow is there any configuration
no error

closed due to inactivity


Don't clear the content selected in the previous Visual Line mode

select some lines in Visual Line mode
use <leader>c to add comment
Comment can be toggled  by using <leader>c at anywhere in normal mode

Hi 👋🏼 ! Is this in the context of a bug report or feature request? I suspect the latter, if so would you provide a little more context?
From what I understand you would like the following behaviour:

some comments are toggled somewhere in a buffer (via using standard visual selection)
if later on <leader>c is invoked without any visual selection (say in normal mode) then comments from the last visual selection are re-toggled (or un-toggled)

is my understanding correct?

@gennaro-tedesco Yes, you are correct. I am sorry for my English.

Regarding the idea of having <leader>c in normal mode defaulting to the last visual selection how would you see this work across buffers? Say you have different buffers with different filetypes and the following

buffer 1 - user makes a visual selection and toggles a comment
switch to buffer 2 - make another visual selection and toggle a comment
switch to buffer 3: <leader>c in normal mode: what would be triggered now?

Same goes when buffers/windows are opened/deleted.
(Moreover, what if instead the user toggles a visual selection and performs a different operation: would you default back to this visual selection or would you instead default back to the latest commented lines, independent of the visual selection?)

By the way, there is a bug in code below
vim.cmd('norm ^'..#filetype_config['single'] + 1 ..'x')

This will delete userful char like below
--print("hello world")

About the above please open a separate issue replicating the expected behaviour (in contrast to the current one) and what file type it refers to.

Any update on the bug report as above (so that I can reproduce)?


Token Expiration Option

Adds expiration option for login function and ups the version

Tests pass and version 0.0.11 is published!  Also I got an opportunity to learn all about the new publish tokens due to 2fa :sweat_smile:


[bug]

Describe the bug
Using await on an  AsyncGuard with the callable litellm.acompletiion results in following error when using guardrails==0.5.11
   async for chunk in resp_gen:
  File "/opt/miniconda3/envs/GUARDENV/lib/python3.9/site-packages/guardrails/telemetry/guard_tracing.py", line 197, in trace_async_stream_guard
    res = await anext(result)  # type: ignore
NameError: name 'anext' is not defined

To Reproduce

Install guardrails-ai==0.5.11
Install guardrails hub install hub://guardrails/profanity_free
Set below env variables

   export OPENAI_ENDPOINT_URL=https://api.openai.com/v1/chat/completions
   export OPENAI_API_KEY=sk-...

Copy below script to demo.py and run as python demo.py

import asyncio
import json
import time

import guardrails as gd
import litellm
from guardrails.hub import ProfanityFree

guard = gd.AsyncGuard().use(ProfanityFree, on_fail="exception")

def outcome_to_stream_response(validation_outcome):
    stream_chunk_template = {
        "choices": [
            {
                "delta": {
                    "content": validation_outcome.validated_output,
                },
            }
        ],
        "guardrails": {
            "reask": validation_outcome.reask or None,
            "validation_passed": validation_outcome.validation_passed,
            "error": validation_outcome.error or None,
        },
    }
    stream_chunk = stream_chunk_template
    stream_chunk["choices"][0]["delta"]["content"] = validation_outcome.validated_output
    return stream_chunk

async def guarded(messages):
    # Call the OpenAI API through litellm and guard
    fragment_generator = await guard(
        litellm.acompletion,
        model="gpt-4o-mini",
        messages=messages,
        max_tokens=1024,
        temperature=0,
        stream=True,
    )
    return fragment_generator

async def process_chunks(resp_gen):
    async for chunk in resp_gen:
        chunk_string = f"data: {json.dumps(outcome_to_stream_response(chunk))}\n\n"
        print(chunk_string)

user_message = "tell me about singapore"
messages = [{"content": user_message, "role": "user"}]
resp_gen = asyncio.run(guarded(messages))
print(resp_gen)
asyncio.run(process_chunks(resp_gen))

Above code is adapted form

https://www.guardrailsai.com/docs/concepts/async_streaming
https://github.com/guardrails-ai/guardrails-api/blob/main/guardrails_api%2Futils%2Fopenai.py

Expected behavior
Code should not error out
Library version:
Version (e.g. 0.5.11)
Additional context
Works fine on guardrails-ai==0.5.1

@abhishek9sharma this should have been addressed in our latest release. please try 0.5.12 and let me know if youre still running into issues

@dtam  tested it. Works with 0.5.12. Thanks for the quick fix


Markers are draggable after drawing a new marker

    var marker1 = L.marker(
        [5, 5],
    ).addTo(map);

    marker1.pm.setOptions({draggable: false});

Because of the markerEditable option, other existing markers are going into edit mode and keeping that for the drag mode
#1105

im also experiencing the same behaviours. If you set draggable to false:
marker1.pm.setOptions({draggable: false});

and then go into edit mode, and then drag mode, you can drag the marker around :(

Workaround, apply this to the layer:
layer.on('pm:enable',()=>{
    layer.pm.setOptions({draggable: false});
});


MarkerCluster not working in last version 2.0.9

I'm submitting a ...  (check one with "x")
[ ] question
[x] any problem or bug report
[ ] feature request
The plugin version:  (check one with "x")
[ ] 2.0-beta3 (github)
[ ] 2.0 (npm)
[x] 2.0.9 (npm)
If you choose 'problem or bug report', please select OS:  (check one with "x")
[x] Android
[x] iOS
cordova information:  (run $> cordova plugin list)
cordova-plugin-console 1.0.5 "Console"
cordova-plugin-device 1.1.4 "Device"
cordova-plugin-googlemaps 2.0.9 "cordova-plugin-googlemaps"
cordova-plugin-splashscreen 4.0.3 "Splashscreen"
cordova-plugin-statusbar 2.2.2 "StatusBar"
cordova-plugin-whitelist 1.3.1 "Whitelist"
ionic-plugin-keyboard 2.2.1 "Keyboard"

If you use @ionic-native/google-maps, please show me the package.json
{
    "name": "ionic-hello-world",
    "version": "0.0.0",
    "author": "Ionic Framework",
    "homepage": "http://ionicframework.com/",
    "private": true,
    "scripts": {
        "clean": "ionic-app-scripts clean",
        "build": "ionic-app-scripts build",
        "lint": "ionic-app-scripts lint",
        "ionic:build": "ionic-app-scripts build",
        "ionic:serve": "ionic-app-scripts serve"
    },
    "dependencies": {
        "@angular/common": "4.1.3",
        "@angular/compiler": "4.1.3",
        "@angular/compiler-cli": "4.1.3",
        "@angular/core": "4.1.3",
        "@angular/forms": "4.1.3",
        "@angular/http": "4.1.3",
        "@angular/platform-browser": "4.1.3",
        "@angular/platform-browser-dynamic": "4.1.3",
        "@ionic-native/core": "^4.2.1",
        "@ionic-native/google-maps": "^4.2.1",
        "@ionic-native/splash-screen": "3.12.1",
        "@ionic-native/status-bar": "3.12.1",
        "@ionic/storage": "2.0.1",
        "cordova-android": "^6.2.3",
        "cordova-plugin-console": "1.0.5",
        "cordova-plugin-device": "1.1.4",
        "cordova-plugin-googlemaps": "^2.0.9",
        "cordova-plugin-splashscreen": "~4.0.1",
        "cordova-plugin-statusbar": "2.2.2",
        "cordova-plugin-whitelist": "1.3.1",
        "ionic-angular": "3.6.0",
        "ionic-plugin-keyboard": "~2.2.1",
        "ionicons": "3.0.0",
        "rxjs": "5.4.0",
        "sw-toolbox": "3.6.0",
        "zone.js": "0.8.12"
    },
    "devDependencies": {
        "@ionic/app-scripts": "2.1.4",
        "typescript": "2.3.4"
    },
    "cordovaPlugins": [
        "cordova-plugin-whitelist",
        "cordova-plugin-console",
        "cordova-plugin-statusbar",
        "cordova-plugin-device",
        "cordova-plugin-splashscreen",
        "ionic-plugin-keyboard"
    ],
    "cordovaPlatforms": [],
    "description": "test-google-maps-cluster: An Ionic project",
    "cordova": {
        "plugins": {
            "cordova-plugin-console": {},
            "cordova-plugin-device": {},
            "cordova-plugin-splashscreen": {},
            "cordova-plugin-statusbar": {},
            "cordova-plugin-whitelist": {},
            "ionic-plugin-keyboard": {},
            "cordova-plugin-googlemaps": {
                "API_KEY_FOR_ANDROID": "x",
                "API_KEY_FOR_IOS": "x"
            }
        },
        "platforms": [
            "android"
        ]
    }
}

Current behavior:

As soon as I update the plugin, MarkerCluster is not working anymore. Nothing is displayed on the map.
I had the same code with this version and it was working :
cordova-plugin-googlemaps 2.0.0-beta3-20170905-1257 "cordova-plugin-googlemaps"

Expected behavior:

MarkerCluster should be displayed on the map
Steps to reproduce:

Project : https://github.com/Flo-D/test-google-maps-cluster2
Screen capture or video record:

With cordova-plugin-googlemaps 2.0.0-beta3-20170905-1257 "cordova-plugin-googlemaps" :

With 2.0.9 :

Thank you.

unfortunately, I decided I don't support @ionic-native/google-maps anymore after the discussion with the ionic-team.
https://github.com/mapsplugin/cordova-plugin-googlemaps/issues/1749

Sure, I saw that you don't support anymore the ionic-native wrapper. If I thought it was a problem with the wrapper, I would have posted the issue in their repo.
But you still support your plugin right ?
Because it seems only linked to the plugin, unless you've made a voluntary change to make it stop working with the wrapper, which I don't think..

Thank you for this fast fix ! This solved the issue


Failed to precompile intl_translation:extract_to_arb:

Hey!
I've been trying to generate translation files (as usual) but I git the errors list instead:
>flutter pub pub run intl_translation:extract_to_arb --output-dir=lib/l10n lib/localizations.dart
errors:
Failed to precompile intl_translation:extract_to_arb:
file:///Users/.../.pub-cache/hosted/pub.dartlang.org/intl_translation-0.17.4/lib/src/intl_message.dart:94:22: Error: The getter 'elements2' isn't defined for the class 'ListLiteral'.
 - 'ListLiteral' is from 'package:analyzer/dart/ast/ast.dart' ('file:///Users/.../.pub-cache/hosted/pub.dartlang.org/analyzer-0.34.3/lib/dart/ast/ast.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'elements2'.
    if (!identifiers.elements2.every((each) => each is SimpleIdentifier)) {
                     ^^^^^^^^^
file:///Users/.../.pub-cache/hosted/pub.dartlang.org/intl_translation-0.17.4/lib/src/intl_message.dart:97:29: Error: The getter 'elements2' isn't defined for the class 'ListLiteral'.
 - 'ListLiteral' is from 'package:analyzer/dart/ast/ast.dart' ('file:///Users/.../.pub-cache/hosted/pub.dartlang.org/analyzer-0.34.3/lib/dart/ast/ast.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'elements2'.
    var names = identifiers.elements2
                            ^^^^^^^^^
file:///Users/.../.pub-cache/hosted/pub.dartlang.org/intl_translation-0.17.4/lib/src/intl_message.dart:909:5: Error: 'SetOrMapLiteral' isn't a type.
    SetOrMapLiteral casesArgument = node.argumentList.arguments[1];
    ^^^^^^^^^^^^^^^
Failed to precompile intl_translation:make_examples_const:
file:///Users/.../.pub-cache/hosted/pub.dartlang.org/intl_translation-0.17.4/lib/src/intl_message.dart:94:22: Error: The getter 'elements2' isn't defined for the class 'ListLiteral'.
 - 'ListLiteral' is from 'package:analyzer/dart/ast/ast.dart' ('file:///Users/.../.pub-cache/hosted/pub.dartlang.org/analyzer-0.34.3/lib/dart/ast/ast.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'elements2'.
    if (!identifiers.elements2.every((each) => each is SimpleIdentifier)) {
                     ^^^^^^^^^
file:///Users/.../.pub-cache/hosted/pub.dartlang.org/intl_translation-0.17.4/lib/src/intl_message.dart:97:29: Error: The getter 'elements2' isn't defined for the class 'ListLiteral'.
 - 'ListLiteral' is from 'package:analyzer/dart/ast/ast.dart' ('file:///Users/.../.pub-cache/hosted/pub.dartlang.org/analyzer-0.34.3/lib/dart/ast/ast.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'elements2'.
    var names = identifiers.elements2
                            ^^^^^^^^^
file:///Users/.../.pub-cache/hosted/pub.dartlang.org/intl_translation-0.17.4/lib/src/intl_message.dart:909:5: Error: 'SetOrMapLiteral' isn't a type.
    SetOrMapLiteral casesArgument = node.argumentList.arguments[1];
    ^^^^^^^^^^^^^^^
Failed to precompile intl_translation:rewrite_intl_messages:
file:///Users/.../.pub-cache/hosted/pub.dartlang.org/intl_translation-0.17.4/lib/src/intl_message.dart:94:22: Error: The getter 'elements2' isn't defined for the class 'ListLiteral'.
 - 'ListLiteral' is from 'package:analyzer/dart/ast/ast.dart' ('file:///Users/.../.pub-cache/hosted/pub.dartlang.org/analyzer-0.34.3/lib/dart/ast/ast.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'elements2'.
    if (!identifiers.elements2.every((each) => each is SimpleIdentifier)) {
                     ^^^^^^^^^
file:///Users/.../.pub-cache/hosted/pub.dartlang.org/intl_translation-0.17.4/lib/src/intl_message.dart:97:29: Error: The getter 'elements2' isn't defined for the class 'ListLiteral'.
 - 'ListLiteral' is from 'package:analyzer/dart/ast/ast.dart' ('file:///Users/.../.pub-cache/hosted/pub.dartlang.org/analyzer-0.34.3/lib/dart/ast/ast.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'elements2'.
    var names = identifiers.elements2
                            ^^^^^^^^^
file:///Users/.../.pub-cache/hosted/pub.dartlang.org/intl_translation-0.17.4/lib/src/intl_message.dart:909:5: Error: 'SetOrMapLiteral' isn't a type.
    SetOrMapLiteral casesArgument = node.argumentList.arguments[1];
    ^^^^^^^^^^^^^^^
Failed to precompile intl_translation:generate_from_arb:
file:///Users/.../.pub-cache/hosted/pub.dartlang.org/intl_translation-0.17.4/lib/src/intl_message.dart:94:22: Error: The getter 'elements2' isn't defined for the class 'ListLiteral'.
 - 'ListLiteral' is from 'package:analyzer/dart/ast/ast.dart' ('file:///Users/.../.pub-cache/hosted/pub.dartlang.org/analyzer-0.34.3/lib/dart/ast/ast.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'elements2'.
    if (!identifiers.elements2.every((each) => each is SimpleIdentifier)) {
                     ^^^^^^^^^
file:///Users/.../.pub-cache/hosted/pub.dartlang.org/intl_translation-0.17.4/lib/src/intl_message.dart:97:29: Error: The getter 'elements2' isn't defined for the class 'ListLiteral'.
 - 'ListLiteral' is from 'package:analyzer/dart/ast/ast.dart' ('file:///Users/.../.pub-cache/hosted/pub.dartlang.org/analyzer-0.34.3/lib/dart/ast/ast.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'elements2'.
    var names = identifiers.elements2
                            ^^^^^^^^^
file:///Users/.../.pub-cache/hosted/pub.dartlang.org/intl_translation-0.17.4/lib/src/intl_message.dart:909:5: Error: 'SetOrMapLiteral' isn't a type.
    SetOrMapLiteral casesArgument = node.argumentList.arguments[1];
    ^^^^^^^^^^^^^^^

pub finished with exit code 1
flutter doctor -v output:
[✓] Flutter (Channel beta, v1.4.9-hotfix.1, on Mac OS X 10.13.6 17G6030, locale pl-PL)
    • Flutter version 1.4.9-hotfix.1 at /Users/michalsurynt/Documents/flutter
    • Framework revision 88fa7ea403 (5 weeks ago), 2019-04-11 14:01:46 -0700
    • Engine revision 4737fc5cd8
    • Dart version 2.2.1 (build 2.2.1-dev.4.0 None)

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at /Users/michalsurynt/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
    • All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 10.1, Build version 10B61
    • ios-deploy 1.9.4
    • CocoaPods version 1.5.3

[✓] Android Studio (version 3.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 29.0.1
    • Dart plugin version 173.4700
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)

[✓] IntelliJ IDEA Community Edition (version 2017.3.5)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 23.1.2
    • Dart plugin version 173.4700

[✓] VS Code (version 1.33.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 2.22.3

Just in case - I need to use flutter channel beta v1.4.9-hotfix.1
Did you guys also had similar issues?

I spoke to one of the analyzer developers and it appears that elements2 is being deprecated and the code should go back to using elements. I'm guessing this means you have a very bleeding edge version of the analyzer? I'll look into getting a fix landed, but in the meantime I think your only recourse is to downgrade analyzer.

Actually, the fact that you don't have SetOrMapLiteral suggests rather that your version of analyzer is very old. What does running pub get or pub upgrade say you have?

I have the same error with @michalsuryntequiqo . Did you have solutions for it @michalsuryntequiqo @alan-knight ?

We solved it in our project.
There was one dependency which required the analyzer plugin in version >=0.33.0-alpha.0 <0.34.0.
By removing/updating this dependency we were able to run the command again.
Now we are using the analyzer in version 0.36.3.
Check your pubspec.lock File and you might find something fishy.
Hope that helps

Thanks @timfreiheit , I have been updated my pubspec.yaml:
dependencies:
  analyzer: ^0.36.3

dependency_overrides:
  analyzer: ^0.36.3

and now intl_translation is working


Fix Node.js action setup hangs

See https://github.com/Automattic/remote-data-blocks/pull/107.
tl;dr: action/cache itself can be surprising at times; and I think, bottom line, it does not easily cope well with fancy input/outputs from other steps when executing.
This tries to reduce usage in the node_modules caching step.
Before:

After:

Lied! Turns out it's something in the jest caching added in #74.  Tho I'm not sure I can explain why my initial attempts here also seemed to improve, which is frustrating. 🤔
At any rate, you can see it clearly in https://github.com/Automattic/vip-composable-blocks/commits/trunk/ if you scroll back in trunk and look at the CI execution times Aug 8 -> Aug 9th.
So, unless you've got an immediate laser on why... I'd say let's pull it out and regroup.

AFAIK, officially, that should be ok.
But...  I do think it's a fairly fragile action. It isn't unmaintained, but it has an aggressive stale bot and it seems (like us all these days) under resourced.


Add current path  to Project Manger

Do not enter the full path the path， may be too long
can add  new command ?

Good point, thanks.
The current path is also added to project_base with https://github.com/leafOfTree/vim-project/commit/83a57a2dc60a9aed910921b18f471e207f881cfa. Now you can add the project under the current path by its folder name directly.

I ues plug
Plug 'leafOfTree/vim-project',{'on':['Project','ProjectList','ProjectSearchFiles','ProjectFindInFiles']}

Unable to take effect for the first time

Please update vim-project to the latest via your plugin manager, as I just added some changes to support ../ in path.
To clarify, the current path is also called the working directory (the output of :pwd). It can be changed by :cd. Also see the option autochdir.

It becomes a bit confusing when opening a directory other than a file. It depends on which directory browse plugin (netrw, nerdtree, fern, etc.) you use, so remember to check it via :pwd.

For example, with the file structure
- tmp
   |- abc/
   |- package.json

Open package.json, then I can run :Project abc to add the project abc.
I also can run :Project ../tmp to add the project tmp. Another way is to call :cd .., then I can just run :Project tmp.

@leafOfTree    thanks


Update run-web-app-in-cordova.md

Renamed "cordovaController" to "CordovaController" to match other docs.

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

cordovadocs/tips-workarounds/run-web-app-in-cordova.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.

@mwd-au thanks for the PR. unfortunately recent directory structure changes required to implement side-by-side version support has created a merge conflict. we value your contribution, and have included it in this new PR https://github.com/MicrosoftDocs/CordovaDocs/pull/26.


Separate stall events for pending and confirmed

Separate the txStall event into one for stalled getting to a pending state (i.e. tx never seen in mempool) and one for stalled getting confirmed. Stalled getting to pending can have a shorter timeout. Stalled getting to confirmed can have a longer timeout, especially on mainnet.
https://github.com/blocknative/assist/blob/21f067e126d91a75183c35c9ceb21b6dff5db3fd/src/js/logic/send-transaction.js#L284
Need to consider how to handle stall notifications if backend nodes are not syncing and therefore not able to see mempool or make new block queries.
Also consider compatibility with current txStall for existing data.

Closed by afbf565dda006158f6f1397d8ea645fa6d307eff


[Enhancement] Shift the maintainers part to the bottom and the "Thanks to contributors" to above FAQs

@Panquesito7 can you shift the Thanks Message to above FAQs, as a community we'd like to thank our contributors first. As they are the core of this 100 Days of Code.
Thanks,
Saurabh

Sure! Do you want to work on this or should I do it?

Yeah @Panquesito7  you should work upon it! You know better! 😁


Cannot restore the DB from backup. ERROR: [032]: 'time' is not allowed for 'type' option

We had an issue with AWS and as a result patroni cluster was degraded. We tried to restore the cluster by patronictl util using reinit but unsuccessfully. After that, we tried to restore the DB from the backup but unsuccessfully too, because we had the corrupted WAL file on the S3 bucket (for some reason), and restore stuck on this file.
I tried to restore some versions before this corrupted WAL file but cannot specify it in any way.
I triyed to specify target and type=time, lsn, txid  and others  pgbackrest parameter  but get the error
ERROR: [032]: 'immediate' is not allowed for 'type' option
The same for time, lsn, txid and others options.
I expected to provide parameters for pgbackrest util to manage backup restoring, but cannot. And didn't find any info in readme or administration-guide or values.yaml about. Only link to official documentation, but it doesn't work inside the container. I can restore only the latest backup with default parameters and cannot specify\configure anything.
I can specify the exact backup to restore using the set parameter and I triyed to restore the last full_backup (trough env PGBACKREST_SET: MjAyMzAxMjktMDIxMjA0Rg==) but it does not help, because anyway, after restoring, pgbackrst operates WAL files 1-by-1 and stuck on corrupted WAF file.
Any idea what can I do and how to restore the specifick backup file or specific timestamp?
Steps to reproduce:
Trigger the restore from a backup and type to specify any type parameter.
Environment
I'm using the latest chart.
values.yaml:
backup:
enabled: false
bootstrapFromBackup:
enabled: true
repo1-path: /pgtdb/pg-airflow-timescaledb
secretName: timescaledb-pgrestore

Linked to this issue


Discuss CDEvents support

At Kubecon EU TAG leads talked with @fdegir and @afrittoli of the Continuous Delivery Foundation (CDF), another Linux Foundation member, about supporting CDEvents in CNCF's and TAG App Delivery's projects.
We've invited them to present CDEvents and explore opportunities in an upcoming TAG general meeting.
cc @thschue @AloisReitbauer

Copying notes from today's discussion, thank you!
Why CD Events?

Enable interoperability between delivery services and tools.
Make delivery components independently scaleable
Observability of delivery tasks/pipelines

Events enable calculation of DORA (and other) metrics
Collection of all events can attest to intended activity throughout pipeline (but need to trust events - e.g., need to be signed)

Technical WIP

Recently added events for ongoing operations (runtime, post-delivery)
Working on correlation/shared context across a related set of events (e.g., one pipeline run)
Working with tools providers to emit compliant events
SDKs are able to both send and receive compliant events

Go SDK is complete, others in development

Projects implementing today, using SDKs:

Jenkins: https://plugins.jenkins.io/cdevents/
Spinnaker: https://github.com/spinnaker/governance/pull/299
Tekton: https://github.com/tektoncd/experimental/tree/main/cloudevents
Testkube: https://github.com/kubeshop/testkube/issues/3682

Questions

Are CDvents semantics used by OpenTelemetry emitters?

Not currently, but see https://github.com/open-telemetry/opentelemetry-specification/issues/3168

What event bus is used to store and forward events to subscribers?

The event bus implementation doesn't have to matter
Knative Eventing is used in prototypes

What protocol for transporting events?

The standard includes a schema and binding to Cloud Events.
SDKs support JSON over HTTP, but other transports for JSON could be used.

What can TAG App Delivery do?

Develop prototypes

use CD Events-driven flows in podtato-head (https://github.com/podtato-head/podtato-head-delivery)

Encourage addition of event emitters to other services and tools, could use SDKs
Participate in CDEvents meetings to further the spec and standard

CDF Public Calendar
Join the community: https://cdevents.dev/community/

Idea: conventions for how to react and respond to events
Check in again in June for opportunities

@joshgav it was good to meet you all and discuss TAG App Delivery + CDEvents.
Shall we meet again at the next TAG meeting on June 07?

In discussion in Slack we determined that @afrittoli will come visit the TAG again in a couple months to provide an update and gather more contributors. In the meantime the TAG is sharing CDEvents with other projects and encouraging adoption.
Relatedly, the following couple proposals to OpenTelemetry have been opened which propose to integrate CDEvents events with OpenTelemetry events (aka traces). Using OpenTelemetry as a "transport" could make CDEvents useable quickly.

https://github.com/open-telemetry/oteps/pull/223
https://github.com/open-telemetry/opentelemetry-specification/issues/3168


Prepare release 0.11.4

Summary

Fix get instances for volume-based instances (Enol Fernández)
Add external authentication plugin support (Enol Fernández)
Add OpenID Connect refresh plugin (OpenStack) (Enol Fernández)
Python 3 fixes (Enol Fernández)
Pythonize only for Ruby dict-like strings (Pablo Orviz)
Fix: use is_public=None to fetch both public and private flavors. (Pablo Orviz)
RELEASING: document making a release from CLI (Baptiste Grenier)

Related issue : #167

Again, self-approving for fixing issues found with CESNET.


failed to compile wkv_cuda

compile wkv_cuda failed when running "python chat.py":
nvcc fatal   : Value 'c++17' is not defined for option 'std'
My torch and cuda is 1.13.1+cuda117
Any idea why this happens.

Fix it after upgrading nvcc to newer version.
However, I am not able to run it with 12G VRAM using args.strategy = 'cuda fp16'. It gives me out of memory.
How much memory does it require to run inference of RWKV-4-Pile-7B-Instruct-test4-20230326.pth.?

Read https://pypi.org/project/rwkv/ for strategy guide
You can try 'cuda fp16i8 *20 -> cuda fp16' # first 20 layers cuda fp16i8, then cuda fp16

If I use strategy 'cuda fp16i8 *10 -> cpu fp32',, it runs OK
However, if I enable os.environ["RWKV_CUDA_ON"] = '0' with this strategy 'cuda fp16i8 *10 -> cpu fp32', it gives me errors.
Why is that?


Implement sudo

Hi there,
for the Resources linuxbox_binary_file, linuxbox_directory and linuxbox_text_file it will be nice to add a bool Argument 'sudo'. When this Argument is true, then the Resource will use sudo to execute his actions.
Greetings
Roland

good idea

to describe the problem a bit more; I was using the linuxbox_text_file with a non-root user. The resource accepts an owner and group argument. Those MUST be the same as the SSH user, otherwise, the resource fails.


Add options to Gor

This commit adds the ability to set a different binary path than the
default, as we found in upgrading that the path was set to
/usr/loca/bin/gor rather than /usr/bin/gor so the service failed to
start.
It also allows adding a hash on environment variables which will be
loaded into the upstart file and loaded when the service starts. This is
due to a bug that we ran into in updating documented here:
https://github.com/buger/gor/wiki/Troubleshooting#gor-is-crashing-with-following-stacktrace

Apart from one little comment these changes look good to me. It might be worth pushing another commit to this pull request which bumps the version and the changelog? Just to save doing another PR.

Im going to be picky and point out a typo in the commit message. I assume you mean /usr/bin/local/gor not /usr/bin/loca/gor

I live for picky comments @rjw1!
@alexmuller I'll add it to the changelog in this PR, good shout

looks good to me. merge when you want.

thob!


87180: Wrong Markdown preview format for files in UNC path

Fixing a typo in the code to fix this issue.
This PR fixes #87180

Thanks!
This fix fill be in the next insiders build and is scheduled to be in the January release


Feat: Make Filter and Clear button more attractive.

What feature?
Filter and Clear button looks very simple. I want to make it more attractive. Please assign me this task under GSSoC'23.
Add screenshots
Make button more attractive.
Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSoC'23 contributor
[X] I want to work on this issue

ig buttons are ok we don't need to change anything