chore(deps): upgrade runtime dependencies

Upgrades project dependencies. See details in workflow run.

Automatically created by projen via the "upgrade-runtime-dependencies-k8s-27-main" workflow

⚪ Backport skipped
The pull request was not backported as there were no branches to backport to. If this is a mistake, please apply the desired version labels or run the backport tool manually.
Manual backport
To create the backport manually run:
backport --pr 3153

Questions ?
Please refer to the Backport tool documentation


markdown.js: Move markdown.js test to bugdown-data.json.

There are no usermention and stream name tests in bugdown-data.json. So, only moving this single test from node to bugdown-data.json.

Merged, thanks @lonerz!  The test failure was an unrelated issue in master :(.


module 'wavespectra' has no attribute 'read_ndbc'

Hi guys,
I just came accross the wavespectra module and it seems very interesting but I'm struggling to use it.
I use Windows and I can't install it via pip install nor conda install wavespectra -c conda-forge.
I tried then just downloading the files and having them in the same folder so I could import wavespectra, but when I try to run wavespectra.read_ndbc I get the error from the subject of this issue.
Any ideas?
Thank you.

Hello,
It is late to answer you and maybe you already found out what was the problem, however, it means that the wavespectra package does not provide the read_ndbc attribute.
You can find all readable input files in wavespectra/wavespectra/input. This folder contains all the files that can be opened by the package.
If you already compiled with the MEM method the NDBC directional wave spectrum, I suggest you only change the name of the variable in the xarray of the NDBC to be readable from the wavespectra class (see for example the netCDF ofWW3).

Hi Ottavio,
Thank you for your reply. No, I didn't solve it before... the package is not working properly here on my PC.
I tried installing it with conda install wavespectra -c conda-forge but it didn't work properly.
And if I just download the folder and add to the same folder as my scripts and try to import wavespectra it returns:

I'm new to Python so I'm not sure what is going on.
Thanks anyway for your time.

Hello guin0x,
I am also not a pro in Python, however, you did not install the packages required for the wavespectra tool, I see that the dask and yaml are not installed.
The staff of metOcean provided a guide to install their tool, however, I will resume in the attached file some passages.
I always use Spyder which uses the PYTHONPATH. I am not so familiar with Jupyter, I believe that its uses the JupyterPath, anyway there is a solution that I do not like but it works perfectly.
Did you compile the directional wave spectrum following the NOAA manual? They provide the First Five and you need to compile the direcitonal wave spectrum, Once it is in format of efth(freq,dir,time) then you can save the netCDF and open with xarray and then you can use the wave spectra. There is not the implementation to compile the direcitonal wave spectrum from the NDBC database.
In the attached file you can find a small guide that I made for myself, sadly I cannot give you the Jupyter.
Introduction_waveSpectra.zip

There are currently two versions of wavespectra, one maintained by metocean and one maintained by the original developers which is hosted at https://github.com/wavespectra/wavespectra and is the one installed by pip install or conda install and consistent with the documentation. The split occurred 3 years ago and the libraries no longer look the same.

Hi Rafael,
Thanks for the clarification.
I still can't get it to work.. if I try conda install -c conda-forge wavespectra nothing happens... if I try pip install wavespectra I get the following error:

I also tried to download the folder 'wavespectra' from https://github.com/wavespectra/wavespectra, which I saw has the 'ndbc' file inside input;
but still couldn't make it work... I can import wavespectra now without any errors, but if I try to from wavespectra import read_ndbc or something like this... nothing works..
Any ideas what might be the issue?
Thanks once again.


Dates work locally, but not when served with AWS

Using this code in one of my include files
{{ page.last_modified_at | date: '%B %d, %Y' }}
to show the user the last time the article was updated. The jekyll-last-modified-at plugin works like a charm locally and shows the file mod date in my page html. However, when I push it up to the AWS server, the live site marks every article with January 01, 1970.
Any ideas how to remedy this? Think it's a bug or part of my build setup?
Project Specs:
Jekyll 3.8.5
Bundler 1.16.0
Gem 2.6.11
jekyll-last-modified-at 1.1.0

I'm facing a similar issue on Platform.sh. Works well locally but all dates are the same on the live site, set to the last time any page was updated.

Facing the same issue in Heroku

From what I've been told (sorry, I don't remember where), this is not a bug but a change in how Jekyll works. When you build the site now, Jekyll "touches" all files, essentially modifying them. Haven't been able to find a work-around to this so if anyone has one, let us know!

In case anyone is interested, here there's a tool to manage outdated articles in Jekyll: https://github.com/marketplace/outdated-article

I reached out to the folks on the Cloudflare Developers Discord server, and a Cloudflare community member reached out and provided this information:

We checkout the commit (detached head) so there isn't a history. You could get that commits date but not any previous commits date.

Hey, I'm having the same problem as well :)
Anyone found a workaround for this?

One way is to build locally and deploy _site
for gh pages
jobs:
  # Build job
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v3
    - name: Upload artifact
      uses: actions/upload-pages-artifact@v1
      with:
        path: ./_site

I believe this happens when you do a shallow clone or checkout, like what the actions/checkout action does by default. As this plugin looks at the most recent Git commit, and there is only one, every last_modified_at timestamp is going to be equal to that last commit's time.
A workaround, for GitHub Actions, could be to use depth: 0 to fetch the entire history, but that can be slow.

try to concatenating git fetch --unshallow && onto the build command

I believe this happens when you do a shallow clone or checkout, like what the actions/checkout action does by default. As this plugin looks at the most recent Git commit, and there is only one, every last_modified_at timestamp is going to be equal to that last commit's time.
A workaround, for GitHub Actions, could be to use fetch-depth: 0 to fetch the entire history, but that can be slow.
Edit: actually, not too bad... my page has 388 commits, and the repo clocks in at about 193 MB; checkout isn't any slower with fetch-depth: 0. I guess it depends on your repo history, but if your diffs are mostly adding new things, I believe there isn't a big difference between shallow and deep clones.

Thank you for the work around, Did not even think of using "fetch-depth" to be quite honest, saved me another hour of headache.

@VerzatileDev @bewuethr
I reckon you add that line in the .github/workflows/jekyll.yml file, correct?
Where exactly do you add it?
is it like this?
jobs:
  # Build job
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v3
        with:
          fetch-depth: 0

@VerzatileDev @bewuethr I reckon you add that line in the .github/workflows/jekyll.yml file, correct? Where exactly do you add it? is it like this?
jobs:
  # Build job
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v3
        with:
          fetch-depth: 0

@omarcostahamido  I forgot how I did it all, but seeing my pull requests and issue as the following: https://github.com/VerzatileDevOrg/Programming_HandBook/issues/40 and https://github.com/VerzatileDevOrg/Programming_HandBook/pull/51 might be a good place to start.
fetch-depth: 0 should be what gets the entire history or the repository, so that would be for every commit made in it, from that this is where the " Last Modified " comes in.   You can then follow my comments and resources there
Good luck!

@VerzatileDev @bewuethr I reckon you add that line in the .github/workflows/jekyll.yml file, correct? Where exactly do you add it? is it like this?
jobs:
  # Build job
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v3
        with:
          fetch-depth: 0

You have to do the deep clone in the same job as the jekyll build step. Here's how I do it for a Jekyll website that I maintain:

if anyone is interested, this made it finally work:
https://github.com/ldemailly/laurentsv/blob/master/.github/workflows/jekyll-gh-pages.yml


Updated doc to match the latest event-hubs-spark SDK

Tested and works with HDI 3.6 (spark 2.1)

@romitgirdhar : Thanks for your contribution to the Azure documentation! The author, @mumian, has been notified to review your proposed change.

@romitgirdhar I am on the process rewriting this article. I have another PR to remove this article.  I will replace it with a new article.
#please close this PR.


Raspberry Pi WoA Installer CLR20r3 crash on Windows 7

Whenever I open up Installer.Raspberry.Application.exe it just crashes with CLR20r3 error.
I'm running Windows 7 Home Premium x64.

Please, update to Windows 10 (version 1809). The application isn't designed to run in versions prior to W10. Moreover, I encourage you to use the new version of WoA Installer that has been renamed to WOA Deployer. Find it here => https://github.com/WOA-Project/WOA-Deployer

BTW, the app fails on startup because your system isn't able to run .NET Framework 4.6.1,l that is the one that uses this app :)
Time to update!


[BuildSystem] Ensure unproducable nodes cause the build to halt.

rdar://problem/31629500 Build doesn't abort after "unable to build node" error

@swift-ci please smoke test

@swift-ci please smoke test linux

@swift-ci please smoke test linux

Linux test failure is in Foundation, unrelated to this PR.


ID3D12CommandQueue errors cause blank screen and error spam

Bevy version: 0.14.1
Relevant system information: Windows 11 Laptop with Ryzen 7 7840HS CPU, 780M intergrated graphics and 7700S GPU
If you cannot get Bevy to build or run on your machine, please include:
cargo 1.80.1 (376290515 2024-07-16)
OS Name: Microsoft Windows 11 Pro
Version: 10.0.22631 Build 22631 (23H2)
If your bug is rendering-related, copy the adapter info that appears when you run Bevy.
AdapterInfo { name: "AMD Radeon(TM) RX 7700S", vendor: 4098, device: 29824, device_type: DiscreteGpu, driver: "AMD proprietary driver", driver_info: "<IP_ADDRESS> (LLPC)", backend: Vulkan }
Here is the code:
use bevy::prelude::*;
struct Graph3DPlugin;
#[derive(Resource)]
struct Frames(u32);
impl Plugin for Graph3DPlugin {
    fn build(&self, app: &mut App) {
        app.insert_resource(Frames(0))
            .add_systems(Update, exit_system);
    }
}
fn main() {
    App::new()
        .add_plugins((DefaultPlugins, Graph3DPlugin))
        .run();
}
fn exit_system(
    mut app_exit_events: ResMut<Events<bevy::app::AppExit>>,
    mut frames: ResMut<Frames>,
) {
    frames.0 += 1;
    if frames.0 == 3 {
        app_exit_events.send(AppExit::Success);
    }
}

And here is the error:
https://pastebin.com/bxT4nCTH
P.S. The reason it exits after 3 frames is because otherwise the error spam would fill the console up so much that I couldn't copy the adapter info.
I also tried a bunch of wgpu examples including halmark and they worked just fine: https://github.com/gfx-rs/wgpu/tree/trunk/wgpu-hal
What went wrong
I wanted to learn how to make a 3D graph, so I started out with the 3D Shapes WebGL example and removed all objects except the cube. It worked fine on my PC, but when I moved the project to my laptop everything started to break. I got a blank screen with a bunch of errors spammed in the console and it would close after a few frames. I then removed everything except the boilerplate code for a new bevy project and it stopped closing on its own but continued spamming errors.
Bevy is unusable for me right now, and I would really like to do some coding so any help would be appreciated!

For ease of searching, here are the errors:

