Leptos components?

It would be nice to not just have yew components but also leptos components (for leptos 0.7) 🙂

I would be happy to implement this. If I were to go about this, where would I begin?

@rakshith-ravi Great, thank you!
To go about this, it makes most sense to do it for Leptos 0.7.
The official Leptos book is not yet updated to 0.7, but a lot of it still applies, but for seeing examples of Leptos components, the examples folder of the repo is fully updated to 0.7, e.g.:
https://github.com/leptos-rs/leptos/tree/main/examples/todomvc

Indeed. I work with Leptos team 😄
I was wondering more in terms of how rust-monaco is implemented and how to interact with it :D

I was wondering more in terms of how rust-monaco is implemented and how to interact with it :D
Ah, I don't know..

Btw, people are saying that Monaco editor in general is not as well documented as CodeMirror, and doesn't support mobile.
So I'm leaning more towards using CodeMirror now.
There's a crate that wraps CodeMirror for wasm, but it's version 5, and I'd be more interested in using CodeMirror 6 in leptos, as it has better support for mobile, accessibility and LSP.
And given that CodeMirror is better documented, and both SourceGraph and Replit switched from Monaco to CodeMirror (interesting HN thread about this), I'd recommend if your goal is to have one good code editor component for Leptos (which I think would be great), I'd recommend choosing CodeMirror now after researching more.
Because Monaco doesn't work on mobile at all, and isn't modular, it blows up the bundle size by a huge amount, whereas CodeMirror 6 is modular.
For my needs, the only plus that Monaco has is better LSP support, but CodeMirror 6 supports some LSP features, just not all yet, but the situation will improve (yellow in that diagram means it's work-in-progress), and the LSP features that it already supports are the most important ones. Also, mobile support and fast-loading pagespeed is more important for me (as it was also for Replit).


[Docs] Start writing some docs about ObjC interop.

ObjC interop is mysterious and weird and only getting more so. Start writing some of it down.

@mikeash we should get more people to look and maybe review this as well. I think @jckarter @rjmccall maybe @DougGregor (and @gparker42 if he is bored = p).
That being said I will take a look in a bit. I am tracking down a swift runtime issue.

@mikeash - might be reasonable to add bits in the future about #selector and its interactions as well.  I can see key paths as being possibly interesting too.

@swift-ci please smoke test and merge


Invalid Debugging Symbol File

Hello,
Building an iOS project with Nuke 8.4.3 gives the warning MT0178:

closed as this version is now obsolete.


feat: make timeout to send devices back to sleep configurable, lower default to 250 ms

On change from 1000 to 500: I do not think shorter sleep is worth a user parameter that then has to be checked. Active battery time is 12.5mA; sleep 1uA, so 1/2 second savings is 26 extra daya a year (700 device). More for 500 devices.
By the time this is called all pending messages are cleared, so all the work is done.
Signed-off-by: Bob Eckhoff<EMAIL_ADDRESS>

@zwave-js-bot automerge

First thanks. Second with the OpenHab binding I have been using 250 ms.  I wasn't sure you would buy that so hedged originally at 500 ms. ;-)
Lastly, at least with my understanding, the description The default should be enough time for applications to react to devices waking up could tempt users to change this is for unrelated problems. What I assumed the flow was 1) wakeup notice by device 2) after acking wakeup notice, ZJS checks for queued messages, sends them and waits until completion (with Acks) 3) Queue empty, wait 250 ms and send back to sleep. Maybe "Sleep delay after all queued messages processed" I'm also assuming that it the queued commands don't get processed, ZJS marks the node as asleep again and the sleep message is never sent? Anyway I don't understand the "for applications to react" means. I didn't want to open a can of worms.

Maybe what I wrote is worded badly. Enough time for applications to react refers to the time applications get after wakeup or each processed command to queue additional commands before the device gets sent back to sleep.
E.g. they might want to refresh a value, or do things based on the result of a command. Considering that the chain to the actual application might be quite long (e.g. node-zwave-js -> Z-Wave JS UI -> Z-Wave JS Server -> TCP connection -> HA Python Library -> Home Assistant Addon -> Home Assistant`) , and Z-Wave JS may be running on slower hardware, I didn't dare to go much lower

Thanks.  That makes sense.  I have observed short periods with an empty queue (at least in the OpenHab zwave binding) while the next command gets created, (generally with the initial interview) where the data from the prior command was needed to formulate the next message.  I'm assuming that besides the empty queue check, zwave-js also checks if the device is fully configured before sending the sleep?
I was not advocating for lower. In the battery PR that was merged in OH zwave, I used 500 ms, but was testing 250 ms locally.  ;-)

I'm assuming that besides the empty queue check, zwave-js also checks if the device is fully configured before sending the sleep?

Not explicitly, but as long as the interview isn't completed, there should always be pending messages on the queue.


Feature: add failed job as "badge" to list on left

Add a badge that shows if there are any failed jobs at a glance.  Maybe something like this:

Duplicate of #178
I think that this info on the menu will clutter it with info and therefore should be in the dashboard page #258


Segfault and Window Not Appearing on v0.12.0

Bevy version
0.12.0
[Optional] Relevant system information

Rust: 1.74.0
OS: Ubuntu 22.04.3 LTS (on Windows 10, WSL2)

What you did
I ran example codes on the release-0.12.0 branch:
cargo run --example sprite --features wayland

What went wrong
The window didn't appear, and the script suddenly encountered a segmentation fault:
% cargo run --example sprite --features wayland                                                        [release-0.12.0]
   Compiling bevy v0.12.0 (/home/user/Rust/bevy)
    Finished dev [unoptimized + debuginfo] target(s) in 14.65s
     Running `target/debug/examples/sprite`
2023-11-24T01:35:57.591011Z  INFO bevy_winit::system: Creating new window "App" (0v0)
2023-11-24T01:35:57.601675Z ERROR sctk_adwaita::config: XDG Settings Portal did not return response in time: timeout: 100ms, key: color-scheme
2023-11-24T01:35:57.878248Z  INFO bevy_render::renderer: AdapterInfo { name: "D3D12 (NVIDIA GeForce GTX 1650)", vendor: 0, device: 0, device_type: Other, driver: "", driver_info: "", backend: Gl }
ALSA lib confmisc.c:855:(parse_card) cannot find card '0'
ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory
ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings
ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1334:(snd_func_refer) error evaluating name
ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5701:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM default
2023-11-24T01:35:58.117300Z  WARN bevy_audio::audio_output: No audio device found.
2023-11-24T01:35:58.231021Z  WARN bevy_pbr::ssao: ScreenSpaceAmbientOcclusionPlugin not loaded. GPU lacks support: TextureFormat::R16Float does not support TextureUsages::STORAGE_BINDING.
2023-11-24T01:35:58.232566Z  INFO bevy_diagnostic::system_information_diagnostics_plugin::internal: SystemInfo { os: "Linux 22.04 Ubuntu", kernel: "<IP_ADDRESS>-microsoft-standard-WSL2", cpu: "AMD Ryzen 7 5700X 8-Core Processor", core_count: "8", memory: "7.7 GiB" }
zsh: segmentation fault  cargo run --example sprite --features wayland

Additional information

apt update && apt upgrade didn't resolve the problem.
the release-0.11.3 branch worked well for me (it produced the same errors and warnings, but the window is displayed correctly.):

% cargo run --example sprite --features wayland                                                        [release-0.11.3]
warning: unused doc comment
  --> crates/bevy_pbr/src/light.rs:62:13
   |
62 |             /// Luminous power in lumens
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
63 |             intensity: 800.0, // Roughly a 60W non-halogen incandescent bulb
   |             ---------------- rustdoc does not generate documentation for expression fields
   |
   = help: use `//` for a plain comment
   = note: `#[warn(unused_doc_comments)]` on by default

warning: unused doc comment
   --> crates/bevy_pbr/src/light.rs:130:13
    |
130 |             /// Luminous power in lumens
    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
131 |             intensity: 800.0, // Roughly a 60W non-halogen incandescent bulb
    |             ---------------- rustdoc does not generate documentation for expression fields
    |
    = help: use `//` for a plain comment

warning: `bevy_pbr` (lib) generated 2 warnings
    Finished dev [unoptimized + debuginfo] target(s) in 0.14s
     Running `target/debug/examples/sprite`
2023-11-24T01:58:14.404376Z  INFO bevy_winit::system: Creating new window "App" (0v0)
2023-11-24T01:58:14.406863Z ERROR sctk_adwaita::config: XDG Settings Portal did not return response in time: timeout: 100ms, key: color-scheme
ALSA lib confmisc.c:855:(parse_card) cannot find card '0'
ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory
ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings
ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1334:(snd_func_refer) error evaluating name
ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5701:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM default
2023-11-24T01:58:14.619281Z  WARN bevy_audio::audio_output: No audio device found.
2023-11-24T01:58:14.849030Z  INFO bevy_render::renderer: AdapterInfo { name: "D3D12 (NVIDIA GeForce GTX 1650)", vendor: 0, device: 0, device_type: Other, driver: "", driver_info: "", backend: Gl }
2023-11-24T01:58:14.957976Z  WARN bevy_pbr::ssao: ScreenSpaceAmbientOcclusionPlugin not loaded. GPU lacks support: TextureFormat::R16Float does not support TextureUsages::STORAGE_BINDING.
2023-11-24T01:58:14.959516Z  INFO bevy_diagnostic::system_information_diagnostics_plugin::internal: SystemInfo { os: "Linux 22.04 Ubuntu", kernel: "<IP_ADDRESS>-microsoft-standard-WSL2", cpu: "AMD Ryzen 7 5700X 8-Core Processor", core_count: "8", memory: "7.7 GiB" }

Could you run the crashing example with a debugger to get a backtrace of where the segfault happen?

@Kanabenki  I'm sorry, I didn't understand what you meant by "debugger." Is there any software available that can perform further backtrace? For now, I'll attach the logs from running 2d_shapes and bloom_2d with RUST_BACKTRACE=full and LogPlugin { level: DEBUG } added. (the letter  in the log seems to be <ESC>.)
2d_shapes.log
bloom_2d.log

When the process crashes with a segfault, you cannot get a proper backtrace since your process is killed instantly and the code inserted by rustc to handle printing the backtrace on panic does not get a chance to run. By running the process through a debugger, you can capture that backtrace when the crash occurs and see what caused it :slightly_smiling_face:
Here's how you can do it:

In your WSL2 shell, start your bevy app (built in debug mode/with debug symbols) through gdb (I don't know if it's installed by default in your WSL2 distribution but you can get it from apt in any case): gdb -ex run --args target/debug/<bevy_app>
Wait for your program to crash, the gdb shell should appear when it happens.
Enter the command bt to get the backtrace. You should get the backtrace for the thread where the segfault occured.

Thank you very much for explaining it so kindly! I tried running rust-gdb as you instructed, and it turns out there's an error with libnvwgf2umx.so. It seems that there are others experiencing similar symptoms (https://github.com/microsoft/wslg/issues/715). It might be a bug with WSLg, perhaps.
~/bevy % rust-gdb ./target/debug/examples/2d_shapes
GNU gdb (Ubuntu 12.1-0ubuntu1~22.04) 12.1
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./target/debug/examples/2d_shapes...
(gdb) r
Starting program: /home/user/bevy/target/debug/examples/2d_shapes
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff7b4c640 (LWP 140)]
[New Thread 0x7ffff794b640 (LWP 141)]
[New Thread 0x7ffff774a640 (LWP 142)]
[New Thread 0x7ffff7549640 (LWP 143)]
[New Thread 0x7ffff7345640 (LWP 144)]
[New Thread 0x7ffff7141640 (LWP 145)]
[New Thread 0x7ffff6f3d640 (LWP 146)]
[New Thread 0x7ffff6d39640 (LWP 147)]
[New Thread 0x7ffff6b35640 (LWP 148)]
[New Thread 0x7ffff6931640 (LWP 149)]
[New Thread 0x7ffff672d640 (LWP 150)]
[New Thread 0x7ffff6529640 (LWP 151)]
[New Thread 0x7ffff6325640 (LWP 152)]
[New Thread 0x7ffff6121640 (LWP 153)]
[New Thread 0x7ffff5f1d640 (LWP 154)]
[New Thread 0x7ffff5d19640 (LWP 155)]
2023-11-26T05:33:18.045890Z  INFO bevy_winit::system: Creating new window "App" (0v0)
[Detaching after vfork from child process 156]
2023-11-26T05:33:18.050168Z ERROR sctk_adwaita::config: XDG Settings Portal did not return response in time: timeout: 100ms, key: color-scheme
[Detaching after vfork from child process 162]
[Detaching after vfork from child process 165]
[Detaching after vfork from child process 166]
[New Thread 0x7fffa1a30640 (LWP 168)]
[New Thread 0x7fffa0d1f640 (LWP 169)]
[New Thread 0x7fff9bfff640 (LWP 170)]
[New Thread 0x7fff9b7fe640 (LWP 171)]
[New Thread 0x7fff9affd640 (LWP 172)]
[New Thread 0x7fff99b1c640 (LWP 173)]
[New Thread 0x7fff93fff640 (LWP 174)]
[Thread 0x7fff99b1c640 (LWP 173) exited]
2023-11-26T05:33:18.469523Z  INFO bevy_render::renderer: AdapterInfo { name: "D3D12 (NVIDIA GeForce GTX 1650)", vendor: 0, device: 0, device_type: Other, driver: "", driver_info: "", backend: Gl }
ALSA lib confmisc.c:855:(parse_card) cannot find card '0'
ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory
ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings
ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1334:(snd_func_refer) error evaluating name
ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5701:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM default
2023-11-26T05:33:18.749445Z  WARN bevy_audio::audio_output: No audio device found.
[New Thread 0x7fff99b1c640 (LWP 175)]
[New Thread 0x7fffa051b640 (LWP 176)]
2023-11-26T05:33:18.864504Z  WARN bevy_pbr::ssao: ScreenSpaceAmbientOcclusionPlugin not loaded. GPU lacks support: TextureFormat::R16Float does not support TextureUsages::STORAGE_BINDING.
[New Thread 0x7fff9a6fc640 (LWP 177)]
2023-11-26T05:33:18.867065Z  INFO bevy_diagnostic::system_information_diagnostics_plugin::internal: SystemInfo { os: "Linux 22.04 Ubuntu", kernel: "<IP_ADDRESS>-microsoft-standard-WSL2", cpu: "AMD Ryzen 7 5700X 8-Core Processor", core_count: "8", memory: "7.7 GiB" }
[Thread 0x7fff93fff640 (LWP 174) exited]

Thread 18 "2d_shapes" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffa1a30640 (LWP 168)]
0x00007fffa47cf7e6 in ?? () from /usr/lib/wsl/drivers/nv_dispi.inf_amd64_5b6e4554b945d508/libnvwgf2umx.so

(gdb) bt
#0  0x00007fffa47cf7e6 in ?? () from /usr/lib/wsl/drivers/nv_dispi.inf_amd64_5b6e4554b945d508/libnvwgf2umx.so
#1  0x00007fffa47ce40e in ?? () from /usr/lib/wsl/drivers/nv_dispi.inf_amd64_5b6e4554b945d508/libnvwgf2umx.so
#2  0x00007fffa47ce386 in ?? () from /usr/lib/wsl/drivers/nv_dispi.inf_amd64_5b6e4554b945d508/libnvwgf2umx.so
#3  0x00007ffff7be6ac3 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
#4  0x00007ffff7c78a40 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81

Indeed, it seems the problem might come from your execution environment rather than bevy itself. Could you provide the rest of the capture, just to see from where the offending lib is called from bevy?

Actually, this is the entire log. I was expecting to see some Bevy stuff displayed at the end of the backtrace, but nothing else was shown beyond this point.
Addendum: I tried updating to Windows 11, but the situation did not improve. On the contrary, now it seems that nothing is left in the backtrace.
% rust-gdb ./target/debug/examples/2d_shapes                                                           [release-0.12.0]
GNU gdb (Ubuntu 12.1-0ubuntu1~22.04) 12.1
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./target/debug/examples/2d_shapes...
(gdb) r
Starting program: /home/user/bevy/target/debug/examples/2d_shapes
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff7b4b640 (LWP 166)]
[New Thread 0x7fffeffff640 (LWP 167)]
[New Thread 0x7ffff794a640 (LWP 168)]
[New Thread 0x7ffff7749640 (LWP 169)]
[New Thread 0x7ffff7545640 (LWP 170)]
[New Thread 0x7ffff7341640 (LWP 171)]
[New Thread 0x7ffff713d640 (LWP 172)]
[New Thread 0x7ffff6f39640 (LWP 173)]
[New Thread 0x7ffff6d35640 (LWP 174)]
[New Thread 0x7ffff6b31640 (LWP 175)]
[New Thread 0x7ffff692d640 (LWP 176)]
[New Thread 0x7ffff6729640 (LWP 177)]
[New Thread 0x7ffff6525640 (LWP 178)]
[New Thread 0x7ffff6321640 (LWP 179)]
[New Thread 0x7ffff611d640 (LWP 180)]
[New Thread 0x7ffff5f19640 (LWP 181)]
2023-11-28T02:37:36.539039Z  INFO bevy_winit::system: Creating new window "App" (0v0)
[Detaching after vfork from child process 182]
[Detaching after vfork from child process 227]
[Detaching after vfork from child process 230]
[Detaching after vfork from child process 231]
[New Thread 0x7fffa21e0640 (LWP 233)]
[New Thread 0x7fffa19df640 (LWP 234)]
[New Thread 0x7fffa11de640 (LWP 235)]
[New Thread 0x7fffa09dd640 (LWP 236)]
[New Thread 0x7fff9f17c640 (LWP 237)]
[New Thread 0x7fff9e321640 (LWP 238)]
[New Thread 0x7fff9db20640 (LWP 239)]
[New Thread 0x7fff9d31f640 (LWP 240)]
[New Thread 0x7fff9cb1e640 (LWP 241)]
[New Thread 0x7fff970bf640 (LWP 242)]
[Thread 0x7fff9f17c640 (LWP 237) exited]
[Thread 0x7fffa09dd640 (LWP 236) exited]
[Thread 0x7fffa11de640 (LWP 235) exited]
[Thread 0x7fffa19df640 (LWP 234) exited]
[Thread 0x7fffa21e0640 (LWP 233) exited]
2023-11-28T02:37:37.200599Z  INFO bevy_render::renderer: AdapterInfo { name: "D3D12 (NVIDIA GeForce GTX 1650)", vendor: 0, device: 0, device_type: Other, driver: "", driver_info: "", backend: Gl }
ALSA lib confmisc.c:855:(parse_card) cannot find card '0'
ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory
ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings
ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1334:(snd_func_refer) error evaluating name
ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5701:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM default
2023-11-28T02:37:37.437372Z  WARN bevy_audio::audio_output: No audio device found.
[New Thread 0x7fffa09dd640 (LWP 243)]
[New Thread 0x7fffa11de640 (LWP 244)]
2023-11-28T02:37:37.550437Z  WARN bevy_pbr::ssao: ScreenSpaceAmbientOcclusionPlugin not loaded. GPU lacks support: TextureFormat::R16Float does not support TextureUsages::STORAGE_BINDING.
[New Thread 0x7fffa19df640 (LWP 245)]
2023-11-28T02:37:37.552017Z  INFO bevy_diagnostic::system_information_diagnostics_plugin::internal: SystemInfo { os: "Linux 22.04 Ubuntu", kernel: "<IP_ADDRESS>-microsoft-standard-WSL2", cpu: "AMD Ryzen 7 5700X 8-Core Processor", core_count: "8", memory: "7.7 GiB" }
[Thread 0x7fff970bf640 (LWP 242) exited]
[Thread 0x7fffa19df640 (LWP 245) exited]
[Thread 0x7fffa11de640 (LWP 244) exited]
[Thread 0x7fffa09dd640 (LWP 243) exited]
[Thread 0x7fff9cb1e640 (LWP 241) exited]
[Thread 0x7fff9d31f640 (LWP 240) exited]
[Thread 0x7fff9db20640 (LWP 239) exited]
[Thread 0x7fff9e321640 (LWP 238) exited]
[Thread 0x7ffff611d640 (LWP 180) exited]
[Thread 0x7ffff6321640 (LWP 179) exited]
[Thread 0x7ffff6525640 (LWP 178) exited]
[Thread 0x7ffff6729640 (LWP 177) exited]
[Thread 0x7ffff692d640 (LWP 176) exited]
[Thread 0x7ffff6b31640 (LWP 175) exited]
[Thread 0x7ffff6d35640 (LWP 174) exited]
[Thread 0x7ffff6f39640 (LWP 173) exited]
[Thread 0x7ffff713d640 (LWP 172) exited]
[Thread 0x7ffff7341640 (LWP 171) exited]
[Thread 0x7ffff7545640 (LWP 170) exited]
[Thread 0x7ffff7749640 (LWP 169) exited]
[Thread 0x7ffff794a640 (LWP 168) exited]
[Thread 0x7fffeffff640 (LWP 167) exited]
[Thread 0x7ffff7b4b640 (LWP 166) exited]
[Thread 0x7ffff7b4ca40 (LWP 163) exited]
[Thread 0x7ffff5f19640 (LWP 181) exited]
[New process 163]
[Inferior 1 (process 163) exited with code 0150]
(gdb) bt
No stack.
(gdb)