ERROR wgpu_hal::auxil::dxgi::exception: ID3D12CommandQueue::ExecuteCommandLists: Using ClearRenderTargetView on Command List (0x00000209A96D5D80:'Unnamed ID3D12GraphicsCommandList Object'): Resource state (0x11DF8960: D3D12_RESOURCE_STATE_[COMMON|PRESENT]) of resource (0x00000209A96950F0:'Unnamed ID3D12Resource Object') (subresource: 0) is invalid for use as a render target.  Expected State Bits (all): 0x11DF8940: D3D12_RESOURCE_STATE_RENDER_TARGET, Actual State: 0x11DF8920: D3D12_RESOURCE_STATE_[COMMON|PRESENT], Missing State: 0x4: D3D12_RESOURCE_STATE_RENDER_TARGET. [ EXECUTION ERROR #538: INVALID_SUBRESOURCE_STATE]
2024-08-27T06:51:28.653611Z

ERROR present_frames: wgpu_hal::auxil::dxgi::exception: ID3D12CommandQueue::Present: Resource state (0x130F2E70: D3D12_RESOURCE_STATE_RENDER_TARGET) of resource (0x00000209A96950F0:'Unnamed ID3D12Resource Object') (subresource: 0) is invalid for use as a INITIAL|PRESENT.  Expected State Bits (all): 0x130F2E50: D3D12_RESOURCE_STATE_[COMMON|PRESENT], Actual State: 0x130F2E30: D3D12_RESOURCE_STATE_RENDER_TARGET, Missing State: 0x0: D3D12_RESOURCE_STATE_[COMMON|PRESENT]. [ EXECUTION ERROR #538: INVALID_SUBRESOURCE_STATE]

https://streamable.com/f8fe93

Are your graphics drivers up to date? This sort of issue is often a driver bug.

Are your graphics drivers up to date? This sort of issue is often a driver bug.

Thanks for the tip! I upgraded to the latest graphics drivers and it no longer crashes, and when running in release mode, I also get no errors. Unfortunately, for some reason, when I run in debug mode I still get error spam:
PS C:\Users\USER\Desktop\Projects\Rust\Bevy\graph_3d> cargo run -r
Finished release profile [optimized] target(s) in 5.86s
Running target\release\graph_3d.exe
2024-08-29T17:09:31.463295Z  INFO bevy_diagnostic::system_information_diagnostics_plugin::internal: SystemInfo { os: "Windows 11 Pro", kernel: "22631", cpu: "AMD Ryzen 7 7840HS w/ Radeon 780M Graphics", core_count: "8", memory: "31.2 GiB" }
2024-08-29T17:09:32.116063Z  INFO bevy_render::renderer: AdapterInfo { name: "AMD Radeon(TM) RX 7700S", vendor: 4098, device: 29824, device_type: DiscreteGpu, driver: "AMD proprietary driver", driver_info: "24.8.1 (LLPC)", backend: Vulkan }
2024-08-29T17:09:32.782041Z  INFO bevy_winit::system: Creating new window "App" (Entity { index: 0, generation: 1 })
2024-08-29T17:09:41.570327Z  INFO bevy_window::system: No windows are open, exiting
2024-08-29T17:09:41.570767Z  INFO bevy_winit::system: Closing window Entity { index: 0, generation: 1 }
2024-08-29T17:09:41.572902Z  INFO bevy_window::system: No windows are open, exiting
PS C:\Users\USER\Desktop\Projects\Rust\Bevy\graph_3d> cargo run
Finished dev profile [unoptimized + debuginfo] target(s) in 0.42s
Running target\debug\graph_3d.exe
2024-08-29T17:09:45.550683Z  INFO bevy_diagnostic::system_information_diagnostics_plugin::internal: SystemInfo { os: "Windows 11 Pro", kernel: "22631", cpu: "AMD Ryzen 7 7840HS w/ Radeon 780M Graphics", core_count: "8", memory: "31.2 GiB" }
2024-08-29T17:09:46.031719Z  INFO bevy_render::renderer: AdapterInfo { name: "AMD Radeon(TM) RX 7700S", vendor: 4098, device: 29824, device_type: DiscreteGpu, driver: "AMD proprietary driver", driver_info: "24.8.1 (LLPC)", backend: Vulkan }
2024-08-29T17:09:46.669606Z  INFO bevy_winit::system: Creating new window "App" (Entity { index: 0, generation: 1 })
2024-08-29T17:09:47.648724Z ERROR wgpu_hal::auxil::dxgi::exception: ID3D12CommandQueue::ExecuteCommandLists: Using ClearRenderTargetView on Command List (0x0000021CCDBEF680:'Unnamed ID3D12GraphicsCommandList Object'): Resource state (0xC78EDB30: D3D12_RESOURCE_STATE_[COMMON|PRESENT]) of resource (0x0000021CCDBB28E0:'Unnamed ID3D12Resource Object') (subresource: 0) is invalid for use as a render target.  Expected State Bits (all): 0xC78EDB10: D3D12_RESOURCE_STATE_RENDER_TARGET, Actual State: 0xC78EDAF0: D3D12_RESOURCE_STATE_[COMMON|PRESENT], Missing State: 0x4: D3D12_RESOURCE_STATE_RENDER_TARGET. [ EXECUTION ERROR #538: INVALID_SUBRESOURCE_STATE]
2024-08-29T17:09:47.779397Z ERROR wgpu_hal::auxil::dxgi::exception: ID3D12CommandQueue::Present: Resource state (0xCBC3EC60: D3D12_RESOURCE_STATE_RENDER_TARGET) of resource (0x0000021CCDBB28E0:'Unnamed ID3D12Resource Object') (subresource: 0) is invalid for use as a INITIAL|PRESENT.  Expected State Bits (all): 0xCBC3EC40: D3D12_RESOURCE_STATE_[COMMON|PRESENT], Actual State: 0xCBC3EC20: D3D12_RESOURCE_STATE_RENDER_TARGET, Missing State: 0x0: D3D12_RESOURCE_STATE_[COMMON|PRESENT]. [ EXECUTION ERROR #538: INVALID_SUBRESOURCE_STATE]
2024-08-29T17:09:47.780199Z ERROR wgpu_hal::auxil::dxgi::exception: ID3D12CommandQueue::ExecuteCommandLists: Using CopyResource on Command List (0x0000021CCE4830E0:'Internal DXGI CommandList'): Resource state(0x 4: D3D12_RESOURCE_STATE_RENDER_TARGET) of resource(0x0000021CCDBB28E0:'Unnamed ID3D12Resource Object') (subresource : 0) must be in COMMON state when transitioning to use in a different Command List type, because resource state on previous Command List type : D3D12_COMMAND_LIST_TYPE_DIRECT, is actually incompatible and different from that on the next Command List type : D3D12_COMMAND_LIST_TYPE_COPY. [ RESOURCE_MANIPULATION ERROR #990: RESOURCE_BARRIER_MISMATCHING_COMMAND_LIST_TYPE]
2024-08-29T17:09:47.783682Z ERROR wgpu_hal::auxil::dxgi::exception: ID3D12CommandQueue::ExecuteCommandLists: Using ClearRenderTargetView on Command List (0x0000021CCDC73EB0:'Unnamed ID3D12GraphicsCommandList Object'): Resource state (0xC97F8A10: D3D12_RESOURCE_STATE_[COMMON|PRESENT]) of resource (0x0000021CCDBB4850:'Unnamed ID3D12Resource Object') (subresource: 0) is invalid for use as a render target.  Expected State Bits (all): 0xC97F89F0: D3D12_RESOURCE_STATE_RENDER_TARGET, Actual State: 0xC97F89D0: D3D12_RESOURCE_STATE_[COMMON|PRESENT], Missing State: 0x4: D3D12_RESOURCE_STATE_RENDER_TARGET. [ EXECUTION ERROR #538: INVALID_SUBRESOURCE_STATE]
2024-08-29T17:09:47.795727Z ERROR wgpu_hal::auxil::dxgi::exception: ID3D12CommandQueue::Present: Resource state (0xCBC3EC60: D3D12_RESOURCE_STATE_RENDER_TARGET) of resource (0x0000021CCDBB4850:'Unnamed ID3D12Resource Object') (subresource: 0) is invalid for use as a INITIAL|PRESENT.  Expected State Bits (all): 0xCBC3EC40: D3D12_RESOURCE_STATE_[COMMON|PRESENT], Actual State: 0xCBC3EC20: D3D12_RESOURCE_STATE_RENDER_TARGET, Missing State: 0x0: D3D12_RESOURCE_STATE_[COMMON|PRESENT]. [ EXECUTION ERROR #538: INVALID_SUBRESOURCE_STATE]
2024-08-29T17:09:47.796228Z ERROR wgpu_hal::auxil::dxgi::exception: ID3D12CommandQueue::ExecuteCommandLists: Using CopyResource on Command List (0x0000021CCE4830E0:'Internal DXGI CommandList'): Resource state(0x 4: D3D12_RESOURCE_STATE_RENDER_TARGET) of resource(0x0000021CCDBB4850:'Unnamed ID3D12Resource Object') (subresource : 0) must be in COMMON state when transitioning to use in a different Command List type, because resource state on previous Command List type : D3D12_COMMAND_LIST_TYPE_DIRECT, is actually incompatible and different from that on the next Command List type : D3D12_COMMAND_LIST_TYPE_COPY. [ RESOURCE_MANIPULATION ERROR #990: RESOURCE_BARRIER_MISMATCHING_COMMAND_LIST_TYPE]
2024-08-29T17:09:47.831228Z  INFO bevy_window::system: No windows are open, exiting
2024-08-29T17:09:47.832604Z  INFO bevy_winit::system: Closing window Entity { index: 0, generation: 1 }
2024-08-29T17:09:47.836463Z  INFO bevy_window::system: No windows are open, exiting
PS C:\Users\USER\Desktop\Projects\Rust\Bevy\graph_3d>

Okay, that's good to hear! I'm not personally able to debug much further, but I appreciate your investigations so far.

It's been almost a month and this issue still persists. I tried running the async_compute example in both release mode and debug mode and I get the errors only in debug mode.
https://github.com/user-attachments/assets/16e5cd86-3b7e-4eb7-8bb6-4a5a9a325fe9
2024-09-22T12:22:24.635838Z ERROR wgpu_hal::auxil::dxgi::exception: ID3D12CommandQueue::ExecuteCommandLists: Using ClearRenderTargetView on Command List (0x00000247903D4E60:'Unnamed ID3D12GraphicsCommandList Object'): Resource state (0xA96F9320: D3D12_RESOURCE_STATE_[COMMON|PRESENT]) of resource (0x00000247903C8E40:'Unnamed ID3D12Resource Object') (subresource: 0) is invalid for use as a render target.  Expected State Bits (all): 0xA96F9300: D3D12_RESOURCE_STATE_RENDER_TARGET, Actual State: 0xA96F92E0: D3D12_RESOURCE_STATE_[COMMON|PRESENT], Missing State: 0x4: D3D12_RESOURCE_STATE_RENDER_TARGET. [ EXECUTION ERROR #538: INVALID_SUBRESOURCE_STATE]

2024-09-22T12:22:24.644697Z ERROR wgpu_hal::auxil::dxgi::exception: ID3D12CommandQueue::ExecuteCommandLists: Using IDXGISwapChain::Present on Command List (0x0000024790350B20:'Internal DXGI CommandList'): Resource state (0xAE33E9B0: D3D12_RESOURCE_STATE_RENDER_TARGET) of resource (0x00000247903C8E40:'Unnamed ID3D12Resource Object') (subresource: 0) is invalid for use as a PRESENT_SOURCE.  Expected State Bits (all): 0xAE33E990: D3D12_RESOURCE_STATE_[COMMON|PRESENT], Actual State: 0xAE33E970: D3D12_RESOURCE_STATE_RENDER_TARGET, Missing State: 0x0: D3D12_RESOURCE_STATE_[COMMON|PRESENT]. [ EXECUTION ERROR #538: INVALID_SUBRESOURCE_STATE]

Having the same issue with the latest amd driver:
2024-10-29T19:17:43.397067Z  INFO bevy_diagnostic::system_information_diagnostics_plugin::internal: SystemInfo { os: "Windows 11 Education", kernel: "22631", cpu: "AMD Ryzen 9 5900X 12-Core Processor", core_count: "12", memory: "63.9 GiB" }
2024-10-29T19:17:43.579929Z  INFO bevy_render::renderer: AdapterInfo { name: "AMD Radeon RX 7900 GRE", vendor: 4098, device: 29772, device_type: DiscreteGpu, driver: "AMD proprietary driver", driver_info: "24.10.1 (LLPC)", backend: Vulkan }

getting the following messages:
2024-10-29T19:18:17.057828Z ERROR wgpu_hal::auxil::dxgi::exception: ID3D12CommandQueue::ExecuteCommandLists: Using ClearRenderTargetView on Command List (0x0000027A5B660360:'Unnamed ID3D12GraphicsCommandList Object'): Resource state (0x630FE960: D3D12_RESOURCE_STATE_[COMMON|PRESENT]) of resource (0x0000027A
5B5DC930:'Unnamed ID3D12Resource Object') (subresource: 0) is invalid for use as a render target.  Expected State Bits (all): 0x630FE940: D3D12_RESOURCE_STATE_RENDER_TARGET, Actual State: 0x630FE920: D3D12_RESOURCE_STATE_[COMMON|PRESENT], Missing State: 0x4: D3D12_RESOURCE_STATE_RENDER_TARGET. [ EXECUTION ERROR #538: INVALID_SUBRESOURCE_STATE]
2024-10-29T19:18:17.059024Z ERROR wgpu_hal::auxil::dxgi::exception: ID3D12CommandQueue::ExecuteCommandLists: Using IDXGISwapChain::Present on Command List (0x0000027A5B55A470:'Internal DXGI CommandList'): Resource state (0x630FE960: D3D12_RESOURCE_STATE_RENDER_TARGET) of resource (0x0000027A5B5DC930:'Unname
d ID3D12Resource Object') (subresource: 0) is invalid for use as a PRESENT_SOURCE.  Expected State Bits (all): 0x630FE940: D3D12_RESOURCE_STATE_[COMMON|PRESENT], Actual State: 0x630FE920: D3D12_RESOURCE_STATE_RENDER_TARGET, Missing State: 0x0: D3D12_RESOURCE_STATE_[COMMON|PRESENT]. [ EXECUTION ERROR #538: INVALID_SUBRESOURCE_STATE]

Sample is working fine tho, its just unusable with that console spam

Can you try to reproduce this on wgpu alone and file an issue there? This is largely an upstream bug, although it's not clear if its wgpu's responsibility or a faulty graphics driver.

found this one in gpu: https://github.com/gfx-rs/wgpu/issues/4247

found this one in wgpu: gfx-rs/wgpu#4247

WGPU_BACKEND=vulkan  works,  the wgpu error disappeared


Investigate how a project can be created if view initialisation failed

Motivation
On two occasions, a project could successfully be created but the default ES and BG views were not present. Since especially the ES view is key for listing operations, this should not be possible.

Handled in #4579


Add Wasureta click pattern by Demonbeater17

Song Name
Wasureta click pattern
Artist Name
Demonbeater17
Source
Youtube
Youtube Link
Pn_kp81k7U8
Direct File Link
No response
Song ID
509162
Start Offset [ms]
8.6
Extra
Created from Auto Nong.
Created for level: 64658786
Downloaded: Yes

accept


Support Keras 2.0

Why this is not merged to the master branch?

I have no time to review now. Moreover, there are some redundant commits in this PR. Keras 2.0 support is not a hard thing to do, there is only a couple of changes without backward compatibility.

Actually, the only thing to do is to add the def compute_output_shape(self, input_shape): in ssd_layers.

Hi, I am very new to this SSD and I am trying to test it. Would it be possible to make avaliable/ send a link to the training dataset you used in SSD_training.ipynb ?

Hi,
I'm having trouble building the model for training.
I'm getting an error on the normalization layer:

ValueError: Dimensions must be equal, but are 512 and 38 for 'conv4_3_norm/mul' (op: 'Mul') with input shapes: [?,38,38,512], [38].

Am I missing something?


removed unnecessary questions and table data

relevant to:
https://www.pivotaltracker.com/story/show/185168117
https://www.pivotaltracker.com/story/show/185168257

@Ito-Eta  Travis is failing.  Can you see why?

@amcates it's passing fine now.

@amcates it's passing fine now.

Okay, is there anything else I need to do before it can be merged?


Draft: Use cloud name from configuration

If we specify multiple clouds for example into clouds.yaml file, we need to have a way how to pick which cloud to use for specific backup. For this we can set cloud name into BackupStorageLocation or VolumeSnapshotLocation and plugin will pick which cloud to use for authentication and further operations.
Signed-off-by: Ondrej Vasko<EMAIL_ADDRESS>

This PR is currently blocked by issue https://github.com/vmware-tanzu/velero/issues/5582.


EXC_BAD_ACCESS crash when using NSOutlineView

I'm creating an NSOutlineView populated by objects saved on Realm. The object is called Person. And this is how it looks:
@interface Person : RLMObject

@property NSString *name;
@property NSInteger indent;
@property NSInteger order;

// Ignored properties
@property NSArray *contacts;

The contacts array returns a query. Those contacts are child of the person, but they also have the same object class, Person.
And this is the view controller:
#import "MainWindowController.h"
#import "Person.h"

@interface MainWindowController () <NSOutlineViewDataSource, NSOutlineViewDelegate>

@property (strong) IBOutlet NSOutlineView *outlineView;

@property (nonatomic, strong) RLMResults *array;
@property (nonatomic, strong) RLMNotificationToken *notification;

@end

@implementation MainWindowController

- (id)init
{
    self = [super initWithWindowNibName:@"MainWindow"];

    if (self) {
        __weak typeof(self) weakSelf = self;

        self.notification = [RLMRealm.defaultRealm addNotificationBlock:^(NSString *note, RLMRealm *realm) {
            [weakSelf.outlineView reloadData];
        }];

        self.array = [[Person objectsWhere:@"indent == 1"] sortedResultsUsingProperty:@"order" ascending:YES];
    }

    return self;
}

- (void)windowDidLoad
{
    [super windowDidLoad];

    [self.outlineView setRowHeight:50];
}

#pragma mark - NSOutlineView

- (id)outlineView:(NSOutlineView *)outlineView child:(NSInteger)index ofItem:(id)item
{
    if (item == nil) {
        return self.array[index];
    }
    else if ([item isKindOfClass:[Person class]]) {
        return [item contacts][index];
    }

    return nil;
}

- (BOOL)outlineView:(NSOutlineView *)outlineView isItemExpandable:(id)item
{
    if (item == nil) {
        return NO;
    }
    else if ([item isKindOfClass:[Person class]]) {
        return [item contacts].count > 0;
    }

    return NO;
}

- (NSInteger)outlineView:(NSOutlineView *)outlineView numberOfChildrenOfItem:(id)item
{
    if (item == nil) {
        return self.array.count;
    }
    else if ([item isKindOfClass:[Person class]]) {
        return [item contacts].count;
    }

    return 0;
}

- (NSView *)outlineView:(NSOutlineView *)outlineView viewForTableColumn:(NSTableColumn *)tableColumn item:(id)item
{
    NSView *cellView = [[NSView alloc] initWithFrame:NSMakeRect(0, 0, 250, 0)];

    NSTextField *titleTextField = [[NSTextField alloc] initWithFrame:NSMakeRect(0, 15, 250, 18)];
    [titleTextField setEditable:NO];
    [titleTextField setBordered:NO];
    titleTextField.backgroundColor = [NSColor clearColor];
    titleTextField.textColor = [NSColor blackColor];
    titleTextField.focusRingType = NSFocusRingTypeNone;
    titleTextField.stringValue = [item name];
    [cellView addSubview:titleTextField];

    return cellView;
}

The "root" cells are displayed correctly, but then, when I click the arrow to expand one of those root cells, the app crashes with an EXC_BAD_ACCESS error. I used NSZombie to know more about this crash, and that's what it tells me:
-[RLMAccessor_v0_Person retain]: message sent to deallocated instance 0x60800016ba00
I debugged all the data source methods of the NSOutlineView when tapping the arrow to expand the row, but no method is called.
Any idea of what's happening?

Hi @enricenrich, it's hard to tell if this is actually a Realm issue or not from the code snippet you shared. I'm not super familiar with AppKit, but I'd recommend double-checking that you're not storing RLMObjects in an unsafe_unretained variable?

@enricenrich just checking in to see if you ever made any progress of figuring out what was going on here?

Closing as this is likely not a Realm issue.

For future reference of anyone having this problem, like I did.
Instead of using the RLMResults array directly in "- (id)outlineView:(NSOutlineView *)outlineView child:(NSInteger)index ofItem:(id)item".
Copy the objects into a NSArray to make sure that they are not released and then use the NSArray.

i ran into the same issue and ended up solving it in a similar way as @lm2s—however this doesn't seem like a very performant solution.
are there any examples of using realm properly with NSOutlineView?

@gf3 I we have yet to receive confirmation that this is a realm issue, and if so, how we can reproduce this to identify the cause. If you care to provide enough information for us to do this, we'll be happy to take a closer look.

i've created a demo project with instructions on how to reproduce the issue as well as the solution both @lm2s and i have implemented. maybe you guys can recommend a better approach?

Thanks for the sample project, we'll take a look!

There are two factors at play here:

-[RLMResults objectAtIndex:] returns a new instance of your RLMObject subclass each time it is called. It does not retain the existing instances.
NSOutlineView does not retain the objects returned by the -outlineView:child:ofItem: data source method.

The result is that by the time NSOutlineView calls other data source or delegate methods (in @gf3's test case this is often -outlineView:isGroupItem:), the object returned by -outlineView:child:ofItem: has been deallocated.

Due to the two factors mentioned in my previous comment, you do need to explicitly store the objects returned by RLMResults somewhere to ensure they live long enough for NSOutlineView. Eagerly storing the objects into an array as you describe is certainly the simplest way to achieve this. There are alternatives with different tradeoffs (e.g., you could reduce the up front cost at the expense of more complex code by only storing the objects as they're first retrieved by NSOutlineView).

@bdash (if you have time) could you provide an example of better solution to this problem. i'm hoping to use Realm to build a chat application where users could receive thousands of messages per room and it seems like the current array-wrap solution would be very expensive

I am having EXC_BAD_ACCESS when expandItem is called (similar to expand group in UI)
When I try to use debugger to print the item in viewForTableColumn delegate method, it shows as [Deleted Object], but it is the Realm Object if I log it using dump(item)
My solution to this, is copying the array, and call expandItem as late as possible (in my case viewDidAppear)
Hope this provides an idea about the issue.

To hold a strong reference to Realm objects when getting them from a Results (which does not hold strong references to all its returned objects, unlike NSArray), you can place them in any collection that strongly hold their contents such as NSArray.
So you could have a wrapper to -[RLMResults objectAtIndex:] which places the objects in an array before returning them:
@@ -7,6 +7,7 @@

 @property (nonatomic, strong) RLMResults *array;
 @property (nonatomic, strong) RLMNotificationToken *notification;
+@property (nonatomic, strong) NSMutableArray *stronglyHeldRealmObjects;

 @end

@@ -24,6 +25,7 @@
         }];

         self.array = [[Person objectsWhere:@"indent == 1"] sortedResultsUsingProperty:@"order" ascending:YES];
+        self.stronglyHeldRealmObjects = [NSMutableArray array];
     }

     return self;
@@ -40,14 +42,19 @@

 - (id)outlineView:(NSOutlineView *)outlineView child:(NSInteger)index ofItem:(id)item
 {
+    id returnItem = nil;
     if (item == nil) {
-        return self.array[index];
+        returnItem = self.array[index];
     }
     else if ([item isKindOfClass:[Person class]]) {
-        return [item contacts][index];
+        returnItem = [item contacts][index];
     }

-    return nil;
+    if (returnItem != nil) {
+        [self.stronglyHeldRealmObjects addObject:returnItem];
+    }
+
+    return returnItem;
 }

Ideally, you'd also be removing objects from the array when they're no longer used, but that would be a bit trickier to do. One way to do this would be to use associated objects with a RETAIN association, to make the outline view strongly reference the Realm object:
@@ -1,5 +1,8 @@
 #import "MainWindowController.h"
 #import "Person.h"
+#import <objc/runtime.h>
+
+static char kRealmAssociatedObjectKey;

 @interface MainWindowController () <NSOutlineViewDataSource, NSOutlineViewDelegate>

@@ -40,14 +43,19 @@

 - (id)outlineView:(NSOutlineView *)outlineView child:(NSInteger)index ofItem:(id)item
 {
+    id returnItem = nil;
     if (item == nil) {
-        return self.array[index];
+        returnItem = self.array[index];
     }
     else if ([item isKindOfClass:[Person class]]) {
-        return [item contacts][index];
+        returnItem = [item contacts][index];
+    }
+
+    if (returnItem != nil) {
+        objc_setAssociatedObject(outlineView, kRealmAssociatedObjectKey, returnItem, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
     }

-    return nil;
+    return returnItem;
 }

I haven't fully tested this code, so if you run into issues with it written exactly as-is, please let me know and I'll spend more time to fully work out the kinks.

I just thought I would chime in on this as I've ran into a similar issue in RealmSwift regarding this I think.
I've been searching for a solution for two days now :(
I'll keep looking a bit more. The error in swift is fairly useless, but it does seem to be related to NSOutlineView.
When I changed one to NSTableView, the issue resolved. But when i refactored the outline view I actually needed I ran into the same issue.
I've tried copying the Results I'm using to drive my outline into an Array but that doesn't seem to work.

@jhoughjr have you tried applying the strategies suggested in this thread? You mention you've tried copying the Realm objects into an Array and that not working. Can you please elaborate? How about the associated object approach?

I'm going to take a closer look at the project that was shared here now that I'm fresh. I don't know if setAssociatedObject is available in swift or not.

I don't know if setAssociatedObject is available in swift or not.

It sure is! See http://nshipster.com/swift-objc-runtime/#associated-objects

Thanks for the info, I'm getting ready to take a stab at it again with a fresh mind.
Been busy with other things the last couple of days. I hope it works as I really need NSOutlineView for this project.

I've gotten things working by maintaining an Array I update with the Results I need to display.
It's somewhat optimized in that I dump it before I reload.
I use a second Array to hold the objects for an expanded cell's children since it is a different type.
I am a bit curious as to why this isn't an issue for NSTableView, since NSOutlineView is a subclass of it.

@jhoughjr it's because the NSTableViewDelegate protocol doesn't pass around objects, you get a row index as an Int and optionally an NSTableColumn

I think we've sufficiently addressed the questions raised here, and provided a handful of potential solutions, so I'm closing this issue. If anyone has any further questions or issues related to this, please file a new GitHub issue referencing this one.

@harryworld I know this post is old, but I ran into the issue of getting EXC_BAD_ACCESS when using expandItem. It happened because inside isItemExpandable I was allowing it to return true for the lowest-level items that didn't have any children. It turned out to not be related to Realm.

I have just run into the same issue when trying to delete items from the outline view.  It seems this is not possible because outlineView seems to try and access properties of the objects during the delete.
      ```

realm.beginWrite()
realm.delete(item)
        do {
            try realm.commitWrite()

            self.items?.remove(at: selectedRow). // Note this is an Array of items

            self.outlineView?.beginUpdates()
            self.outlineView?.removeItems(at: IndexSet(integer: selectedRow), inParent: nil, withAnimation: NSTableView.AnimationOptions.slideUp)
            self.outlineView?.endUpdates()

        } catch {...

Has anyone been able to use outlineView with Realm objects at all?


Edit Record Would containt Patient name

🎇 Description
when we edit the record input would add patient label  i have fixed it
🖼 Screenshots

Please assigned it to me i have fixed it

Sure, please proceed.✨

@KiranAminPanjwani  it was already mentioned by me in #97 and has been fixed in #110.

@bhupendraKhatri12 I believe you can still work on the 'patient' input field. The record shouldn't require users to input their patient's name. Logically, when a user logs into MedStats, they intend to track their health record. The person logging in with their own name indicates that the record pertains to them exclusively. Therefore, I find the 'Patient' input field unnecessary. After logging in, the user's name should be displayed in the top right corner of the page, inside the navbar.


Add dagster to documentation

Dagster introduces a lot of new concepts and code to PUDL. Make sure we continue the tradition of super rad documentation.

[ ] Release notes
[ ] Overview of dagster concepts: Resources, ops, jobs, config. I think readers should have a basic understand of the concepts and how they relate to PUDL, we don't need to rewrite the dagster docs.
[ ] Running the ETL pipeline page will need to be completely rewritten.
- [ ] New yaml file structure (ConfigSchemas should be explained)
- [ ] CLI vs Dagit
[ ] Update the development set up page.
- [ ] Set DAGSTER_HOME variable
[ ] Update Working with the Datastore page if the pudl_datastore command is deprecated
[ ] Update Cloning the Ferc Form 1 DB page to reflect any CLI changes.
[ ] Maybe update the ETL Design page with information on how to add new data sources using jobs and ops?
[ ] Create a Jupyter Notebook example of how to access assets.

We can split this into multiple PRs - just update the checklist with which categories are spoken for.

@bendnorman will flesh out some of the bullet points above as well.

Here are the documentation changes I'm planning on making:
Running the ETL

Start with an introduction to dagster. What it is as the problems it solves. Not planning on going into detail on the concepts.
describe the two main jobs

mostly use the existing language

How to run the ETL

set DAGSTER_HOME env var
use dagit

how to configure the datasets
how to configure the resources
How to run portions of the ETL using dagit

can also use the cli commands

borrow existing language

Cloning FERC Form1 DB

how to clone using dagit
how to clone using the cli

Release Notes

Everything that has changed!

We could also add dagster concept explanations and uses to the Data and ETL Design Guidelines section though we could punt this part of the docs once dagster-asset-etl is merged in. @catalyst-cooperative/inframundo what do you think?

I think what you've laid out here seems like a good minimal set of docs updates before merging to dev. I think detailed explanations of dagster concepts can wait, as long as there's sufficient info to get people up and running with the new architecture. I also think doing a live run through with our team once we merge to dev will be helpful while we continue to flesh out the docs.


Fix: include sc_machine/CMakeLists.txt for test building

Added the line include(${SC_MACHINE_PATH}/CMakeLists.txt) to CMakeLists.txt because the tests were not built using the previous CMakeLists.txt configuration

CI/Prepare on macos-latest fails because this issue https://github.com/ostis-ai/sc-machine/issues/323


Performance updates

Closes #13, closes #30, closes #42, closes #49, closes #74, closes #75, closes #87, closes #94
This PR more than likely fixes all of the above issues. It only partially fixes #1 as it more reliably updates caught Pokemon abilities. This also fixes #3 for the most part, as it allows for automatically tracking many important ability triggers (some restrictions apply)
This is a massive rework of the data structures and logic that the Tracker uses to manage memory reads, tracked information, and much more. It significantly improves performance while attached to Bizhawk. If you have any questions, feel free to ask. I would also encourage any additional testing that you may wish to do.
This update also includes preliminary Ruby/Sapphire support. The Heals in bag feature is the only one that I know of that doesn't work for these games.
This update now also includes better enemy ability tracking. It will attempt to automatically track some abilities based on the battle message text displayed on screen. Any ability can still be manually tracked by clicking on it's ability area similar to taking notes on a Pokemon.
This update also removes the auto PC heal tracking feature as there is no longer an event trigger. You can still manually track PC heal.

Some more details on the features that this version update includes can be found here: https://github.com/UTDZac/Ironmon-Tracker/releases/tag/v0.4.2e

I'll check this out and do some testing when I get home from work this evening! I highly encourage getting others involved in testing as well, given the large scope. @Fellshadow, @Brian0255, want to help testing these changes?

Thanks @bdjeffyp . No rush on getting this out today. I'm still fine tuning some numbers to make things look clean, nothing major.

I've already been doing some testing of preliminary builds for this and it was looking great so far (and the issues I found I brought up with zac)
not had a chance to test the 0.4.2e build yet (last one i tested was 0.4.2c) but am down to do more testing when i'm able

Adding in a new feature that I think many people will really appreciate. Let's you more easily track Pokemon abilities manually, instead of having to use the Notes feature. I hope this doesn't break anything, as I only did light testing.
I put a '?' if you only know about one ability, just in case it has a second one. Idk if this question mark is helpful or not, or just has the potential to add confusion.

Fixes #94 with 838e5fb. Thanks Fellshadow!

Just a quick note here, I'm finally getting around to testing Emerald some more. Many of the delay adjustments I did the abilities (unrelated to auto tracking) seem to not function well in Emerald; different delay numbers. So working on finding a better solution for this.

This should be fixed now for RSE. There was an annoying bug where GameSettings.sBattlerAbilities address value doesn't get updated for a while, using gBattleMons instead as it is more accurate. This fixes the issue for the most part, just needs a small delay now (60 frames) instead of a large one (360 frames).
Also added in ability auto-tracking support for Emerald. The other gen3 games (Ruby/Sapphire) look quite doable, just requires a good bit of manual investigation.

I'm currently in the middle of adding in this new feature. Would still love to get the other bits of this PR reviewed.
New Feature: Move Info Look-up!
Clicking on a move name on your Pokemon or the enemy Pokemon will open up a new screen that displays information about that move. This uses most of the information that was already on hand as part of the MoveData object, but with some additional info added as well.
New move information added:

Contact: Is the move a contact move or not.
Priority: Does the move have a priority other than 0, ranging from -6 to +5.
Summary: A short and concise description of relevant info about the move.

Currently only gen1 moves have summaries, as they take some time to add in manually. I want to do them manually to ensure only the most useful and accurate data is presented.

The stab text only appears if the Pokemon who has this move matches that move type, otherwise it won't get drawn. Similarly, the line of text showing the Priority value won't get drawn for most moves with a default priority of 0.

This also adds support for eventually clicking on other things for information, such as the Pokemon icon itself to learn about when it learns all of its moves. Maybe evolutions too.

The move info look-up feature is completed.
I realize after continually working on this while waiting for the PR review, I probably should have done this new feature as a separate PR. I'll remember that for next time, still getting used to this  whole github thing.

Unless anything big looks out of order, this release is ready to go and the ReadMe has been updated with the new features and images.
For creating the release, I've listed the big feature updates and additions here, as well as a short version of the install instructions: https://github.com/UTDZac/Ironmon-Tracker/releases/tag/v0.5.0a


fix: create and enforce viewAny policies (resolves #789)

This PR adds restrictions so that users who have not verified their email, or who are (regulated) organization users with no association to a (regulated) organization, cannot view:

individuals
organizations
regulated organizations
projects
engagements

Testing
As an:

individual user with an unverified email
organization user with an unverified email
organization user who has not created/joined a organization
regulated organization user with an unverified email
regulated organization user who has not created/joined a regulated organization

Confirm that 'Projects' and 'People and Organizations' do not appear in the primary navigation;
Confirm that you cannot navigate to:

/en/projects
/en/projects/all
/en/people-and-organizations
'/en/individuals`
/en/organizations
/en/regulated-organizations

I found some issues and they are:

Individual without email verification can still see 'Projects' and 'People and Organizations' navigation tab
Individual without email verification can get to /en/people-and-organizations
organization user without email verification can get to /en/people-and-organizations via URL
organization user with email verification, but without organization can get to /en/people-and-organizations via URL
organization user with email verification, but without organization can get to /en/individuals by clicking 'browse individuals' on /en/people-and-organizations or via URL
regulated organization user without email verification can get to /en/people-and-organizations via URL
regulated organization user with email verification, but without organization can get to /en/people-and-organizations via URL
regulated organization user with email verification, but without organization can get to /en/individuals by clicking 'browse individuals' on /en/people-and-organizations or via URL


fix(fmt): params_first_multi split if more than one param

Motivation
Closes #8761 - introduced breaking change for params_first
As suggested in https://github.com/foundry-rs/foundry/issues/8761#issuecomment-2314199656
params_first Writes function parameters multiline first regardless number of params
params_first_multiline new option added which only splits parameters onto their own line when there is more than one param

Solution

@grandizzy this is great overall, thank you! It seems there might be one remaining issue though: we use multiline_func_header='all', and when running this new version, the diff is now significantly smaller, but there are still a few diffs that look odd and seem unexpected, as shown in the screenshots, all around if/else statements

@grandizzy this is great overall, thank you! It seems there might be one remaining issue though

yeah, was able to reproduce, will make a fix for


License grant to various README.md and ROCm_SMI_Manual.pdf

Greetings,
While working on rocm_smi_lib packaging into debian, we noted that some of the files were under copyright of AMD but without any explicit reference to the NCSA Open Source License described in License.txt, but instead with a disclaimer that "feels" like it would be a problem if we were to redistribute the source code in the context of the debian project:

[...] No license, including implied or arising by estoppel, to any intellectual property rights is granted by this document. Terms and limitations applicable to the purchase or use of AMD’s products are as set forth in a signed agreement between the parties or in AMD's Standard Terms and Conditions of Sale.
© 2020 Advanced Micro Devices, Inc. All Rights Reserved.

These files are:

README.md
python_smi_tools/README.md
rocm_smi/docs/ROCm_SMI_Manual.pdf

If these files are actually redistributable per NCSA license, would it be possible to indicate it explicitly alongside the disclaimer?  Otherwise I believe I must assume I cannot redistribute them.
In any case, many thanks for making available ROCm source code!
Have a nice day,  :)
Étienne.
PS: I am not a native English speaker, so don't hesitate to let me know if I misinterpreted the disclaimer for a legally binding statement or misunderstood it entirely.

Thanks for raising this issue, Etienne. We are discussing it internally and intend to adjust the language accordingly (hopefully in our next ROCm release). It definitely raises questions, so we're happy to get this cleaned up to avoid any confusion in the future.

Hi Kent,
I see the redistribution issue looks addressed in ROCm 5.1.
Thank you very much,  :)
Étienne.

Hi Kent,
rocm_smi_lib has been accepted after review (including copyright items) in debian unstable.  I close the issue.
Thanks again!
Étienne.


Information gets lost when saving and loading a model

System information

Have I written custom code (as opposed to using a stock example script
provided in TensorFlow): yes
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Ubuntu 20.04
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue
happens on a mobile device:
TensorFlow installed from (source or binary): pip
TensorFlow version (use command below): v2.7.0-rc1-69-gc256c071bb2 2.7.0
Python version: Python 3.8.10
Bazel version (if compiling from source):
GCC/Compiler version (if compiling from source):
CUDA/cuDNN version:
GPU model and memory:
Exact command to reproduce:

Describe the problem
I create a keras model, train it, then save it. Documentation says that I can load the model and resume training right where I left off. That is not the case for me. My training loss always increases sharply on resuming training. Therefore I suspect that somewhere information about some state is lost.
Source code / logs
I am training a model for few epochs, then save it. Now I expect training the same model another epochs gives the exact same results as loading the saved model and training another epoch there. I added some RNG seeding and other stuff to make training deterministic.
Here is a modified version of the keras MNIST example code that reproduces the behavior:
#try making training deterministic

import os
os.environ["CUDA_VISIBLE_DEVICES"] = ""
seed_value= 123
os.environ['PYTHONHASHSEED']=str(seed_value)
import random
import numpy as np
import tensorflow as tf
tf.config.threading.set_intra_op_parallelism_threads(1)
tf.config.threading.set_inter_op_parallelism_threads(1)

def seed():
    random.seed(seed_value)
    np.random.seed(seed_value)
    tf.random.set_seed(seed_value)
seed()

# taken from MNIST example code (https://github.com/keras-team/keras-io/blob/master/examples/vision/mnist_convnet.py)

from tensorflow import keras
from tensorflow.keras import layers

"""
## Prepare the data
"""

# Model / data parameters
num_classes = 10
input_shape = (28, 28, 1)

# Load the data and split it between train and test sets
(x_train, y_train), (x_test, y_test) = keras.datasets.mnist.load_data()

# Scale images to the [0, 1] range
x_train = x_train.astype("float32") / 255
x_test = x_test.astype("float32") / 255
# Make sure images have shape (28, 28, 1)
x_train = np.expand_dims(x_train, -1)
x_test = np.expand_dims(x_test, -1)
print("x_train shape:", x_train.shape)
print(x_train.shape[0], "train samples")
print(x_test.shape[0], "test samples")

# convert class vectors to binary class matrices
y_train = keras.utils.to_categorical(y_train, num_classes)
y_test = keras.utils.to_categorical(y_test, num_classes)

"""
## Build the model
"""

model = keras.Sequential(
    [
        keras.Input(shape=input_shape),
        layers.Conv2D(32, kernel_size=(3, 3), activation="relu"),
        layers.MaxPooling2D(pool_size=(2, 2)),
        layers.Conv2D(64, kernel_size=(3, 3), activation="relu"),
        layers.MaxPooling2D(pool_size=(2, 2)),
        layers.Flatten(),
        layers.Dropout(0.5),
        layers.Dense(num_classes, activation="softmax"),
    ]
)

model.summary()

"""
## Train the model
"""

batch_size = 128

model.compile(loss="categorical_crossentropy", optimizer="adam", metrics=["accuracy"])

model.fit(x_train, y_train, batch_size=batch_size, epochs=5)
model.save('model')
print('these two runs should be identical')
seed()
model.fit(x_train, y_train, batch_size=batch_size, epochs=1)
reloaded_model = keras.models.load_model('model')
seed()
reloaded_model.fit(x_train, y_train, batch_size=batch_size, epochs=1)

Which outputs on my machine:
...
these two runs should be identical
469/469 [==============================] - 33s 71ms/step - loss: 0.0509 - accuracy: 0.9842
469/469 [==============================] - 33s 69ms/step - loss: 0.0522 - accuracy: 0.9837

I am getting the exact same result (loss of 0.0522) if I save the model without optimizer and recompile after loading
model.save('model', include_optimizer=False)
print('these two runs should be identical')
seed()
model.fit(x_train, y_train, batch_size=batch_size, epochs=1)
reloaded_model = keras.models.load_model('model')
reloaded_model.compile(loss="categorical_crossentropy", optimizer="adam", metrics=["accuracy"])
seed()
reloaded_model.fit(x_train, y_train, batch_size=batch_size, epochs=1)

@hhoefener,
The fact that an input pipeline with no unseeded random operations (and sources of external state such as shuffle or cache) produces the same order every time it is executed is an important invariant and the expected behavior (and changing it is not an option for backwards compatibility reasons).

tf.random.set_seed sets the global random seed. Operations that rely on a random seed actually derive it from two seeds: the global and operation-level seeds. This sets the global seed.

If neither the global seed nor the operation seed is set: A randomly picked seed is used for this op.

If the global seed is set, but the operation seed is not: The system deterministically picks an operation seed in conjunction with the global seed so that it gets a unique random sequence. Within the same version of tensorflow and user code, this sequence is deterministic. However across different versions, this sequence might change. If the code depends on particular seeds to work, specify both global and operation-level seeds explicitly.

If the operation seed is set, but the global seed is not set: A default global seed and the specified operation seed are used to determine the random sequence.

If both the global and the operation seed are set: Both seeds are used in conjunction to determine the random sequence.

@tilakrayal thank you for your response. The randomness and the seeding were not the issue here, I just added seeding to get reproducible runs to be able to compare the model created in the code with the saved-and-loaded model.
However, changing the save and load to h5 files, the issue is gone. So it seems to be a bug in the SavedModel format. Closing this issue in favor of this already existing one over at keras: https://github.com/keras-team/keras/issues/15512


Use mill-crossplatform in build.sc

Ooooo, 👀 .
Also I make some changes in https://github.com/scalacenter/bloop-config/pull/5 that you'll want to take into account. SO it might be worth putting this on top of that pr.


Update to docker-maven-plugin 0.11.5

Refer to this link for build results (access rights to CI server needed):
https://fabric8-ci.fusesource.com/job/fabric8-quickstarts-master-pullreq/456/
Test PASSed.


RuntimeError: probability tensor contains either inf, nan or element < 0 [Usage]

RuntimeError: probability tensor contains either inf, nan or element < 0
Issue:
When I use the lora weights, both llama2 and vicuna7b got the same error:
Command:
python -m llava.eval.run_llava \
    --model-path "/home/wanghao/weights/llava/llava-llama-2-7b-chat-lightning-lora-preview" \
    --model-base "/home/wanghao/weights/llava/llama-2-7b-chat-hf" \
    --image-file "llava/serve/examples/extreme_ironing.jpg" \
    --query "What is unusual about this image?"

I have made sure that the ckpt are correct, like the base model should in hf format.
Screenshots:

RuntimeError: probability tensor contains either inf, nan or element < 0
Issue: When I use the lora weights, both llama2 and vicuna7b got the same error: Command:
python -m llava.eval.run_llava \
    --model-path "/home/wanghao/weights/llava/llava-llama-2-7b-chat-lightning-lora-preview" \
    --model-base "/home/wanghao/weights/llava/llama-2-7b-chat-hf" \
    --image-file "llava/serve/examples/extreme_ironing.jpg" \
    --query "What is unusual about this image?"

I have made sure that the ckpt are correct, like the base model should in hf format.
Screenshots:

"I've encountered the same problem. Have you already resolved it?"

Same problem here.
Any news?

Same problem here. Any news?

This is because I use multiple graphics cards when running. If I only use one, this problem will be solved.

This may have also been fixed in #720. Please feel free to re-open if the problem persists. Thanks.


[Android] infinite loading search screen

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Version Number: 1.4.42-5
Reproducible in staging?: Yes
Reproducible in production?: No
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers): any
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @hannojg and @abdulrahuman5196
Slack conversation:
Action Performed:

open app on Android
go to search screen
try to search anything

Expected Result:
The loading should disappear when data is fetched from server.
Actual Result:
Skeleton is always shown
Workaround:

Can the user still use Expensify without this being fixed?

No

Have you informed them of the workaround?

No
Platforms:

Which of our officially supported platforms is this issue occurring on?

[x] Android: Native
[ ] Android: mWeb Chrome
[ ] iOS: Native
[ ] iOS: mWeb Safari
[ ] MacOS: Chrome / Safari
[ ] MacOS: Desktop

Screenshots/Videos
https://github.com/Expensify/App/assets/22820318/c3d81267-6100-4af3-a406-8120a50f6be9

View all open jobs on GitHub

I can't reproduce this and believe it has been fixed. Closing.


$bulkdata-status of an $import job does not return the proper status.

Describe the bug
A clear and concise description of what the bug is.
$bulkdata-status from a $import job did not give the correct status.  It does not give the proper status.
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Additional context
Add any other context about the problem here.

I now get the success count and error count on the import when I check the status.


Fixed #575 and some in #84

Comments now only shows menu if needed
Gist options menu now updates correctly

@jonanp for any additional comments..

I'm away this week and wont be able to look into any PR until the weekend. So if it's an urgent bugfix, merge it if you wish.

It's not urgent and it would be better if it was tested by more people than me

LGTM. Thanks!


Read Configuration From File

Read Configuration from config file (config.txt)
Contains MQTT configuration atm
This logic is used for all depended programs except the app

Fulfilled in commit f83ca105a3d79232aaae347ba26ec67ceefacc18


Add new warning for users with both yarn and npm installed

I have added the warning thats on the react-native github (https://github.com/react-native-community/cli/blob/main/docs/init.md#using-npx-utility) onto the website. I got stuck here and had to ask stackoverflow. Having this info on the website would have saved me hours.
https://stackoverflow.com/questions/76030622/react-native-unable-to-download-template/76032088#76032088

Having this info on the website would have saved me hours.

Can you clarify on why you needed --npm. I personally have both installed and never had such issues

Having this info on the website would have saved me hours.

Can you clarify on why you needed --npm. I personally have both installed and never had such issues

I'm not sure why on my environment i require the --npm when having both yarn and npm installed. I just know that adding the --npm flag allows me to successfully download the default template. Everytime, without fail, not having the flag fails to donwload the default template. the details of the err and how I got the solution are here:
https://stackoverflow.com/questions/76030622/react-native-unable-to-download-template/76032088#76032088
Is there any information i can provide you to better understand the problem?
versions:
node 18.12.1
npm 9.3.0
yarn 3.2.3

Is there any information i can provide you to better understand the problem?

Which commands are you running specifically?

Which commands are you running specifically?

Im simply using the command written in the docs website.
I follow these instructions for macOS and iOS exactly as shown
https://reactnative.dev/docs/environment-setup
Problem Command:
npx react-native@latest init AwesomeProject
Solution Command:
npx react-native@latest init AwesomeProject --npm

mmm that's interesting. Could you copy the error message you're having?

+1 to Nico's ask here, I'm interested to see what happened there @munozr1.

mmm that's interesting. Could you copy the error message you're having?

Running command without --verbose flag
✔ Downloading template ✖ Copying template error Error: Couldn't find the "/var/folders/8x/y10dxy554tzb5d5d2tv_rffh0000gn/T/rncli-init-template-a0bsiD/node_modules/react-native/template.config.js file inside "react-native" template. Please make sure the template is valid. Read more: https://github.com/react-native-community/cli/blob/master/docs/init.md#creating-custom-template. Error: Error: Couldn't find the "/var/folders/8x/y10dxy554tzb5d5d2tv_rffh0000gn/T/rncli-init-template-a0bsiD/node_modules/react-native/template.config.js file inside "react-native" template. Please make sure the template is valid. Read more: https://github.com/react-native-community/cli/blob/master/docs/init.md#creating-custom-template     at createFromTemplate (/Users/rmunoz/.npm/_npx/dea611a43221eddd/node_modules/@react-native-community/cli/build/commands/init/init.js:131:11)     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)     at async Object.initialize [as func] (/Users/rmunoz/.npm/_npx/dea611a43221eddd/node_modules/@react-native-community/cli/build/commands/init/init.js:184:3)     at async Command.handleAction (/Users/rmunoz/.npm/_npx/dea611a43221eddd/node_modules/@react-native-community/cli/build/index.js:106:9) info Run CLI with --verbose flag for more details.
Running command with --verbose flag
debug Installing template from react-native@latest {   name: 'rncli-init-template-18zzCA',   packageManager<EMAIL_ADDRESS>} ➤ YN0000: ┌ Resolution step ➤ YN0061: │ source-map-resolve@npm:0.5.3 is deprecated: See https://github.com/lydell/source-map-resolve#deprecated ➤ YN0061: │ resolve-url@npm:0.2.1 is deprecated: https://github.com/lydell/resolve-url#deprecated ➤ YN0061: │ urix@npm:0.1.0 is deprecated: Please see https://github.com/lydell/urix#deprecated ➤ YN0061: │ source-map-url@npm:0.4.1 is deprecated: See https://github.com/lydell/source-map-url#deprecated ➤ YN0061: │ uglify-es@npm:3.3.10 is deprecated: support for ECMAScript is superseded byuglify-js as of v3.13.0 ➤ YN0032: │ fsevents@npm:2.3.2: Implicit dependencies on node-gyp are discouraged ➤ YN0061: │ @npmcli/move-file@npm:2.0.1 is deprecated: This functionality has been moved to @npmcli/fs ➤ YN0002: │ react-native-codegen@npm:0.71.5 doesn't provide @babel/preset-env (pdcb72), requested by jscodeshift ➤ YN0002: │ rncli-init-template-18zzCA@workspace:. doesn't provide react (p6598c), requested by react-native ➤ YN0000: │ Some peer dependencies are incorrectly met; run yarn explain peer-requirements <hash> for details, where <hash> is the six-letter p-prefixed code ➤ YN0000: └ Completed in 5s 494ms ➤ YN0000: ┌ Fetch step ➤ YN0013: │ yargs-parser@npm:18.1.3 can't be found in the cache and will be fetched from the remote registry ➤ YN0013: │ yargs-parser@npm:21.1.1 can't be found in the cache and will be fetched from the remote registry ➤ YN0013: │ yargs@npm:15.4.1 can't be found in the cache and will be fetched from the remote registry ➤ YN0013: │ yargs@npm:17.7.1 can't be found in the cache and will be fetched from the remote registry ➤ YN0013: │ yocto-queue@npm:0.1.0 can't be found in the cache and will be fetched from the remote registry ➤ YN0000: └ Completed in 6s 365ms ➤ YN0000: ┌ Link step ➤ YN0000: │ ESM support for PnP uses the experimental loader API and is therefore experimental ➤ YN0000: └ Completed in 2s 944ms ➤ YN0000: Done with warnings in 14s 932ms debug Getting config from /var/folders/8x/y10dxy554tzb5d5d2tv_rffh0000gn/T/rncli-init-template-18zzCA/node_modules/react-native/template.config.js error Error: Couldn't find the "/var/folders/8x/y10dxy554tzb5d5d2tv_rffh0000gn/T/rncli-init-template-18zzCA/node_modules/react-native/template.config.js file inside "react-native" template. Please make sure the template is valid. Read more: https://github.com/react-native-community/cli/blob/master/docs/init.md#creating-custom-template Error: Error: Couldn't find the "/var/folders/8x/y10dxy554tzb5d5d2tv_rffh0000gn/T/rncli-init-template-18zzCA/node_modules/react-native/template.config.js file inside "react-native" template. Please make sure the template is valid. Read more: https://github.com/react-native-community/cli/blob/master/docs/init.md#creating-custom-template     at createFromTemplate (/Users/rmunoz/.npm/_npx/dea611a43221eddd/node_modules/@react-native-community/cli/build/commands/init/init.js:131:11)     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)     at async Object.initialize [as func] (/Users/rmunoz/.npm/_npx/dea611a43221eddd/node_modules/@react-native-community/cli/build/commands/init/init.js:184:3)     at async Command.handleAction (/Users/rmunoz/.npm/_npx/dea611a43221eddd/node_modules/@react-native-community/cli/build/index.js:106:9)

I don't know that React Native plays nicely with Yarn versions after 1.x/Yarn Classic. I know that PnP as a default in Yarn 2.0 certainly broke RN support (also the ability for Metro to resolve anything). IIRC they were walking things back to improve compat, but I have't looked closely at them recently.
I think we could maybe clarify that when we refer to yarn, we are referring to yarn classic.

Also, the CLI should be able to detect this. It's already shelling out to yarn, so it could do a version check at least.

I don't know that React Native plays nicely with Yarn versions after 1.x/Yarn Classic. I know that PnP as a default in Yarn 2.0 certainly broke RN support (also the ability for Metro to resolve anything). IIRC they were walking things back to improve compat, but I have't looked closely at them recently.
I think we could maybe clarify that when we refer to yarn, we are referring to yarn classic.

Also, the CLI should be able to detect this. It's already shelling out to yarn, so it could do a version check at least.

(relevant) RN CLI PR: https://github.com/react-native-community/cli/pull/1931

@NickGerleman: I don't know that React Native plays nicely with Yarn versions after 1.x/Yarn Classic

It works great with nodeLinker: node-modules config. I've been using it in multiple projects for a while.

Also faced this problem when doing the setup, but it worked when I used node 18.
Yarn: 3.5.0
Before: node: v16.18.1 and (npm v8.19.2)
Now using node v18.11.0 (npm v8.19.2) and it worked.


Pass Control Id into Control Part to Render Modifications

Modified the OSCALControl file to add a missing controlId prop to ControlPart. This was causing some control modifications to not be displayed and we want all control modifications to be visible to the viewer.
Additionally, test data and the test were modified to test these changes. Previously, the test for displaying control modifications in the OSCALControlImplementationImplReq.test test file was not testing anything different than the test for displaying control modifications in the OSCALProfile.test test file. There was that redundancy despite OSCALControlImplementationImplReq.test using profileModifyTestData, created for the purpose of testing whether top-level control modifications would be displayed. That test data, and subsequently the test file, were modified to test if a modifications for a control implementation ending in _smt were properly displayed. The distinction of _smt is important, as it is a top-level control modification and its appearance in a control's modifications, coupled with the missing controlId prop, caused the control modification to not be displayed.

Seems we're testing modifications in three different places now, and they're a bit redundant:

I somewhat alluded to this in the comment made when I created this PR. I'm going to reduce the redundancy as part of this PR, as it doesn't need to be it's own ticket. However, I wonder if we should keep one of the other control modifications tests, as the modification control ids are slightly different.


Added component pricing-style-3

Hi, I have completed working on issue #150 assigned to me.
Here is the component I have built.
This is the component from the Figma file.

Here is a screenshot of the coded version built on Tailwind Play

I have used Hero Icons as instructed for the 'check' icons.
Here is a screenshot of the code.

I have tried to replicate the Figma design as much as possible. I have added a file in the 'Pricing Components' directory named 'pricing-style-3'.
Kindly review this PR and let me know if approved or if any changes are required.
Thank you,
Abir

Sorry, this was a mistake on my part. I will create a new PR.


Please add documentation on how to use in Ionic

Not an issue, but a request for help: Please add documentation on how to use in Ionic; I am absolutely clueless.

I use cordova at CLI and I have not used Ionic.
I will respond if it seems to be possible to write after using it by me.


glossary entries

Maybe we should define points per second and values per second in the glossary, just so we can be clear about it when discussing rates. We can link back to the definitions from blog posts and tech papers.
URL for relevant page?
https://docs.influxdata.com/influxdb/v0.13/concepts/glossary/
What products and version are you using?
InfluxDB 0.13

rolled into points per second and values per second


Create docs for the project

Things to add -
[] how to for Contribution.
[] starting project.
[] project aim.
[] ToDo and future.


Apply default TLS cipher suite to nats-gateway

This got picked up in a recent security scan. Someone familiar with
the application should review to ensure there wasn't a reason to allow
the less restrictive cipher suite.
Note that this still leaves the NATS ports 4222 and 10140 outside the
view of the scanner as the scanner says those don't appear to be TLS
ports.
Signed-off-by: Steven Danna<EMAIL_ADDRESS>

Looks like we have a few other violations that the scanner caught in CI that I didn't get locally.

https://go-review.googlesource.com/c/go/+/175517 has made it a bit easier to make these internal cipher suites configurable, but I'm still -1 on them being configurable since in reality almost all of this communication should be happening over TLS1.3 where they aren't configurable anyway.


rewrite completion list ui

From @BleyChen on November 12, 2015 9:56
As we know , when you write JavaScript code in VSCode ,it will popup an Completion list UI as following.

I want to know whether i can overwrite the Completion list UI ,because i want to provide additional information for each JavaScript API, anyone can help me ?
Copied from original issue: Microsoft/vscode-extensionbuilders#99

From @jrieken on November 12, 2015 15:0
You cannot change a completion item someone else created but you can provide your own set of completion items using the CompletionItemProvider.

From @jrieken on November 13, 2015 7:51
Sorry, that isn't possible right now

From @BleyChen on November 13, 2015 3:40
do you know which API can let me get the information of completion item provided by someone else ?
How to populate the Javascript auto-complete list in my own code?
How to get the function name list in my plugin, and populate them in my own intellisense provider?
the following steps is what i want to implement:
step 1. when user write js code in VSCode , it will popup Completion list UI.

step 2. when user switch completion item , i can get the item information that current user select , and  use the completion item information to get some useful samples and show it in UI.

i don't know whether it can be implemented  or not? can you help me ,thank you !

With VSCode 1.17, the completion item's documentation is now a markdown string, so you are be able to include code snippets and other formatted content


Some sort of circular reference

Describe the bug
I created a new codeunit 50000 GenJnlPostLineSubscribers and as soon as I give it its proper name and save it, I get two problems:

An application object of type 'Codeunit' with ID '23029100' is already declared by the extension 'MyExtension by MyPublisher (<IP_ADDRESS>)'AL(AL0264)
An application object of type 'Codeunit' with name 'GenJnlPostLineSubscribers' is already declared by the extension 'MyExtension by MyPublisher (<IP_ADDRESS>)'AL(AL0197)

There is only one codeunit with that number and name. As a result, intellisense references in EventSubscriber procedure attributes no longer work and I get a request to create a new issue in the output:
[Error - 5:24:56 PM] Please report this issue to https://github.com/microsoft/al/issues including information on how to reproduce it, if possible.
Processing of message 'textDocument/completion' failed with error: 'Node span: 0-65, position: 105 (Parameter 'position')'
Details:
System.ArgumentOutOfRangeException: Node span: 0-65, position: 105 (Parameter 'position')
   at Microsoft.Dynamics.Nav.CodeAnalysis.SyntaxNode.FindToken(Int32 position, Boolean findInsideTrivia) in D:\a\1\s\source\Prod\Microsoft.Dynamics.Nav.CodeAnalysis\Syntax\SyntaxNode.cs:line 1002
   at Microsoft.Dynamics.Nav.CodeAnalysis.SyntaxNode.FindToken(Int32 position, Func`2 findInsideTrivia) in D:\a\1\s\source\Prod\Microsoft.Dynamics.Nav.CodeAnalysis\Syntax\SyntaxNode.cs:line 1035
   at Microsoft.Dynamics.Nav.CodeAnalysis.SyntaxNode.FindToken(Int32 position, Boolean findInsideTrivia) in D:\a\1\s\source\Prod\Microsoft.Dynamics.Nav.CodeAnalysis\Syntax\SyntaxNode.cs:line 1002
   at Microsoft.Dynamics.Nav.CodeAnalysis.Syntax.SyntaxTreeExtensions.IsEntirelyWithinStringLiteral(SyntaxTree syntaxTree, Int32 position, CancellationToken cancellationToken) in D:\a\1\s\source\Prod\Microsoft.Dynamics.Nav.CodeAnalysis\Syntax\SyntaxTreeExtensions.cs:line 515
   at Microsoft.Dynamics.Nav.CodeAnalysis.Syntax.SyntaxTreeExtensions.IsInNonUserCode(SyntaxTree syntaxTree, Int32 position, CancellationToken cancellationToken) in D:\a\1\s\source\Prod\Microsoft.Dynamics.Nav.CodeAnalysis\Syntax\SyntaxTreeExtensions.cs:line 221
   at Microsoft.Dynamics.Nav.CodeAnalysis.Workspaces.Completion.MemberSyntaxContext.CreateContext(Workspace workspace, SemanticModel semanticModel, Int32 position, CancellationToken cancellationToken) in D:\a\1\s\source\Prod\Microsoft.Dynamics.Nav.CodeAnalysis.Workspaces\Completion\ContextQuery\MemberSyntaxContext.cs:line 173
   at Microsoft.Dynamics.Nav.CodeAnalysis.Workspaces.Completion.CompletionProvider.CreateMemberContextAsync(Document document, Int32 position, CancellationToken cancellationToken) in D:\a\1\s\source\Prod\Microsoft.Dynamics.Nav.CodeAnalysis.Workspaces\Completion\CompletionProvider.cs:line 82
   at Microsoft.Dynamics.Nav.CodeAnalysis.Workspaces.Completion.AbstractSymbolCompletionProvider.GetPerContextSymbols(Document document, Int32 position, OptionSet options, IEnumerable`1 relatedDocuments, Boolean preselect, CancellationToken cancellationToken) in D:\a\1\s\source\Prod\Microsoft.Dynamics.Nav.CodeAnalysis.Workspaces\Completion\AbstractSymbolCompletionProvider.cs:line 248
   at Microsoft.Dynamics.Nav.CodeAnalysis.Workspaces.Completion.AbstractSymbolCompletionProvider.GetItemsWorkerAsync(Document document, AbstractSyntaxContext context, TextSpan span, OptionSet options, Boolean preselect, CancellationToken cancellationToken) in D:\a\1\s\source\Prod\Microsoft.Dynamics.Nav.CodeAnalysis.Workspaces\Completion\AbstractSymbolCompletionProvider.cs:line 199
   at Microsoft.Dynamics.Nav.CodeAnalysis.Workspaces.Completion.AbstractSymbolCompletionProvider.ProvideCompletionsAsync(CompletionContext context, AbstractSyntaxContext memberSyntaxContext) in D:\a\1\s\source\Prod\Microsoft.Dynamics.Nav.CodeAnalysis.Workspaces\Completion\AbstractSymbolCompletionProvider.cs:line 174
   at Microsoft.Dynamics.Nav.CodeAnalysis.Workspaces.Completion.CompletionServiceWithProviders.GetContextAsync(CompletionProvider provider, Document document, Int32 position, CompletionTrigger triggerInfo, OptionSet options, Nullable`1 defaultSpan, CancellationToken cancellationToken) in D:\a\1\s\source\Prod\Microsoft.Dynamics.Nav.CodeAnalysis.Workspaces\Completion\CompletionServiceWithProviders.cs:line 372
   at Microsoft.Dynamics.Nav.CodeAnalysis.Workspaces.Completion.CompletionServiceWithProviders.GetCompletionsAsync(Document document, Int32 caretPosition, CompletionTrigger trigger, ImmutableHashSet`1 roles, OptionSet options, CancellationToken cancellationToken) in D:\a\1\s\source\Prod\Microsoft.Dynamics.Nav.CodeAnalysis.Workspaces\Completion\CompletionServiceWithProviders.cs:line 183
   at Microsoft.Dynamics.Nav.EditorServices.Protocol.LanguageServer.CompletionRequestHandler.HandleAsync(TextDocumentPositionParams request, Int32 requestId, CancellationToken cancellationToken) in D:\a\1\s\source\Prod\Microsoft.Dynamics.Nav.EditorServices.Protocol\LanguageServer\CompletionRequestHandler.cs:line 45
   at Microsoft.Dynamics.Nav.EditorServices.Protocol.MessageProtocol.RequestHandlerBase`1.HandleAsync(JToken requestContents, Int32 requestId, CancellationToken cancellationToken) in D:\a\1\s\source\Prod\Microsoft.Dynamics.Nav.EditorServices.Protocol\MessageProtocol\RequestHandlerBase.cs:line 54
   at Microsoft.Dynamics.Nav.EditorServices.Protocol.RequestRegistry.Process(Message message) in D:\a\1\s\source\Prod\Microsoft.Dynamics.Nav.EditorServices.Protocol\Endpoints\RequestRegistry.cs:line 80

Expected behavior
I expect not to get an error message that the codeunit that I just created already exists, when there is only one copy
5. Versions:

This is running in a brand new sandbox container, created this morning

HI @TheDenSter,
Thanks for reporting the issue, but I'm unable to reproduce it.
If you are able to reproduce it again, could you record a video/gif with "Screencast Mode" toggled on in VSCode, and explain how you got to that issue.

I believe this is the same issue as #6077.

Hope this helps :)

Yes that does look like a similar issue, I'm glad I'm not going crazy :). I completely rebuilt the entire workspace and I did not save the old one. Now I can't even repro this myself.
Searching for the codeunit by its name it says there are two files. One of them was in the 'src\codeunit' folder and another was in the 'src\Codeunit' folder (note that one starts with lower case c and the other with upper case C). VSCode THINKS it is two files but it is actually just one. When I showed the files side by side and made a change to the one, that change was also made in the other. Makes sense because it was really just one file.
I'll just close this, because I don't have the workspace anymore and it's not happening in the new one.


fix(shared): toDisplayString()  skip unwrap raw refs  markRaw()

toDisplayString() should not unwrap or track refs that were marked as raw
__v_skip === true

I see, I'm not sure this is the correct usage of markRaw(). You use it on raw object to prevent them from being proxified when being passed to reactive() and ref. e.g. you mark an Element instance as raw if you pass it to ref or reactive

I agree, this change at the current state of markRaw() is "abusing" the skip flag, and for the most part doesn't solve for any useful use case.  ( it would have been more useful if it actually unwrapped the ref and treated  as  raw  value without effects)
but that use case from what I understand can be solved  with v-memo
like you described markRaw was single purposed  for raw object to skip being turned into a reactive proxy.
and is not considered by other parts of the system as a way to treat objects as raw.


Install via CocoaPods

Hello. How install this lib via CocoaPods?

Hello! Unfortunately, it's only available through Swift Package Manager

CocoaPods support  please...

CocoaPods support please...

Hey, it's been a while, I see that there are still a lot of developers who uses CocoaPods, so I've just added it
Now, you can add BottomSheet through CocoaPods, just add this line to your Podfile
pod 'BottomSheet', :git => 'https://github.com/joomcode/BottomSheet'

If you need a fixed version, you can use tag:
pod 'BottomSheet', :git => 'https://github.com/joomcode/BottomSheet', :tag => '2.0.2'

I wasn't able to push it to cocoapods registry because 'BottomSheet' has already been taken, so it's not possible to use convenient version syntax, like:
pod 'BottomSheet', '~>2.0'

For now, I'll close this issue, let me know if the method above doesn't work for you

Thank you @mikhailmaslo.


upload VM logs and cluster parameter files during abe2e go, some slight refactoring

What type of PR is this?

What this PR does / why we need it:
Which issue(s) this PR fixes:

Fixes #
Requirements:

[ ] uses conventional commit messages

[ ] includes documentation
[ ] adds unit tests
[ ] tested upgrade from previous version

Special notes for your reviewer:
Release note:
none

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 77.017%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
2091

Relevant Lines:
2715

💛  - Coveralls


Dbz 7176

Correctly handle METADATA records

Needs to be rebase on the latest main after https://github.com/debezium/debezium-connector-informix/pull/24 merge


Various Z-wave errors in the logs and so automations using z-wave entities are freezing after updating to 1.15.x

Problem/Motivation
Some automations using z-wave devices stopped working reliably. When the automation stops working, there is always a corresponding z-wave error in HA log. When looking at all the errors, it looks like there are general unstability in my network that was not there before the update.  Rebooting the HA or z-wave JS UI has no effect.
Expected behavior
Z-wave network to stay stable after 1.15.x update
Actual behavior
Unstable z-wave network, many different errors:
ZW0204
ZW1405
''Unexpected error for if at pos 1: tuple index out of range''
''NotFoundError: Configuration parameter with value ID 26-112-0-22 could not be found''
and maybe more
Steps to reproduce
Updating to 1.15.1 caused the problem,
Updating to 1.15.2, problem still there
restored 1.15.1 problem still there
Restoring 1.14 brings back normal behavior with stable z-wave network, no more errors in the log
Additional info
Using a aeotec z-stick 7 on firmware 7.19.2
My Z-wave network has always been stable except for the infamous ''dead nodes'' issue that happen every now and then, but I never had this amount of z-wave related errors causing automations to fail before updating to 1.15.x.
Errors in the log:
Logger: homeassistant.components.automation.test_switch
Source: helpers/script.py:420
Integration: Automatisation (documentation, issues)
First occurred: 26 juillet 2023 à 21:58:05 (1 occurrences)
Last logged: 26 juillet 2023 à 21:58:05

Éclairage comptoir OFF (down keypress x1): Error executing script. Error for device at pos 3: Node(node_id=20) - FailedZWaveCommand: Z-Wave error 204: The node did not acknowledge the command (ZW0204)

Logger: homeassistant.components.automation.test_switch
Source: helpers/script.py:420
Integration: Automatisation (documentation, issues)
First occurred: 26 juillet 2023 à 21:58:05 (1 occurrences)
Last logged: 26 juillet 2023 à 21:58:05

Éclairage comptoir OFF (down keypress x1): Error executing script. Error for device at pos 3: Node(node_id=20) - FailedZWaveCommand: Z-Wave error 204: The node did not acknowledge the command (ZW0204)

Logger: homeassistant.components.automation.test_switch
Source: components/automation/__init__.py:680
Integration: Automatisation (documentation, issues)
First occurred: 26 juillet 2023 à 21:58:05 (1 occurrences)
Last logged: 26 juillet 2023 à 21:58:05

Error while executing automation automation.test_switch: Node(node_id=20) - FailedZWaveCommand: Z-Wave error 204: The node did not acknowledge the command (ZW0204)

Logger: homeassistant.components.automation.eclairage_comptoir_on
Source: helpers/script.py:420
Integration: Automatisation (documentation, issues)
First occurred: 26 juillet 2023 à 22:08:17 (1 occurrences)
Last logged: 26 juillet 2023 à 22:08:17

Éclairage comptoir ON (up keypress x1): Error executing script. Error for device at pos 3: Node(node_id=20) - FailedZWaveCommand: Z-Wave error 1405: The node failed to decode the message. (ZW1405)

Logger: homeassistant.components.automation.eclairage_comptoir_on
Source: components/automation/__init__.py:680
Integration: Automatisation (documentation, issues)
First occurred: 26 juillet 2023 à 22:08:17 (1 occurrences)
Last logged: 26 juillet 2023 à 22:08:17

Error while executing automation automation.eclairage_comptoir_on: Node(node_id=20) - FailedZWaveCommand: Z-Wave error 1405: The node failed to decode the message. (ZW1405)

I dont understand this one, I'm not using mqtt for z-wavejs ui:
Logger: homeassistant.config_entries
Source: config_entries.py:1257
First occurred: 26 juillet 2023 à 22:13:42 (1 occurrences)
Last logged: 26 juillet 2023 à 22:13:42

Config entry 'Z-Wave JS' for zwave_js integration not ready yet: Failed to connect: Cannot connect to host a0d7b954-zwavejs2mqtt:3001 ssl:default [Connect call failed ('<IP_ADDRESS>', 3001)]; Retrying in background

Logger: homeassistant.components.automation.status_lumiere_chambre_william
Source: components/zwave_js/services.py:93
Integration: Automatisation (documentation, issues)
First occurred: 26 juillet 2023 à 22:13:42 (3 occurrences)
Last logged: 26 juillet 2023 à 22:13:42

Status lumière chambre William : If at step 1: Error executing script. Unexpected error for device at pos 1: tuple index out of range
Status lumière chambre William : Error executing script. Unexpected error for if at pos 1: tuple index out of range
While executing automation automation.status_lumiere_chambre_william
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 468, in _async_step
    await getattr(self, handler)()
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 719, in _async_device_step
    await device_action.async_call_action_from_config(
  File "/usr/src/homeassistant/homeassistant/components/device_automation/action.py", line 71, in async_call_action_from_config
    await platform.async_call_action_from_config(hass, config, variables, context)
  File "/usr/src/homeassistant/homeassistant/components/zwave_js/device_action.py", line 275, in async_call_action_from_config
    await hass.services.async_call(
  File "/usr/src/homeassistant/homeassistant/core.py", line 1965, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2005, in _execute_service
    return await cast(
           ^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/zwave_js/services.py", line 448, in async_set_config_parameter
    raise_exceptions_from_results(nodes_list, results)
  File "/usr/src/homeassistant/homeassistant/components/zwave_js/services.py", line 91, in raise_exceptions_from_results
    lines = [
            ^
  File "/usr/src/homeassistant/homeassistant/components/zwave_js/services.py", line 93, in <genexpr>
    f"{zwave_object} - {error.__class__.__name__}: {error.args[0]}"
                                                    ~~~~~~~~~~^^^
IndexError: tuple index out of range

Logger: homeassistant.components.automation.lampe_william_statis
Source: helpers/script.py:420
Integration: Automatisation (documentation, issues)
First occurred: 26 juillet 2023 à 22:14:19 (2 occurrences)
Last logged: 26 juillet 2023 à 22:14:19

Lampe william status: If at step 1: Error executing script. Error for device at pos 1: Node(node_id=26) - NotFoundError: Configuration parameter with value ID 26-112-0-22 could not be found
Lampe william status: Error executing script. Error for if at pos 1: Node(node_id=26) - NotFoundError: Configuration parameter with value ID 26-112-0-22 could not be found

Hold on, I think I just found why i'm having so much errors, they are almost all on nodes 20 and 26 and both these nodes are the same device model, HomeSeer switches with indicator leds. For an unknown reason, all my automations calling to change the switches leds colors lost their values. I'm making the correction to these automations and will try to update again to 1.15.2 and see if there are still some errors.
But why would my automations lose the value that was set for a parameter change when it worked fine for months?

Well I had to redo all my automations using z-ware parameter changes so they have their endpoint defined. I tought all problems with that were already solved in a recent update.
for the ''tuple index out of range''' errors, I had to completely redo these automations from scratch.
Not sure what was going on, but redoing affacted automations cleared all error in the log.


Diag settings mg

Overview/Summary
This PR implements the option to enable Diagnostic Settings for Management groups for logs to be sent to a LAW.
This PR fixes/adds/changes/removes

Closes issue #602
Closes ADO AB#23557

Breaking Changes
None
Testing Evidence
Tested several times enabling and disabling the varaible.
As part of this Pull Request I have

[x] Checked for duplicate Pull Requests
[x] Associated it with relevant issues, for tracking and closure.
[x] Ensured my code/branch is up-to-date with the latest changes in the main branch
[x] Performed testing and provided evidence.
[x] Updated relevant and associated documentation.
[ ] Updated the "RELEASE" page with details needed for when this code change is released.

/azp run unit


Extension broken in Zed 0.151.1

My settings.json for biome
 // Biome
  "lsp": {
    "biome": {
      "settings": {
        "config_path": "~/Code/biome.json",
        "require_config_file": false
      }
    }
  },
  "formatter": {
    "language_server": {
      "name": "biome"
    }
  }

This extension used to work two versions before this, so maybe it's a zed thing? After installing the extension, it simply doesn't start. It works fine in neovim but nothing happens in zed buffers.

Im actually not having any problems, but I see some werid behaviour too.
Like sometimes I get a "Error: biome binary not found", but the Server starts anyways. But it appears very inconsistently.

Thanks for the reply. I decided to completely reinstall zed to see it's a quirk of zed and gets fixed. Here are the steps:

Install zed
Press Ctrl + Shift + X to go to the extensions tab and search for biome, click install.
Press Ctrl + , to edit settings.json and add this :

 // biome
  "lsp": {
    "biome": {
      "settings": {
        "require_config_file": false
      }
    }
  },
  "formatter": {
    "language_server": {
      "name": "biome"
    }
  },
  "code_actions_on_format": {
    "source.fixAll.biome": true,
    "source.organizeImports.biome": true
  }

I am not using a biome.json because previously it would work on every js file without needing that in the root of the project, though I have it deep in my nvim config.
Now,

Open a .js file with a known problem, like using forEach instead of a for...of loop.
Now you should observe that biome doesn't start.

Same file using biome in :

Nvim
Zed

For me Biome extension is showing the linter errors but nothing I do can make it to fix those errors automatically. Running manually editor:format doesn't work either and it only fix the errors when I click on the flash icon at a line that has an error and select fix all auto-fixable issues or other specific rule action. I'm using the same settings as @shellheim.

For me Biome extension is showing the linter errors but nothing I do can make it to fix those errors automatically. Running manually editor:format doesn't work either and it only fix the errors when I click on the flash icon at a line that has an error and select fix all auto-fixable issues or other specific rule action. I'm using the same settings as @shellheim.

The format command is not supposed to fix your lint errors. Linting and formatting are not seen as the same thing from biome. Tho I agree the "code_actions_on_format" stopped working some time ago. Which is likely a Zed issue.

Just by updating the dependencies of this extension made it all work for me.  One think I noticed is that after a lint fix (useSortedClasses) the text cursor moves to the start of the next line, which is a little strange and different from what happens on vscode, where the cursor keeps at the same position.

I'm getting the biome warnings and errors, but formatting doesn't seem to work?

I'm getting the biome warnings and errors, but formatting doesn't seem to work?

Open a new issue please, if you think something is wrong. :) Check https://github.com/biomejs/biome-zed?tab=readme-ov-file#configuration before though.


3.5.0 requires node >= 5.10.0

As of version 3.5.0, jsdoc uses Buffer.alloc which was introduced in Node v5.10.0 but the package.json currently specifies >= v4.2.0
This results in an error when trying to run jsdoc on a system running node < v5.10.0
.../node_modules/jsdoc/lib/jsdoc/fs.js:103
    var buffer = Buffer.alloc(BUF_LENGTH);
                        ^

TypeError: Buffer.alloc is not a function

Whoops, sorry about that! Fixed on master and releases/3.5. The fix will be included in JSDoc 3.5.1.


Update download links for caido

We are moving away from GCP, this is our new download domain.
This will be officially supported now and documentation is available at https://docs.caido.io/concepts/internals/download.html

Thank you @Sytten