Before trying all of these, I had already updated to the pre-release version (I'll attach the logs, though it's in Japanese). I'll wait until there's progress on the issue which I mentioned above, or until someone with the same case finds this issue. Thank you very much for patiently providing me with various instructions!
PS C:\home> wsl --update --pre-release
更新プログラムを確認しています。
Linux 用 Windows サブシステムの最新バージョンは既にインストールされています。

PS C:\home> wsl --version
WSL バージョン: <IP_ADDRESS>
カーネル バージョン: <IP_ADDRESS>-1
WSLg バージョン: 1.0.59
MSRDC バージョン: 1.2.4677
Direct3D バージョン: 1.611.1-81528511
DXCore バージョン: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows バージョン: 10.0.22631.2715

I ran version 0.12.1 and the window showed up but ...... what the heck!?
Uploading IMG_3480.mov…


Geocode test the current BeeSafeBoulder pledge addresses

Background
Current BeeSafeBoulder pledge sheet has 1,400+ addresses. Users submitted pledges via a Google Form with free-form street address.  Python script update_pledge_spreadsheet.py attempts to match the free-form street addresses against Boulder County Assessor parcel data.
Task
Create a Google Maps API geocoding test script that gets a standardized street address from each free-form address in the pledge spreadsheet.
Report back the success rate of Google Maps API Geocoding

First test of this functionality is done.  High level results:

All code, input, and output, is in the GoogleMapsAPIWork folder.

Sanitizing these addresses is tough.  Some respondents didn't even say "Street" or "Road" in the Google Form.  Not sure how to fix this, but something to be aware of.  There are places in the world where "Pine St" and "Pine Rd" intersect.

If we are counting "any non-specific address being placed somewhere in Boulder County" as accurate, then we have a 100% accuracy of the first 500 addresses in our list.

There are rate limits to this API.  Per key, we can have 10 requests per second and 2500 per day.  Not a huge issue, but we may have to throttle any big adds.

These addresses needed "Viewport Biasing", basically bounding a preferred region with a SW and NE corner.  Selecting slightly outside the Boulder County borders on Google maps, I was able to get reasonable addresses.  Without these borders, I got responses from Massachusetts to Ireland...all over the place.  Seems like if we want to share this with other regions, they will want to input their own borders to bias GoogleMaps.

My next step is going to be creating a Google Map with all these points as pins.  I'll also see if I can make those pins bees.  Shouldn't be too hard, and then we'll have a viable end-to-end solution with Google.

This is definitely not what we're looking for, but was a fun hello-world for me using Google FusionTables and 100 sample Latitude Longitude pairs from my script:
http://zebgirouard.github.io/GoogleMapsAPI_Sandbox/beeMap.html

This one seems better, with a custom image, and more control over the JS and HTML if we want to tweak and/or share.
http://zebgirouard.github.io/GoogleMapsAPI_Sandbox/beeMapCustom.html

Hey Zeb. Totally. Your Hello World version seemed more NSA like; smiling bees ... better!
Nice work.
I think somewhere along the road we should talk about potentially incorporating the new Bee Safe Earth logo as a pin; it's certainly open for discussion.
Anyway, really good stuff!
Dave
On Mar 24, 2016, at 10:34 PM, Timothy Zeb Girouard<EMAIL_ADDRESS>wrote:

This one seems better, with a custom image, and more control over the JS and HTML if we want to tweak and/or share.
http://zebgirouard.github.io/GoogleMapsAPI_Sandbox/beeMapCustom.html
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub

Yeah, for sure.  Changing the pin to the real logo is as simple as uploading the image to GitHub and pointing to it.  I think the main problems now are in #4 and #5 , basically how to scale up.  Closing this, but feel free to re-open if you want to do something else with Geocoding.

Love the 'do.
Re: pledge captains keeping data, sounds doable. I will talk to Kristin about designing an online data-entry sheet; or at least to start thinking about it.
It's interesting that nonprofits are using KML, like the City of London Timeline.
Thx Zeb.


[release-4.4] Bug 1805414: Support multiple APIServices on a single deployment

This commit updates OLM to support running multiple APIServices on a single deployment.

/lgtm

/retest

/retest

/retest


EsriGridReader returns active_scalars is none ?

Describe the bug
When running the example from the page: (https://pvgeo.org/examples/grids/read-esri.html) I received this error:
KeyError: 'Data array (None) not present in this dataset.'
Screenshots
After checking the content of dem returned by EsriGridReader function, I notice that:
1) active_scalars is none

2) points array did not get z-values. All z-values are zeros

I am afraid that there is something incompatible between pyvista and PVGeo but could not find out the reason.
Desktop (please complete the following information):

OS: Windows 7 64bit
Python 3.8.8
pyvista 0.32.1
PVGeo 2.1.0

This example can run smoothly with pyvista version 0.31.3 with no error.
So the problem should be from pyvista version 0.32.1

Thanks for bringing this up. I'll see if I can find time to update this

Resolved on the main branch. Will release a patch to pypi soon


ModuleNotFoundError: No module named 'pkg_resources'

Current Behaviour
Thanks for the great repository!
Currently fails on the import with
import ydata_profilling

Resulting in:
Traceback (most recent call last):
  File "c:\Users\foo\test.py", line 9, in <module>
    import ydata_profiling
  File "C:\Users\foo\AppData\Local\pypoetry\Cache\virtualenvs\foo-nnQxNQNi-py3.12\Lib\site-packages\ydata_profiling\__init__.py", line 14, in <module>
    from ydata_profiling.compare_reports import compare  # isort:skip # noqa
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\foo\AppData\Local\pypoetry\Cache\virtualenvs\foo-nnQxNQNi-py3.12\Lib\site-packages\ydata_profiling\compare_reports.py", line 12, in <module>
    from ydata_profiling.profile_report import ProfileReport
  File "C:\Users\foo\AppData\Local\pypoetry\Cache\virtualenvs\foo-nnQxNQNi-py3.12\Lib\site-packages\ydata_profiling\profile_report.py", line 9, in <module>
    import pkg_resources
ModuleNotFoundError: No module named 'pkg_resources'

Expected Behaviour
The library should be successfully imported.
Data Description
Currently not using any data as it fails on the import.
Code that reproduces the bug
import ydata_profiling

pandas-profiling version
4.8.3
Dependencies
annotated-types==0.7.0
attrs==23.2.0
certifi==2024.7.4
charset-normalizer==3.3.2
colorama==0.4.6
contourpy==1.2.1
cycler==0.12.1
dacite==1.8.1
fonttools==4.53.1
h5py==3.11.0
htmlmin==0.1.12
idna==3.7
ImageHash==4.3.1
Jinja2==3.1.4
joblib==1.4.2
kiwisolver==1.4.5
llvmlite==0.43.0
MarkupSafe==2.1.5
matplotlib==3.8.4
multimethod==1.12
networkx==3.3
numba==0.60.0
numpy==1.26.4
packaging==24.1
pandas==2.2.2
patsy==0.5.6
phik==0.12.4
pillow==10.4.0
pydantic==2.8.2
pydantic_core==2.20.1
pydicom==2.4.4
pyparsing==3.1.2
python-dateutil==2.9.0.post0
pytz==2024.1
PyWavelets==1.6.0
PyYAML==6.0.1
requests==2.32.3
scipy==1.13.1
seaborn==0.13.2
six==1.16.0
statsmodels==0.14.2
tqdm==4.66.4
typeguard==4.3.0
typing_extensions==4.12.2
tzdata==2024.1
urllib3==2.2.2
visions==0.7.6
wordcloud==1.9.3
ydata-profiling==4.8.3

OS
Windows 11
Checklist

[X] There is not yet another bug report for this issue in the issue tracker
[X] The problem is reproducible from this bug report. This guide can help to craft a minimal bug report.
[X] The issue has not been resolved by the entries listed under Common Issues.

This seems to be due to setuptools not being installed. A simple pip install setuptools or poetry add setuptools solves the issue.

I've created a pull request for the fix which includes setuptools in the requirements.
However, it is worth noting that pkg_resources is being slowly depreciated in favor of importlib.resources and there is also a really handy migration guide on the subject matter.
It's worth noting that importlib.resources only supports the following APIs:

pkg_resources.resource_filename()
pkg_resources.resource_stream()
pkg_resources.resource_string()
pkg_resources.resource_listdir()
pkg_resources.resource_isdir()

so importlib.resources may not be an appropriate.

The reason this happens is due to setuptools no longer being bundled with venvs from Python 3.12, I left a longer comment on the PR: https://github.com/ydataai/ydata-profiling/pull/1619#issuecomment-2478515087


Tutorial Improvements

[ ] Consolidate description of outputs into one section so that it is explicit and clear what each folder represents
[ ] Perhaps add brief description of how to deal with the data after it has been processed (converting & exporting)

audit issues.
On Wed, Oct 5, 2016 at 3:12 AM, Eric<EMAIL_ADDRESS>wrote:

Consolidate description of outputs into one section so that it is
explicit and clear what each folder represents
Perhaps add brief description of how to deal with the data after it
has been processed (converting & exporting)

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/NeuroDataDesign/fngs/issues/45, or mute the thread
https://github.com/notifications/unsubscribe-auth/AACjcpGJM2AT9FOBzl6SSx6iSM9f4Jo5ks5qw03WgaJpZM4KOfCI
.

--
the glass is all full:  half water, half air.
neurodata.io, jovo calendar
https://calendar.google.com/calendar/embed?src=joshuav%40gmail.com&ctz=America/New_York


API Server Latency buckets are skewed in large scale clusters

Describe the bug
A clear and concise description of what the bug is.
On this large-scale cluster, all latencies are in the +inf category. Discussed increasing max bucket so that we have better information if latency is larger than 4.5ms (highest bucket currently).

Discussed making bucket width 1ms, starting at 0.5ms so that we don't get a lot of 0ms counts
cc @huntergregory  @anubhabMajumdar

@iamrajhans i see your linked PR, do you want this issue too?

@rbtr yeah


report generation

Codecov Report

Merging #31 into master will decrease coverage by 8.04%.
The diff coverage is 6.87%.

@@             Coverage Diff              @@
##             master      #31      +/-   ##
============================================
- Coverage     74.93%   66.89%   -8.05%
- Complexity     1053     1160     +107
============================================
  Files           135      144       +9
  Lines          2430     2752     +322
============================================
+ Hits           1821     1841      +20
- Misses          609      911     +302

Impacted Files
Coverage Δ
Complexity Δ

src/Service/ReportService.php
0% <0%> (ø)
28 <28> (?)

src/Entity/Issue.php
88.76% <0%> (-9.99%)
73 <4> (+4)

src/Report/Pdf.php
0% <0%> (ø)
3 <3> (?)

src/Controller/External/ImageController.php
0% <0%> (ø)
3 <3> (-11)
:arrow_down:

src/Report/ReportElements.php
0% <0%> (ø)
9 <9> (?)

src/Report/PdfDefinition.php
0% <0%> (ø)
4 <4> (?)

src/Controller/External/ReportController.php
0% <0%> (ø)
2 <2> (?)

src/Helper/HashHelper.php
41.17% <0%> (-19.7%)
11 <3> (+3)

src/Report/PdfSizes.php
0% <0%> (ø)
26 <26> (?)

src/Service/ImageService.php
0% <0%> (ø)
15 <15> (?)

... and 12 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 a686c4f...b15e416. Read the comment docs.

todo:

[ ] fix build
[ ] finish craftsman share view with resized images
[ ] adapt report to use the resized images


Added a new set of options

Alright, let's see the changes.
The third parameter of THREEx.WindowResize has been changed to an
options object.
The options object has a width and height getter, aswell as several
scaling options. Imagine someone loading your game on a widescreen tv.
How many fps will he get?
Now you can define a maxWidth and maxHeight property + a scaling method
(3d transform, 2d transform, width/height scale, no scale) and the
window resizer will scale the renderer for you. This most likely can be
improved later on.
Another change is the before and the after callback. Sometimes you want
to do something after or before the renderer is resized. This will allow
you to keep all your resize handlers perfectly organized.
To change a setting on the fly, you can simply say
var windowResize = new THREEx.WindowResize(renderer, camera);
windowResize.option("maxWidth", 1234);

This can be useful for ingame settings where players can decide to make
their viewport smaller to increase their fps and gaming experience.
Opinions?
    var windowResize = new THREEx.WindowResize(renderer, camera, {
        width     : function() { return $(window).innerWidth(); },
        height    : function() { return $(window).innerHeight() - 200; },
        maxWidth  : 1024,
        maxHeight : 756,
        after     : otherResizeHandlers,
        scale     : '3d'
    });
    windowResize.trigger();

This is just a proposal. Should be discussed though!

@jeromeetienne


Update instances of scenes which have been reimported.

This is a PR meant to address the limitation that reimporting a modified scene from something like a GLTF or FBX file will not have these changes immediately reflected in instances of the currently open scenes. This should resolve most issues, the one thing it doesn't yet do is reload resources merely referenced in a reimported scene. This can be addressed by another pass to recursive walk all nodes and properties to correct any stray resources, but an easier and faster method could be to add a means to directly the override the resources in the cache.
Closes #55420
Closes #55372
Closes #14338
Closes #38853
Closes #38853

Note from yesterday:
Modifying the base glb for an inherited scene while the inherited scene is open crashes
================================================================
CrashHandlerException: Program crashed
Engine version: Godot Engine v4.0.alpha.custom_build (7e2586f140a3921c6a87774304b8912c670bc824)
Dumping the backtrace. Please include this when reporting the bug on https://github.com/godotengine/godot/issues
[0] HashMap<Variant,List<Pair<Variant const *,Variant>,DefaultAllocator>::Element *,VariantHasher,VariantComparator,3,8>::getptr (S:\repo\godot-pr-pr\core\templates\hash_map.h:317)
[1] HashMap<Variant,List<Pair<Variant const *,Variant>,DefaultAllocator>::Element *,VariantHasher,VariantComparator,3,8>::has (S:\repo\godot-pr-pr\core\templates\hash_map.h:276)
[2] OrderedHashMap<Variant,Variant,VariantHasher,VariantComparator,3,8>::has (S:\repo\godot-pr-pr\core\templates\ordered_hash_map.h:237)
[3] Dictionary::has (S:\repo\godot-pr-pr\core\variant\dictionary.cpp:166)
[4] Object::has_meta (S:\repo\godot-pr-pr\core\object\object.cpp:931)
[5] EditorNode::get_object_icon (S:\repo\godot-pr-pr\editor\editor_node.cpp:4087)
[6] EditorNode::_update_scene_tabs (S:\repo\godot-pr-pr\editor\editor_node.cpp:332)
[7] EditorNode::_notification (S:\repo\godot-pr-pr\editor\editor_node.cpp:567)
[8] EditorNode::_notificationv (S:\repo\godot-pr-pr\editor\editor_node.h:99)
[9] Object::notification (S:\repo\godot-pr-pr\core\object\object.cpp:848)
[10] SceneTree::_notify_group_pause (S:\repo\godot-pr-pr\scene\main\scene_tree.cpp:857)
[11] SceneTree::process (S:\repo\godot-pr-pr\scene\main\scene_tree.cpp:455)
[12] Main::iteration (S:\repo\godot-pr-pr\main\main.cpp:2693)
[13] OS_Windows::run (S:\repo\godot-pr-pr\platform\windows\os_windows.cpp:629)
[14] widechar_main (S:\repo\godot-pr-pr\platform\windows\godot_windows.cpp:168)
[15] _main (S:\repo\godot-pr-pr\platform\windows\godot_windows.cpp:190)
[16] main (S:\repo\godot-pr-pr\platform\windows\godot_windows.cpp:204)
[17] WinMain (S:\repo\godot-pr-pr\platform\windows\godot_windows.cpp:218)
[18] __scrt_common_main_seh (D:\agent\_work\9\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288)
[19] BaseThreadInitThunk
-- END OF BACKTRACE --
================================================================

ERROR: Condition "!is_ancestor_of(p_node)" is true. Returning: false
at: Node::is_editable_instance (scene\main\node.cpp:1861)
WARNING: res://fox_inherited.tscn:3 - ext_resource, invalid UUID: uid://cvnixq8b1uru - using text path instead: res://Fox.glb
at: ResourceLoaderText::load (scene\resources\resource_format_text.cpp:429)
ERROR: Condition "!is_ancestor_of(p_node)" is true.
at: Node::set_editable_instance (scene\main\node.cpp:1846)
ERROR: Condition "!owner_valid" is true.
at: Node::set_owner (scene\main\node.cpp:1497)
ERROR: Condition "!owner_valid" is true.
at: Node::set_owner (scene\main\node.cpp:1497)
ERROR: Cannot get path of node as it is not in a scene tree.
at: (scene\main\node.cpp:1588)
ERROR: Condition "!is_inside_tree()" is true. Returning: false
at: Node::can_process (scene\main\node.cpp:701)
ERROR: Cannot get path of node as it is not in a scene tree.
at: (scene\main\node.cpp:1588)

Still not quite ready yet, but big update on this:

[x] Fix reimporting instances inside of instances
[x] Fix orphaned resource references on scene states
[x] Fix reimporting instanced inherited scenes
[x] Add support for preserving groups
[x] Add support for preserving connections
[x] Fix updating history
[x] Fix recaching EditorPlugins
[x] Add recache request notification for edited scene nodes
[ ] Fix reimporting on inherited scene when its opened directly
[ ] Update all resource references on properties
[ ] Update internal resource references inside ScriptInstances
[ ] Add EditorSetting feature flag

Okay, with some recent changes I'd actually say this is almost ready. I'd quite like to add abitrary property resource remapping too, but at the very least, I'd say this 'ready' now, in that, it does what it says and doesn't seem to crash or throw errors anymore. Although this seemed like a pretty simple feature, it turned out to be a massive pain with loads of special-case bespoke code required to make the reimporting appear as seamless as possible. Lots of bespoke edge-cases which I had to track down and fix, and while I've debugged this pretty intensely already, this will likely still require some meaningful testing. At the very least though, I've added an editor setting feature flag so we can treat it as a more experimental feature if needed.

Does this also handle the case where a glTF (or other file type) is made local to the scene (or children made editable), then re-exported from Blender? All the replies I've read mention inheriting a new scene, but not when the model is made local to an existing scene or when the children are made editable.
My workflow is:

Drag a model from the FileSystem tab to the Scene tab.
Make the model local.
Add BoneAttachment3D nodes as needed to the now local Skeleton3D node.
Add children to the BoneAttachment3D nodes, changing the transform of the children as needed.
Create AnimationTree sequences based on the imported AnimationPlayer.

If I then add a new animation to a model in Blender, and re-export the file, Godot will re-import the file without the new animation. I have to delete the model from the scene, restart Godot, then repeat steps 1-5. Changing scene tabs doesn't help, closing and re-opening the scene doesn't help, restarting Godot without deleting the model from the scene doesn't help.
Having Godot pick up the animation changes automatically would be awesome, and would save me tons of time.
I'm using Godot 4.0 alpha 11.

Is their a workaround or something that could be done to make this mergeable ?
Overall experience in Godot 4 is greatly impacted by the mentionned issues.

Test plan:

Open blender.
Put a default monkey in the center
Save the scene as a blend
Go to this enhancement executable
Make a new 3d scene in a new project
Instance the blend file path into the scene
When you move the monkey in blender and save
When you go back to godot it should update.

Found a bug.
node_3d->get_global_transform(); becomes node_3d->get_relative_transform(node_3d->get_owner());  Similar for 2d.
The error case is the origin is different when called getting global transform (universe) versus it's local "global" transform (scene global) in nested scenes.

Test plan global transforms:

Open blender.
Put a default monkey in the center
Save the scene as a blend
Go to this enhancement executable
Make a new 3d scene in a new project
Instance the blend file path into the scene
When you move the monkey in blender and save
When you go back to godot it should update.

Variations

Go to blender set the monkey to be 10 on the right side
Make a child scene and make instance the blend scene
Go to the child scene and make the root 10 units to the top
Add a main scene
Move the Blender scene monkey forward 10 units.

I patched. So the change was I calculated the transform of the node 2d and node 3d like new_additive_node_entry.transform_3d = node_3d->get_relative_transform(node_3d->get_parent()); and saved it in the data structure. Notice that it is a local transform. Not a global transform. Also removed the editor flag to disable reloading.

There's a bug where the nested scene's path is lost with a blend file change.

The approach is very interesting, although EditorNode is need of a massive clean up after 4.0.

Thanks!

Reimporting a .blend file crashes the editor for me (4.0 beta15), but only if the scene is used in any currently open scenes, so i guess this is related to this change. Is this a known issue or unsupported special case with imported .blends?


Help needed

Hey bro, I just want to build Android apk with your code.
Can you point me to what module I have to download or use?
Thabks

When I am downloading and opening your project in Android Studio, a lot of errors are coming. There is a missing file in an error and there is an error A Dependency problem. If you give me the Complate Source Code of this app since you have kept it in Github. I am a beginner Android Developer. I want to see this code and practice a little. It would have been very useful if he had given. And you can make such a beautiful and such a good project, what more can I say. Thank you


Implement Drop for Window

This change will automatically free up window resources when a Window is dropped and makes calling delwin optional. Calling delwin and then dropping does not seem to cause issues.

This is a good idea but there's a couple of points I'm worried about:

The Window returned by initscr() is the default window "stdscr" that curses manages, I don't think you're actually supposed to call delwin() on that. It might make sense to differentiate it from other Windows in that sense.
Calling delwin() twice is going to lead to double frees, which is going to lead to memory corruption, so it should be tracked by the Window. ie. if delwin() has already been called, don't call it in Drop. Could be enough to just set the window pointer to null.

Is it confirmed that calling delwin() on the first window causes issues? I haven't seen anything wrong on Linux so far, but I haven't tested on Windows yet I suppose. I can try to look into the initscr() problem when I have some free time if you want though.
As for the double delwin() thing, one of the first things I tested was calling it on a subwindow and then dropping it doing something like this (Writing from memory, so sorry if something is wrong):
fn print_stuff(window: &Window) {
    let subwin = window.subwin(5, 10, 5, 5);
    subwin.printw("Hello, world!");
    subwin.delwin();
    // Subwin is dropped here
}

fn main() {
    let window = initscr();
    print_stuff(&window);
    endwin();
}

Of course I could be missing something since again I did only test this on one system.

Your example just needed an .unwrap() after the call to subwin() to compile so I ran it through Dr Memory (https://github.com/dynamorio/drmemory) to see what happens.
Without a Drop implementation that calls delwin there's nothing serious detected.
With the Drop implementation the program crashes on Windows and Dr. Memory gives me a bunch of "UNADDRESSABLE ACCESS of freed memory" errors which point to the delwin() call in Drop, which is expected because it ends up calling free() twice on the same pointer.
Memory corruption is the kind of thing that doesn't show up necessarily at all in a very small program but will eventually cause issues to show up in random places once your program is large/long-lived enough so it's a good idea to use a memory checker to verify what's happening.

Ah, that's my fault for not testing on Windows.
It's late for me now, but whenever I'm free I'll take a look at both those issues and add to this PR. I'll make sure to test on both platforms as well.

I added flags to keep track of the initial screen and whether a window has been deleted. For testing I used Dr. Memory on Windows and Linux and it shows all 0s for everything. I disregarded the "Errors ignored" section since nothing there has changed that I could tell.

Looks good to me


coreutils: fix unprivileged sandbox build

In usernamespaces some POSIX assumptions break, which
make some coreutils fail when running with sandbox but without a nix-deamon.
With this pull request it is possible to bootstrap stdenv without root-permission,
which is quiet useful in HPC environments.
Motivation for this change
Things done

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

[x] NixOS
[ ] macOS
[ ] other Linux distributions

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

I have 72 cores I would like to use.

Follow-up: is there a way to test this-- either to avoid regressions in the future once it's fixed, or more immediately to explore alternatives? :)

Changing the /nix prefix is not required when the host system supports usernamespaces, which is what I do here.

Breaking the hash is what I want to avoid, since I want to use the these machines for testing nixpkgs/cross-compilation.
Disabling those tests conditionally will result in bit-rot when coreutils is upgraded
Execution in qemu requires access to /dev/kvm to get decent performance, which is not the default on most linux distribution

I updated the test list. Now it is only 5 out of 600 tests for coreutils that are disabled and are all related to chgrp, where the problem is that only one of the two groups in the sandbox are usable by the build user and 3 tests in gnulib, also related to ownership. If we would ever have a problem with those very basic commands, where are likely to catch this in other packages/nixos tests.
Does this sound acceptable?

On Sun, 23 Dec 2018 01:50:47 -0800, Jörg Thalheim<EMAIL_ADDRESS>wrote:

I updated the test list. Now it is only 5 out of 600 tests for coreutils that are disabled and are all related to chgrp, where the problem is that only one of the two groups in the sandbox are usable by the build user and 3 tests in gnulib, also related to ownership. If we would ever have a problem with those very basic commands, where are likely to catch this in other packages/nixos tests.
Does this sound acceptable?

Yes, thank you!

--
You are receiving this because your review was requested.
Reply to this email directly or view it on GitHub:
https://github.com/NixOS/nixpkgs/pull/52672#issuecomment-449625510Non-text part: text/html


[PRFC] OpenAPI Typings for Routers

Signed-off-by: Aramis Sennyey<EMAIL_ADDRESS>Hey, I just made a Pull Request!
PoC work to create OpenAPI documentation and integration with express-openapi library using a schema-first approach. There are a few issues with this initial work that are pretty clear around dependent services being passed into the catalog and parsing input formats.
Update: Attempted to step back from express-openapi as typings are non-existent in the library. Their validators will be useful but the primary library has minimal use wrt developer experience. Found this repository https://github.com/varanauskas/oatx which handles automatic OpenAPI 3.x spec definitions in types and adapted it to a custom express router allowing for type-verified request bodies and response bodies. There will be more work to verify params and headers.
Basic workflow would be,

Write/update OpenAPI spec file.
Convert file to JSON and update/create typescript file to export the definition as const.
Import definition from the TS file and use to type the router.

Demo: https://drive.google.com/file/d/1uE2fAE9kjTezELFqwS_NUwThbWxmbJJ8/view?usp=share_link.
:heavy_check_mark: Checklist

[ ] A changeset describing the change and affected packages. (more info)
[ ] Added or updated documentation
[ ] Tests for new functionality and regression tests for bug fixes
[x] Screenshots attached (for UI changes)
[x] All your commits have a Signed-off-by line in the message. (more info)

@sennyeya nice! Did you write that OpenApi Spec file?

@taras Not for this iteration, I pulled the one I generated with https://github.com/backstage/backstage/pull/15038 and fixed a bunch of the invalid fields that it created. Wanted to highlight the issues with dynamic options before committing to writing a full spec.

What does validateDependency do?
A small nitpick - is it possible to keep the typescript checks the same if (refreshService) { ... } instead of refreshService!. It makes the diff look bigger than it is and makes the comparison more difficult.
Which of the tools do you think we can use to generate typescript types?

is it possible to keep the typescript checks the same if (refreshService) { ... } instead of refreshService!. It makes the diff look bigger than it is and makes the comparison more difficult.

This is related to validateDependency. Because we can't use an if(refreshService) to remove routes, we would need to do if(refreshService) for each operation. validateDependency does this work and throws if refreshService is falsy.
I'm taking a look at the typescript type generation, I think I want to use quicktypes to generate from an OpenAPI schema, ie pulling the components list from an OpenAPI file. It'll add the types, for now duplicating as needed from catalog-model, but won't have any access/type safety with the API methods.

API methods are useful types, IMO. It's also not guaranteed that components will be used. I think we need a tool that generates types starting from the operations.

Definitely agree API methods are useful typings. As a dev, I would definitely prefer typed request arguments as opposed to the casting/AJV validation we're currently doing manually.
However, I don't think schema-first is the right starting place for this PoC, especially as there are 7 distinct different schemas (plus however many permutations) we should be presenting, ie 1 when the catalog is in readonly mode and 6 for various dependent services being falsy when passed in. We could also make the schema as general as possible, ie have return values that include 404, but that seems overly broad and wouldn't help consumers make simple decisions like is the POST analyze-location or the DELETE /locations/:id available by just looking at the spec.

I would completely ignore the concept of optionality, it's just a distraction. Just make it the full interface no matter what. The server can choose to return 501 Not Implemented if they want to. And end users can choose to have an export type CatalogClient = Omit<OriginalCatalogClient, 'deleteLocation'> or whatnot.

or if it's possible to split apart the large catalog api into e.g. an entities part, a locations part etc (possibly separate schemas) and then generating stubs and types separately for them, and then by hand doing export type CatalogApi = EntitiesApi & LocationsApi & ...

@freben Apologies for the late response. Had to think through this some more.
I think the question I should be asking is whether we want to generate an SDK that users can consume that's published to PyPI/Maven/other package managers that has all available methods or if we want adopters to generate an SDK from the CLI that they can distribute themselves? My thinking was towards the second option.
If the second option, then I think we'd want to consider optionality.

As a hint, you generally don't need to do much with the yarn file by hand since it's auto generated and deduping should happen in precommit. Most commonly, especially when rebasing, I just checkout the yarn.lock file from its master state before the head of the branch (do not delete it outright!) and run yarn install, letting yarn rebuild it properly for me.

@freben That took waaay more tries than I thought it would 😅 . Hopefully, it's in the right dedup'ed state now?

@freben @taras Just added a demo of the router typings. There is currently support for req.params, req.query, req.body, and response typings. Would love to hear your thoughts.

repo-tools is an entire CLI in and of itself - I meant just moving the command out of the CLI (leaving the CLI untouched in this PR effectively) and into that one instead. If that makes sense.

(just rebasing and ensuring that yarn.lock doesn't have conflicts)


Flaky test - renderer process crashed on windows when running the core tests

https://ci.appveyor.com/project/Atom/atom/build/8790/job/pka8dbjrr6brygwh

This time it crashed on main process tests.  The leading R is missing.
https://ci.appveyor.com/project/Atom/atom/build/8882/job/ufgkle7eeb32o6aw


Memory leakages in nanomq_cli bench tool

Describe the bug
==44220==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 409600 byte(s) in 200 object(s) allocated from:
    #0 0xffff8064e500 in malloc (/lib64/libasan.so.8+0xae500)
    #1 0x4abd74 in nni_alloc /root/nanomq/nng/src/platform/posix/posix_alloc.c:20
    #2 0x477818 in nng_alloc /root/nanomq/nng/src/nng.c:60
    #3 0x452658 in pub_cb /root/nanomq/nanomq_cli/bench.c:216
    #4 0x454db4 in nnb_publish /root/nanomq/nanomq_cli/bench.c:526
    #5 0x45501c in bench_start /root/nanomq/nanomq_cli/bench.c:558
    #6 0x45e35c in main /root/nanomq/nanomq_cli/main.c:106
    #7 0xffff800973c4 in __libc_start_call_main (/lib64/libc.so.6+0x273c4)
    #8 0xffff8009749c in __libc_start_main_alias_2 (/lib64/libc.so.6+0x2749c)
    #9 0x45126c in _start (/root/nanomq/build/nanomq_cli/nanomq_cli+0x45126c)

SUMMARY: AddressSanitizer: 409600 byte(s) leaked in 200 allocation(s).

To Reproduce
Run ./nanomq_cli/nanomq_cli bench pub -h <IP_ADDRESS> -p 1883 -q 2 -t topic1/a -s 2048
Then stopping mqtt broker.
The nanomq_cli bench tool was stopped because there were no active connections.
Then memory leakage happened.
Environment Details

NanoMQ version
Operating system and version
Compiler and language used
testing scenario

Client SDK
Additional context

I think the leak is no longer exist, just tested it.


tailscale: don't start until network is online

Description of changes
Prevents tailscale from trying to reach out to the internet before the machine is online.
Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[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/)
23.05 Release Notes (or backporting 22.11 Release notes)

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

[x] Fits CONTRIBUTING.md.

This should be unnecessary, and in some cases can be harmful to tailscale working. network-online.target is kind of a legacy antipattern in systemd, it only exists because pre-systemd init systems had this idea that the network becomes "online" at some point and then is always there and never changing ever again.
But in reality, "network online-ness" is a very fuzzy concept that breaks down in all but the most trivial configurations. Even more "fun", pulling network-online.target into the bootup sequence creates a forced synchronization point that removes a lot of parallelism and greatly slows down bootup a lot in less-than-perfect environments. For example, if you boot a laptop someplace where you don't have wifi settings saved yet, network-online.target will block boot for several minutes until it gives up, and all the stuff that depends on network-online.target will not start at all until started manually.
The modern recommendation for network-enabled daemons, is to start as soon as it is safe to (after network-pre.target, because firewalls etc. order themselves before network-pre) and dynamically react to changes in the network stack, so that they notice when they need to do stuff. Tailscale does this, it monitors interface and routing table state via netlink and changes states/retries/goes quiescent depending on the network state it sees.
If you're seeing tailscale not doing that, then that's a bug that should be looked into upstream, because Tailscale should start correctly right after network-pre and adapt gracefully as the network stack comes up and changes. Papering over those issues during boot with network-online.target will just lead to even more subtle, hard to debug problems when networking state changes at runtime after boot (e.g. network interface flaps, or a new network interface is connected, or a sysadmin run a BGP daemon that causes a mass reconfiguration of the network...).

Sure, thanks for the info. Will close this and investigate further.

Hmm, yeah that should be an upstream bug. We should be backing off from trying to dial stuff if it fails, and only retrying more when netlink says state changes (we can't stop trying completely with heuristics like "no default route", because of machines like BGP speakers with full internet route tables that can reach the entire internet but don't have a default route :/ ).


Vergen failing to compile as dependency when updating to 8.2.3 from 8.2.1

Recently dependabot tried to update vergen in a project from 8.2.1 to 8.2.3. It is failing at compile stage with error
   Compiling vergen v8.2.3
error[E0599]: no method named `checked_to_offset` found for struct `OffsetDateTime` in the current scope
   --> .../.cargo/registry/src/index.crates.io-6f17d22bba15001f/vergen-8.2.3/src/feature/git/cmd.rs:651:54
    |
651 |                         let local_offset = no_offset.checked_to_offset(local).unwrap_or(no_offset);
    |                                                      ^^^^^^^^^^^^^^^^^ help: there is a method with a similar name: `to_offset`

The vergen dependency in cargo.tom is vergen = {version ="8.2.1", features =["git","gitcl"]}.
The dependabot PR on which this is failing is https://github.com/containers/youki/pull/2111 actual CI https://github.com/containers/youki/actions/runs/5451984710/jobs/9918894204?pr=2111
I also tried building locally and it fails with the same error.
Is there some config issue such as feature selection issue from my side, or anything else?
Thanks!

OffsetDateTime::checked_to_offset was added to time in v0.3.22, but vergen only declares a dependency on v0.3.20.
We should be able to fix this with a cargo update to update the versions of transient dependencies, but we should also probably declare the correct version in vergen.

I'm curious, would this require the vergen 8.2.3 be yanked, or just a bump? Not sure how semvar would/should work with this :thinking:

I will yank 8.2.3.  Although this isn't technically a problem with vergen as updating transient dependencies will fix the issue, I'd rather make it less hassle.  As soon as the PR @JamesHinshelwood has created passes through the pipelines, I will create 8.2.4.

@JamesHinshelwood Thanks for the quick triaging and opening the PR. @CraZySacX thanks for the quick update and release :)


SFTP not working on 12.5.7: "/usr/lib/libresolv.9.dylib: missing LC_DYLD_INFO load command"

Any attempt to use commands like scp, sftp etc. results with the following:
dyld: Library not loaded: /usr/lib/libresolv.9.dylib
  Referenced from: /usr/libexec/sftp-server
  Reason: no suitable image found.  Did find:
	/usr/lib/libresolv.9.dylib: missing LC_DYLD_INFO load command
	/usr/lib/libresolv.9.dylib: missing LC_DYLD_INFO load command
	/usr/lib/libresolv.9.dylib: missing LC_DYLD_INFO load command
	/usr/lib/libresolv.9.dylib: missing LC_DYLD_INFO load command
Connection closed

My device is iPod touch 6, the SSH Ramdisk is based on iOS 12.5.7

Same error here
iOS 12.4.7 running on iPhone 6 Plus (iPhone7,1)

Try the ssh bin from here it's should work.


Level 3 -> restoring an agent through zip

I cloned this repository, and as stated here: https://codelabs.developers.google.com/codelabs/actions-3/index.html#2
I tried to restore agent through export and import section's restore agent and uploaded codelab-level-two.zip but it takes forever to upload.

It remains in this state forever. Can't proceed, I'm not sure if its a bug, or I'm doing something wrong.
Any help?

You have to type "RESTORE" in the input field and then press the restore button.

Shit. I had the impression that its the progress bar under "codelab-level-two.zip". Thanks for helping me out!


Heroku error: Error: Could not resolve @prisma/client despite the installation that we just tried.

Bug description
I am suddenly getting the following error when attempting to deploy my application on Heroku:
Error: Could not resolve @prisma/client despite the installation that we just tried.
Please try to install it by hand with yarn add @prisma/client and rerun npx "prisma generate" 🙏.
error Command failed with exit code 1.
       info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
       info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
-----> Build failed

       We're sorry this build is failing! You can troubleshoot common issues here:
       https://devcenter.heroku.com/articles/troubleshooting-node-deploys

       Some possible problems:

       - Dangerous semver range (>) in engines.node
         https://devcenter.heroku.com/articles/nodejs-support#specifying-a-node-js-version

       Love,
       Heroku

 !     Push rejected, failed to compile Node.js app.
 !     Push failed

I am using the latest version in my package.json:
"dependencies": {
          "@prisma/client": "^5.17.0",
          "prisma": "^5.17.0",
     ....
}

yarn install and npx prisma generate --schema ./src/api/prisma/schema.prisma work fine locally.
How to reproduce
Attempt to deploy on Heroku
Expected behavior
Successfully deploys to Heroku
Environment & setup

Node.js version: >=18.12.1

Prisma Version
5.17.0

The command which is failing is as follows:
"build": "rm -rf .dist && npx prisma generate --schema ./src/api/prisma/schema.prisma && yarn babel ./src --out-dir ./dist --extensions ".ts,.js"",

This is an issue with Heroku, not Prisma.


Potential fix for #114

Minor tweaks to the code badgamernl posted but this may solve the scenario issue. Would need someone who is more versed in scenarios to test it though.

one thing i do see with it though is the runit and systemd scripts would not restart the scenario file they would instead run the normal load-latest mode not sure if that would be an issue or not

appreciate the effort, feel free to resolve merge conflicts and post a new request if you like.


Webpack compilation plugin not working with nativescript-webpack 0.10.2

When I build with webpack enabled:
tns build android --bundle
The plugin has an error compilation:
ERROR in ../node_modules/nativescript-couchbaselite/commons.ts
Module build failed: Error: **$PATH**/commons.ts is missing fromthe TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property.
The missing file seems to be part of a third party library. TS files in published libraries are often a sign of a badly packaged library. Please open an issue in the library repository to alert its author and ask them to package the library using the Angular Package Format (https://goo.gl/jB3GVv).
    at NativeScriptAngularCompilerPlugin.getCompiledFile (**$PATH**/node_modules/@ngtools/webpack/src/angular_compiler_plugin.js:663:23)
    at NativeScriptAngularCompilerPlugin.getCompiledFile (**$PATH**/node_modules/nativescript-dev-webpack/plugins/NativeScriptAngularCompilerPlugin.ts:76:22)
    at plugin.done.then (**$PATH**/node_modules/@ngtools/webpack/src/loader.js:467:39)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
 @ ../node_modules/nativescript-couchbaselite/index.js 5:16-36 6:16-36
 @ ./services/couchbase.instance.ts
 @ ./modules/app.module.ts
 @ ./main.ts

I don´t know how to include the commons.ts file to the webpack compilation.

Also seeing the same errors.  Any thoughts?

Hi , it looks like you are trying to bundle my plugin from source (while it is already bundled, source are not distributed). I need to check but it seems to be that.

The problem stems from the npm bundle including the commons.ts file. If you manually delete the file from the node_modules folder it compiles. I'm still trying to work out the correct webpack config change to make as an exclusion rule does not seem to be taking effect.

Adding this to references.d.ts seemed to resolve the issue for me:
/// <reference path="./node_modules/nativescript-couchbaselite/commons.ts" />

I'm getting errors using this approach as the commons.ts file contains a concrete class which violates the typescript definition format.  What I'm thinking is, the packaging process of nativescript-couchbaselite should be including a commons.d.ts definition file instead of the commons.ts source file - thoughts?

I've found another solution. You can to create a js file in hooks/before-prepare called nativescript-couchbaselite.js with this:
var fs = require('fs');

module.exports = function($logger) {
    var commonsTSFile = 'node_modules/nativescript-couchbaselite/commons.ts';
    console.log('Adding commons.ts for nativescript-couchbaselite');
    if (fs.existsSync(commonsTSFile)) {
        fs.unlink(commonsTSFile);
    }
};

Regards


Add missing mac installation link on get-docker.md

Proposed changes
Added missing mac installation link on the apple icon link on get-docker.md page.
Related issues (optional)
None - I just found the issue when trying to download Docker for mac. I was clicking the apple icon as it contains a link but the href was missing.

Oh, nice catch! Looks like that link was accidentally removed in https://github.com/docker/docker.github.io/pull/15108 (https://github.com/docker/docker.github.io/pull/15108/files#diff-ccee8b7e81070694470b1256f1dcd32441edc58a4bf6d97574aa6e20f8c72d4cL34)
/cc @aevesdocker


cannot disable fp16

It seems like there is a bug when setting use_fp16 = False, the log is
Traceback (most recent call last):
  File "scripts/image_train_stable.py", line 150, in <module>
    main()
  File "scripts/image_train_stable.py", line 78, in main
    TrainLoop(
  File "/home/yanq/Codes/glid-3-xl-stable/guided_diffusion/train_util.py", line 194, in run_loop
    self.run_step(batch, cond)
  File "/home/yanq/Codes/glid-3-xl-stable/guided_diffusion/train_util.py", line 208, in run_step
    self.forward_backward(batch, cond)
  File "/home/yanq/Codes/glid-3-xl-stable/guided_diffusion/train_util.py", line 236, in forward_backward
    losses = compute_losses()
  File "/home/yanq/Codes/glid-3-xl-stable/guided_diffusion/respace.py", line 96, in training_losses
    return super().training_losses(self._wrap_model(model), *args, **kwargs)
  File "/home/yanq/Codes/glid-3-xl-stable/guided_diffusion/gaussian_diffusion.py", line 1137, in training_losses
    model_output = model(x_t, self._scale_timesteps(t), **model_kwargs)
  File "/home/yanq/Codes/glid-3-xl-stable/guided_diffusion/respace.py", line 133, in __call__
    return self.model(x, new_ts, **kwargs)
  File "/home/yanq/.conda/envs/ldm/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/yanq/.conda/envs/ldm/lib/python3.8/site-packages/torch/nn/parallel/distributed.py", line 886, in forward
    output = self.module(*inputs[0], **kwargs[0])
  File "/home/yanq/.conda/envs/ldm/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/yanq/Codes/glid-3-xl-stable/guided_diffusion/unet.py", line 882, in forward
    h = module(h, emb, context)
  File "/home/yanq/.conda/envs/ldm/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/yanq/Codes/glid-3-xl-stable/guided_diffusion/unet.py", line 217, in forward
    x = layer(x, context)
  File "/home/yanq/.conda/envs/ldm/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/yanq/Codes/glid-3-xl-stable/guided_diffusion/unet.py", line 188, in forward
    x = block(x, context=context)
  File "/home/yanq/.conda/envs/ldm/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/yanq/Codes/glid-3-xl-stable/guided_diffusion/unet.py", line 140, in forward
    return checkpoint(self._forward, (x, context), self.parameters(), self.checkpoint)
  File "/home/yanq/Codes/glid-3-xl-stable/guided_diffusion/nn.py", line 162, in checkpoint
    return CheckpointFunction.apply(func, len(inputs), *args)
  File "/home/yanq/Codes/glid-3-xl-stable/guided_diffusion/nn.py", line 174, in forward
    output_tensors = ctx.run_function(*ctx.input_tensors)
  File "/home/yanq/Codes/glid-3-xl-stable/guided_diffusion/unet.py", line 144, in _forward
    x = self.attn2(self.norm2(x), context=context) + x
  File "/home/yanq/.conda/envs/ldm/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/yanq/Codes/glid-3-xl-stable/guided_diffusion/unet.py", line 112, in forward
    sim = einsum('b i d, b j d -> b i j', q, k) * self.scale
  File "/home/yanq/.conda/envs/ldm/lib/python3.8/site-packages/torch/functional.py", line 327, in einsum
    return _VF.einsum(equation, operands)  # type: ignore[attr-defined]
RuntimeError: expected scalar type Float but found Half

should be fixed now

Thanks! One interesting thing I found is fp 16 seems to use similar or even more GPU memory. Both fp16 and fp32 can train with bs=8 on a GPU with 48 GB ram, and when bs = 2, I even found fp32 takes less memory.


Tests: enforce configuration cleanup

The current test suite runs into periodic headaches when tests accidentally leave configuration options in place. This leads to unexpected settings for subsequent tests and occasionally options missing altogether ("not found" exceptions).
We should consolidate the way that the configuration is set up for tests so that this becomes impossible. Ideally, tests would need to use a context manager (with statement) to use the configuration at all; otherwise, if the tested code uses beets.config, it should encounter an error. This will force all tests to automatically tear down their configuration.
This may involve removing the implicit loading in LazyConfig in favor of an explicit materialize call.

Sorry, I hope you don't mind me reviving this thread, but it seemed like the most appropriate place to ask; for writing test cases, which is the preferred method?

Using the beets.test.helper.TestHelper mixin and calling the setup_beets and teardown_beets methods manually
Subclassing beets.test._common.TestCase and calling the setUp and tearDown super methods if necessary

There seems to be a lot of code duplication between the two. Also, if we do settle for one approach, it would be worth updating the relevant wiki page.

A very good question. Sadly, we still have two slightly different systems because they were never reconciled. The former was started some time ago, and I think the intention was to merge them eventually, but that never happened. I still hope some kind soul will be interested in doing the work to clean up the two disparate harnesses.
Anyway, for the time being, you want the former (TestHelper) for this case. It has better harnesses for the importer. For non-importer tests, the choice is less clear.


ENOTDIR: not a directory

Hi, I have an error when I want to install firebase-tools with specific versions of npm/nvm.
No issues with recent version.
I also don't know if the error is from firebase or nvm.
Operating system and version:
Ubuntu 20.04.5 LTS
nvm debug output:

$ nvm debug
nvm --version: v0.39.2
$SHELL: /bin/bash
$SHLVL: 1
whoami: 'steamulo'
${HOME}: /home/steamulo
${NVM_DIR}: '/usr/local/nvm'
${PATH}: ${NVM_DIR}/versions/node/v12.17.0/bin:/usr/lib/jvm/java-11-openjdk-amd64/bin:/usr/local/sbin:/usr/local/bin:/opt/android-sdk-linux/build-tools/25.0.3:/opt/android-sdk-linux/tools/:/opt/android-sdk-linux/build-tools/:/opt/android-sdk-linux/platform-tools/:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/snap/bin
$PREFIX: ''
${NPM_CONFIG_PREFIX}: ''
$NVM_NODEJS_ORG_MIRROR: ''
$NVM_IOJS_ORG_MIRROR: ''
shell version: 'GNU bash, version 5.0.17(1)-release (x86_64-pc-linux-gnu)'
uname -a: 'Linux 5.4.0-139-generic #156-Ubuntu SMP Fri Jan 20 17:27:18 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux'
checksum binary: 'sha256sum'
OS version: Ubuntu 20.04.5 LTS
curl: /usr/bin/curl, curl 7.68.0 (x86_64-pc-linux-gnu) libcurl/7.68.0 OpenSSL/1.1.1f zlib/1.2.11 brotli/1.0.7 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.2.0) libssh/0.9.3/openssl/zlib nghttp2/1.40.0 librtmp/2.3
wget: /usr/bin/wget, GNU Wget 1.20.3 built on linux-gnu.
git: /usr/bin/git, git version 2.25.1
grep: /usr/bin/grep (grep --color=auto), grep (GNU grep) 3.4
awk: /usr/bin/awk, GNU Awk 5.0.1, API: 2.0 (GNU MPFR 4.0.2, GNU MP 6.2.0)
sed: /usr/bin/sed, sed (GNU sed) 4.7
cut: /usr/bin/cut, cut (GNU coreutils) 8.30
basename: /usr/bin/basename, basename (GNU coreutils) 8.30
rm: /usr/bin/rm, rm (GNU coreutils) 8.30
mkdir: /usr/bin/mkdir, mkdir (GNU coreutils) 8.30
xargs: /usr/bin/xargs, xargs (GNU findutils) 4.7.0
nvm current: v12.17.0
which node: ${NVM_DIR}/versions/node/v12.17.0/bin/node
which iojs:
which npm: ${NVM_DIR}/versions/node/v12.17.0/bin/npm
npm config get prefix: ${NVM_DIR}/versions/node/v12.17.0
npm root -g: ${NVM_DIR}/versions/node/v12.17.0/lib/node_modules

nvm ls output:

$ nvm ls
        v6.17.1
        v7.10.1
        v8.17.0
       v10.20.1
->     v12.17.0
       v14.15.0
       v16.17.1
        v18.9.1
default -> v12.17.0
iojs -> N/A (default)
unstable -> N/A (default)
node -> stable (-> v18.9.1) (default)
stable -> 18.9 (-> v18.9.1) (default)
lts/* -> lts/hydrogen (-> N/A)
lts/argon -> v4.9.1 (-> N/A)
lts/boron -> v6.17.1
lts/carbon -> v8.17.0
lts/dubnium -> v10.24.1 (-> N/A)
lts/erbium -> v12.22.12 (-> N/A)
lts/fermium -> v14.21.3 (-> N/A)
lts/gallium -> v16.19.1 (-> N/A)
lts/hydrogen -> v18.14.2 (-> N/A)

How did you install nvm?

With ansible, the command is
bash -lc "/usr/local/nvm/versions/node/v7.10.1/bin/npm" "install" "-g" "firebase-tools"

Same when I do the command in console.
What steps did you perform?
bash -lc "/usr/local/nvm/versions/node/v7.10.1/bin/npm" "install" "-g" "firebase-tools"

What happened?
Error message is :

npm ERR! Linux 5.4.0-139-generic
npm ERR! argv "/usr/local/nvm/versions/node/v12.17.0/bin/node" "/usr/local/nvm/versions/node/v7.10.1/bin/npm" "install" "-g" "firebase-tools"
npm ERR! node v12.17.0
npm ERR! npm  v4.2.0
npm ERR! path /tmp/npm-392069-417f31fa/unpack-02af7878/package.json
npm ERR! code ENOTDIR
npm ERR! errno -20
npm ERR! syscall open
npm ERR! ENOTDIR: not a directory, open '/tmp/npm-392069-417f31fa/unpack-02af7878/package.json'
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     https://github.com/npm/npm/issues
npm ERR! Please include the following file with any support request:
npm ERR!     /home/steamulo/.npm/_logs/2023-02-24T16_20_24_019Z-debug.log

#### What did you expect to happen?
firebase-tools installed with v7.10.1 and also v6.17.1
Is there anything in any of your profile files that modifies the PATH?

If you are having installation issues, or getting "N/A", what does curl -I --compressed -v https://nodejs.org/dist/ print out?

Thank you in advance for your help.

That command decidedly will not work, because the PATH will not be set up properly. You need to have a shell in which nvm.sh is sourced, and then you'd run npm install -g firebase-tools. You'd never want to use the full path to node or npm.


SAK-29654 forum ranks do not perform well enough to be enabled by default

This definitely makes sense, currently the forum ranks feature is experimental.


Next.js => "@material-ui/core" update from "v4.9.12" to "v4.9.13" => "react-transition-group" => ReferenceError: Element is not defined.

Hi,
Firstly thank you for this great framework.
I am using the Tooltip module on Next.js.
When I have been updated "@material-ui/core" from v4.9.12 to v4.9.13 I am getting an error on the "react-transition-group" module as ReferenceError: Element is not defined.
My component dependencies as below:
import { Tooltip as TLTP, Grow } from '@material-ui/core';
import { withStyles } from '@material-ui/core/styles';

[x] The issue is present in the latest release.
[x] I have searched the issues of this repository and believe that this is not a duplicate.

Current Behavior 😯
"react-transition-group" => ReferenceError: Element is not defined.
Steps to Reproduce 🕹
npm i @material-ui/core

Tech
Version

Material-UI
v4.9.13

Next.js
9.3.6

React
16.13.0

Browser
Any

Duplicate of #20924


translation: add pt-BR link

Hi, I'm currently working on the Portuguese translation of this book and would like to add the link here. :)

It looks like the link isn't working yet - could you get github pages building it first, so we don't add a dead link?


Restore the last semicolon for Yii asset/compress

Yii's asset/compress command cannot join JavaScripts they doesn't have semicolon at  EOF correctly.
https://github.com/yiisoft/yii2/blob/1501c659aca7c50fa5e4f6fbe5ca549acc946c86/framework/console/controllers/AssetController.php#L571
So, I got these probrem with yii2-pjax 2.0.7:

)(jQuery)
/*** END FILE: jquery.pjax.js ***/
/*** BEGIN FILE: yii.activeForm.js ***/
(function($){

Above would be compressed as:
)(jQuery)(function($){

I expect:
)(jQuery);(function($){

Merged. Thanks!


pull: warn (not die) on bottle publish failure.

This is useful when you're pulling PRs where individual bottles can't be uploaded/built but you still want to pull the PR as a whole anyway.
CC @ilovezfs for thoughts.

Should this be behind an option? What I usually do is hand edit brew pull to explicitly skip the ones I want skipped by formula name. If it's not behind an option, I'm afraid sometimes we'll miss the warning and push the PR with bottles missing accidentally.

If it's not behind an option, I'm afraid sometimes we'll miss the warning and push the PR with bottles missing accidentally.

Fair point. Will option it.

Just tried this out. It gets it passed the initial failure but then we still get stuck at
Verifying bottle: getdp-2.11.0_3.sierra.bottle.tar.gz
Waiting on Bintray.......................................................

@ilovezfs Suggested behaviour?

I think if it can't grab the patch for the bottle commit for a given formula, then it should skip attempting to publish and verify the bottles for that formula.

Just tried this out. It gets it passed the initial failure but then we still get stuck at

This should be fixed now @ilovezfs; can you try again?


Learning

I want to learn python

So?

You could find some good courses over coursera or udemy for free, feel free to ping me

I want to learn python

I learnt python with Programiz.


iOS crash with VS Code start without debug

Steps to Reproduce

Create flutter app
Add the SwiftProtobuf CocoaPod to the ios project
Start without debugging (should work)
Stop the app
Start without debugging (app is already installed)
Crashes, something crashes iOS

Works fine when running from XCode. If I comment out use_framework! in podfile and pod install the issue seems to go away when running with flutter run

Target Platform: iOS
Target OS version/browser: 13.1.3
Devices: iPad (6th generation)
Logs

Flutter run log too big

Here is a crash log:
Incident Identifier: 3C50AE1E-29EB-4027-9D93-7E74EB2D6495
CrashReporter Key:   bf2b119d1370a7cf2299938d88e1d2944054991a
Hardware Model:      iPad7,5
Process:             Runner [4758]
Path:                /private/var/containers/Bundle/Application/4A2C3A00-CD4A-4F55-85D3-5FAA03EB32CF/Runner.app/Runner
Identifier:          com.cognuro.app
Version:             1 (1.0.0)
Code Type:           ARM-64 (Native)
Role:                Foreground
Parent Process:      launchd [1]
Coalition:           com.cognuro.app [735]

Date/Time:           2019-10-19 20:35:35.4087 -0600
Launch Time:         2019-10-19 20:35:35.2311 -0600
OS Version:          iPhone OS 13.1.3 (17A878)
Release Type:        User
Baseband Version:    n/a
Report Version:      104

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note:  EXC_CORPSE_NOTIFY
Termination Description: DYLD, dependent dylib<EMAIL_ADDRESS>not found for '/private/var/containers/Bundle/Application/4A2C3A00-CD4A-4F55-85D3-5FAA03EB32CF/Runner.app/Runner'. vm_copy() failure
Highlighted by Thread:  0

Backtrace not available

Unknown thread crashed with ARM Thread State (64-bit):
    x0: 0x0000000000000006   x1: 0x0000000000000001   x2: 0x000000016f7e9ff0   x3: 0x00000000000000a3
    x4: 0x000000016f7e9bf0   x5: 0x0000000000000000   x6: 0x0000000000000000   x7: 0x0000000000000000
    x8: 0x0000000000000020   x9: 0x0000000000000009  x10: 0x7070612e72656e6e  x11: 0x2772656e6e75522f
   x12: 0x6e75522f7070612e  x13: 0x6d76202e2772656e  x14: 0x20292879706f635f  x15: 0x006572756c696166
   x16: 0x0000000000000209  x17: 0x0000000000000000  x18: 0x0000000000000000  x19: 0x0000000000000000
   x20: 0x000000016f7e9bf0  x21: 0x00000000000000a3  x22: 0x000000016f7e9ff0  x23: 0x0000000000000001
   x24: 0x0000000000000006  x25: 0x0000000100824000  x26: 0x0000000000000001  x27: 0x0000000100824000
   x28: 0x0000000000000000   fp: 0x000000016f7e9bc0   lr: 0x000000010080e30c
    sp: 0x000000016f7e9b80   pc: 0x00000001008074f0 cpsr: 0x00000000
   esr: 0x00000000  Address size fault

Binary images description not available

Error Formulating Crash Report:
Failed to create CSSymbolicatorRef - corpse still valid ¯\_(ツ)_/¯

EOF

Analyzing cognuro...

   info • Unused import: 'package:flutter/services.dart' • lib/bluetooth/bluetooth_device.dart:7:8 • unused_import
   info • This function has a return type of 'Future', but doesn't end with a return statement • lib/bluetooth/flutter_blue.dart:26:34 • missing_return

[✓] Flutter (Channel stable, v1.9.1+hotfix.5, on Mac OS X 10.15 19A583, locale en-US)
    • Flutter version 1.9.1+hotfix.5 at /Users/chris/Tools/flutter
    • Framework revision 1aedbb1835 (2 days ago), 2019-10-17 08:37:27 -0700
    • Engine revision b863200c37
    • Dart version 2.5.0

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

[✓] Xcode - develop for iOS and macOS (Xcode 11.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.1, Build version 11A1027
    • CocoaPods version 1.8.3

[✓] Android Studio (version 3.5)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 40.2.2
    • Dart plugin version 191.8593
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)

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

[✓] Connected device (1 available)
    • Christopher's iPad (2) • 5b7bccfe1717dc5b8613a6fa39fa95e37ef429f8 • ios • iOS 13.1.3

log.txt

Hi @chrisdrobison
I went through your log and I couldn't find any Flutter related error
(flutter built successfully lines from  11928 to 12691 of your file)
all the errors appear to be caused by SwiftProtobuf.
(the flutter error Flutter run log too big, going to attach it
just means that the log is too long to be 'printed')
You might want to consider opening an issue on the plugin's github.
I'm closing, as this isn't an issue with Flutter itself,
if you disagree please write in the comments and I will reopen it.
Thank you

Isn't platform channels part of flutter itself?


Variables in org.apache.accumulo.fate.FATE class can be final.

The fields store, environment and executor can be marked final in FATE

Hi @EdColeman  can i work on this issue?

My mistake - executor cannot be final - the other filed that can be final is keepRunning - would you correct and push the changes to your PR - sorry for the confusion.

Sure @EdColeman  . Yeah, I saw the checks. It's generating an error as: cannot assign a value to a final variable executor.

No problem @EdColeman  sir. I'll fix this up and submit a PR.


Codeflow: Git: Unknown subcommand: rename when creating a new branch

Describe the bug
Creating a new branch errors the editor with Git: Unknown subcommand: rename
(See steps to reproduce and screenshot)
Link to the blitz that caused the error
https://stackblitz.com/~/github.com/withastro/docs
Steps to reproduce

Open Codeflow via pr.new
Make changes
GitHub tab says "Ready to make changes?" Hit the Open a new PR button
Codeflow tells me I don't have write access to the repo (actually, I do). Offers to create a branch on my GitHub account, press the button

Expected behavior

Since I have write access to the repo, it should let me create a branch on the repo
If I create a new branch, don't crash

Parity with Local

[X] I have run the project in my local machine and I could not reproduce the issue.

Screenshots

Platform
Version = 1.72.0
Hash = e6aaaf1b03dbb6d61cf3d7d4587c2cb175785891
WebContainer = 927bd077ab89da68c6338c4363cc22e79cccb4ef

Browser name  = Chrome
Full version  = <IP_ADDRESS>
Major version = 110
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36
performance.memory = {
  "totalJSHeapSize": 118930860,
  "usedJSHeapSize": 111608172,
  "jsHeapSizeLimit":<PHONE_NUMBER>
}

Additional context
No response

Console output: stackblitz.com-1676670589967.log

hey @Jutanium! Does Astro org allow REST API access for StackBlitz OAuth app? (you can check that here)

@HeyGarrison I think this has to do with the fact we currently don't support the git rename command, rather than something with the API access.
@Jutanium We currently don't have support yet for git rename. I'll create a ticket internally to track this. Thanks for reporting!

Oh, maybe it has something to do with the REST API (sorry, my bad). Like @HeyGarrison said, make sure to check that page to see if the settings are correct.
But separate from that, we should support git rename as well.

we shipped support for git remote rename, not sure if this fixed the issue @Jutanium