id
int64
393k
2.82B
repo
stringclasses
68 values
title
stringlengths
1
936
body
stringlengths
0
256k
labels
stringlengths
2
508
priority
stringclasses
3 values
severity
stringclasses
3 values
2,768,943,417
tauri
[bug] :global styles don't immediately work with svelte(kit)
### Describe the bug Svelte's styles are scoped to components, but svelte allows setting global styles with `:global` syntax: ```css <style> :global * { background-color: red; } </style> ``` These styles don't work immediately. Once I run the app and edit the global style, then they start working (once the HMR kicks in). This is something that works out of the box with default svelte(kit) project, even with all of the tauri-specific options (including static adapter, prerender enabled and ssr disabled). Haven't found such issue online, not even sure if it's really tauri-related. Note: if there is more than one `:global` selector, none of them works at the beginning. Once at least one of them is updated and hot-reloaded, all of them start working. **EDIT**: any edit and HMR update within `<style>` blocks works, it doesn't have to be `:global` selector **EDIT2**: Right click -> Reload sometimes fixes this, sometimes it doesn't, can't really tell when it works Note 2: As I was collecting the stack trace from brand new tauri app template, the `:global` selector worked immediately, but only during the first ever full compilation with `npm run tauri dev`. Every subsequent run of `npm run tauri dev` suffered from the mentioned issue. ### Reproduction ```bash npm create tauri-app@latest # Select all default options except for UI template -> Svelte # cd into the project npm install ``` edit the src/routes/+page.svelte file. In the `<style>` scope, add any global selector that should affect the app visually, for example: ```css ... <style> ... :global * { background-color: red; } </style> ``` ```bash npm run tauri dev ``` nothing is red at this point. While the app is running, modify the global style again, for example by changing previously added `background-color` to `yellow` and save. HMR causes the frontend to reload and the global styles are now applied (some components should be yellow). ### Expected behavior `:global` styles should work from the start, at least that's how they work in non-tauri sveltekit project ### Full `tauri info` output ```text npm run tauri info > [email protected] tauri > tauri info [✔] Environment - OS: Arch Linux Rolling Release x86_64 (X64) (Hyprland on wayland) ✔ webkit2gtk-4.1: 2.46.5 ✔ rsvg2: 2.59.2 ✔ rustc: 1.83.0 (90b35a623 2024-11-26) ✔ cargo: 1.83.0 (5ffbef321 2024-10-29) ✔ rustup: 1.27.1 (2024-05-07) ✔ Rust toolchain: stable-x86_64-unknown-linux-gnu (default) - node: 23.4.0 - npm: 11.0.0 [-] Packages - tauri 🦀: 2 - tauri-build 🦀: No version detected - wry 🦀: No version detected - tao 🦀: No version detected - tauri-cli 🦀: 2.2.1 - @tauri-apps/api : 2.2.0 - @tauri-apps/cli : 2.2.2 [-] Plugins [-] App - build-type: bundle - CSP: unset - frontendDist: ../build - devUrl: http://localhost:1420/ - framework: Svelte - bundler: Vite ``` ### Stack trace ```text npm run tauri dev > [email protected] tauri > tauri dev Running BeforeDevCommand (`npm run dev`) > [email protected] dev > vite dev VITE v6.0.7 ready in 517 ms ➜ Local: http://localhost:1420/ Info Watching /home/btj/dev/tmp/tauritest/src-tauri for changes... Compiling tauritest v0.1.0 (/home/btj/dev/tmp/tauritest/src-tauri) Finished `dev` profile [unoptimized + debuginfo] target(s) in 9.57s Running `target/debug/tauritest` 6:49:06 PM [vite] (client) hmr update /src/routes/+page.svelte?svelte&type=style&lang.css ``` ### Additional context - **12.01.2025**: The issue doesn't seem to exist on Windows, only Linux
type: bug,status: needs triage
low
Critical
2,768,949,301
flutter
Internationalization for certain prebuilt Widgets
### Use case I have been making a few apps and utilizing the [`showLicensePage`](https://github.com/flutter/flutter/blob/main/packages/flutter/lib/src/material/about.dart#L396) function to show all the builtin app functions and noticed that some of the strings such as "Powered by Flutter" were just hard-coded into the framework, which forced me to write my own `showLicensePage` alternative that was able to respect the locale. ### Proposal For hard-coded strings like the `"Powered by Flutter"` string in `showLicensePage(...)` [here](https://github.com/flutter/flutter/blob/main/packages/flutter/lib/src/material/about.dart#L727) in prebuilt widgets, it would be helpful to allow for better usability by incorporating i18n. It would likely respect the `locale` property within the parent `MaterialApp` or another parent widget that is able to provide a `Locale` object. I am not too sure, but looking into the tooling for Flutter, the [localization bit](https://github.com/flutter/flutter/tree/master/packages/flutter_localizations) could come handy
framework,f: material design,a: internationalization,P2,team-design,triaged-design
low
Minor
2,768,951,067
svelte
CSS + combinator not applied to svelte:elements in #each loop
[Reproduction in Svelte REPL Playground v5.16.1](https://svelte.dev/playground/40132de4874a41d99556dbecc84960cf?version=5.16.1) ## Describe the problem When using `#each loop`, CSS `+` combinator is not being recognized as used (and thus it's absent in generated CSS): ```svelte <script> let list = [1, 2 ,3] </script> {#each list as value} <svelte:element this={'p'}>Style not applied</svelte:element> {/each} <style> p + p { color: red; } </style> ``` ``` "code": "css_unused_selector" "message": "Unused CSS selector "p+p" https://svelte.dev/e/css_unused_selector" ``` But when multiple `svelte:element` are defined one at a time, it works: ```svelte <svelte:element this={'p'} /> <svelte:element this={'p'}>Style applied</svelte:element> <style> p + p { color: red; } </style> ``` If I make it `p + p + p` in the example above, it shows `css_unused_selector` too, because it knows there are only 2 unknown elements. Adding a 3rd one makes it happy once again: ```svelte <svelte:element this={'p'} /> <svelte:element this={'p'} /> <svelte:element this={'p'}>Style applied</svelte:element> <style> p + p + p { color: red; } </style> ``` Which means that based on multiple defined `svelte:element`, Svelte seems to be able to recognize that the selector might be applied, so it has to be present in generated CSS. ### Why not use `:global` style? Two reasons: 1. Because of how CSS specificity works, `:global(p + p)` is not applied when there is a style already defined for `p` in the component: ```svelte <svelte:element this={'p'}>Both elements</svelte:element> <svelte:element this={'p'}>are red</svelte:element> <style> p { color: red; } :global(p + p) { /* not applied because of CSS specificity */ color: green; } </style> ``` It would require some additional tweaking to make it work, like adding some classes, which seems messy, clumsy and unnecessary. 2. For my use case, this style belongs to the specific component. It doesn't make sense to make it `:global` when it is not used anywhere else. ### Possible solution Svelte's understanding of the dynamicity of `svelte:element` doesn't seem to apply to `#each` loops. Possibly it's the unpredictability of the number of rendered elements that causes this problem. One way to handle it would be to disable `css_unused_selector` altogether when there is `svelte:element` in `#each` loop. Possibilities are endless in such case, both in terms of what kind of elements and how many of them will appear. So to me it would make sense allow basically any CSS combinators with any number of elements. ### Workaround until it is fixed Adding multiple `svelte:element` (even as unreachable code, like below) does the trick: ```svelte {#if false} <svelte:element this={''} /> <svelte:element this={''} /> {/if} ``` To make it work for `p + p + p` there would have to be 3 of them and so on, so it is obviously not ideal. But at least it's just an additional piece of code that can be easily removed later, when the issue is fixed, without adjusting anything else in the actual code. There is another thing that I described in the playground where when **another** component has **exactly** the same style, it suddenly makes it work in the component with `p + p` combinator with `svelte:element` in `#each` loop. I have already spent much more time than anticipated on describing this though, and maybe it should be placed in another issue anyway, so that's it for now. ### Reproduction [Reproduction in Svelte REPL Playground v5.16.1](https://svelte.dev/playground/40132de4874a41d99556dbecc84960cf?version=5.16.1) ### System Info ```shell Svelte REPL Playground Version 5.16.1 ``` ### Severity annoyance
css
low
Minor
2,768,951,629
neovim
vim.fs assumes case-sensitive filesystem
# Problem Windows, macOS, and even Linux support filesystems that may be case-insensitive. Examples - Windows supports directory-specific decision about case sensitivity - and case handling depends on the *current locale* - macOS partitions may be case-sensitive or not - on Linux, [mounts to usb, smb, etc.](https://github.com/neovim/neovim/pull/31833#issuecomment-2571308366) may have a case-insensitive filesystem References: - `vim.fn.has('fname_case')` - https://github.com/neovim/neovim/pull/31833 - https://github.com/dart-lang/core/issues/529 - https://stackoverflow.com/questions/33998669/windows-ntfs-and-case-sensitivity/34000339#34000339 - https://hasufell.github.io/posts/2022-06-29-fixing-haskell-filepaths.html - https://learn.microsoft.com/en-us/windows/wsl/case-sensitivity - https://www.tiraniddo.dev/2019/02/ntfs-case-sensitivity-on-windows.html # Proposal Until we have a "full" solution for detecting filesystem case-sensitivity, `vim.fs.normalize()` will behave as case-sensitive. - [x] Some parts of a filepath (such as Windows drive-letters) are guaranteed to never be case-sensitive. `vim.fs.normalize()` can safely force those parts to a upper/lower-case without considering the system context. #31833 - [ ] Implement filesystem-aware case-sensitivity detection in `vim.fs.normalize()`. - This can be done incrementally for each filesystem.
bug,needs:decision,complexity:high,filesystem
low
Minor
2,768,951,708
pytorch
[typing] Add static type hints to `torch.distributions`.
### 🚀 The feature, motivation and pitch Current lack of type hints causes some issues, for instance #76772 - [x] Add type hints for `lazy_property` class (#144110) - [x] Add type hints for `@property` and `@lazy_property` (#144110) - [ ] Add type hints to `__init__` methods (#144197) - [ ] Add type hints to methods (#144219) - [ ] Add type hints to attributes (#144219) - [ ] Add type hints to utility functions (#144219) ### Alternatives _No response_ ### Additional context _No response_ cc @fritzo @neerajprad @alicanb @nikitaved @ezyang @malfet @xuzhao9 @gramster
module: distributions,module: typing,triaged
low
Major
2,768,960,464
PowerToys
[PTRun][Calc] Improve handling of non base 10 numbers
### Description of the new feature / enhancement * Make division by zero check aware of binary and octal numbers * Allow octal numbers in `CalculateHelper.InputValid()` * Allow uppercase base notation (as in `0X`) in `CalculateHelper.InputValid()` * Make division by zero in another base trigger the division by zero check
Idea-Enhancement,Resolution-Fix Committed,Run-Plugin
low
Minor
2,768,961,771
ant-design
Ant Design Select component jerks when controlHeight is set in theme configuration
### Reproduction link [![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/p/sandbox/tags-antd-5-22-7-forked-39r3jw?file=%2Fpackage.json%3A10%2C14-10%2C20) ### Steps to reproduce Create a React app with Ant Design installed. Add a Select component from Ant Design with the mode="tags" option. In the ConfigProvider, set controlHeight to a value (e.g., 40px) in the theme configuration. Run the app and try to interact with the Select component by typing in the input. ### What is expected? The Select component should render smoothly without any jerking or unexpected behavior when controlHeight is set. ### What is actually happening? When controlHeight is set in the theme configuration, the Select component (select options) starts jerking during text input. This issue does not occur when controlHeight is unset. | Environment | Info | | --- | --- | | antd | 5.22.7 | | React | react 18.x.x | | System | ubuntu 22 | | Browser | chrome | <!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
unconfirmed
low
Minor
2,768,970,035
storybook
[Bug]: --exact-port Not Working
### Describe the bug `storybook dev --exact-port 6006` failed to run, while `storybook dev --port 6006` works. ### Reproduction link https://github.com/ianzone/react-storybook ### Reproduction steps 1. clone https://github.com/ianzone/react-storybook 2. pnpm install 3. run `storybook dev --exact-port 6006` ### System ```bash Storybook Environment Info: System: OS: Linux 5.15 Ubuntu 24.04.1 LTS 24.04.1 LTS (Noble Numbat) CPU: (20) x64 13th Gen Intel(R) Core(TM) i7-13800H Shell: 5.9 - /home/linuxbrew/.linuxbrew/bin/zsh Binaries: Node: 22.12.0 - /home/linuxbrew/.linuxbrew/opt/node@22/bin/node npm: 10.9.0 - /home/linuxbrew/.linuxbrew/opt/node@22/bin/npm pnpm: 9.15.2 - /home/linuxbrew/.linuxbrew/bin/pnpm <----- active npmPackages: @storybook/addon-a11y: ^8.4.7 => 8.4.7 @storybook/addon-coverage: ^1.0.5 => 1.0.5 @storybook/addon-essentials: ^8.4.7 => 8.4.7 @storybook/addon-interactions: ^8.4.7 => 8.4.7 @storybook/addon-links: ^8.4.7 => 8.4.7 @storybook/blocks: ^8.4.7 => 8.4.7 @storybook/react: ^8.4.7 => 8.4.7 @storybook/react-vite: ^8.4.7 => 8.4.7 @storybook/test: ^8.4.7 => 8.4.7 @storybook/test-runner: ^0.21.0 => 0.21.0 chromatic: ^11.22.0 => 11.22.0 storybook: ^8.4.7 => 8.4.7 ``` ### Additional context _No response_
bug,help wanted,cli
low
Critical
2,768,976,728
react-native
React 74.5: loading images from data: URIs fails on iOS 15, works on 18
### Description I think this is related to: https://github.com/facebook/react-native/issues/42234 I tried reproducing it in the Expo Stack, but was not able to do it with the example on the website (https://reactnative.dev/docs/image#src). I can only presume this is because this happens in a native component. Here is my code that is as close as possible to the error: ``` console.log(`image: ${image.substring(0, 50)}...`), <TouchableOpacity key={imgIndex} onPress={() => { setSelectedImage(image); setSelectedFileName(fileName); }}> <Image source={{ uri: image }} style={globalStyles.imageThumbnail} onError={(error) => console.error(`${error} image: ${image.substring(image.length-50, image.length)}`)} /> </TouchableOpacity> ``` Basically what causes the problem is that on iOS 15 (iphone 6s) the data uri that is being loaded by the Image component receives a `.png` at the end and a `file://` at the beginning. As seen here (this is the warning that is presented to me, I think it comes from the component) <img width="353" alt="image" src="https://github.com/user-attachments/assets/9500f7c7-98d3-4036-a38b-f5048dda8d69" /> And this is the console output (note the warning text with the base64 encoded image data ending with `.png`, whereas the uri parameter given to the `Image` component does not have it): ``` rarKc0szkF5Bp5VemorXUBIcBJkhGhB2NwDc7/teeZ7DaCF52NMLw9Ks9AsOHPx%0D%0A58aFAJoJFGcCqwY+56o4C88CtPBMtlNg9TerPI95m2m20gM0IA08V+W5qc9A9ByA%0D%0A9n3gcQCY90iFZ33TVbWu4Ox4Hjyzv77O2PjrBNDCGUpyVZpVn8312JjqXPfdzQBd%0D%0A4RlVl23sHCrQLCgkKG9XFxRuH8raNYiO/xl4FqBRobnht6wdn6l5EM3fzr+l/5s+%0D%0AL4Jnji0D6P8HoPs5K+6F5G8AAAAASUVORK5CYII=.png ERROR [object Object] image: zr+l/5s+ L4Jnji0D6P8HoPs5K+6F5G8AAAAASUVORK5CYII= ``` On iOS 18 this behavior (adding png and file) does not get triggered. Edit: I did some digging, and the function that shows the `Could not find image warning` from the screenshot, which already contains the malformed URI, does not even get triggered on the newer iOS version. To test this, I adjusted the code for both locations where the error is triggered: ``` - (nullable RCTImageLoaderCancellationBlock)loadImageForURL:(NSURL *)imageURL size:(CGSize)size scale:(CGFloat)scale resizeMode:(RCTResizeMode)resizeMode progressHandler:(RCTImageLoaderProgressBlock)progressHandler partialLoadHandler:(RCTImageLoaderPartialLoadBlock)partialLoadHandler completionHandler:(RCTImageLoaderCompletionBlock)completionHandler { UIImage *image = RCTImageFromLocalAssetURL(imageURL); NSString *message = [NSString stringWithFormat:@"CHANGED2_LOGCould not find image %@", imageURL]; RCTLogWarn(@"%@", message); if (image) { if (progressHandler) { progressHandler(1, 1); } completionHandler(nil, image); } else { NSString *message = [NSString stringWithFormat:@"CHANGED2Could not find image %@", imageURL]; RCTLogWarn(@"%@", message); completionHandler(RCTErrorWithMessage(message), nil); } return nil; } ``` and ``` - (nullable RCTImageLoaderCancellationBlock)loadImageForURL:(NSURL *)imageURL size:(CGSize)size scale:(CGFloat)scale resizeMode:(RCTResizeMode)resizeMode progressHandler:(RCTImageLoaderProgressBlock)progressHandler partialLoadHandler:(RCTImageLoaderPartialLoadBlock)partialLoadHandler completionHandler:(RCTImageLoaderCompletionBlock)completionHandler { UIImage *image = RCTImageFromLocalAssetURL(imageURL); NSString *message = [NSString stringWithFormat:@"CHANGED_LOGCould not find image %@", imageURL]; RCTLogWarn(@"%@", message); if (image) { if (progressHandler) { progressHandler(1, 1); } completionHandler(nil, image); } else { NSString *message = [NSString stringWithFormat:@"CHANGEDCould not find image %@", imageURL]; RCTLogWarn(@"%@", message); completionHandler(RCTErrorWithMessage(message), nil); } return nil; } ``` For reference, `loadImageForURL` is the one getting triggered on iOS 15, and no logs are generated on iOS 18. ### Steps to reproduce hand over data uri with base64 encoded image in <Image source={{ uri: image }} ### React Native Version 0.74.5 ### Affected Platforms Runtime - iOS ### Output of `npx react-native info` ```text System: OS: macOS 15.1.1 CPU: (14) arm64 Apple M4 Pro Memory: 202.11 MB / 48.00 GB Shell: version: "5.9" path: /bin/zsh Binaries: Node: version: 23.3.0 path: /opt/homebrew/bin/node Yarn: Not Found npm: version: 10.9.0 path: /opt/homebrew/bin/npm Watchman: version: 2024.12.02.00 path: /opt/homebrew/bin/watchman Managers: CocoaPods: version: 1.16.2 path: /opt/homebrew/bin/pod SDKs: iOS SDK: Platforms: - DriverKit 24.2 - iOS 18.2 - macOS 15.2 - tvOS 18.2 - visionOS 2.2 - watchOS 11.2 Android SDK: API Levels: - "25" - "33" - "34" Build Tools: - 34.0.0 - 35.0.0 System Images: - android-24 | ARM 64 v8a - android-35 | Google Play ARM 64 v8a Android NDK: Not Found IDEs: Android Studio: 2024.2 AI-242.23339.11.2421.12550806 Xcode: version: 16.2/16C5032a path: /usr/bin/xcodebuild Languages: Java: version: 17.0.13 path: /usr/bin/javac Ruby: version: 2.6.10 path: /usr/bin/ruby npmPackages: "@react-native-community/cli": Not Found react: installed: 18.2.0 wanted: 18.2.0 react-native: installed: 0.74.5 wanted: 0.74.5 react-native-macos: Not Found npmGlobalPackages: "*react-native*": Not Found Android: hermesEnabled: true newArchEnabled: false iOS: hermesEnabled: true newArchEnabled: false ``` ### Stacktrace or Logs ```text see in main message, but here: rarKc0szkF5Bp5VemorXUBIcBJkhGhB2NwDc7/teeZ7DaCF52NMLw9Ks9AsOHPx%0D%0A58aFAJoJFGcCqwY+56o4C88CtPBMtlNg9TerPI95m2m20gM0IA08V+W5qc9A9ByA%0D%0A9n3gcQCY90iFZ33TVbWu4Ox4Hjyzv77O2PjrBNDCGUpyVZpVn8312JjqXPfdzQBd%0D%0A4RlVl23sHCrQLCgkKG9XFxRuH8raNYiO/xl4FqBRobnht6wdn6l5EM3fzr+l/5s+%0D%0AL4Jnji0D6P8HoPs5K+6F5G8AAAAASUVORK5CYII=.png ERROR [object Object] image: zr+l/5s+ L4Jnji0D6P8HoPs5K+6F5G8AAAAASUVORK5CYII= ``` ``` ### Reproducer https://snack.expo.dev/@btr/image-example ### Screenshots and Videos _No response_
Platform: iOS,Issue: Author Provided Repro,Component: Image,Newer Patch Available
low
Critical
2,768,976,977
tauri
[bug] Cannot resize window with custom titlebar when "unstable" feature is enabled on Windows
### Describe the bug This issue probably reopened this one (https://github.com/tauri-apps/tauri/issues/8519), also look at the recent comments for additional context. ### Reproduction 1. `pnpm create tauri-app` 2. Duplicate code from [here](https://v2.tauri.app/learn/window-customization/#creating-a-custom-titlebar) and update permissions 3. Change `tauri.conf.json` ``` "windows": [ { "title": "resize-bug", "width": 800, "height": 600, "decorations": false, "transparent": true, "shadow": false } ], ``` 4. Now if you run `pnpm tauri dev` resize will work. 5. Update `Cargo.toml` ``` tauri = { version = "2", features = ["unstable"] } ``` 6. Now resize doesn't work. ### Expected behavior The application is able to be resize when "unstable" feature is enabled and "decorations": false. ### Full `tauri info` output ```text [✔] Environment - OS: Windows 10.0.19045 x86_64 (X64) ✔ WebView2: 128.0.2739.67 ✔ MSVC: Visual Studio Community 2022 ✔ rustc: 1.79.0 (129f3b996 2024-06-10) ✔ cargo: 1.79.0 (ffa9cf99a 2024-06-03) ✔ rustup: 1.27.1 (54dd3d00f 2024-04-24) ✔ Rust toolchain: stable-x86_64-pc-windows-msvc (default) - node: 20.15.0 - pnpm: 9.5.0 - npm: 10.7.0 [-] Packages - tauri 🦀: 2.2.0 - tauri-build 🦀: 2.0.4 - wry 🦀: 0.48.0 - tao 🦀: 0.31.1 - @tauri-apps/api : 2.2.0 - @tauri-apps/cli : 2.2.2 [-] Plugins [-] App - build-type: bundle - CSP: unset - frontendDist: ../dist - devUrl: http://localhost:1420/ - bundler: Vite ``` ### Stack trace _No response_ ### Additional context _No response_
type: bug,status: needs triage,scope: unstable flag
low
Critical
2,768,977,645
rust
Tracking issue for release notes of #119286: show linker output even if the linker succeeds
This issue tracks the release notes text for #119286. ### Steps - [ ] Proposed text is drafted by PR author (or team) making the noteworthy change. - [ ] Issue is nominated for release team review of clarity for wider audience. - [ ] Release team includes text in release notes/blog posts. ### Release notes text The responsible team for the underlying change should edit this section to replace the automatically generated link with a succinct description of what changed, drawing upon text proposed by the author (either in discussion or through direct editing). ````markdown # Compiler - [Stop silencing linker warnings](https://github.com/rust-lang/rust/pull/119286) ```` > [!TIP] > Use the [previous releases](https://doc.rust-lang.org/nightly/releases.html) categories to help choose which one(s) to use. > The category will be de-duplicated with all the other ones by the release team. > > *More than one section can be included if needed.* ### Release blog section If the change is notable enough for inclusion in the blog post, the responsible team should add content to this section. *Otherwise leave it empty.* ````markdown ```` cc @jyn514, @bjorn3 -- origin issue/PR authors and assignees for starting to draft text
A-linkage,T-compiler,relnotes,relnotes-tracking-issue
low
Minor
2,768,980,196
godot
set_content_scale_size doesn't stretch correctly
### Tested versions 4.4.dev7 ### System information Windows 10, Godot 4.4.dev7 ### Issue description Using `set_content_scale_size` to set a new scale for the viewport results in the window being cropped and unusually scaled. Here's how it appears before using content scale: ![Image](https://github.com/user-attachments/assets/1b2e37ab-101e-49c3-a560-3bb0e899c6ff) The viewport size is 160x200 and I'm attempting to use `get_tree().get_root().set_content_scale_size(Vector2i(320,200))` to create a double-width pixel ratio: ![Image](https://github.com/user-attachments/assets/ca456297-4386-4e1f-93d8-65a06cde0a07) This is how it appears: ![Image](https://github.com/user-attachments/assets/c25d198b-fec2-4126-8491-f647a21175f5) The top is cropped and the width is not really much wider. Here's how it is meant to look: ![Image](https://github.com/user-attachments/assets/2f3d93c1-4493-4d7b-b7d0-8a0820eb9193) ### Steps to reproduce Enable the line `get_tree().get_root().set_content_scale_size(Vector2i(320,200))` in the example project. ### Minimal reproduction project (MRP) [teststretch.zip](https://github.com/user-attachments/files/18308037/teststretch.zip)
topic:rendering,documentation
low
Major
2,768,986,999
yt-dlp
Douyu live downloader appears to use the wrong URL
### DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE - [X] I understand that I will be **blocked** if I *intentionally* remove or skip any mandatory\* field ### Checklist - [X] I'm reporting that yt-dlp is broken on a **supported** site - [X] I've verified that I have **updated yt-dlp to nightly or master** ([update instructions](https://github.com/yt-dlp/yt-dlp#update-channels)) - [X] I've checked that all provided URLs are playable in a browser with the same IP and same login details - [X] I've checked that all URLs and arguments with special characters are [properly quoted or escaped](https://github.com/yt-dlp/yt-dlp/wiki/FAQ#video-url-contains-an-ampersand--and-im-getting-some-strange-output-1-2839-or-v-is-not-recognized-as-an-internal-or-external-command) - [X] I've searched [known issues](https://github.com/yt-dlp/yt-dlp/issues/3766) and the [bugtracker](https://github.com/yt-dlp/yt-dlp/issues?q=) for similar issues **including closed ones**. DO NOT post duplicates - [X] I've read the [guidelines for opening an issue](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#opening-an-issue) - [x] I've read about [sharing account credentials](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#are-you-willing-to-share-account-details-if-needed) and I'm willing to share it if required ### Region Sweden ### Provide a description that is worded well enough to be understood Downloading livestreams from douyu doesn't work and this appears to be because it's using the wrong URL. yt-dlp attempts to get the livestream from "https://wsa.douyucdn.cn/..." which results in a 403 response but the browser seems to use "https://wsa.douyucdn.cn/live/...". ### Provide verbose output that clearly demonstrates the problem - [X] Run **your** yt-dlp command with **-vU** flag added (`yt-dlp -vU <your command line>`) - [x] If using API, add `'verbose': True` to `YoutubeDL` params instead - [X] Copy the WHOLE output (starting with `[debug] Command-line config`) and insert it below ### Complete Verbose Output ```shell [debug] Command-line config: ['-vU', 'https://www.douyu.com/252140'] [debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8 [debug] yt-dlp version [email protected] from yt-dlp/yt-dlp-nightly-builds [0b6b7742c] (zip) [debug] Python 3.13.1 (CPython x86_64 64bit) - Linux-6.12.7-arch1-1-x86_64-with-glibc2.40 (OpenSSL 3.4.0 22 Oct 2024, glibc 2.40) [debug] exe versions: ffmpeg 7.1 (setts), ffprobe 7.1, phantomjs 2.1.1 [debug] Optional libraries: certifi-2024.12.14, requests-2.32.3, sqlite3-3.47.2, urllib3-2.3.0 [debug] Proxy map: {} [debug] Request Handlers: urllib, requests [debug] Loaded 1837 extractors [debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp-nightly-builds/releases/latest Latest version: [email protected] from yt-dlp/yt-dlp-nightly-builds yt-dlp is up to date ([email protected] from yt-dlp/yt-dlp-nightly-builds) [DouyuTV] Extracting URL: https://www.douyu.com/252140 [DouyuTV] 252140: Downloading webpage [DouyuTV] 252140: Downloading room info WARNING: [DouyuTV] Unable to download JSON metadata: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer')) WARNING: [DouyuTV] unable to extract JS sign func; please report this issue on https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using yt-dlp -U [DouyuTV] 252140: Getting signing script [debug] Loading douyu.crypto-js-md5 from cache [DouyuTV] 252140: Executing JS signing script [debug] [DouyuTV] PhantomJS command line: phantomjs --ssl-protocol=any /tmp/tmp3y6ybflu [DouyuTV] 252140: Downloading livestream format [DouyuTV] 252140: Downloading livestream format 4 [DouyuTV] 252140: Downloading livestream format 3 [DouyuTV] 252140: Downloading livestream format 2 WARNING: Extractor failed to obtain "title". Creating a generic title instead [debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec, channels, acodec, size, br, asr, proto, vext, aext, hasaud, source, id [debug] Default format spec: best/bestvideo+bestaudio [info] 252140: Downloading 1 format(s): 0 [debug] Invoking http downloader on "https://wsa.douyucdn.cn/252140rz7aIq14cx.flv?wsAuth=c015a434ab0e2ef168f7fc9e259d241b&token=web-h5-0-252140-4a0485261c3115820b2589f84fb2a8d2a9689931ae6e6381&logo=0&expire=0&did=41aa1c3a8f6f4efd8693591266b377e3&pt=2&st=0&sid=406802186&mcid2=0&origin=tct&fcdn=ws&fo=0&mix=0&isp=" ERROR: unable to download video data: HTTP Error 403: Forbidden Traceback (most recent call last): File "/home/ant/Downloads/yt-dlp/./yt-dlp/yt_dlp/YoutubeDL.py", line 3489, in process_info success, real_download = self.dl(temp_filename, info_dict) ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ant/Downloads/yt-dlp/./yt-dlp/yt_dlp/YoutubeDL.py", line 3209, in dl return fd.download(name, new_info, subtitle) ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ant/Downloads/yt-dlp/./yt-dlp/yt_dlp/downloader/common.py", line 464, in download ret = self.real_download(filename, info_dict) File "/home/ant/Downloads/yt-dlp/./yt-dlp/yt_dlp/downloader/http.py", line 367, in real_download establish_connection() ~~~~~~~~~~~~~~~~~~~~^^ File "/home/ant/Downloads/yt-dlp/./yt-dlp/yt_dlp/downloader/http.py", line 118, in establish_connection ctx.data = self.ydl.urlopen(request) ~~~~~~~~~~~~~~~~^^^^^^^^^ File "/home/ant/Downloads/yt-dlp/./yt-dlp/yt_dlp/YoutubeDL.py", line 4172, in urlopen return self._request_director.send(req) ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^ File "/home/ant/Downloads/yt-dlp/./yt-dlp/yt_dlp/networking/common.py", line 117, in send response = handler.send(request) File "/home/ant/Downloads/yt-dlp/./yt-dlp/yt_dlp/networking/_helper.py", line 208, in wrapper return func(self, *args, **kwargs) File "/home/ant/Downloads/yt-dlp/./yt-dlp/yt_dlp/networking/common.py", line 340, in send return self._send(request) ~~~~~~~~~~^^^^^^^^^ File "/home/ant/Downloads/yt-dlp/./yt-dlp/yt_dlp/networking/_requests.py", line 365, in _send raise HTTPError(res, redirect_loop=max_redirects_exceeded) yt_dlp.networking.exceptions.HTTPError: HTTP Error 403: Forbidden ```
site-bug,triage
low
Critical
2,769,007,862
godot
Double Precision MultiMeshInstance3D does not Scale Properly
### Tested versions - Reproducible in: 4.4.dev.double [bdf625b], 4.1.dev.double [dbcc7f3]. (I didn't personally check but @Zylann said it was also reproducible on a double precision build of Godot 4.3.) - Not reproducible on single precision builds. ### System information Godot v4.4.dev.mono (e369ef6e1 (Really bdf625b)) - Windows 11 (build 22631) - Multi-window, 2 monitors - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1080 (NVIDIA; 32.0.15.6590) - AMD Ryzen 7 3700X 8-Core Processor (16 threads) ### Issue description Expected: https://github.com/user-attachments/assets/8a2641ba-21b1-4ba5-816b-46dace461759 Actual: https://github.com/user-attachments/assets/50a6479c-7245-4820-8acd-9c8a354469f5 In double precision builds of godot it seems like the scale isn't being applied properly across the individual mesh instances within a MultiMeshInstance3D. The scale gets applied but the positions/origins of the instances aren't affected at all. ### Steps to reproduce Included is a MRP. In the MRP just open the one scene and attempt to scale the MultiMeshInstance3D or it's parent cube. The parent is unneeded but it helps illustrate what it should look like since when scaling it the cubes should stick to the surface of the parent cube. In general the steps to reproduce are: 1.) Run a double precision version of godot. 2.) Create a new scene and populate it with a MultiMeshInstance3D. 3.) Populate the MultiMeshInstance3D where each instance has some offset. 4.) Attempt to scale the MultiMeshInstance3D and observe each instance's position not change. ### Minimal reproduction project (MRP) [multimeshweirdness.zip](https://github.com/user-attachments/files/18308308/multimeshweirdness.zip)
bug,topic:rendering,topic:3d
low
Minor
2,769,008,457
storybook
[Bug]: `storybook dev` is watching ignored files
### Describe the bug when running `test-storybook --coverage`, `storybook dev` output follows ```bash 5:24:26 AM [vite] (client) page reload coverage/storybook/lcov-report/index.html 5:24:26 AM [vite] (ssr) page reload coverage/storybook/lcov-report/index.html (x2) 5:24:26 AM [vite] (client) page reload coverage/storybook/lcov-report/components/index.html 5:24:26 AM [vite] (ssr) page reload coverage/storybook/lcov-report/components/index.html (x2) 5:24:26 AM [vite] (client) page reload coverage/storybook/lcov-report/components/Button.tsx.html 5:24:26 AM [vite] (ssr) page reload coverage/storybook/lcov-report/components/Button.tsx.html (x2) 5:24:26 AM [vite] (client) page reload coverage/storybook/lcov-report/components/Header.tsx.html 5:24:26 AM [vite] (ssr) page reload coverage/storybook/lcov-report/components/Header.tsx.html (x2) 5:24:26 AM [vite] (client) page reload coverage/storybook/lcov-report/components/Page.tsx.html 5:24:26 AM [vite] (ssr) page reload coverage/storybook/lcov-report/components/Page.tsx.html (x2) 5:24:26 AM [vite] (client) page reload coverage/storybook/lcov-report/components/LoginForm/index.html 5:24:26 AM [vite] (ssr) page reload coverage/storybook/lcov-report/components/LoginForm/index.html (x2) 5:24:26 AM [vite] (client) page reload coverage/storybook/lcov-report/components/LoginForm/LoginForm.tsx.html 5:24:26 AM [vite] (ssr) page reload coverage/storybook/lcov-report/components/LoginForm/LoginForm.tsx.html (x2) ``` ### Reproduction link https://github.com/ianzone/react-storybook/tree/main ### Reproduction steps 1. clone https://github.com/ianzone/react-storybook/tree/main 2. pnpm i 3. pnpm run dev 4. pnpm run test:story ### System ```bash Storybook Environment Info: System: OS: Linux 5.15 Ubuntu 24.04.1 LTS 24.04.1 LTS (Noble Numbat) CPU: (20) x64 13th Gen Intel(R) Core(TM) i7-13800H Shell: 5.9 - /home/linuxbrew/.linuxbrew/bin/zsh Binaries: Node: 22.12.0 - /home/linuxbrew/.linuxbrew/opt/node@22/bin/node npm: 10.9.0 - /home/linuxbrew/.linuxbrew/opt/node@22/bin/npm pnpm: 9.15.2 - /home/linuxbrew/.linuxbrew/bin/pnpm <----- active npmPackages: @storybook/addon-a11y: ^8.4.7 => 8.4.7 @storybook/addon-coverage: ^1.0.5 => 1.0.5 @storybook/addon-essentials: ^8.4.7 => 8.4.7 @storybook/addon-interactions: ^8.4.7 => 8.4.7 @storybook/addon-links: ^8.4.7 => 8.4.7 @storybook/blocks: ^8.4.7 => 8.4.7 @storybook/react: ^8.4.7 => 8.4.7 @storybook/react-vite: ^8.4.7 => 8.4.7 @storybook/test: ^8.4.7 => 8.4.7 @storybook/test-runner: ^0.21.0 => 0.21.0 chromatic: ^11.22.0 => 11.22.0 storybook: ^8.4.7 => 8.4.7 ``` ### Additional context _No response_
bug,core
low
Critical
2,769,013,617
next.js
removal of apple-mobile-web-app-capable results in splash screens not working
### Link to the code that reproduces this issue https://github.com/jwanner83/next-apple-web-app-issue ### To Reproduce 1. Checkout this repo https://github.com/jwanner83/next-apple-web-app-issue ### Working example with workaround https://github.com/user-attachments/assets/a12c17f3-c8de-4b36-ab71-b4429626bb03 In this example, I am adding the required meta tag in the root layout through html: https://github.com/jwanner83/next-apple-web-app-issue/blob/main/working-with-workaround/app/layout.tsx#L167 2. Go to [working-with-workaround](https://github.com/jwanner83/next-apple-web-app-issue/tree/main/working-with-workaround) 3. `pnpm i` 4. `pnpm dev` 5. Visit the page with an iPhone and add the page to the home screen 6. Open the linked page <- You will see a yellow screen on startup of the page ### Not working example https://github.com/user-attachments/assets/0aee2a93-0aff-4f11-ab9e-d8585ca91204 In this example, I am simply using the `appleWebApp` property inside the Metadata object. https://github.com/jwanner83/next-apple-web-app-issue/blob/main/working-with-workaround/app/layout.tsx#L6 (This used to work before v15.0.0 / before the pull request https://github.com/vercel/next.js/pull/70363 was merged and released) 7. Go to [not-working](https://github.com/jwanner83/next-apple-web-app-issue/tree/main/not-working) 8. `pnpm i` 9. `pnpm dev` 10. Visit the page with an iPhone and add the page to the home screen 11. Open the linked page <- You will see a black screen on startup of the page, not the desired yellow startup image. ### Current vs. Expected behavior I understand that the tag `apple-mobile-web-app-capable` is marked as deprecated and should be replaced with mobile-`web-app-capable` but for the sake of not breaking things, that safari requires, I would want the tag to be added in addition to the `mobile-web-app-capable`. ### Provide environment information ```bash Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 24.2.0: Fri Dec 6 19:02:12 PST 2024; root:xnu-11215.61.5~2/RELEASE_ARM64_T6031 Available memory (MB): 36864 Available CPU cores: 14 Binaries: Node: 20.18.1 npm: 10.8.2 Yarn: 1.22.22 pnpm: 9.15.2 Relevant Packages: next: 15.1.1-canary.25 // Latest available version is detected (15.1.1-canary.25). eslint-config-next: N/A react: 19.0.0 react-dom: 19.0.0 typescript: 5.3.3 Next.js Config: output: N/A ``` ### Which area(s) are affected? (Select all that apply) Metadata ### Which stage(s) are affected? (Select all that apply) next dev (local), next start (local), Vercel (Deployed) ### Additional context The pull request https://github.com/vercel/next.js/pull/70363 which fixes the issue https://github.com/vercel/next.js/issues/70272 changed from the meta tag `<meta name="apple-mobile-web-app-capable" content="yes" />` to `<meta name="mobile-web-app-capable" content="yes" />` because apparently chrome tells the user that `apple-mobile-web-app-capable` is deprecated and should be replaced with `mobile-web-app-capable`. It was released with v15.0.0-canary.175 / v15.0.0 Unfortunately, the extremely bad documented apple splash screen feature for pwa https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariWebContent/ConfiguringWebApplications/ConfiguringWebApplications.html doesn't work when the `<meta name="apple-mobile-web-app-capable" content="yes" />` isn't set. The problem only occurres on iPhone devices.
Metadata
low
Minor
2,769,019,278
PowerToys
Keyboard Manager mapping of keys causes wacom device express keys to not function properly.
### Microsoft PowerToys version 0.87.1 ### Installation method PowerToys auto-update ### Running as admin None ### Area(s) with issue? Keyboard Manager ### Steps to reproduce being a long time mac user, and using a mac keyboard with my windows 11 computer, i remapped the keyboards control/command key with the windows key. ![Image](https://github.com/user-attachments/assets/4fac10e8-ca69-41d1-881e-f41a8b7915b0) I was setting up my wacom tablet intuos pro (pth-451) some of the express key options would not work. specifically any that used the control key, such as undo and redo, it would act as if i had pressed windows-z instead of control-z for undo. ### ✔️ Expected Behavior expecting the keyboard remapping to be system wide (all devices such as a tablet) and not just for a keyboard. When i turn off keyboard manager the wacom tablet works as expected. ### ❌ Actual Behavior when using the express key set up to use control-z it would do windows z instead. ### Other Software Was using wacoms setting software to set up express keys to keyboard short cuts and for using adobe illustrator 29.1
Issue-Bug,Needs-Triage
low
Minor
2,769,024,402
TypeScript
Unable to execute "move to new file" on constant referencing nextjs type
### 🔎 Search Terms "move to new file", "addImportFromExportedSymbol", "Debug Failure" ### 🕗 Version & Regression Information - This changed between versions `5.4` and `5.5` and is present on the current nightly `5.8.0-dev.20250104` ### ⏯ Playground Link Minimal reproduction with instructions: https://github.com/dnjstrom/move-to-new-file-next-repro ### 💻 Code ```ts import type { Metadata } from "next"; const metadata: Metadata = {}; export default metadata; ``` ### 🙁 Actual behavior Trying to execute the "Move to a new file" refactoring on the `const metadata: Metadata = {};` line does nothing and an error is logged by the tsserver. ``` Err 5265 [22:21:07.805] Exception on executing command { "seq": 1007, "type": "request", "command": "getEditsForRefactor", "arguments": { "file": "/Users/daniel/Code/move-to-new-file-repro/src/next.ts", "startLine": 3, "startOffset": 1, "endLine": 3, "endOffset": 31, "refactor": "Move to a new file", "action": "Move to a new file", "startPosition": 39, "endPosition": 69 } }: Debug Failure. Error: Debug Failure. at Object.addImportFromExportedSymbol (/Users/daniel/Code/move-to-new-file-repro/node_modules/typescript/lib/typescript.js:154243:32) at /Users/daniel/Code/move-to-new-file-repro/node_modules/typescript/lib/typescript.js:144288:19 at Map.forEach (<anonymous>) at addTargetFileImports (/Users/daniel/Code/move-to-new-file-repro/node_modules/typescript/lib/typescript.js:144282:17) at getNewStatementsAndRemoveFromOldFile (/Users/daniel/Code/move-to-new-file-repro/node_modules/typescript/lib/typescript.js:143512:3) at doChange4 (/Users/daniel/Code/move-to-new-file-repro/node_modules/typescript/lib/typescript.js:144488:3) at /Users/daniel/Code/move-to-new-file-repro/node_modules/typescript/lib/typescript.js:144477:77 at _ChangeTracker.with (/Users/daniel/Code/move-to-new-file-repro/node_modules/typescript/lib/typescript.js:174306:5) at Object.getRefactorEditsToMoveToNewFile [as getEditsForAction] (/Users/daniel/Code/move-to-new-file-repro/node_modules/typescript/lib/typescript.js:144477:60) at Object.getEditsForRefactor (/Users/daniel/Code/move-to-new-file-repro/node_modules/typescript/lib/typescript.js:142603:31) at Object.getEditsForRefactor2 [as getEditsForRefactor] (/Users/daniel/Code/move-to-new-file-repro/node_modules/typescript/lib/typescript.js:149939:32) at proxy.<computed> [as getEditsForRefactor] (/Users/daniel/.vscode/extensions/mxsdev.typescript-explorer-0.4.2/node_modules/@ts-type-explorer/typescript-plugin/dist/index.js:15:15) at IpcIOSession.getEditsForRefactor (/Users/daniel/Code/move-to-new-file-repro/node_modules/typescript/lib/typescript.js:191087:49) at getEditsForRefactor (/Users/daniel/Code/move-to-new-file-repro/node_modules/typescript/lib/typescript.js:189305:43) at /Users/daniel/Code/move-to-new-file-repro/node_modules/typescript/lib/typescript.js:191491:69 at IpcIOSession.executeWithRequestId (/Users/daniel/Code/move-to-new-file-repro/node_modules/typescript/lib/typescript.js:191483:14) at IpcIOSession.executeCommand (/Users/daniel/Code/move-to-new-file-repro/node_modules/typescript/lib/typescript.js:191491:29) at IpcIOSession.onMessage (/Users/daniel/Code/move-to-new-file-repro/node_modules/typescript/lib/typescript.js:191533:51) at process.<anonymous> (/Users/daniel/Code/move-to-new-file-repro/node_modules/typescript/lib/tsserver.js:523:14) at process.emit (node:events:518:28) at emit (node:internal/child_process:950:14) at process.processTicksAndRejections (node:internal/process/task_queues:83:21) File text of /Users/daniel/Code/move-to-new-file-repro/src/next.ts: import type { Metadata } from "next"; const metadata: Metadata = {}; export default metadata; ``` ### 🙂 Expected behavior The metadata constant should be moved to a separate file ### Additional information about the issue This appears to be to some degree a specific interaction with the `next` module, as doing the same thing with a type from `react` works well. Downgrading to typescript 5.4 also works.
Bug,Help Wanted
low
Critical
2,769,025,513
deno
Cannot read properties of undefined (reading 'variables') => process.config
I updated to Deno 2.X few months ago, and I had an issue when using Neo4j package from NPM (even with the latest Deno version. 2.1.4): ```ts import neo4j from "npm:[email protected]"; const driver = neo4j.driver("bolt://localhost:7687", neo4j.auth.basic("neo4j", "0000")); ``` I got the following error: ``` error: Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'variables') at getSystemInfo (file:///Users/heziode/Library/Caches/deno/npm/registry.npmjs.org/neo4j-driver-core/5.27.0/lib/internal/bolt-agent/node/bolt-agent.js:30:34) at Object.fromVersion (file:///Users/heziode/Library/Caches/deno/npm/registry.npmjs.org/neo4j-driver-core/5.27.0/lib/internal/bolt-agent/node/bolt-agent.js:40:22) at Object.driver (file:///Users/heziode/Library/Caches/deno/npm/registry.npmjs.org/neo4j-driver/5.27.0/lib/index.js:205:63) at file:///Path/To/Project/script.ts:3:22 ``` The line in `bolt-agent.js`: ```js hostArch: process.config.variables.host_arch, ``` Version: Deno 2.1.4 OS: macOS (but I can reprooduce on Debian) --- The script works with Deno 1.46.3
bug,node compat,quick fix
low
Critical
2,769,031,021
godot
OpenXR Stereoscopic matrix not returning the correct projection matrix
### Tested versions here's my code: ```python # this doesn't work var left_eye_proj_matrix = interface.get_projection_for_view(0, image_size.x / image_size.y, 0.05, 4000).inverse() var right_eye_proj_matrix = interface.get_projection_for_view(1, image_size.x / image_size.y, 0.05, 4000).inverse() var left_eye_view_matrix = interface.get_transform_for_view(0, camera.global_transform).inverse() var right_eye_view_matrix = interface.get_transform_for_view(1, camera.global_transform).inverse() # this works as intended # var proj_matrix := camera.get_camera_projection().inverse() # var cam_to_world_matrix = camera.global_transform ``` i set those matrices to my compute shader and here's how i use it: ```glsl layout(set = 0, binding = 1, std430) restrict buffer CameraData { mat4 leftEyeProjMatrix; mat4 leftEyeViewMatrix; mat4 rightEyeProjMatrix; mat4 rightEyeViewMatrix; } ... Ray CreateCameraRay(vec2 uv) { mat4 _CameraToWorld = camera_data.leftEyeViewMatrix; mat4 _CameraInverseProjection = camera_data.leftEyeProjMatrix; if(uv.x >= 0.5) { _CameraToWorld = camera_data.rightEyeViewMatrix; _CameraInverseProjection = camera_data.rightEyeProjMatrix; } vec3 origin = _CameraToWorld[3].xyz; vec3 direction = (_CameraInverseProjection * vec4(uv, 0.0, 1.0)).xyz; direction = (_CameraToWorld * vec4(direction, 0.0)).xyz; direction = normalize(direction); return CreateRay(origin, direction); } ``` but if you adapt the shader to work with the normal ### System information Godot v4.3.stable.mono - Windows 10.0.22631 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 4070 Laptop GPU (NVIDIA; 32.0.15.6070) - 13th Gen Intel(R) Core(TM) i9-13900H (20 Threads) ### Issue description so i'm working on a VR project and i wanna use a compute shader to render stuff to the HMD, i have the compute shader rendering correctly to a normal application (windows application, no HMD) and i have a shader to blit the output to the HMD in another project, so far everything was working but when i tried to get the projection matrix and view matrix for each eye, for some reason, the output of the `XRInterface.get_projection_for_view` method returns a weird projection matrix, i know "weird" is not enough to explain the issue, so here i'll list what i found: 1. eye projection matrices are rotated, if you rotate the HMD over the Z axis the projection matrix rotate over the Y axis and if you rotate over the Y axis then the matrix rotation is weird (here weird is used because there's no way to explain it) 2. projection matrix breaks on rotation, when moving the HMD around i noticed that the projection (or fov) was increasing and decreasing 3. the view projection matrix is not being calculated well, maybe because the reference matrix i'm using to get it Edit: - The view matrix has nothing to do with the issue although i'd love to know if im calculating it correctly, but passing any value (camera.global_transform, XROrigin3D.global_transform and Node3D.global_trasnform) doesn't seems to change the issue in any way so the main problem is the projection matrix calculation ### Steps to reproduce 1. Create new project 2. Enable OpenXR and setup scene (the godot documentation explains it) 3. Enable OpenXR on script (viewport.use_xr) 4. Get eye projection matrix (XRInterface.get_projection_for_view(...)) 5. Test the projection matrix on a GLSL shader (i believe that setting the matrix to a normal camera will do the same) ### Minimal reproduction project (MRP) i dont know what to put here :( sorry
bug,topic:xr
low
Minor
2,769,032,502
ant-design
Form.Item broken when rendered in Column
### Reproduction link [![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/p/sandbox/3vmg28?file=%2Fsrc%2FApp.js%3A14%2C1-15%2C1) ### Steps to reproduce <Form> <Row> <Col> <Form.Item layout="vertical" name="input1" label="Input 1" help="What do I do" > <Input /> </Form.Item> <Form.Item layout="vertical" name="input1" label="Input 1"> <Input /> </Form.Item> </Col> </Row> </Form> ### What is expected? Form Item render on top of each other. ### What is actually happening? The form items overlap because of flex-col added in 5.18. | Environment | Info | | --- | --- | | antd | 5.18.0 | | React | Any | | System | Windows | | Browser | Edge | <!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
unconfirmed
low
Critical
2,769,037,937
vscode
Loading indicators when pasting
this is crazy yall, it's been like 6 months of this weird "loading" paste feature gets faster the less you're running, but even on a new m4 this keeps happening ![Image](https://github.com/user-attachments/assets/5966903a-d845-44f2-9e7d-1af77006f82b) - VS Code Version: 1.96.0 - OS Version: Mac 15.1 Steps to Reproduce: 1. Do any amount of heavy work 2. Copy and paste It seems that it for TypeScript Intellisense to finish before pasting, which it did not last year. It barely functions as an editor now. https://www.loom.com/share/187d5a342f044a1793b0e607fd415b3c
editor-clipboard
low
Major
2,769,044,898
pytorch
Cant’t find amdgpu.ids when installed in venv
I installed python via pyenv (tried both 3.11.11 and 3.12.8), created a venv and then installed torch in that virtual environment, this throws the warning “amdgpu.ids: No such file or directory” two times in a row, I assume one for the integrated GPU and another one for the dedicated one. But if instead I install torch directly on the global pyenv install this warning goes away and everything works as expected. I then tried installing torch in the global instance and then also in the venv and noticed that this got rid of the warnings when running in the venv. Turns out that torch in the venv still looks for the amdgpu.ids file in the location of the global install (/home/josef/.pyenv/versions/3.12.8/lib/python3.12/site-packages/torch/share/libdrm/amdgpu.ids) instead that on the venv location (/home/josef/CodeThings/PytorchThingsEnv/.venv/lib/python3.12/site-packages/torch/share/libdrm/amdgpu.ids) and if I remove the file from the global location, the warnings come back. Some information about the machine: CPU: Ryzen 7 7700X GPU: Radeon RX 7800 XT ROCm version: 6.2 OS: Arch Linux ### Versions Collecting environment information... amdgpu.ids: No such file or directory amdgpu.ids: No such file or directory PyTorch version: 2.5.1+rocm6.2 Is debug build: False CUDA used to build PyTorch: N/A ROCM used to build PyTorch: 6.2.41133-dd7f95766 OS: Arch Linux (x86_64) GCC version: (GCC) 14.2.1 20240910 Clang version: 18.1.8 CMake version: version 3.31.3 Libc version: glibc-2.40 Python version: 3.12.8 (main, Jan 5 2025, 00:50:31) [GCC 14.2.1 20240910] (64-bit runtime) Python platform: Linux-6.12.6-arch1-1-x86_64-with-glibc2.40 Is CUDA available: True CUDA runtime version: Could not collect CUDA_MODULE_LOADING set to: LAZY GPU models and configuration: AMD Radeon Graphics (gfx1101) Nvidia driver version: Could not collect cuDNN version: Could not collect HIP runtime version: 6.2.41133 MIOpen runtime version: 3.2.0 Is XNNPACK available: True CPU: Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Address sizes: 48 bits physical, 48 bits virtual Byte Order: Little Endian CPU(s): 16 On-line CPU(s) list: 0-15 Vendor ID: AuthenticAMD Model name: AMD Ryzen 7 7700X 8-Core Processor CPU family: 25 Model: 97 Thread(s) per core: 2 Core(s) per socket: 8 Socket(s): 1 Stepping: 2 Frequency boost: enabled CPU(s) scaling MHz: 64% CPU max MHz: 5573,0000 CPU min MHz: 545,0000 BogoMIPS: 8986,46 Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good amd_lbr_v2 nopl xtopology nonstop_tsc cpuid extd_apicid aperfmperf rapl pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 hw_pstate ssbd mba perfmon_v2 ibrs ibpb stibp ibrs_enhanced vmmcall fsgsbase bmi1 avx2 smep bmi2 erms invpcid cqm rdt_a avx512f avx512dq rdseed adx smap avx512ifma clflushopt clwb avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local user_shstk avx512_bf16 clzero irperf xsaveerptr rdpru wbnoinvd cppc arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic vgif x2avic v_spec_ctrl vnmi avx512vbmi umip pku ospke avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg avx512_vpopcntdq rdpid overflow_recov succor smca fsrm flush_l1d amd_lbr_pmc_freeze Virtualization: AMD-V L1d cache: 256 KiB (8 instances) L1i cache: 256 KiB (8 instances) L2 cache: 8 MiB (8 instances) L3 cache: 32 MiB (1 instance) NUMA node(s): 1 NUMA node0 CPU(s): 0-15 Vulnerability Gather data sampling: Not affected Vulnerability Itlb multihit: Not affected Vulnerability L1tf: Not affected Vulnerability Mds: Not affected Vulnerability Meltdown: Not affected Vulnerability Mmio stale data: Not affected Vulnerability Reg file data sampling: Not affected Vulnerability Retbleed: Not affected Vulnerability Spec rstack overflow: Mitigation; Safe RET Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization Vulnerability Spectre v2: Mitigation; Enhanced / Automatic IBRS; IBPB conditional; STIBP always-on; RSB filling; PBRSB-eIBRS Not affected; BHI Not affected Vulnerability Srbds: Not affected Vulnerability Tsx async abort: Not affected Versions of relevant libraries: [pip3] numpy==1.26.3 [pip3] pytorch-triton-rocm==3.1.0 [pip3] torch==2.5.1+rocm6.2 [pip3] torchaudio==2.5.1+rocm6.2 [pip3] torchvision==0.20.1+rocm6.2 [conda] Could not collect cc @seemethere @malfet @osalpekar @atalman @jeffdaily @sunway513 @jithunnair-amd @pruthvistony @ROCmSupport @dllehr-amd @jataylo @hongxiayang @naromero77amd
module: binaries,module: rocm,triaged
low
Critical
2,769,061,397
node
Readable.fromWeb doesn't end on empty string
### Version v23.5.0 ### Platform ```text Linux xiaomi-mi-pro-gtx 6.8.0-51-generic #52-Ubuntu SMP PREEMPT_DYNAMIC Thu Dec 5 13:09:44 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux ``` ### Subsystem _No response_ ### What steps will reproduce the bug? ```js import { Readable } from "node:stream"; const response = new Response({ async *[Symbol.asyncIterator]() { yield '' // works only with non-empty string } }) const stream = Readable.fromWeb(response.body); // const stream = Readable.from('') // works as expected stream.on('data', chunk => { console.log(`data: ${chunk}`) }) stream.on('end', () => { console.log('ended') }); ``` ### How often does it reproduce? Is there a required condition? Always ### What is the expected behavior? Why is that the expected behavior? Similar to the `Readable.from` stream, the `Readable.fromWeb` stream should trigger both 'data' & 'end' events. ### What do you see instead? `data` & `end` events are only triggered, when the response string is not empty. ### Additional information _No response_
stream,web streams
low
Critical
2,769,066,850
PowerToys
Power Toys - Image Resizer - 2 things
### Description of the new feature / enhancement 1) Almost what I need. The matching of the smallest dimension when resizing is what messes me up. What I want is to resize a directory full of images such that none of them are larger than, say, 1000 px in the **largest** direction, regardless of the orientation as long as it maintains the length/width ratio. For example: something that is 2100x3000 ends up 700x1000, while something 2000x1600 ends up 1000x800. 2) Renaming needs more work. I can tell it to rename the images to **%1 (%2)** as the docs show, but I want some custom text in the new name too. I'd like the new name spec to allow **%1 V2** or something like that which just appends some text on the filename. If I then leave the resized files in the source directory they will sort right behind the originals and I can see the effects of my resizing more easily. If there are ways to accomplish these things with the Resizer "as is", then I apologize for not figuring it out and I'd appreciate some guidance to make it work the way I want it. ### Scenario when this would be used? See above, it's all there. ### Supporting information _No response_
Needs-Triage
low
Minor
2,769,067,633
neovim
Nvim can be a Lua host; Lua plugins can define RPC method/request handlers
### Problem Although https://github.com/neovim/neovim/issues/11474 is closed, Nvim still has [test/client/](https://github.com/neovim/neovim/tree/64b0e6582ae8c273efbe39109bcb261079c2bcd4/test/client) because Nvim itself cannot yet easily perform as a RPC host which can *receive* requests/notifications. This is because: - no way to define a RPC method/notification handler in a Nvim Lua plugin ### Expected behavior Eliminate `test/client/`. Nvim Lua plugins can easily: - define a RPC method handler, so a client can make a RPC request to `foo` and the method handler can handle it and return a result. Just like node-client, pynvim, etc., already can. - design: implement as `RpcRequest` event (autocmd)? - ⚠ need ability for autocmds to (1) receive parameters and (2) return results. - allows [vim.on_func()](https://github.com/neovim/neovim/pull/22598) to fully use the event subsystem, and avoid reinventing its own event subsystem
enhancement,plugin,channels-rpc,lua,remote-plugin
low
Minor
2,769,074,617
rust
rustc fails to build trivial hello world program; cargo build always fails : exit code: 0xc0000005, STATUS_ACCESS_VIOLATION
### Verification - [x] I searched for recent similar issues at https://github.com/rust-lang/rustup/issues?q=is%3Aissue+is%3Aopen%2Cclosed and found no duplicates. - [x] I am on the latest version of Rustup according to https://github.com/rust-lang/rustup/tags and am still able to reproduce my issue. ### Problem Hi, I have installed latest `rustup-init.exe`. Always i am getting build issue as below `exit code: 0xc0000005, STATUS_ACCESS_VIOLATION`. I have tried to reinstall couple of times still did not workout. ``` PS D:\rust-example> cargo new ex03 Creating binary (application) `ex03` package note: see more `Cargo.toml` keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html PS D:\rust-example> cd .\ex03\ PS D:\rust-example\ex03> cargo --version cargo 1.83.0 (5ffbef321 2024-10-29) PS D:\rust-example\ex03> rustc --version rustc 1.83.0 (90b35a623 2024-11-26) PS D:\rust-example\ex03> cargo build Compiling ex03 v0.1.0 (D:\rust-example\ex03) error: could not compile `ex03` (bin "ex03") Caused by: process didn't exit successfully: `C:\Users\LENOVO\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin\rustc.exe --crate-name ex03 --edition=2021 src/main.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=237 --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --check-cfg cfg(docsrs) --check-cfg "cfg(feature, values())" -C metadata=3c538b4ef1d2d27e --out-dir D:\rust-example\ex03\target\debug\deps -C incremental=D:\rust-example\ex03\target\debug\incremental -L dependency=D:\rust-example\ex03\target\debug\deps` (exit code: 0xc0000005, STATUS_ACCESS_VIOLATION) PS D:\rust-example\ex03> ``` Could you please help? ### Steps 1. Download and install _rustup-init.exe_ from [install exe from here](https://www.rust-lang.org/tools/install) 2. Create a sample project `cargo new ex03` 3. Perform `cargo build` Issue: It never build success. Always getting error as `exit code: 0xc0000005, STATUS_ACCESS_VIOLATION`. ### Possible Solution(s) _No response_ ### Notes I have tried to install `stable-x86_64-pc-windows-gnu` and checked however still did not worked out. Windows Version: ![Image](https://github.com/user-attachments/assets/39580038-c436-4029-a8f5-9ad03beeb968) ![Image](https://github.com/user-attachments/assets/7dc575f2-8b20-4bac-b683-f2de44495a54) ### Rustup version ```console cargo 1.83.0 (5ffbef321 2024-10-29) ``` ### Installed toolchains ```console Default host: x86_64-pc-windows-msvc rustup home: C:\Users\LENOVO\.rustup stable-x86_64-pc-windows-msvc (default) rustc 1.83.0 (90b35a623 2024-11-26) ``` ### OS version ```console Windows 11 Pro OS, Version 24H2 (OS Build 26100.2605) C:\Windows\System32>wmic os get osarchitecture OSArchitecture 64-bit ```
O-windows,T-compiler,C-discussion
medium
Critical
2,769,075,615
TypeScript
`./*.d.ts` required in `exports` to avoid `Cannot be named without a reference to... not portable...`
### 🔎 Search Terms The inferred type of '...' cannot be named without a reference to... This is likely not portable. A type annotation is necessary. ### 🕗 Version & Regression Information Between 5.3 to 5.7 (latest) ### ⏯ Playground Link _No response_ ### 💻 Code ### TSconfig of importing project ```ts { "compilerOptions": { "outDir": "./lib", "rootDir": "./src", "tsBuildInfoFile": "./lib/.tsbuildinfo", "target": "ESNext", "module":"ESNext", "moduleResolution":"bundler", "composite": true, "declarationMap": true, "sourceMap": true, "strict": true, "esModuleInterop": true, "forceConsistentCasingInFileNames": true, "noErrorTruncation": true, "verbatimModuleSyntax": true, "emitDeclarationOnly": true, "skipLibCheck": true, "allowJs": true, }, "include": ["src/**/*"] } ``` ### Package.json of project BEING IMPORTED ```json { "type": "module", "files": [ "lib/**/*", "src/**/*" ], "exports": { "./lib/*.d.ts": "./lib/*.d.ts", ".": { "types":"./lib/index.d.ts", "import":"./lib/index.js" } }, } ``` ### 🙁 Actual behavior If you do not include `"./lib/*.d.ts": "./lib/*.d.ts"` in the package.json of the imported project, you will receive the `...likely not portable...` error. However, in none of the documentations and searches I've seen was this written as a requirement. As a result, I assume it's a bug. The problem with the above solution is that it exposes the `.d.ts` files, which causes intellisense import suggestions to suggest two imports (one from the proper path, and one from the .d.ts path). Note: 1. The import is a **direct dependency**, not a transitive dependency. 2. Using `main:./lib/index.js` instead of `exports:...` also removes the error. ### 🙂 Expected behavior Should not need to explicitly export all types ### Additional information about the issue _No response_
Needs More Info
low
Critical
2,769,081,736
langchain
langchain_ollama 0.2.2 completely broke tool usage
### Checked other resources - [X] I added a very descriptive title to this issue. - [X] I searched the LangChain documentation with the integrated search. - [X] I used the GitHub search to find a similar question and didn't find it. - [X] I am sure that this is a bug in LangChain rather than my code. - [X] The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package). ### Example Code The following code (copied 99% from an example of tool usage in the documentation), run with langchain_ollama==0.2.2 ```from langchain_core.tools import tool from langchain_ollama.chat_models import ChatOllama @tool def get_weather(city: str): """Give me name of city, I return current weather""" return "19 degree and foggy" llm = ChatOllama(model="llama3.1").bind_tools(tools=[get_weather]) res = llm.invoke("what is the weather in London?") print(res.tool_calls[0]) ``` fails with `IndexError: list index out of range` `pip install -U langchain-ollama==0.2.1` and run the same code again and it works as expected, i.e., the output is `{'name': 'get_weather', 'args': {'city': 'London'}, 'id': '252c5e30-8332-4354-9986-f75d705a4bff', 'type': 'tool_call'}` ### Error Message and Stack Trace (if applicable) ``` Traceback (most recent call last): File "test_ollama_tools.py", line 11, in <module> print(res.tool_calls[0]) ~~~~~~~~~~~~~~^^^ IndexError: list index out of range ``` ### Description Langchain ollama should support tool calls, and have supported in the past, but even simple examples are not identified as tool calls. ### System Info System Information ------------------ > OS: Windows > OS Version: 10.0.22631 > Python Version: 3.12.8 (tags/v3.12.8:2dc476b, Dec 3 2024, 19:30:04) [MSC v.1942 64 bit (AMD64)] Package Information ------------------- > langchain_core: 0.3.28 > langchain: 0.3.13 > langchain_community: 0.3.13 > langsmith: 0.2.6 > langchain_ollama: 0.2.2 > langchain_openai: 0.2.14 > langchain_postgres: 0.0.12 > langchain_text_splitters: 0.3.4 > langgraph_sdk: 0.1.48 Optional packages not installed ------------------------------- > langserve Other Dependencies ------------------ > aiohttp: 3.11.11 > async-timeout: Installed. No version info available. > dataclasses-json: 0.6.7 > httpx: 0.27.2 > httpx-sse: 0.4.0 > jsonpatch: 1.33 > langsmith-pyo3: Installed. No version info available. > numpy: 1.26.4 > ollama: 0.4.4 > openai: 1.59.3 > orjson: 3.10.12 > packaging: 24.2 > pgvector: 0.2.5 > psycopg: 3.2.3 > psycopg-pool: 3.2.4 > pydantic: 2.10.4 > pydantic-settings: 2.7.0 > PyYAML: 6.0.2 > requests: 2.32.3 > requests-toolbelt: 1.0.0 > SQLAlchemy: 2.0.36 > sqlalchemy: 2.0.36 > tenacity: 9.0.0 > tiktoken: 0.8.0 > typing-extensions: 4.12.2 > zstandard: Installed. No version info available.
🤖:bug,investigate
low
Critical
2,769,098,859
yt-dlp
xnxx.com: Add tags.
### DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE - [X] I understand that I will be **blocked** if I *intentionally* remove or skip any mandatory\* field ### Checklist - [X] I'm requesting a site-specific feature - [X] I've verified that I have **updated yt-dlp to nightly or master** ([update instructions](https://github.com/yt-dlp/yt-dlp#update-channels)) - [X] I've checked that all provided URLs are playable in a browser with the same IP and same login details - [X] I've searched [known issues](https://github.com/yt-dlp/yt-dlp/issues/3766) and the [bugtracker](https://github.com/yt-dlp/yt-dlp/issues?q=) for similar issues **including closed ones**. DO NOT post duplicates - [X] I've read the [guidelines for opening an issue](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#opening-an-issue) - [X] I've read about [sharing account credentials](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#are-you-willing-to-share-account-details-if-needed) and I'm willing to share it if required ### Region Germany ### Example URLs https://www.xnxx.com/video-55awb78/skyrim_test_video ### Provide a description that is worded well enough to be understood It should add the tags. Basically `div.video-content-metadata div.video-metadata div.video-tags a.is-keyword` `.forEach()` `.innerText()` ```html <div id="video-content-metadata" class="nb-comments-8"> <div class="clear-infobar"> <div class="video-title-container"> <div class="video-title"> <strong>Skyrim Test Video</strong> <button type="button" id="video-rename" class="" title="Edit title"> <span class="icon-f icf-pencil"></span> <span class="loader">...</span> </button> </div> <span class="metadata"> <a class="free-plate" href="/porn-maker/glurp">Glurp</a> 8min - 671,042 <span class="icon-f icf-eye"></span> </span> </div> </div> <div class="metadata-row video-metadata"> <div id="video-votes"><span class="metadata-btn metadata-btn-nobg"><span class="icon star-half"></span><span class="rating-box value">99.01%</span></span><span class="vote-actions"><a class="vote-action-good metadata-btn hide-if-zero-232"><span class="icon thumb-up"></span><span class="value">175</span></a><a class="vote-action-bad metadata-btn hide-if-zero-232"><span class="icon thumb-down"></span><span class="value">57</span></a></span></div><div class="tab-buttons"><a class="metadata-btn hide-if-zero-8" title="Comments"><span class="icon comments"></span><span class="value">8</span></a><a class="metadata-btn" title="Download"><span class="icon download"></span><span class="value mobile-show">&nbsp;</span></a><a class="metadata-btn" title="Embed"><strong>&lt;/&gt;</strong><span class="value mobile-show">&nbsp;</span></a><a class="metadata-btn" title="Report"><span class="icon flag"></span><span class="value mobile-show">&nbsp;</span></a></div> </div> <div class="metadata-row video-tags"> <em><u>Tags:</u></em>&nbsp;&nbsp; <a class="is-keyword" href="/search/3d">3d</a><a class="is-keyword" href="/search/rough">rough</a> <a class="is-keyword" href="/search/fantasy">fantasy</a> <a class="is-keyword" href="/search/game">game</a> <a class="is-keyword" href="/search/adventure">adventure</a> <a class="is-keyword" href="/search/skyrim">skyrim</a> <a href="#" class="suggestion" id="suggestion" title="Edit tags"> <span class="icon-f icf-pencil"></span><span ... ... ``` ### Provide verbose output that clearly demonstrates the problem - [X] Run **your** yt-dlp command with **-vU** flag added (`yt-dlp -vU <your command line>`) - [X] If using API, add `'verbose': True` to `YoutubeDL` params instead - [X] Copy the WHOLE output (starting with `[debug] Command-line config`) and insert it below ### Complete Verbose Output ```shell ➜ yt-dlp -vU https://www.xnxx.com/video-55awb78/skyrim_test_video [debug] Command-line config: ['-vU', 'https://www.xnxx.com/video-55awb78/skyrim_test_video'] [debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8 [debug] yt-dlp version [email protected] from yt-dlp/yt-dlp [65cf46cdd] (pip) [debug] Python 3.12.4 (CPython arm64 64bit) - macOS-14.4.1-arm64-arm-64bit (OpenSSL 3.3.2 3 Sep 2024) [debug] exe versions: ffmpeg 7.1 (setts), ffprobe 7.1, rtmpdump 2.4 [debug] Optional libraries: certifi-2024.12.14, mutagen-1.47.0, sqlite3-3.43.2, websockets-14.1 [debug] Proxy map: {} [debug] Request Handlers: urllib, websockets [debug] Loaded 1837 extractors [debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest Latest version: [email protected] from yt-dlp/yt-dlp yt-dlp is up to date ([email protected] from yt-dlp/yt-dlp) [XNXX] Extracting URL: https://www.xnxx.com/video-55awb78/skyrim_test_video [XNXX] 55awb78: Downloading webpage [XNXX] 55awb78: Downloading m3u8 information [debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec, channels, acodec, size, br, asr, proto, vext, aext, hasaud, source, id [debug] Default format spec: bestvideo*+bestaudio/best [info] 55awb78: Downloading 1 format(s): hls-1080p [debug] Invoking hlsnative downloader on "https://cdn77-vid.xnxx-cdn.com/pyAoXE-mNwWiJ0wjJ37Y_A==,1736059395/videos/hls/74/3d/dc/743ddc80bcb15712b3177ad7acfc5536-2/hls-1080p.m3u8" [download] Skyrim Test Video [55awb78].mp4 has already been downloaded [download] 100% of 165.87MiB ```
NSFW,site-enhancement,triage
low
Critical
2,769,108,649
PowerToys
I found myself using the dashboard a lot. I would love to see ways to customize it or pin the favourite modules on top.
### Description of the new feature / enhancement Dashboard ### Scenario when this would be used? Pin or customize dashboard so you don't need to look for it again when you want to turn it on. ### Supporting information I found myself using the dashboard a lot. I would love to see ways to customize it or pin the favourite modules on top.
Needs-Triage
low
Minor
2,769,120,145
godot
NavigationAgent2D.velocity_computed emits zero vector when NavigationAgent2D.set_velocity not called.
### Tested versions Using Godot Engine v4.3.stable.official [77dcf97d8] and bug appears both on my MacOS as well as Android exports. ### System information Godot Engine v4.3.stable.official [77dcf97d8] ### Issue description I have found that if I add the ability to disable navigation in my entity (while still using it to detect arrival), I must also disconnect the `NavigationAgent2D.velocity_computed` callback, even if I never call `NavigationAgent2D.set_velocity`, otherwise Vector2D.ZERO is pass to my callback function. It dose set the owner CharacterBody2D velocity to zero and strangely this does not effect the movement of the entity. But it does prevent me from using the owner velocity to chose the sprite, which is how I found the bug. ### Steps to reproduce Abbreviated code: ``` ## Unit no longer follows navigation, but goes streight to target. ## %NavigationAgent2D is still used to detect when arrived. @export var navigation_disabled: bool = false : set(value): navigation_disabled = value if navigation_disabled: %NavigationAgent2D.velocity_computed.disconnect(_set_owner_velocity) else: %NavigationAgent2D.velocity_computed.connect(_set_owner_velocity) func _ready(): # ... self.navigation_disabled = self.navigation_disabled func _set_owner_velocity(safe_velocity: Vector2): if not self.movement_disabled and self.target != Vector2.ZERO: self.owner.velocity = safe_velocity else: self.owner.velocity = Vector2.ZERO # ... func _physics_process(delta): # ... if %NavigationAgent2D.is_navigation_finished(): self.stop() self.arrived.emit() else: var current_pos = self.owner.global_position if self.navigation_disabled: var direction = current_pos.direction_to(self.target) var new_velocity = direction * self.get_total_speed() self._set_owner_velocity(new_velocity) else: var next_path_pos = %NavigationAgent2D.get_next_path_position() var direction = current_pos.direction_to(next_path_pos) var new_velocity = direction * self.get_total_speed() if %NavigationAgent2D.avoidance_enabled: %NavigationAgent2D.set_velocity(new_velocity) else: self._set_owner_velocity(new_velocity) ``` ### Minimal reproduction project (MRP) Complete code: ``` extends Node2D class_name Movement signal stopped signal stuck signal arrived ## Unit no longer follows navigation, but goes streight to target. ## %NavigationAgent2D is still used to detect when arrived. @export var navigation_disabled: bool = false : set(value): navigation_disabled = value if navigation_disabled: %NavigationAgent2D.velocity_computed.disconnect(_set_owner_velocity) else: %NavigationAgent2D.velocity_computed.connect(_set_owner_velocity) @export var movement_disabled: bool = false @export var stuck_time_limit: float = 0.333 @export var knockback_disabled: bool = false @export var knockback_factor: float = 1.0 @export var knockback_stacked: bool = true var block_finished: bool = false var knockback_vec: Vector2 = Vector2.ZERO var knockback_ttl: float = 0.0 var speed: float = 0.0 var stuck_time: float = 0.0 var target: Vector2 = Vector2.ZERO ## bufs and nerfs to speed {owner -> float value} var speed_factors: Dictionary = {} func _ready(): %NavigationAgent2D.radius = %CollisionShape2D.shape.radius self.navigation_disabled = self.navigation_disabled # TODO set %NavigationAgent2D.radius based on statsheet.size instead? self.owner.statsheet_updated.connect(self._set_statsheet_data) self._set_statsheet_data(self.owner.statsheet) func _set_statsheet_data(statsheet: Statsheet): self.speed = statsheet.speed * 16.0 %NavigationAgent2D.max_speed = self.owner.statsheet.speed * 16 %NavigationAgent2D.neighbor_distance = self.owner.statsheet.vision * 16 %NavigationAgent2D.navigation_layers = self.owner.statsheet.navigation_layers %NavigationAgent2D.avoidance_layers = self.owner.statsheet.avoidance_layers %NavigationAgent2D.avoidance_mask = self.owner.statsheet.avoidance_mask func on_damaged(src_hitbox: HitBox): # TODO based on hitbox speed & dammage vs unit max health var knockback_speed: float = 16 * 8 var knockback_time: float = 1.0 / 32.0 if not self.knockback_disabled: var direction = src_hitbox.owner.velocity.normalized() var hit_knockback_vec = ( direction * knockback_speed * self.knockback_factor ) if self.knockback_ttl > 0.0 and self.knockback_stacked: self.knockback_vec += hit_knockback_vec self.knockback_ttl += knockback_time else: self.knockback_vec = hit_knockback_vec self.knockback_ttl = knockback_time func start(target: Vector2): self.movement_disabled = false self.target = target func stop(): print("Movement stop") self.movement_disabled = true self.stuck_time = 0.0 self.owner.velocity = Vector2.ZERO self.stopped.emit() func _set_owner_velocity(safe_velocity: Vector2): if not self.movement_disabled and self.target != Vector2.ZERO: self.owner.velocity = safe_velocity else: self.owner.velocity = Vector2.ZERO if not self.knockback_disabled and self.knockback_ttl > 0.0: self.owner.velocity += self.knockback_vec func get_agent_velocity(): return self.owner.velocity - self.knockback_vec func get_total_speed(): var total = self.speed for owner_key in self.speed_factors: total *= self.speed_factors[owner_key] return total func _physics_process(delta): if not self.movement_disabled and self.target != Vector2.ZERO: %NavigationAgent2D.target_position = self.target if not self.block_finished and %NavigationAgent2D.is_navigation_finished(): print("Movement navigation finished") self.stop() self.arrived.emit() else: var current_pos = self.owner.global_position if self.navigation_disabled: var direction = current_pos.direction_to(self.target) var new_velocity = direction * self.get_total_speed() self._set_owner_velocity(new_velocity) else: var next_path_pos = %NavigationAgent2D.get_next_path_position() var direction = current_pos.direction_to(next_path_pos) var new_velocity = direction * self.get_total_speed() if %NavigationAgent2D.avoidance_enabled: %NavigationAgent2D.set_velocity(new_velocity) else: self._set_owner_velocity(new_velocity) else: self._set_owner_velocity(Vector2.ZERO) if self.owner.velocity != Vector2.ZERO: var prev_pos = self.owner.global_position self.owner.move_and_slide() # check if overshot target but only within close distancet to it # as to not break navigating around things from a distance var dist_moved = self.owner.global_position.distance_to(prev_pos) var dist_after = self.owner.global_position.distance_to(self.target) if ( not self.block_finished and dist_after < dist_moved and Utils.is_between(self.target, prev_pos, self.owner.global_position) ): print("Movement arrived and overshot") self.stop() self.arrived.emit() # TODO stuck detection via initial distance / speed vs total moving time? self.knockback_ttl -= delta ```
discussion,documentation,topic:navigation
low
Critical
2,769,120,625
godot
Jolt: Body penetration issues compared to GodotPhysics3D
### Tested versions - Reproducible in: v4.4.dev7.official [46c8f8c5c] ### System information Godot v4.4.dev7 - Windows 11 (build 26100) - Multi-window, 1 monitor - OpenGL 3 (Compatibility) - NVIDIA GeForce RTX 4060 Ti (NVIDIA; 32.0.15.6636) - 11th Gen Intel(R) Core(TM) i5-11400F @ 2.60GHz (12 threads) ### Issue description Compared to GodotPhysics3D, Jolt seems to exhibit object penetration issues, which can go up to 0.05m and does not depenetrate until the velocity becomes a very low amount, which is enough to cause a collision as demonstrated here. Jolt Physics on Default Settings; https://github.com/user-attachments/assets/d7d9a2b4-9631-4569-9f20-7f699399f5c9 GodotPhysics3D on Default Settings: https://github.com/user-attachments/assets/dcd5b799-4a4e-4c51-962c-38f0ccbd2d72 These settings do not seem to change anything about the simulation, the ball is still ~0.05m inside the box which causes it to bump on the ramp: `physics/jolt_physics_3d/simulation/velocity_steps` `physics/jolt_physics_3d/simulation/position_steps` `physics/jolt_physics_3d/simulation/penetration_slop` `physics/jolt_physics_3d/simulation/baumgarte_stabilization_factor` Everything under `physics/3d/solver` (although I'm guessing these are GodotPhysics3D only parameters). Setting Continuous CD on the Rigidbody does not change anything, and neither does changing any of CD settings under Jolt settings. The ONLY setting that seems to affect anything is `physics/jolt_physics_3d/simulation/speculative_contact_distance`, setting it to 0.07 fixes the issue at this velocity, setting `linear_velocity` to -100 or -200 in the rigidbody settings, will once again cause it to penetrate and stick to the floor and bump when touching the ramp. Also the documentation of the parameters mentions increasing it may cause ghost collision, so I'm scared to increase it too much cause my last attempt at a game reliant on RigidBodies suffered a lot from those. ### Steps to reproduce The MRP includes the setup shown in the videos, it reliably does the bump on default settings on my end. It was changed slightly to make it so the ball should be on Y 0.0 when reaching the floor, which I only thought of after recording. It's set up in a way that allows frame stepping. ### Minimal reproduction project (MRP) [joltpenetrationmrp.zip](https://github.com/user-attachments/files/18309194/joltpenetrationmrp.zip)
bug,topic:physics,topic:3d
low
Minor
2,769,120,840
godot
string exceeds 65535 bytes in length error when building cloned repo
### Tested versions Happens with the latest changes in the repo cloned to my hard drive. ### System information Windows 11 ### Issue description Windows 11. When I run the command `scons platform=windows` I get the following error multiple times. ``` .\servers/rendering/renderer_rd/shaders/effects/fsr_upscale.glsl.gen.h(13): fatal error C1091: compiler limit: string exceeds 65535 bytes in length scons: *** [platform\windows\os_windows.windows.editor.x86_64.obj] Error 2 ``` Based on the error itself, it sounds like it's an error in the code and not something on my end? Tried troubleshooting in the godot forums and google searching, and all I could find is it's likely an issue with the code in the repo.(But surely it would be happening to more people than just me?) The full error list is as follows ``` .\servers/rendering/renderer_rd/shaders/effects/fsr_upscale.glsl.gen.h(13): fatal error C1091: compiler limit: string exceeds 65535 bytes in length .\servers/rendering/renderer_rd/shaders/effects/fsr_upscale.glsl.gen.h(13): fatal error C1091: compiler limit: string exceeds 65535 bytes in length scons: *** [platform\windows\native_menu_windows.windows.editor.arm64.obj] Error 2 scons: *** [platform\windows\display_server_windows.windows.editor.arm64.obj] Error 2 .\servers/rendering/renderer_rd/shaders/effects/fsr_upscale.glsl.gen.h(13): fatal error C1091: compiler limit: string exceeds 65535 bytes in length scons: *** [platform\windows\os_windows.windows.editor.arm64.obj] Error 2 scons: building terminated because of errors. ``` ### Steps to reproduce CD into the repo directory. run the command `scons platform=windows` Wait for it to process a number of things and then give out the errors ### Minimal reproduction project (MRP) N/A
bug,platform:windows,topic:buildsystem,needs testing
low
Critical
2,769,121,939
pytorch
Error when compiling document
### 🐛 Describe the bug Hi there. I tried to compile the doc using following command: ` git clone https://github.com/pytorch/pytorch.git cd pytorch/docs pip install -r requirements.txt make html ` However, I encountered following errors: ` Traceback (most recent call last): File "/content/pytorch/docs/source/scripts/build_opsets.py", line 75, in <module> main() File "/content/pytorch/docs/source/scripts/build_opsets.py", line 58, in main aten_ops_list = get_aten() File "/content/pytorch/docs/source/scripts/build_opsets.py", line 20, in get_aten parsed_yaml = parse_native_yaml(NATIVE_FUNCTION_YAML_PATH, TAGS_YAML_PATH) File "/usr/local/lib/python3.10/dist-packages/torchgen/gen.py", line 241, in parse_native_yaml _GLOBAL_PARSE_NATIVE_YAML_CACHE[path] = parse_native_yaml_struct( File "/usr/local/lib/python3.10/dist-packages/torchgen/gen.py", line 180, in parse_native_yaml_struct add_generated_native_functions(rs, bs) File "/usr/local/lib/python3.10/dist-packages/torchgen/native_function_generation.py", line 479, in add_generated_native_functions raise AssertionError( AssertionError: Found an operator that we could not generate an out= variant for: _assert_tensor_metadata(Tensor a, SymInt[]? size=None, SymInt[]? stride=None, ScalarType? dtype=None, *, Device? device=None, Layout? layout=None) -> (). This type of operators don't have tensor-like return, making it difficult to generate a proper out= variant. If out= variant is not needed, please add the function name into FUNCTIONAL_OPS_THAT_CANNOT_GET_AN_OUT_VARIANT list. make: *** [Makefile:25: opset] Error 1 ` Thank you. ### Versions % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 24353 100 24353 0 0 87236 0 --:--:-- --:--:-- --:--:-- 86975 Collecting environment information... PyTorch version: 2.5.1+cu121 Is debug build: False CUDA used to build PyTorch: 12.1 ROCM used to build PyTorch: N/A OS: Ubuntu 22.04.3 LTS (x86_64) GCC version: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0 Clang version: 14.0.0-1ubuntu1.1 CMake version: version 3.31.2 Libc version: glibc-2.35 Python version: 3.10.12 (main, Nov 6 2024, 20:22:13) [GCC 11.4.0] (64-bit runtime) Python platform: Linux-6.1.85+-x86_64-with-glibc2.35 Is CUDA available: False CUDA runtime version: 12.2.140 CUDA_MODULE_LOADING set to: N/A GPU models and configuration: Could not collect Nvidia driver version: Could not collect cuDNN version: Probably one of the following: /usr/lib/x86_64-linux-gnu/libcudnn.so.8.9.6 /usr/lib/x86_64-linux-gnu/libcudnn_adv_infer.so.8.9.6 /usr/lib/x86_64-linux-gnu/libcudnn_adv_train.so.8.9.6 /usr/lib/x86_64-linux-gnu/libcudnn_cnn_infer.so.8.9.6 /usr/lib/x86_64-linux-gnu/libcudnn_cnn_train.so.8.9.6 /usr/lib/x86_64-linux-gnu/libcudnn_ops_infer.so.8.9.6 /usr/lib/x86_64-linux-gnu/libcudnn_ops_train.so.8.9.6 HIP runtime version: N/A MIOpen runtime version: N/A Is XNNPACK available: True CPU: Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Address sizes: 46 bits physical, 48 bits virtual Byte Order: Little Endian CPU(s): 2 On-line CPU(s) list: 0,1 Vendor ID: GenuineIntel Model name: Intel(R) Xeon(R) CPU @ 2.20GHz CPU family: 6 Model: 79 Thread(s) per core: 2 Core(s) per socket: 1 Socket(s): 1 Stepping: 0 BogoMIPS: 4399.99 Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc cpuid tsc_known_freq pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single ssbd ibrs ibpb stibp fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm rdseed adx smap xsaveopt arat md_clear arch_capabilities Hypervisor vendor: KVM Virtualization type: full L1d cache: 32 KiB (1 instance) L1i cache: 32 KiB (1 instance) L2 cache: 256 KiB (1 instance) L3 cache: 55 MiB (1 instance) NUMA node(s): 1 NUMA node0 CPU(s): 0,1 Vulnerability Gather data sampling: Not affected Vulnerability Itlb multihit: Not affected Vulnerability L1tf: Mitigation; PTE Inversion Vulnerability Mds: Vulnerable; SMT Host state unknown Vulnerability Meltdown: Vulnerable Vulnerability Mmio stale data: Vulnerable Vulnerability Reg file data sampling: Not affected Vulnerability Retbleed: Vulnerable Vulnerability Spec rstack overflow: Not affected Vulnerability Spec store bypass: Vulnerable Vulnerability Spectre v1: Vulnerable: __user pointer sanitization and usercopy barriers only; no swapgs barriers Vulnerability Spectre v2: Vulnerable; IBPB: disabled; STIBP: disabled; PBRSB-eIBRS: Not affected; BHI: Vulnerable (Syscall hardening enabled) Vulnerability Srbds: Not affected Vulnerability Tsx async abort: Vulnerable Versions of relevant libraries: [pip3] numpy==1.26.4 [pip3] nvidia-cublas-cu12==12.6.4.1 [pip3] nvidia-cuda-cupti-cu12==12.6.80 [pip3] nvidia-cuda-runtime-cu12==12.6.77 [pip3] nvidia-cudnn-cu12==9.6.0.74 [pip3] nvidia-cufft-cu12==11.3.0.4 [pip3] nvidia-curand-cu12==10.3.7.77 [pip3] nvidia-cusolver-cu12==11.7.1.2 [pip3] nvidia-cusparse-cu12==12.5.4.2 [pip3] nvidia-nccl-cu12==2.23.4 [pip3] nvidia-nvjitlink-cu12==12.6.85 [pip3] nvtx==0.2.10 [pip3] optree==0.13.1 [pip3] pynvjitlink-cu12==0.4.0 [pip3] pytorch_sphinx_theme==0.0.24 [pip3] torch==2.5.1+cu121 [pip3] torchaudio==2.5.1+cu121 [pip3] torchsummary==1.5.1 [pip3] torchvision==0.20.1+cu121 [conda] Could not collect cc @malfet @seemethere @svekars @brycebortree @sekyondaMeta @AlannaBurke
module: build,module: docs,triaged
low
Critical
2,769,124,732
tauri
[feat] In-app support for iOS?
### Describe the problem It would be great to provide a way for a user to make in-app purchase using internal App Store mechanisms. Does Tauri support in-apps for iOS? Due to the fact Apple bans for direct payment card usage on iOS , this feature is critical for many business apps. ### Describe the solution you'd like Support internal App Store in-app purchases. ### Alternatives considered _No response_ ### Additional context _No response_
type: feature request
low
Minor
2,769,125,072
rust
`rustc_on_unimplemented` should work on specific trait methods
### Code ```Rust `var_with_complicated_type >= another_var_with_complicated_type` ``` ### Current output ```Shell implementation for `ComplicatedType < ComplicatedType` and `ComplicatedType > ComplicatedType` ``` ### Desired output ```Shell implementation for `ComplicatedType >= ComplicatedType` ``` ### Rationale and extra context `rustc_on_unimplemented` should be applicable to specific trait methods, in addition to the trait as a whole. Then, if the error involves calling a specific trait method, the compiler can give a more specific error message. In the specific case of `PartialOrd`, this would also avoid repeating both type names twice. ### Other cases ```Rust ``` ### Rust Version ```Shell git commit 7349f6b50359fd1f11738765b8deec5ee02d8710 ``` ### Anything else? _No response_
C-enhancement,A-diagnostics,T-compiler,D-diagnostic-infra
low
Critical
2,769,126,804
PowerToys
System hangs on clipboard request
### Microsoft PowerToys version 0.87.1.0 ### Installation method PowerToys auto-update ### Running as admin No ### Area(s) with issue? Advanced Paste ### Steps to reproduce OS: Windows 11 Open programs: Discord, Firefox I decided to try and paste a link I had previously copied into the Discord text box. It wasn't the most recent thing I copied, so I pressed Windows key + V to bring up the clipboard history. Upon performing this action, the little clipboard window appeared but had no contents at all (no "Your clipboard is empty" prompt) and the computer displayed unusual behavior. Error log: [2025-01-05.txt](https://github.com/user-attachments/files/18309285/2025-01-05.txt) ### ✔️ Expected Behavior The clipboard should show my recently copied links and files, as normal, and the computer should continue running normally ### ❌ Actual Behavior After I opened the clipboard, my computer immediately became unresponsive. I could move the mouse but no mouse clicks or keyboard interactions had any apparent effect. Computer's fans spun up as if the CPU was under high load. After about a minute, both my laptop screen and connected external display changed to a black screen, then after another minute the screens turned off entirely (at which point the external display showed "No signal"). The computer's fans were still running, but I pressed the power button once to try and turn the display back on, and after a bit longer the lock screen appeared and I was able to use my computer and clipboard normally. PowerToys brought up a window displaying the error logs attached above. ### Other Software _No response_
Issue-Bug,Needs-Triage
low
Critical
2,769,128,194
pytorch
`pack_padded_sequence ` -> `pad_packed_sequence` can silently truncate input tensor when max length is smaller than actual max sequence length
### 🐛 Describe the bug Running `pack_padded_sequence` -> `pad_packed_sequence` functions can silently truncates the input tensor when the largest value in `lengths` are smaller than the actual sequence lengths of the input tensor. This truncation occurs without any warning or error. Expected Behavior: The `pack_padded_sequence` function should raise a warning or error if the the sequence length in the input tensor exceeds the maximum sequence length in `lengths`. Potential Solution: A `warnings.warn()` message could be added to `pack_padded_sequence` if the length validation fails. **Reproduction** ```python import torch from torch.nn.utils.rnn import pack_padded_sequence, pad_packed_sequence input_tensor = torch.randn(3, 5, 3) # Note: The first sequence has a length smaller than its actual length (4 > 3) lengths = [4, 2, 3] packed = pack_padded_sequence(input_tensor, lengths, batch_first=True, enforce_sorted=False) unpacked, unpacked_lengths = pad_packed_sequence(packed, batch_first=True) # Outputs: (3, 4, 3) print("Unpacked Sequence Shape:", unpacked.shape) # Outputs: [4, 2, 3] print("Unpacked Lengths:", unpacked_lengths) print("Original Sequence:", input_tensor) # Note: the last sequence length inde has been truncated print("Unpacked Sequence:", unpacked) ``` ### Versions PyTorch version: 2.5.1 cc @albanD @mruberry @jbschlosser @walterddr @mikaylagawarecki
module: nn,module: rnn,triaged,actionable
low
Critical
2,769,128,584
flutter
Enable leak tracking for Codec
Motivation: https://github.com/flutter/flutter/pull/159945#issuecomment-2563100821 - [ ] add properties onCreate and onDispose to Codec - [ ] BitmapSingleFrameCodec - [ ] ResizingCodec - [ ] BrowserImageDecoder - [ ] HtmlImageElementCodec - [ ] CkAnimatedImage - [ ] update MemoryAllocations to monitor codec with flag deprecatedDoNotUseWillBeRemovedWithoutNoticeLeakTrackCodec, that is false by defailt - [ ] update flutter_test_config to set deprecatedDoNotUseWillBeRemovedWithoutNoticeLeakTrackCodec to true and opt out all failing tests from leak tracking - [ ] clean up leaks in FF - [ ] remove flag deprecatedDoNotUseWillBeRemovedWithoutNoticeLeakTrackCodec flag code: ``` /// If true, Codec is leak tracked. /// /// For use in Flutter tests only. /// Do not take dependency. It will be deleted without notice. // TODO (https://github.com/flutter/flutter/issues/161132): remove after fixing the tests. bool deprecatedDoNotUseWillBeRemovedWithoutNoticeLeakTrackCodec = false; ```
P1
medium
Minor
2,769,143,340
transformers
Perhaps your features (`videos` in this case) have excessive nesting (inputs type `list` where type `int` is expected).
### System Info Copy-and-paste the text below in your GitHub issue and FILL OUT the two last points. - `transformers` version: 4.46.1 - Platform: Linux-5.15.0-125-generic-x86_64-with-glibc2.35 - Python version: 3.10.16 - Huggingface_hub version: 0.27.0 - Safetensors version: 0.4.5 - Accelerate version: 1.0.1 - Accelerate config: not found - PyTorch version (GPU?): 2.5.1+cu124 (True) - Tensorflow version (GPU?): not installed (NA) - Flax version (CPU?/GPU?/TPU?): not installed (NA) - Jax version: not installed - JaxLib version: not installed - Using distributed or parallel set-up in script?: <fill in> - Using GPU in script?: <fill in> - GPU type: NVIDIA GeForce RTX 4090 ### Who can help? @ArthurZucker class BatchEncoding(UserDict): ### Information - [ ] The official example scripts - [X] My own modified scripts ### Tasks - [ ] An officially supported task in the `examples` folder (such as GLUE/SQuAD, ...) - [X] My own task or dataset (give details below) ### Reproduction <s> [INST] What are the names of some famous actors that started their careers on Broadway? [/INST] Some famous actors that started their careers on Broad[78/1906] de: 1. Hugh Jackman 2. Meryl Streep 3. Denzel Washington 4. Julia Roberts 5. Christopher Walken 6. Anthony Rapp 7. Audra McDonald 8. Nathan Lane 9. Sarah Jessica Parker 10. Lin-Manuel Miranda</s> label_ids: [-100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 2909, 8376, 16760, 369, 2774, 652, 26072, 356, 24331, 3024, 28747, 28705, 13, 28740, 28723, 22389, 4299, 1294, 28705, 13, 28750, 28723, 351, 1193, 28714, 4589, 615, 28705, 13, 28770, 2872 3, 4745, 10311, 5924, 28705, 13, 28781, 28723, 19526, 18021, 28705, 13, 28782, 28723, 17561, 9863, 269, 28705, 13, 28784, 28723, 15089, 399, 763, 28705, 13, 28787, 28723, 14421, 520, 25999, 28705, 13, 28783, 28723, 20514, 19029, 28705, 13, 28774, 28723, 12642, 24062, 19673, 28705, 13, 28740, 28734, 28723, 6678, 28733, 2356, 3009, 9154, 5904, 2] labels: Some famous actors that started their careers on Broadway include: 1. Hugh Jackman 2. Meryl Streep 3. Denzel Washington 4. Julia Roberts 5. Christopher Walken 6. Anthony Rapp 7. Audra McDonald 8. Nathan Lane 9. Sarah Jessica Parker 10. Lin-Manuel Miranda</s> 11. key: images value: [None, None, None, None] key: videos value: [None, None, None, None] 0%| | 0/202 [00:00<?, ?it/s] Traceback (most recent call last): File "/home/yxy/.conda/envs/llama_factory/lib/python3.10/site-packages/transformers/tokenization_utils_base.py", line 781, in convert_to_tensors tensor = as_tensor(value) File "/home/yxy/.conda/envs/llama_factory/lib/python3.10/site-packages/transformers/tokenization_utils_base.py", line 738, in as_tensor return torch.tensor(value) RuntimeError: Could not infer dtype of NoneType The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/data/kleinblue/LLaMA-Factory/scripts/cal_ppl.py", line 132, in <module> fire.Fire(calculate_ppl) File "/home/yxy/.conda/envs/llama_factory/lib/python3.10/site-packages/fire/core.py", line 135, in Fire component_trace = _Fire(component, args, parsed_flag_args, context, name) File "/home/yxy/.conda/envs/llama_factory/lib/python3.10/site-packages/fire/core.py", line 468, in _Fire component, remaining_args = _CallAndUpdateTrace( File "/home/yxy/.conda/envs/llama_factory/lib/python3.10/site-packages/fire/core.py", line 684, in _CallAndUpdateTrace component = fn(*varargs, **kwargs) File "/data/kleinblue/LLaMA-Factory/scripts/cal_ppl.py", line 110, in calculate_ppl for batch in tqdm(dataloader): File "/home/yxy/.local/lib/python3.10/site-packages/tqdm/std.py", line 1181, in __iter__ for obj in iterable: File "/home/yxy/.conda/envs/llama_factory/lib/python3.10/site-packages/torch/utils/data/dataloader.py", line 701, in __next__ data = self._next_data() File "/home/yxy/.conda/envs/llama_factory/lib/python3.10/site-packages/torch/utils/data/dataloader.py", line 757, in _next_data data = self._dataset_fetcher.fetch(index) # may raise StopIteration File "/home/yxy/.conda/envs/llama_factory/lib/python3.10/site-packages/torch/utils/data/_utils/fetch.py", line 55, in fetch return self.collate_fn(data) File "/home/yxy/.conda/envs/llama_factory/lib/python3.10/site-packages/transformers/data/data_collator.py", line 599, in __call__ batch = pad_without_fast_tokenizer_warning( File "/home/yxy/.conda/envs/llama_factory/lib/python3.10/site-packages/transformers/data/data_collator.py", line 66, in pad_without_fast_tokenizer_warning padded = tokenizer.pad(*pad_args, **pad_kwargs) File "/home/yxy/.conda/envs/llama_factory/lib/python3.10/site-packages/transformers/tokenization_utils_base.py", line 3546, in pad return BatchEncoding(batch_outputs, tensor_type=return_tensors) File "/home/yxy/.conda/envs/llama_factory/lib/python3.10/site-packages/transformers/tokenization_utils_base.py", line 240, in __init__ self.convert_to_tensors(tensor_type=tensor_type, prepend_batch_axis=prepend_batch_axis) File "/home/yxy/.conda/envs/llama_factory/lib/python3.10/site-packages/transformers/tokenization_utils_base.py", line 797, in convert_to_tensors raise ValueError( ValueError: Unable to create tensor, you should probably activate truncation and/or padding with 'padding=True' 'truncation=True' to have batched tensors with the same length. Perhaps your features (`videos` in this case) have excessive nesting (inputs type `list` where type `int` is expected). ### Expected behavior i just try to calculate ppl and it's the model is a mistral-7B-0.1,i dont offer keyword like images or videos,so how can i solve it?
bug
low
Critical
2,769,163,958
neovim
:Man urls look bad
### Problem ![Image](https://github.com/user-attachments/assets/7dbf7990-964a-44c3-8e00-f147dd7c4657) ### Steps to reproduce export MANPAGER='nvim +Man!' man yt-dlp ### Expected behavior manpages.debian.org looks best: ![Image](https://github.com/user-attachments/assets/dfa7d0c0-88fb-4f69-92eb-c5d2c29f639f) ### Nvim version (nvim -v) 0.9.5 ### Vim (not Nvim) behaves the same? Yes, even worse ### Operating system/version debian sid ### Terminal name/version tilix ### $TERM environment variable xterm-256color ### Installation debian
bug,plugin,runtime,complexity:low
medium
Major
2,769,167,214
terminal
Unable to link GitHub to Terminal when running as administrator
### Windows Terminal version 1.23.10011.0 ### Windows build number 10.0.27766.1000 ### Other Software Microsoft Edge Canary 133.0.3056.0 ### Steps to reproduce Run Terminal as administrator > Link GitHub to Terminal ### Expected Behavior Link to GitHub as normal as if you were running Terminal as a normal user ### Actual Behavior Long periods of time at "Awaiting authentication completion from browser..." and not responding (even though I have the browser proxy turned off) ![Image](https://github.com/user-attachments/assets/efcbd712-9fb0-45bb-bec0-2e50c2db1b8c)
Issue-Bug,Needs-Triage
low
Minor
2,769,180,820
neovim
LSP: slow diagnostics publish from server after client sends didChange
### Problem ### Description I use sourcekit and xcode build server to swift, the diagnostic is very slowly, but the same lsp server(sourcekit) use vscode is very fast. I feel very obviously between nvim-lspconfig and vscode then the video shows. **nvim lsp** use sourcekit video **(slowly) (update_in_insert = true)**: https://github.com/user-attachments/assets/71812718-ee19-4d0d-b64b-85a8dcb907df **vscode lsp** use sourcekit video **(fast)**: https://github.com/user-attachments/assets/49ed0375-746c-4f48-b04e-eb1bae29362d Here is my config: ``` return { 'neovim/nvim-lspconfig', config = function() vim.diagnostic.config({ virtual_text = true, signs = true, update_in_insert = true, underline = true, severity_sort = false, float = true, }) local capabilities = require('cmp_nvim_lsp').default_capabilities() local lspconfig = require('lspconfig'); --... -- other language confg -- ... lspconfig.sourcekit.setup { capabilities = capabilities, cmd = { "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/sourcekit-lsp", }, root_dir = function(filename, _) local util = require("lspconfig.util") return util.root_pattern("buildServer.json")(filename) or util.root_pattern("*.xcodeproj", "*.xcworkspace")(filename) or util.find_git_ancestor(filename) or util.root_pattern("Package.swift")(filename) end, } local util = require('lspconfig/util') local path = util.path local function get_python_path(workspace) -- Use activated virtualenv. if vim.env.VIRTUAL_ENV then return path.join(vim.env.VIRTUAL_ENV, 'bin', 'python') end -- Find and use virtualenv in workspace directory. for _, pattern in ipairs({ '*', '.*' }) do local match = vim.fn.glob(path.join(workspace, pattern, 'pyvenv.cfg')) if match ~= '' then return path.join(path.dirname(match), 'bin', 'python') end end -- Fallback to system Python. return vim.fn.exepath('python3') or vim.fn.exepath('python') or 'python' end lspconfig.pyright.setup({ -- -- ... -- before_init = function(_, config) -- config.settings.python.pythonPath = get_python_path(config.root_dir) -- end, on_init = function(client) local p = get_python_path(client.config.root_dir) print(p) client.config.settings.python.pythonPath = get_python_path(client.config.root_dir) end }) lspconfig.rust_analyzer.setup {} end } ``` Here is my nvim-lspconfig log(:LspLog) : ![Image](https://github.com/user-attachments/assets/278682e7-1ced-4ddd-9d28-2495149d06fa) The nvim-lsp log shows, the last "didChange" time is 59:22, but "publishDiagnostic"(empty msg) is 59:24, after 2 seconds ... But the vscode lsp logs, show the last "didChange" and the "publishDiagnostic empty msg(clear)" at the same second. Buy the way I tried to close other plugins such as cmp as the logs show ..., only left lspconfg, but is slowly nether. Full logs: [nvim_lsp_swift_log.txt](https://github.com/user-attachments/files/18309190/nvim_lsp_swift_log.txt) ### Steps to reproduce using "nvim -u minimal_init.lua" as the configs show. ### Expected behavior _No response_ ### Nvim version (nvim -v) 0.10 ### Language server name/version current ### Operating system/version macos 15 ### Log file _No response_
bug,performance,needs:repro,lsp
low
Major
2,769,181,514
react
[React 19]Calling setState inside useEffect causes 'Maximum update depth exceeded'
## Summary I noticed that while maximum update depth exceeded, Class Components will throw an Error, but Function Components only console.error only in the development environment. I’d like to understand the reason for this behavior and whether it’s possible for Function Components to also throw an Error. Our project aims to catch such errors promptly.
React 19
medium
Critical
2,769,185,202
godot
Typed array multhithreading issue
### Tested versions Reproduced in 4.4 dev4, 4.4 dev7 ### System information Godot v4.4.dev4 - Windows 10.0.19045 - Multi-window, 2 monitors - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3060 (NVIDIA; 32.0.15.6094) - AMD Ryzen 5 1500X Quad-Core Processor (8 threads) ### Issue description Cannot append to a typed array from a new thread when the type is a custom class_name, e.g MyClass, the array remains empty. It works fine if the array is not typed or the type is built in like Node2D. I am aware the docs mention appending as an operation that is not thread safe, but neither using a mutex nor set_thread_safety_checks_enabled(false) nor both helped fix this. ### Steps to reproduce Run attached MRP. Observe appending on line 14 of a.gd and the array remaining empty after that. ### Minimal reproduction project (MRP) [thread_test.zip](https://github.com/user-attachments/files/18309702/thread_test.zip)
bug,topic:gdscript
low
Major
2,769,203,911
vscode
Opening Remote
<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ --> <!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ --> <!-- 🕮 Read our guide about submitting issues: https://github.com/microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions --> <!-- 🔎 Search existing issues to avoid creating duplicates. --> <!-- 🧪 Test using the latest Insiders build to see if your issue has already been fixed: https://code.visualstudio.com/insiders/ --> <!-- 💡 Instead of creating your report here, use 'Report Issue' from the 'Help' menu in VS Code to pre-fill useful information. --> <!-- 🔧 Launch with `code --disable-extensions` to check. --> Does this issue occur when all extensions are disabled?: Yes/No <!-- 🪓 If you answered No above, use 'Help: Start Extension Bisect' from Command Palette to try to identify the cause. --> <!-- 📣 Issues caused by an extension need to be reported directly to the extension publisher. The 'Help > Report Issue' dialog can assist with this. --> - VS Code Version: - OS Version: Steps to Reproduce: When I try to connect remote server, but meet the issue: the interface keeps getting stuck Opening Remote for a long time, and I tried to re-download and change the plugin remote ssh's version, it doesn't work for me. And my server maintains good networking conditions. But I found that the folder cli is empty. That's why? 1. 2.
info-needed
low
Critical
2,769,204,651
flutter
Selection up-scrolling in a TextField jumps to the last selection position
### Steps to reproduce 1. Select some text in TextField 2. Keep dragging the leading selection handle upwards 3. It jumps to the trailing selection handle position ### Expected results If the leading selection handle dragged, keep the leading handle and selection visible. ### Actual results The view jumps to the trailing selection handle and the leading handle is out of range. ### Code sample <details open><summary>Code sample</summary> ```dart return Scaffold( appBar: AppBar( // TRY THIS: Try changing the color here to a specific color (to // Colors.amber, perhaps?) and trigger a hot reload to see the AppBar // change color while the other colors stay the same. backgroundColor: Theme.of(context).colorScheme.inversePrimary, // Here we take the value from the MyHomePage object that was created by // the App.build method, and use it to set our appbar title. title: Text(widget.title), ), body: const TextField( maxLines: 10, decoration: InputDecoration( border: OutlineInputBorder(), )), ); } ``` </details> ### Screenshots or Video <details open> <summary>Screenshots / Video demonstration</summary> [Upload media here] </details> ### Logs <details open><summary>Logs</summary> ```console [Paste your logs here] ``` </details> ### Flutter Doctor output <details open><summary>Doctor output</summary> ```console Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 3.27.1, on Ubuntu 24.04.1 LTS 6.8.0-51-generic, locale en_US.UTF-8) [✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0) [✓] Chrome - develop for the web [✓] Linux toolchain - develop for Linux desktop [✓] Android Studio (version 2023.2) [✓] VS Code (version 1.96.2) [✓] Proxy Configuration [✓] Connected device (3 available) [✓] Network resources • No issues found! ``` </details>
in triage
low
Minor
2,769,209,088
PowerToys
Keyboard Manager: Configurable keyboard repeat rate
### Description of the new feature / enhancement The keyboard repeat rate should be configurable in Keyboard Manager. The high end would be to have the frequence configurable for each redirected key. ### Scenario when this would be used? For example if you go thru thousands of photos from a surveillance camera in a photo app it would be helpful to have only 1-3 pics/sec when keeping the key pressed. ### Supporting information (Nice example is the powerful "Irfan View" photo app that can go very fast thru folders of photos)
Needs-Triage
low
Minor
2,769,215,189
excalidraw
opacity range redesigned
## old ![Image](https://github.com/user-attachments/assets/88d5b9e0-ee23-43cf-a1e6-7feb795da68a) # new ![Image](https://github.com/user-attachments/assets/cfdc9d29-dc74-4807-add9-925f8519da1e) in the new design I want to make significant changes of the color of this range field, color will be a gradiend with low opacity in left and high opacity in right
UX/UI
low
Major
2,769,218,011
node
Enable all SQLite extensions that do not require code changes.
### What is the problem this feature will solve? SQLite has a few compile-time extensions that are not enabled by default in Node.js, meaning developers cannot use them out of the box. Inspired by #56447, I suggest enabling all SQLite extensions that do not require additional code written by default (just as the math functions from #56447). We should target the entire [SQLite amalgamation](https://www.sqlite.org/amalgamation.html) and all the other default extensions (again, such as the math functions from #56447). Potential candidates include: - [Full Text Search 5](https://www.sqlite.org/fts5.html), with `-DSQLITE_ENABLE_FTS5`. - [Full Text Search 3](https://www.sqlite.org/fts3.html), with `-DSQLITE_ENABLE_FTS3` and `-DSQLITE_ENABLE_FTS3_PARENTHESIS`. - [R*Tree Module](https://www.sqlite.org/rtree.html), with `-DSQLITE_ENABLE_RTREE`. - [DBSTAT Virtual Table](https://www.sqlite.org/dbstat.html), with `-DSQLITE_ENABLE_DBSTAT_VTAB`. - [The RBU Extension](https://www.sqlite.org/rbu.html), with `-DSQLITE_ENABLE_RBU`. Unless there are explicit reasons why these should not be included, I see no reason to withhold them from developers. ### What is the feature you are proposing to solve the problem? Add the extensions' compile-time extension flags to Node. ### What alternatives have you considered? Compiling and linking your build of SQLite with the extensions enabled is a major hassle for developers and users alike.
feature request
low
Major
2,769,223,838
PowerToys
Swapping what the shift key does to a single key!
### Microsoft PowerToys version 0.80.1 ### Installation method PowerToys auto-update ### Running as admin Yes ### Area(s) with issue? Keyboard Manager ### Steps to reproduce I have a Belgian keyboard where the key above the **A** gives me normally **&**. But I want the **1** to be show (wich is activated by pushing the same key but with **shift** I try to set this up as folluws in the application ![Image](https://github.com/user-attachments/assets/0112702c-52b3-4676-b0c5-f577d79216a4) ### ✔️ Expected Behavior Swapping what the shift key does to this one key: without: 1 with: & ### ❌ Actual Behavior Either way i use my key (with or without shift): without: & with: & ### Other Software _No response_
Issue-Bug,Needs-Triage
low
Minor
2,769,248,572
pytorch
Add inheritance possibilities
### 🚀 The feature, motivation and pitch While inheritance of a normal tensor is possible, a more specialized tensor it seems not be able to achieve, since: ``` NotImplementedError: Cannot access storage of SparseTensorImpl ``` In the following forum post https://discuss.pytorch.org/t/how-to-inherit-sparse-tensor/214920 I described the scenario, where I wanted to extend a sparse_coo_tensor, to create a specialized sparse tensor ### Alternatives The only alternative seems to be composition, which is not the right approach for something that only extends/limits capabilities of the original object. ### Additional context _No response_ cc @alexsamardzic @nikitaved @pearu @cpuhrsch @amjames @bhosmer @jcaip
module: sparse,triaged
low
Critical
2,769,250,775
next.js
Issue with dynamic route params returning %5Bslug%5D
### Link to the code that reproduces this issue https://github.com/anas029/vercel-dynamic-route ### To Reproduce deploy it on vercel go to link `/people/list/one` ### Current vs. Expected behavior it gives invalid page params value e.g.: [https://vercel-dynamic-route.vercel.app/people/list/one](https://vercel-dynamic-route.vercel.app/people/list/one) type = %5Btype%5D it should give the actual value type = one ### Provide environment information ```bash Operating System: Platform: win32 Arch: x64 Version: Windows 10 Pro Available memory (MB): 32683 Available CPU cores: 16 Binaries: Node: 20.17.0 npm: 10.2.5 Yarn: N/A pnpm: 8.15.6 Relevant Packages: next: 15.1.3 // Latest available version is detected (15.1.3). eslint-config-next: 15.1.3 react: 19.0.0 react-dom: 19.0.0 typescript: 5.7.2 Next.js Config: output: N/A ``` ### Which area(s) are affected? (Select all that apply) Parallel & Intercepting Routes, Partial Prerendering (PPR) ### Which stage(s) are affected? (Select all that apply) Vercel (Deployed) ### Additional context It works fine in local dev and build shorter links or links appended with extra param works as well 1. [https://vercel-dynamic-route.vercel.app/list/one](https://vercel-dynamic-route.vercel.app/list/one) 2. [https://vercel-dynamic-route.vercel.app/people/list/one/1](https://vercel-dynamic-route.vercel.app/people/list/one/1)
Parallel & Intercepting Routes,Partial Prerendering (PPR)
low
Major
2,769,264,565
rust
Tracking Issue for `const_slice_reverse`
Feature gate: `#![feature(const_slice_reverse)]` This is a tracking issue for using `<[T]>::reverse` in `const`. <!-- Include a short description of the feature. --> ### Public API ```rust impl<T> [T] { pub const fn reverse(&mut self); } ``` ### Steps / History - [ ] Implementation: #135121 - [ ] Final comment period (FCP)[^1] - [ ] Stabilization PR ### Unresolved Questions - None yet. [^1]: https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html
T-libs-api,C-tracking-issue
low
Minor
2,769,265,552
PowerToys
win10使用最新的v0.87和0.87.1版本会导致powerToys的主页打不开,也无法退出,点击右下角图标也没有任何反应,退回到0.86版本就正常了
### Microsoft PowerToys version 0.87.1 ### Installation method GitHub, Microsoft Store ### Running as admin Yes ### Area(s) with issue? General, Settings, Welcome / PowerToys Tour window ### Steps to reproduce 系统托盘打不开,无法查看错误日志 ### ✔️ Expected Behavior _No response_ ### ❌ Actual Behavior _No response_ ### Other Software _No response_
Issue-Bug,Needs-Triage
low
Minor
2,769,270,036
react
[React 19] Reintroduce debugSource in some kind of opt-in way
## Summary `__debugSource` was removed in #28265 to solve problems that do not apply to us and without including any 1:1 replacement that we could make work for our case. We are currently looking for ways to re-implement it for React 19 but all approaches seem quite hacky or fragile without any additional support from React. We use `__debugSource` to create a mapping between a DOM element (fiber node in practice) to the source location where the JSX element was created. We use this information to be able to implement an in-browser, in-app editor for JSX, e.g. we can find a fiber node from a DOM element and then find the exact source location where the element was created, parse the file and modify the JSX node. Naturally, this is only ever available in dev mode. We control the main configuration for how TSX/JSX is transformed into JS so getting accurate source information has never been a problem. However, all approaches using stack traces and similar will not work as they only contain the line number and not exact location in the source file. Take for instance the JSX code ```jsx function MyView() { return <><span>Hello</span><span>Hello</span><span>Hello</span></>; } ``` and it is quite difficult to know which element a `<span>` from the DOM maps to, even if the line number is available. We have prototyped some workarounds like using our own jsx dev transform and placing the source info manually somewhere but these approaches also have issues: 1. If placing on the `ReactElement`, we have to abuse an existing property as only those are copied to the fiber nodes when rendering. The closest one would be `_debugInfo` but that will probably be overwritten in some cases 2. Placing the mapping in a global variable would work but as only the `ReactElement` instance is available at that point, and that instance is not referenced from a fiber node, there does not seem to be anything sensible available to use as a key for the map We could rewrite part of the React code but that would seem even more fragile. Good ideas are welcome
React 19
low
Critical
2,769,270,726
rust
ICE: `assertion failed: !ty.has_non_region_infer()`
<!-- ICE: Rustc ./a.rs '' 'thread 'rustc' panicked at compiler/rustc_trait_selection/src/traits/outlives_bounds.rs:54:5: 'assertion failed: !ty.has_non_region_infer()'', 'thread 'rustc' panicked at compiler/rustc_trait_selection/src/traits/outlives_bounds.rs:54:5: 'assertion failed: !ty.has_non_region_infer()'' File: /tmp/im/a.rs --> auto-reduced (treereduce-rust): ````rust use std::ops::Add; struct Container<S: Data>(S); trait Data { type Elem; } impl<A, S> Add<Container<S>> for f32 where f32: Add<A, Output = A>, S:, { } impl<'a, A, S> Add<&'a Container<S>> for f32 where f32: Add<A>, S: Data<Elem = A>, { type Output = Container<Vec<<f32 as Add<A>>::Output>>; fn add(self, _rhs: &Container<Data>) -> Self::Output {} } ```` original: ````rust use std::ops::Add; struct Container<S: Data>(S); trait Data { type Elem; } impl<A> Data for Vec<A> { type Elem = A; } impl<A, S> Add<Container<S>> for f32 where f32: Add<A, Output=A>, S: Data<Elem=A>, { impl<A> Data for Vec<A> { type Elem = A; } fn add(self, _rhs: Container<S>) -> Container<S> { unimplemented!() } } impl<'a, A, S> Add<&'a Container<S>> for f32 where f32: Add<A>, S: Data<Elem=A>, { type Output = Container<Vec<<f32 as Add<A>>::Output>>; fn add(self, _rhs: &Container<Data>) -> Self::Output { unimplemented!() } } ```` Version information ```` rustc 1.86.0-nightly (dcfa38fe2 2025-01-05) binary: rustc commit-hash: dcfa38fe234de9304169afc6638e81d0dd222c06 commit-date: 2025-01-05 host: x86_64-unknown-linux-gnu release: 1.86.0-nightly LLVM version: 19.1.6 ```` Possibly related line of code: https://github.com/rust-lang/rust/blob/dcfa38fe234de9304169afc6638e81d0dd222c06/compiler/rustc_trait_selection/src/traits/outlives_bounds.rs#L48-L60 Command: `/home/matthias/.rustup/toolchains/master/bin/rustc ` <details><summary><strong>Program output</strong></summary> <p> ``` error[E0601]: `main` function not found in crate `mvce` --> /tmp/icemaker_global_tempdir.eJbTZCOAMNoj/rustc_testrunner_tmpdir_reporting.9QYtHLbbaWJb/mvce.rs:23:2 | 23 | } | ^ consider adding a `main` function to `/tmp/icemaker_global_tempdir.eJbTZCOAMNoj/rustc_testrunner_tmpdir_reporting.9QYtHLbbaWJb/mvce.rs` warning: trait objects without an explicit `dyn` are deprecated --> /tmp/icemaker_global_tempdir.eJbTZCOAMNoj/rustc_testrunner_tmpdir_reporting.9QYtHLbbaWJb/mvce.rs:22:35 | 22 | fn add(self, _rhs: &Container<Data>) -> Self::Output {} | ^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html> = note: `#[warn(bare_trait_objects)]` on by default help: if this is a dyn-compatible trait, use `dyn` | 22 | fn add(self, _rhs: &Container<dyn Data>) -> Self::Output {} | +++ error[E0191]: the value of the associated type `Elem` in `Data` must be specified --> /tmp/icemaker_global_tempdir.eJbTZCOAMNoj/rustc_testrunner_tmpdir_reporting.9QYtHLbbaWJb/mvce.rs:22:35 | 6 | type Elem; | --------- `Elem` defined here ... 22 | fn add(self, _rhs: &Container<Data>) -> Self::Output {} | ^^^^ help: specify the associated type: `Data<Elem = Type>` error[E0207]: the type parameter `A` is not constrained by the impl trait, self type, or predicates --> /tmp/icemaker_global_tempdir.eJbTZCOAMNoj/rustc_testrunner_tmpdir_reporting.9QYtHLbbaWJb/mvce.rs:9:6 | 9 | impl<A, S> Add<Container<S>> for f32 | ^ unconstrained type parameter thread 'rustc' panicked at compiler/rustc_trait_selection/src/traits/outlives_bounds.rs:54:5: assertion failed: !ty.has_non_region_infer() stack backtrace: 0: 0x7b44522d47ca - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::hadf8e2df861efce2 1: 0x7b4452a135e6 - core::fmt::write::h7a55e8c402e63d48 2: 0x7b44539127d1 - std::io::Write::write_fmt::h3751c3424aa517d0 3: 0x7b44522d4622 - std::sys::backtrace::BacktraceLock::print::hda228978e42208f7 4: 0x7b44522d6bc7 - std::panicking::default_hook::{{closure}}::hd850557dd952fc8c 5: 0x7b44522d69b0 - std::panicking::default_hook::hb302f704a65842a5 6: 0x7b4451452928 - std[3100b7b695602b1a]::panicking::update_hook::<alloc[5f744d0bf49b6096]::boxed::Box<rustc_driver_impl[736abb8093ca35b1]::install_ice_hook::{closure#1}>>::{closure#0} 7: 0x7b44522d7413 - std::panicking::rust_panic_with_hook::ha601460835d6d839 8: 0x7b44522d70d6 - std::panicking::begin_panic_handler::{{closure}}::h81a3663d6cb5d12c 9: 0x7b44522d4c99 - std::sys::backtrace::__rust_end_short_backtrace::h4ff0aa96a7064803 10: 0x7b44522d6dcd - rust_begin_unwind 11: 0x7b444ef9e9e0 - core::panicking::panic_fmt::h6dfbe1ba47369a2f 12: 0x7b444fafa15c - core::panicking::panic::h24ba62daf6026c27 13: 0x7b4453786400 - rustc_trait_selection[a36a1e16c88a6dc2]::traits::outlives_bounds::implied_outlives_bounds 14: 0x7b445312cb37 - <rustc_infer[9bafcf6fc3bf205d]::infer::outlives::env::OutlivesEnvironment>::with_bounds::<core[5eafa33fb0699880]::iter::adapters::flatten::FlatMap<indexmap[5764fe6e3edd7c17]::set::iter::Iter<rustc_middle[ccb2eb78bedf1942]::ty::Ty>, alloc[5f744d0bf49b6096]::vec::Vec<rustc_middle[ccb2eb78bedf1942]::traits::query::OutlivesBound>, <rustc_infer[9bafcf6fc3bf205d]::infer::InferCtxt as rustc_trait_selection[a36a1e16c88a6dc2]::traits::outlives_bounds::InferCtxtExt>::implied_bounds_tys::{closure#0}>> 15: 0x7b4453148e2b - rustc_hir_analysis[48e47dfc185f7fea]::check::compare_impl_item::compare_impl_item 16: 0x7b44531476d5 - rustc_query_impl[ac2bab59562664c7]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[ac2bab59562664c7]::query_impl::compare_impl_item::dynamic_query::{closure#2}::{closure#0}, rustc_middle[ccb2eb78bedf1942]::query::erase::Erased<[u8; 1usize]>> 17: 0x7b4453131c23 - rustc_query_system[9e3640c263c85fee]::query::plumbing::try_execute_query::<rustc_query_impl[ac2bab59562664c7]::DynamicConfig<rustc_data_structures[52740ce709e2e05d]::vec_cache::VecCache<rustc_span[8e152531e0bcd89e]::def_id::LocalDefId, rustc_middle[ccb2eb78bedf1942]::query::erase::Erased<[u8; 1usize]>, rustc_query_system[9e3640c263c85fee]::dep_graph::graph::DepNodeIndex>, false, false, false>, rustc_query_impl[ac2bab59562664c7]::plumbing::QueryCtxt, false> 18: 0x7b4453131601 - rustc_query_impl[ac2bab59562664c7]::query_impl::compare_impl_item::get_query_non_incr::__rust_end_short_backtrace 19: 0x7b4453c06b3a - rustc_hir_analysis[48e47dfc185f7fea]::check::check::check_impl_items_against_trait 20: 0x7b4453124d0f - rustc_hir_analysis[48e47dfc185f7fea]::check::check::check_item_type 21: 0x7b4453133580 - rustc_hir_analysis[48e47dfc185f7fea]::check::wfcheck::check_well_formed 22: 0x7b4453132463 - rustc_query_impl[ac2bab59562664c7]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[ac2bab59562664c7]::query_impl::check_well_formed::dynamic_query::{closure#2}::{closure#0}, rustc_middle[ccb2eb78bedf1942]::query::erase::Erased<[u8; 1usize]>> 23: 0x7b4453131f05 - rustc_query_system[9e3640c263c85fee]::query::plumbing::try_execute_query::<rustc_query_impl[ac2bab59562664c7]::DynamicConfig<rustc_data_structures[52740ce709e2e05d]::vec_cache::VecCache<rustc_span[8e152531e0bcd89e]::def_id::LocalDefId, rustc_middle[ccb2eb78bedf1942]::query::erase::Erased<[u8; 1usize]>, rustc_query_system[9e3640c263c85fee]::dep_graph::graph::DepNodeIndex>, false, false, false>, rustc_query_impl[ac2bab59562664c7]::plumbing::QueryCtxt, false> 24: 0x7b4453131981 - rustc_query_impl[ac2bab59562664c7]::query_impl::check_well_formed::get_query_non_incr::__rust_end_short_backtrace 25: 0x7b445312edac - rustc_hir_analysis[48e47dfc185f7fea]::check::wfcheck::check_mod_type_wf 26: 0x7b445312ebcb - rustc_query_impl[ac2bab59562664c7]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[ac2bab59562664c7]::query_impl::check_mod_type_wf::dynamic_query::{closure#2}::{closure#0}, rustc_middle[ccb2eb78bedf1942]::query::erase::Erased<[u8; 1usize]>> 27: 0x7b445397a1c8 - rustc_query_system[9e3640c263c85fee]::query::plumbing::try_execute_query::<rustc_query_impl[ac2bab59562664c7]::DynamicConfig<rustc_query_system[9e3640c263c85fee]::query::caches::DefaultCache<rustc_span[8e152531e0bcd89e]::def_id::LocalModDefId, rustc_middle[ccb2eb78bedf1942]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[ac2bab59562664c7]::plumbing::QueryCtxt, false> 28: 0x7b4453979f70 - rustc_query_impl[ac2bab59562664c7]::query_impl::check_mod_type_wf::get_query_non_incr::__rust_end_short_backtrace 29: 0x7b4452dc2378 - rustc_hir_analysis[48e47dfc185f7fea]::check_crate 30: 0x7b4452e950a8 - rustc_interface[21548936fe144d05]::passes::run_required_analyses 31: 0x7b445391665e - rustc_interface[21548936fe144d05]::passes::analysis 32: 0x7b445391662f - rustc_query_impl[ac2bab59562664c7]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[ac2bab59562664c7]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[ccb2eb78bedf1942]::query::erase::Erased<[u8; 0usize]>> 33: 0x7b445397f7d5 - rustc_query_system[9e3640c263c85fee]::query::plumbing::try_execute_query::<rustc_query_impl[ac2bab59562664c7]::DynamicConfig<rustc_query_system[9e3640c263c85fee]::query::caches::SingleCache<rustc_middle[ccb2eb78bedf1942]::query::erase::Erased<[u8; 0usize]>>, false, false, false>, rustc_query_impl[ac2bab59562664c7]::plumbing::QueryCtxt, false> 34: 0x7b445397f50e - rustc_query_impl[ac2bab59562664c7]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace 35: 0x7b445393ecde - rustc_interface[21548936fe144d05]::passes::create_and_enter_global_ctxt::<core[5eafa33fb0699880]::option::Option<rustc_interface[21548936fe144d05]::queries::Linker>, rustc_driver_impl[736abb8093ca35b1]::run_compiler::{closure#0}::{closure#2}>::{closure#2}::{closure#0} 36: 0x7b4453958524 - rustc_interface[21548936fe144d05]::interface::run_compiler::<(), rustc_driver_impl[736abb8093ca35b1]::run_compiler::{closure#0}>::{closure#1} 37: 0x7b4453806187 - std[3100b7b695602b1a]::sys::backtrace::__rust_begin_short_backtrace::<rustc_interface[21548936fe144d05]::util::run_in_thread_with_globals<rustc_interface[21548936fe144d05]::util::run_in_thread_pool_with_globals<rustc_interface[21548936fe144d05]::interface::run_compiler<(), rustc_driver_impl[736abb8093ca35b1]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()> 38: 0x7b4453806624 - <<std[3100b7b695602b1a]::thread::Builder>::spawn_unchecked_<rustc_interface[21548936fe144d05]::util::run_in_thread_with_globals<rustc_interface[21548936fe144d05]::util::run_in_thread_pool_with_globals<rustc_interface[21548936fe144d05]::interface::run_compiler<(), rustc_driver_impl[736abb8093ca35b1]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1} as core[5eafa33fb0699880]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} 39: 0x7b4453807c01 - std::sys::pal::unix::thread::Thread::new::thread_start::he5122ef3561b8e92 40: 0x7b444dca339d - <unknown> 41: 0x7b444dd2849c - <unknown> 42: 0x0 - <unknown> error: the compiler unexpectedly panicked. this is a bug. note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md note: please make sure that you have updated to the latest nightly note: rustc 1.86.0-nightly (dcfa38fe2 2025-01-05) running on x86_64-unknown-linux-gnu query stack during panic: #0 [compare_impl_item] checking assoc item `<impl at /tmp/icemaker_global_tempdir.eJbTZCOAMNoj/rustc_testrunner_tmpdir_reporting.9QYtHLbbaWJb/mvce.rs:16:1: 19:23>::add` is compatible with trait definition #1 [check_well_formed] checking that `<impl at /tmp/icemaker_global_tempdir.eJbTZCOAMNoj/rustc_testrunner_tmpdir_reporting.9QYtHLbbaWJb/mvce.rs:16:1: 19:23>` is well-formed #2 [check_mod_type_wf] checking that types are well-formed in top-level module #3 [analysis] running analysis passes on this crate end of query stack error: aborting due to 3 previous errors; 1 warning emitted Some errors have detailed explanations: E0191, E0207, E0601. For more information about an error, try `rustc --explain E0191`. ``` </p> </details> <!-- query stack: #0 [compare_impl_item] checking assoc item `<impl at /tmp/icemaker_global_tempdir.eJbTZCOAMNoj/rustc_testrunner_tmpdir_reporting.9QYtHLbbaWJb/mvce.rs:16:1: 19:23>::add` is compatible with trait definition #1 [check_well_formed] checking that `<impl at /tmp/icemaker_global_tempdir.eJbTZCOAMNoj/rustc_testrunner_tmpdir_reporting.9QYtHLbbaWJb/mvce.rs:16:1: 19:23>` is well-formed #2 [check_mod_type_wf] checking that types are well-formed in top-level module #3 [analysis] running analysis passes on this crate -->
I-ICE,T-compiler,C-bug,S-bug-has-test,fixed-by-next-solver,S-has-bisection
low
Critical
2,769,270,919
PowerToys
Add circle to search
### Description of the new feature / enhancement Circle to search is currently a flagship feature that allows one to encircle a portion of the screen while running image recognition and open a tab with the output as the query to the search engine. ### Scenario when this would be used? We mostly do research on laptops compared to smartphones, so it would be a smart choice to implement the same on desktops, too. ### Supporting information It should support non-touch screens too with the use of graphics tablets.
Needs-Triage
low
Minor
2,769,279,900
PowerToys
Restoring from hibernation in Win11
### Microsoft PowerToys version 0.87.1.0 ### Installation method PowerToys auto-update ### Running as admin No ### Area(s) with issue? PowerToys Run ### Steps to reproduce Hibernated Windows11 through PowerToys Run by typing: "Hibernate". When next time turned the computer on, a message window appeared. ### ✔️ Expected Behavior _No response_ ### ❌ Actual Behavior System.Runtime.InteropServices.COMException (0x80070006): A leíró érvénytelen. (0x80070006 (E_HANDLE)) at Standard.NativeMethods.DwmExtendFrameIntoClientArea(IntPtr hwnd, MARGINS& pMarInset) at System.Windows.Appearance.WindowBackdropManager.UpdateGlassFrame(IntPtr hwnd, WindowBackdropType backdropType) at System.Windows.Appearance.WindowBackdropManager.ApplyBackdrop(IntPtr hwnd, WindowBackdropType backdropType) at System.Windows.Appearance.WindowBackdropManager.SetBackdrop(Window window, WindowBackdropType backdropType) at System.Windows.ThemeManager.ApplyStyleOnWindow(Window window, Boolean useLightColors) at System.Windows.ThemeManager.ApplyFluentOnWindow(Window window) at System.Windows.ThemeManager.OnSystemThemeChanged() at System.Windows.SystemResources.SystemThemeFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) ### Other Software _No response_
Issue-Bug,Needs-Triage
low
Minor
2,769,284,058
react-native
[IOS] No/disappearing Conversion Line when Typing CJK (Chinese, Japanese, Korean) Characters into TextInput (0.76.5)
### Description When typing CJK characters into TextInput, the conversion line (the line under the group of pre-formatted characters) disappears after typing the first character or doesn't appear at all. https://github.com/user-attachments/assets/6afb4b71-cb77-406b-a768-8b5fbd775cf7 ### Steps to reproduce 1. `npx create-expo-app@latest` 2. In the home screen, add ``` import { useState } from 'react'; import { TextInput } from 'react-native'; ... const [text, setText] = useState('') ... <TextInput value={text} onChangeText={setText} style={{ height: 50, width: '100%' }} /> ``` 3. Run the project with `npm run ios` 4. Type Japanese, Chinese, or Korean ### React Native Version 0.76.5 ### Affected Platforms Runtime - iOS ### Output of `npx react-native info` ```text System: OS: macOS 15.1.1 CPU: (8) arm64 Apple M2 Memory: 164.45 MB / 8.00 GB Shell: version: "5.9" path: /bin/zsh Binaries: Node: version: 22.5.1 path: ~/.nvm/versions/node/v22.5.1/bin/node Yarn: version: 1.22.19 path: /opt/homebrew/bin/yarn npm: version: 10.8.2 path: ~/.nvm/versions/node/v22.5.1/bin/npm Watchman: version: 2024.12.02.00 path: /opt/homebrew/bin/watchman Managers: CocoaPods: version: 1.15.2 path: /usr/local/bin/pod SDKs: iOS SDK: Platforms: - DriverKit 24.2 - iOS 18.2 - macOS 15.2 - tvOS 18.2 - visionOS 2.2 - watchOS 11.2 Android SDK: Not Found IDEs: Android Studio: 2022.3 AI-223.8836.35.2231.10671973 Xcode: version: 16.2/16C5032a path: /usr/bin/xcodebuild Languages: Java: version: 20.0.2 path: /Users/personal/.jenv/shims/javac Ruby: version: 2.6.10 path: /usr/bin/ruby npmPackages: "@react-native-community/cli": Not Found react: Not Found react-native: Not Found react-native-macos: Not Found npmGlobalPackages: "*react-native*": Not Found Android: hermesEnabled: Not found newArchEnabled: Not found iOS: hermesEnabled: Not found newArchEnabled: Not found ``` ### Stacktrace or Logs ```text N/A ``` ### Reproducer https://github.com/haruki-m/react-native-text-input-issue ### Screenshots and Videos _No response_
Platform: iOS,Issue: Author Provided Repro,Component: TextInput
low
Minor
2,769,284,213
pytorch
`torch.nn.functional.one_hot` has inconsistent execution behavior under torch.compile
### 🐛 Describe the bug First of all, given the following input: ```python a = torch.arange(0, 5) % 3 # [0,1,2,0,1] a = a.to('cuda') num_classes = 1 ``` Directly calling `torch.nn.functional.one_hot` will throw a `RuntimeError`, which seems expected since the `max(a) > num_classes` (although the error message could be better refined) ```python res = torch.nn.functional.one_hot(a,num_classes) print(res) ------ ../aten/src/ATen/native/cuda/ScatterGatherKernel.cu:365: operator(): block: [0,0,0], thread: [1,0,0] Assertion `idx_dim >= 0 && idx_dim < index_size && "index out of bounds"` failed. ../aten/src/ATen/native/cuda/ScatterGatherKernel.cu:365: operator(): block: [0,0,0], thread: [2,0,0] Assertion `idx_dim >= 0 && idx_dim < index_size && "index out of bounds"` failed. ../aten/src/ATen/native/cuda/ScatterGatherKernel.cu:365: operator(): block: [0,0,0], thread: [4,0,0] Assertion `idx_dim >= 0 && idx_dim < index_size && "index out of bounds"` failed. ... RuntimeError: CUDA error: device-side assert triggered CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect. For debugging consider passing CUDA_LAUNCH_BLOCKING=1 Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions. ``` However, when calling `torch.nn.functional.one_hot` optimized by `torch.compile`, this optimized API will work normally without exceptions: ```python res = torch.compile(torch.nn.functional.one_hot)(a,num_classes) print(res) ------ tensor([[1], [0], [0], [1], [0]], device='cuda:0') ``` Then interesting thing happens, if I first call directly call `torch.nn.functional.one_hot`, then call the optimized `torch.nn.functional.one_hot`. This time, **the optimized API will then raise an Exception instead of working normally as it previously behaves**: ```python torch.nn.functional.one_hot(a,num_classes) res = torch.compile(torch.nn.functional.one_hot)(a,num_classes) print(res) ------ ../aten/src/ATen/native/cuda/ScatterGatherKernel.cu:365: operator(): block: [0,0,0], thread: [1,0,0] Assertion `idx_dim >= 0 && idx_dim < index_size && "index out of bounds"` failed. ../aten/src/ATen/native/cuda/ScatterGatherKernel.cu:365: operator(): block: [0,0,0], thread: [2,0,0] Assertion `idx_dim >= 0 && idx_dim < index_size && "index out of bounds"` failed. ../aten/src/ATen/native/cuda/ScatterGatherKernel.cu:365: operator(): block: [0,0,0], thread: [4,0,0] Assertion `idx_dim >= 0 && idx_dim < index_size && "index out of bounds"` failed. ...... torch._dynamo.exc.InternalTorchDynamoError: RuntimeError: CUDA error: device-side assert triggered CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect. For debugging consider passing CUDA_LAUNCH_BLOCKING=1 Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions. ``` ### Versions [pip3] numpy==1.26.2 [pip3] nvidia-cublas-cu12==12.4.5.8 [pip3] nvidia-cuda-cupti-cu12==12.4.127 [pip3] nvidia-cuda-nvrtc-cu12==12.4.127 [pip3] nvidia-cuda-runtime-cu12==12.4.127 [pip3] nvidia-cudnn-cu12==9.1.0.70 [pip3] nvidia-cufft-cu12==11.2.1.3 [pip3] nvidia-curand-cu12==10.3.5.147 [pip3] nvidia-cusolver-cu12==11.6.1.9 [pip3] nvidia-cusparse-cu12==12.3.1.170 [pip3] nvidia-nccl-cu12==2.21.5 [pip3] nvidia-nvjitlink-cu12==12.4.127 [pip3] nvidia-nvtx-cu12==12.4.127 [pip3] optree==0.13.1 [pip3] torch==2.5.1 [pip3] triton==3.1.0 [conda] numpy 1.26.2 pypi_0 pypi [conda] nvidia-cublas-cu12 12.4.5.8 pypi_0 pypi [conda] nvidia-cuda-cupti-cu12 12.4.127 pypi_0 pypi [conda] nvidia-cuda-nvrtc-cu12 12.4.127 pypi_0 pypi [conda] nvidia-cuda-runtime-cu12 12.4.127 pypi_0 pypi [conda] nvidia-cudnn-cu12 9.1.0.70 pypi_0 pypi [conda] nvidia-cufft-cu12 11.2.1.3 pypi_0 pypi [conda] nvidia-curand-cu12 10.3.5.147 pypi_0 pypi [conda] nvidia-cusolver-cu12 11.6.1.9 pypi_0 pypi [conda] nvidia-cusparse-cu12 12.3.1.170 pypi_0 pypi [conda] nvidia-nccl-cu12 2.21.5 pypi_0 pypi [conda] nvidia-nvjitlink-cu12 12.4.127 pypi_0 pypi [conda] nvidia-nvtx-cu12 12.4.127 pypi_0 pypi [conda] optree 0.13.1 pypi_0 pypi [conda] torch 2.5.1 pypi_0 pypi [conda] triton 3.1.0 pypi_0 pypi cc @ezyang @gchanan @zou3519 @kadeng @msaroufim @chauhang @penguinwu @voznesenskym @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @chenyang78 @amjames
high priority,triaged,oncall: pt2,module: dynamo
low
Critical
2,769,322,116
vscode
Bad hover handling (unjustifiable blockage)
    In particular for touch input. (that may have atypical ["mouseleave"](https://developer.mozilla.org/en-US/docs/Web/API/Element/mouseleave_event) handling) <img src="https://github.com/MasterInQuestion/attach/raw/main/microsoft/vscode/237285/hover.webp" alt="    https://github.com/MasterInQuestion/attach/raw/main/microsoft/vscode/237285/hover.webp" />     Similar:     [ https://github.com/microsoft/vscode/issues/237273](https://github.com/microsoft/vscode/issues/237273)     [ https://github.com/microsoft/vscode/issues/235979](https://github.com/microsoft/vscode/issues/235979)
workbench-hover
low
Minor
2,769,326,865
rust
ICE: rustc_hir_typeck: index out of bounds
<!-- ICE: Rustc ./a.rs '' 'thread 'rustc' panicked at compiler/rustc_hir_typeck/src/fn_ctxt/checks.rs:2611:34: 'index out of bounds: the len is 2 but the index is 2'', 'thread 'rustc' panicked at compiler/rustc_hir_typeck/src/fn_ctxt/checks.rs:2611:34: 'index out of bounds: the len is 2 but the index is 2'' File: /tmp/im/a.rs --> auto-reduced (treereduce-rust): ````rust pub trait LendingIteratorExt: { fn for_each<F>(self, mut f: F) { #[inline] fn call<T>() -> impl FnMut((), T) { } self.fold((), call(f)); } fn fold<B, F>(mut self, , self.; ) -> B { accum } } ```` <details><summary><strong>original code</strong></summary> <p> original: ````rust pub trait LendingIterator { type Item<'a> where Self: 'a; fn next(&'_ mut self) -> Option<Self::Item<'_>>; } pub trait PeekableIterator: Iterator + Sized { fn peekable_iter(self) -> Peekable<Self> { Peekable::new(self) } } impl<T: Iterator> PeekableIterator for T {} pub struct Peekable<T: Iterator> { inner: T, next: Option<T::Item>, } impl<T: Iterator> Peekable<T> { fn new(mut inner: T) -> Item { let next = inner.next(); Peekable { inner, next } } fn next(&mut self) -> Option<T::Item> { std::mem::replace(&mut self.next, self.inner.next()) } } impl<T: Iterator> LendingIterator for Peekable<T> { type Item<'a> = (T::Item, Option<&'a T::Item>) where T: 'a; fn next(&'_ mut self) -> Option<Self::Item<'_>> { self.next().map(|t| (t, self.next.as_ref())) } } pub trait LendingIteratorExt: LendingIterator { fn for_each<F>(self, mut f: F) where Self: Sized, F: FnMut(Self::Item<'_>), { #[inline] fn call<T>(mut f: impl FnMut(T)) -> impl FnMut((), T) { move |(), item| f(item) } self.fold((), call(f)); } fn fold<B, F>(mut self, init: B, self.fold((), call(f)); f: F) -> B where Self: Sized, F: FnMut(B, Self::Item<'_>) -> B, { let mut accum = init; while let Some(x) = self.next() { accum = f(accum, x); } accum } } impl<T: LendingIterator> LendingIteratorExt for T {} #[cfg(test)] mod tests { use super::*; #[test] fn it_works() { let a = [0, 1, 2, 3, 4]; a.iter().peekable_iter().for_each(|(a, b)| { if let Some(b) = b { assert_eq!(*a, *b - 1) } }); } } ```` </p> </details> Version information ```` rustc 1.86.0-nightly (dcfa38fe2 2025-01-05) binary: rustc commit-hash: dcfa38fe234de9304169afc6638e81d0dd222c06 commit-date: 2025-01-05 host: x86_64-unknown-linux-gnu release: 1.86.0-nightly LLVM version: 19.1.6 ```` Possibly related line of code: https://github.com/rust-lang/rust/blob/dcfa38fe234de9304169afc6638e81d0dd222c06/compiler/rustc_hir_typeck/src/fn_ctxt/checks.rs#L2605-L2617 Command: `/home/matthias/.rustup/toolchains/master/bin/rustc ` <details><summary><strong>Program output</strong></summary> <p> ``` error: expected argument name, found `,` --> /tmp/icemaker_global_tempdir.sa0LiyWL3vzD/rustc_testrunner_tmpdir_reporting.fKWfw8xoHo49/mvce.rs:24:29 | 24 | fn fold<B, F>(mut self, , self.; ) -> B | ^ expected argument name error: unexpected `self` parameter in function --> /tmp/icemaker_global_tempdir.sa0LiyWL3vzD/rustc_testrunner_tmpdir_reporting.fKWfw8xoHo49/mvce.rs:24:31 | 24 | fn fold<B, F>(mut self, , self.; ) -> B | ^^^^ must be the first parameter of an associated function error: expected argument name, found `;` --> /tmp/icemaker_global_tempdir.sa0LiyWL3vzD/rustc_testrunner_tmpdir_reporting.fKWfw8xoHo49/mvce.rs:24:36 | 24 | fn fold<B, F>(mut self, , self.; ) -> B | ^ expected argument name error: expected one of `)`, `,`, or `:`, found `.` --> /tmp/icemaker_global_tempdir.sa0LiyWL3vzD/rustc_testrunner_tmpdir_reporting.fKWfw8xoHo49/mvce.rs:24:35 | 24 | fn fold<B, F>(mut self, , self.; ) -> B | ^ | | | expected one of `)`, `,`, or `:` | help: missing `,` error[E0415]: identifier `self` is bound more than once in this parameter list --> /tmp/icemaker_global_tempdir.sa0LiyWL3vzD/rustc_testrunner_tmpdir_reporting.fKWfw8xoHo49/mvce.rs:24:31 | 24 | fn fold<B, F>(mut self, , self.; ) -> B | ^^^^ used as parameter more than once error[E0425]: cannot find value `accum` in this scope --> /tmp/icemaker_global_tempdir.sa0LiyWL3vzD/rustc_testrunner_tmpdir_reporting.fKWfw8xoHo49/mvce.rs:29:9 | 29 | accum | ^^^^^ not found in this scope warning: anonymous parameters are deprecated and will be removed in the next edition --> /tmp/icemaker_global_tempdir.sa0LiyWL3vzD/rustc_testrunner_tmpdir_reporting.fKWfw8xoHo49/mvce.rs:24:27 | 24 | fn fold<B, F>(mut self, , self.; ) -> B | ^ help: try naming the parameter or explicitly ignoring it: `_: ,` | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! = note: for more information, see issue #41686 <https://github.com/rust-lang/rust/issues/41686> = note: `#[warn(anonymous_parameters)]` on by default error[E0601]: `main` function not found in crate `mvce` --> /tmp/icemaker_global_tempdir.sa0LiyWL3vzD/rustc_testrunner_tmpdir_reporting.fKWfw8xoHo49/mvce.rs:31:2 | 31 | } | ^ consider adding a `main` function to `/tmp/icemaker_global_tempdir.sa0LiyWL3vzD/rustc_testrunner_tmpdir_reporting.fKWfw8xoHo49/mvce.rs` error[E0277]: expected a `FnMut((), T)` closure, found `()` --> /tmp/icemaker_global_tempdir.sa0LiyWL3vzD/rustc_testrunner_tmpdir_reporting.fKWfw8xoHo49/mvce.rs:18:25 | 18 | fn call<T>() -> impl FnMut((), T) { | ^^^^^^^^^^^^^^^^^ expected an `FnMut((), T)` closure, found `()` | = help: the trait `FnMut((), T)` is not implemented for `()` error[E0277]: the size for values of type `Self` cannot be known at compilation time --> /tmp/icemaker_global_tempdir.sa0LiyWL3vzD/rustc_testrunner_tmpdir_reporting.fKWfw8xoHo49/mvce.rs:14:20 | 14 | fn for_each<F>(self, mut f: F) | ^^^^ doesn't have a size known at compile-time | = help: unsized fn params are gated as an unstable feature help: consider further restricting `Self` | 14 | fn for_each<F>(self, mut f: F) where Self: Sized | +++++++++++++++++ help: function arguments must have a statically known size, borrowed types always have a known size | 14 | fn for_each<F>(&self, mut f: F) | + error[E0061]: this function takes 0 arguments but 1 argument was supplied --> /tmp/icemaker_global_tempdir.sa0LiyWL3vzD/rustc_testrunner_tmpdir_reporting.fKWfw8xoHo49/mvce.rs:22:23 | 22 | self.fold((), call(f)); | ^^^^ - unexpected argument of type `F` | note: function defined here --> /tmp/icemaker_global_tempdir.sa0LiyWL3vzD/rustc_testrunner_tmpdir_reporting.fKWfw8xoHo49/mvce.rs:18:12 | 18 | fn call<T>() -> impl FnMut((), T) { | ^^^^ help: remove the extra argument | 22 - self.fold((), call(f)); 22 + self.fold((), call()); | thread 'rustc' panicked at compiler/rustc_hir_typeck/src/fn_ctxt/checks.rs:2611:34: index out of bounds: the len is 2 but the index is 2 stack backtrace: 0: 0x7d8412cd47ca - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::hadf8e2df861efce2 1: 0x7d84134135e6 - core::fmt::write::h7a55e8c402e63d48 2: 0x7d84143127d1 - std::io::Write::write_fmt::h3751c3424aa517d0 3: 0x7d8412cd4622 - std::sys::backtrace::BacktraceLock::print::hda228978e42208f7 4: 0x7d8412cd6bc7 - std::panicking::default_hook::{{closure}}::hd850557dd952fc8c 5: 0x7d8412cd69b0 - std::panicking::default_hook::hb302f704a65842a5 6: 0x7d8411e52928 - std[3100b7b695602b1a]::panicking::update_hook::<alloc[5f744d0bf49b6096]::boxed::Box<rustc_driver_impl[736abb8093ca35b1]::install_ice_hook::{closure#1}>>::{closure#0} 7: 0x7d8412cd7413 - std::panicking::rust_panic_with_hook::ha601460835d6d839 8: 0x7d8412cd710a - std::panicking::begin_panic_handler::{{closure}}::h81a3663d6cb5d12c 9: 0x7d8412cd4c99 - std::sys::backtrace::__rust_end_short_backtrace::h4ff0aa96a7064803 10: 0x7d8412cd6dcd - rust_begin_unwind 11: 0x7d840f99e9e0 - core::panicking::panic_fmt::h6dfbe1ba47369a2f 12: 0x7d8411480519 - core::panicking::panic_bounds_check::hef42013b2602f98b 13: 0x7d8412178f9b - <rustc_hir_typeck[87f76b69f31a82ca]::fn_ctxt::FnCtxt>::label_generic_mismatches 14: 0x7d8412172047 - <rustc_hir_typeck[87f76b69f31a82ca]::fn_ctxt::FnCtxt>::report_arg_errors 15: 0x7d8413554017 - <rustc_hir_typeck[87f76b69f31a82ca]::fn_ctxt::FnCtxt>::check_argument_types 16: 0x7d8414109c40 - <rustc_hir_typeck[87f76b69f31a82ca]::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args 17: 0x7d84140f33f9 - <rustc_hir_typeck[87f76b69f31a82ca]::fn_ctxt::FnCtxt>::check_expr_block 18: 0x7d84140fad1f - <rustc_hir_typeck[87f76b69f31a82ca]::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args 19: 0x7d8413796f14 - rustc_hir_typeck[87f76b69f31a82ca]::check::check_fn 20: 0x7d84137a221b - rustc_hir_typeck[87f76b69f31a82ca]::typeck_with_fallback::{closure#0} 21: 0x7d84137a040c - rustc_query_impl[ac2bab59562664c7]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[ac2bab59562664c7]::query_impl::typeck::dynamic_query::{closure#2}::{closure#0}, rustc_middle[ccb2eb78bedf1942]::query::erase::Erased<[u8; 8usize]>> 22: 0x7d84137c580e - rustc_query_system[9e3640c263c85fee]::query::plumbing::try_execute_query::<rustc_query_impl[ac2bab59562664c7]::DynamicConfig<rustc_data_structures[52740ce709e2e05d]::vec_cache::VecCache<rustc_span[8e152531e0bcd89e]::def_id::LocalDefId, rustc_middle[ccb2eb78bedf1942]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[9e3640c263c85fee]::dep_graph::graph::DepNodeIndex>, false, false, false>, rustc_query_impl[ac2bab59562664c7]::plumbing::QueryCtxt, false> 23: 0x7d84137c49e3 - rustc_query_impl[ac2bab59562664c7]::query_impl::typeck::get_query_non_incr::__rust_end_short_backtrace 24: 0x7d84137c469d - <rustc_middle[ccb2eb78bedf1942]::hir::map::Map>::par_body_owners::<rustc_hir_analysis[48e47dfc185f7fea]::check_crate::{closure#4}>::{closure#0} 25: 0x7d84137c2751 - rustc_hir_analysis[48e47dfc185f7fea]::check_crate 26: 0x7d84138950a8 - rustc_interface[21548936fe144d05]::passes::run_required_analyses 27: 0x7d841431665e - rustc_interface[21548936fe144d05]::passes::analysis 28: 0x7d841431662f - rustc_query_impl[ac2bab59562664c7]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[ac2bab59562664c7]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[ccb2eb78bedf1942]::query::erase::Erased<[u8; 0usize]>> 29: 0x7d841437f7d5 - rustc_query_system[9e3640c263c85fee]::query::plumbing::try_execute_query::<rustc_query_impl[ac2bab59562664c7]::DynamicConfig<rustc_query_system[9e3640c263c85fee]::query::caches::SingleCache<rustc_middle[ccb2eb78bedf1942]::query::erase::Erased<[u8; 0usize]>>, false, false, false>, rustc_query_impl[ac2bab59562664c7]::plumbing::QueryCtxt, false> 30: 0x7d841437f50e - rustc_query_impl[ac2bab59562664c7]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace 31: 0x7d841433ecde - rustc_interface[21548936fe144d05]::passes::create_and_enter_global_ctxt::<core[5eafa33fb0699880]::option::Option<rustc_interface[21548936fe144d05]::queries::Linker>, rustc_driver_impl[736abb8093ca35b1]::run_compiler::{closure#0}::{closure#2}>::{closure#2}::{closure#0} 32: 0x7d8414358524 - rustc_interface[21548936fe144d05]::interface::run_compiler::<(), rustc_driver_impl[736abb8093ca35b1]::run_compiler::{closure#0}>::{closure#1} 33: 0x7d8414206187 - std[3100b7b695602b1a]::sys::backtrace::__rust_begin_short_backtrace::<rustc_interface[21548936fe144d05]::util::run_in_thread_with_globals<rustc_interface[21548936fe144d05]::util::run_in_thread_pool_with_globals<rustc_interface[21548936fe144d05]::interface::run_compiler<(), rustc_driver_impl[736abb8093ca35b1]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()> 34: 0x7d8414206624 - <<std[3100b7b695602b1a]::thread::Builder>::spawn_unchecked_<rustc_interface[21548936fe144d05]::util::run_in_thread_with_globals<rustc_interface[21548936fe144d05]::util::run_in_thread_pool_with_globals<rustc_interface[21548936fe144d05]::interface::run_compiler<(), rustc_driver_impl[736abb8093ca35b1]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1} as core[5eafa33fb0699880]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} 35: 0x7d8414207c01 - std::sys::pal::unix::thread::Thread::new::thread_start::he5122ef3561b8e92 36: 0x7d840e6a339d - <unknown> 37: 0x7d840e72849c - <unknown> 38: 0x0 - <unknown> error: the compiler unexpectedly panicked. this is a bug. note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md note: please make sure that you have updated to the latest nightly note: rustc 1.86.0-nightly (dcfa38fe2 2025-01-05) running on x86_64-unknown-linux-gnu query stack during panic: #0 [typeck] type-checking `LendingIteratorExt::for_each` #1 [analysis] running analysis passes on this crate end of query stack error[E0277]: the size for values of type `Self` cannot be known at compilation time --> /tmp/icemaker_global_tempdir.sa0LiyWL3vzD/rustc_testrunner_tmpdir_reporting.fKWfw8xoHo49/mvce.rs:24:23 | 24 | fn fold<B, F>(mut self, , self.; ) -> B | ^^^^ doesn't have a size known at compile-time | = help: unsized fn params are gated as an unstable feature help: consider further restricting `Self` | 24 | fn fold<B, F>(mut self, , self.; ) -> B where Self: Sized | +++++++++++++++++ help: function arguments must have a statically known size, borrowed types always have a known size | 24 | fn fold<B, F>(mut &self, , self.; ) -> B | + error: aborting due to 11 previous errors; 1 warning emitted Some errors have detailed explanations: E0061, E0277, E0415, E0425, E0601. For more information about an error, try `rustc --explain E0061`. ``` </p> </details> <!-- query stack: #0 [typeck] type-checking `LendingIteratorExt::for_each` #1 [analysis] running analysis passes on this crate -->
I-ICE,T-compiler,C-bug,S-has-mcve,S-bug-has-test,T-types,S-has-bisection
low
Critical
2,769,327,638
langchain
ChatPromptTemplate.format_messages does not handle f-strings inherited from BaseMessage, such as SystemMessage, etc
### Checked other resources - [X] I added a very descriptive title to this issue. - [X] I searched the LangChain documentation with the integrated search. - [X] I used the GitHub search to find a similar question and didn't find it. - [X] I am sure that this is a bug in LangChain rather than my code. - [X] The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package). ### Example Code from langchain_core.messages import HumanMessage, SystemMessage, AIMessage from langchain_core.prompts import ChatPromptTemplate, MessagesPlaceholder ChatPromptTemplate.from_messages([ SystemMessage("You are a helpful assistant. Answer all questions to the best of your ability in {language}"), MessagesPlaceholder(variable_name="messages") ]).invoke({"language": "English", "messages": [HumanMessage("hello")]}) ### Error Message and Stack Trace (if applicable) Unexpected results ### Description result,language Not replaced: ChatPromptValue(messages=[SystemMessage(content='You are a helpful assistant. Answer all questions to the best of your ability in {language}', additional_kwargs={}, response_metadata={}), HumanMessage(content='hello', additional_kwargs={}, response_metadata={})]) because,No processing of objects integrated from BaseMessage class ChatPromptTemplate(ChatPromptTemplate): def format_messages(self, **kwargs: Any) -> list[BaseMessage]: kwargs = self._merge_partial_and_user_variables(**kwargs) result = [] for message_template in self.messages: if isinstance(message_template, BaseMessage): # No processing of objects integrated from BaseMessage result.extend([message_template]) elif isinstance( message_template, (BaseMessagePromptTemplate, BaseChatPromptTemplate) ): message = message_template.format_messages(**kwargs) result.extend(message) else: msg = f"Unexpected input: {message_template}" raise ValueError(msg) return result ### System Info python==3.12.7 langchain==0.3.14
🤖:bug,investigate
low
Critical
2,769,334,462
ollama
llama3.2-vision doesn't utilize my GPU.
### What is the issue? I bought a new pc with 4070 Super to do some AI tasks using Ollama, but when I tried to run llama3.2-vision it just didn't utilize my GPU and only utilize my CPU, llama3.2 does utilize my GPU, so why is that? thank you. ### OS Windows ### GPU Nvidia ### CPU AMD ### Ollama version 0.5.4
bug
medium
Critical
2,769,336,258
TypeScript
Unary minus on 'any' should infer type to 'number | bigint', not just 'number'
### 🔎 Search Terms "unary minus", "negate bigint" ### 🕗 Version & Regression Information - This is the behavior in every version I tried, and I reviewed the FAQ for entries about bigint ### ⏯ Playground Link https://www.typescriptlang.org/play/?target=99&ts=5.7.2#code/MYewdgzgLgBARjAvDAtACgIxgJQG4BQA9ITKTAHoD8+okscATEqnAcWRdTeNDGM+gx4iJMlW50+TZCjBtRpcRN4BDAFwwVYAJ7NWIjuNq8AHgJXzDXY7FoA3Zmjsat27EgB8qO5bHUbMABOzPZocMLsfsq24HbSME4aYACuALZwAKbBAD7wAJYA5nlgUO6IXig+BlEBgfH2DGERCpz4QA ### 💻 Code ```ts const b = -(1n); // ^? const b2 = -b; // ^? const n = -(1); // ^? const n2 = -n; // ^? const a: any = b; // ^? const x = -a; // ^? const conv = (v: any) => -v; // ^? const r = conv(b); // ^? const conv2 = (v: number | bigint) => -v; // ^? const r2 = conv2(b); // ^? ``` ### 🙁 Actual behavior Applying an unary minus on an `any` variable infers the type to `number` (as can be seen in the "hat-question mark" comments or the .D.TS tab for `x`, `conv`, and `r`). The inferred type for the constants `x` and `r` is thus wrong (they actually contain a BigInt value). Unary minus on a `number` correctly infers `number`, and (more importantly) unary minus on a `bigint` correctly infers `bigint`. Same for unary minus on a `number | bigint` which infers `number | bigint`. ### 🙂 Expected behavior Applying an unary minus on an `any` variable should infer the type to `number | bigint`. ECMAScript specifies (https://tc39.es/ecma262/multipage/ecmascript-language-expressions.html#sec-unary-minus-operator) unary minus as doing a `ToNumeric` (which returns either a Number of a BigInt) and then applying the appropriate `unaryMinus` abstract operation depending on the type of the value. The result is thus either a Number or a BigInt. (the unary plus operator however converts to Number values only) ### Additional information about the issue _No response_
Suggestion,In Discussion
low
Minor
2,769,340,629
flutter
SliverReorderableList has different behavior than ReorderableListView when children are stateful
### Steps to reproduce States of stateful children of `SliverReorderableList` are destroyed if their widgets are re-ordered. 1- Run the code sample as it is 2- Tap on widget with item ID: 2 (It will turn blue) 3- Drag widget with item ID: 1, and place it right under item ID: 2 (Observe that itemID: 2 retains its state and stays blue) 4- Replace the `BoxTestScreen` in the `MaterialApp`'s `home` argument with `SliverTestScreen` 5- Repeat steps 1, 2, and 3 (Observe that itemID: 2 does not retain its state and reverts back to red) 6- Hot restart on the `SliverTestScreen` 7- Tap on widget with item ID: 2 (It will turn blue) 8- Drag widget with item ID: 6, and place it under item ID: 7 (Observe that itemID: 2 retains its state and stays blue) ### Expected results The two widgets should have the same behavior which would cause the stateful children to retain their states as long as the same keys are provided (as is done in this example). ### Actual results In the case of `SliverReorderableList` the expected result doesn't happen and the widget's state isn't retained. ### Code sample <details open><summary>Code sample</summary> ```dart import 'package:flutter/material.dart'; void main() => runApp(const MyApp()); class MyApp extends StatelessWidget { const MyApp({super.key}); @override Widget build(BuildContext context) { return MaterialApp( home: const BoxTestScreen(), ); } } class BoxTestScreen extends StatelessWidget { const BoxTestScreen({super.key}); static final List<int> randomIntegers = List.generate(10, (index) => index); @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: const Text('Box Test Screen'), ), body: ReorderableListView.builder( itemCount: randomIntegers.length, itemBuilder: (context, index) => _buildItem(index), onReorder: (oldIndex, newIndex) { final correctedNewIndex = newIndex > oldIndex ? newIndex - 1 : newIndex; final int item = randomIntegers.removeAt(oldIndex); randomIntegers.insert(correctedNewIndex, item); }, ), ); } Widget _buildItem(int index) { return Padding( key: ValueKey(randomIntegers[index]), padding: const EdgeInsets.all(8.0), child: StatefulItem( id: randomIntegers[index], index: index, ), ); } } class SliverTestScreen extends StatelessWidget { const SliverTestScreen({super.key}); static final List<int> randomIntegers = List.generate(10, (index) => index); @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: const Text('Sliver Test Screen'), ), body: CustomScrollView( slivers: [ SliverReorderableList( itemCount: randomIntegers.length, itemBuilder: (context, index) => _buildItem(index), onReorder: (oldIndex, newIndex) { final correctedNewIndex = newIndex > oldIndex ? newIndex - 1 : newIndex; final int item = randomIntegers.removeAt(oldIndex); randomIntegers.insert(correctedNewIndex, item); }, ) ], ), ); } Widget _buildItem(int index) { return Padding( key: ValueKey(randomIntegers[index]), padding: const EdgeInsets.all(8.0), child: StatefulItem( id: randomIntegers[index], index: index, ), ); } } class StatefulItem extends StatefulWidget { const StatefulItem({ super.key, required this.id, required this.index, }); final int id; final int index; @override State<StatefulItem> createState() => _StatefulItemState(); } class _StatefulItemState extends State<StatefulItem> with AutomaticKeepAliveClientMixin { Color _color = Colors.red; @override bool get wantKeepAlive => true; @override Widget build(BuildContext context) { super.build(context); return GestureDetector( onTap: () { setState(() { _color = _color == Colors.red ? Colors.blue : Colors.red; }); }, child: ColoredBox( color: _color, child: Row( children: [ Text('Item ID: ${widget.id}'), Spacer(), ReorderableDragStartListener( index: widget.index, child: IconButton( icon: const Icon(Icons.drag_handle), onPressed: () { setState(() { _color = _color == Colors.red ? Colors.blue : Colors.red; }); }, ), ) ], ), ), ); } } ``` </details> ### Screenshots or Video <details open> <summary>Screenshots / Video demonstration</summary> `ReorderableListView` https://github.com/user-attachments/assets/65876d70-2704-4b72-959a-d94f8c1e2a16 `SliverReorderableList` https://github.com/user-attachments/assets/1d88e124-2eff-44bc-b89c-660d2d05e360 </details> ### Logs _No response_ ### Flutter Doctor output <details open><summary>Doctor output</summary> ```console [✓] Flutter (Channel stable, 3.27.1, on macOS 15.1 24B83 darwin-arm64, locale en-EG) [✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0) [✓] Xcode - develop for iOS and macOS (Xcode 16.1) [✗] Chrome - develop for the web (Cannot find Chrome executable at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome) ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable. [✓] Android Studio (version 2024.2) [✓] VS Code (version 1.96.2) [✓] VS Code (version 1.95.1) [✓] Connected device (4 available) [✓] Network resources ``` </details>
framework,has reproducible steps,P2,team-framework,triaged-framework,found in release: 3.27,found in release: 3.28
low
Minor
2,769,369,922
excalidraw
Rendering Problem on Linux(Debian)
![Image](https://github.com/user-attachments/assets/d38f6664-9537-4ba2-ac49-bb91b722f7e4) Excalidraw website is having issues with rendering bigger size of the objects, which is visible in the above picture. Is this a problem on my end?? I have used Excalidraw on windows and it works flawlessly. How can I resolve this issue I am facing??
bug,Linux
low
Minor
2,769,372,187
tensorflow
How can I use local CUDA instead of hermetic CUDA to build?
### Issue type Build/Install ### Have you reproduced the bug with TensorFlow Nightly? No ### Source source ### TensorFlow version 2.18 ### Custom code No ### OS platform and distribution Ubuntu 24.04 ### Mobile device _No response_ ### Python version 3.12 ### Bazel version 6.5.0 ### GCC/compiler version _No response_ ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current behavior? Configures about hermetic CUDA are confusing. It seems to bring extra dependencies into the output binary. I want to build a tf-lib depends on local CUDA libs. ### Standalone code to reproduce the issue ```shell - ``` ### Relevant log output _No response_
type:build/install,subtype: ubuntu/linux,TF 2.18
medium
Critical
2,769,372,272
tensorflow
Broken compatibility with tensorflow-metal in 2.18
### Issue type Bug ### Have you reproduced the bug with TensorFlow Nightly? Yes ### Source source ### TensorFlow version 2.18 ### Custom code Yes ### OS platform and distribution MacOS 15.2 ### Mobile device _No response_ ### Python version 3.11.11 ### Bazel version _No response_ ### GCC/compiler version _No response_ ### CUDA/cuDNN version _No response_ ### GPU model and memory Apple M2 Max GPU 38-cores ### Current behavior? Apple silicone GPU with tensorflow-metal==1.1.0 and python 3.11 works fine with tensorboard==2.17.0 This is normal output: ``` /Users/mspanchenko/anaconda3/envs/cryptoNN_ml_core/bin/python /Users/mspanchenko/VSCode/cryptoNN/ml/core_second_window/test_tensorflow_gpus.py [PhysicalDevice(name='/physical_device:GPU:0', device_type='GPU')] Process finished with exit code 0 ``` But if I upgrade tensorflow to 2.18 I'll have error, attached in "Relevant log output" issue section ### Standalone code to reproduce the issue ```shell import tensorflow as tf if __name__ == '__main__': gpus = tf.config.experimental.list_physical_devices('GPU') print(gpus) ``` ### Relevant log output ```shell /Users/mspanchenko/anaconda3/envs/cryptoNN_ml_core/bin/python /Users/mspanchenko/VSCode/cryptoNN/ml/core_second_window/test_tensorflow_gpus.py Traceback (most recent call last): File "/Users/mspanchenko/VSCode/cryptoNN/ml/core_second_window/test_tensorflow_gpus.py", line 1, in <module> import tensorflow as tf File "/Users/mspanchenko/anaconda3/envs/cryptoNN_ml_core/lib/python3.11/site-packages/tensorflow/__init__.py", line 437, in <module> _ll.load_library(_plugin_dir) File "/Users/mspanchenko/anaconda3/envs/cryptoNN_ml_core/lib/python3.11/site-packages/tensorflow/python/framework/load_library.py", line 151, in load_library py_tf.TF_LoadLibrary(lib) tensorflow.python.framework.errors_impl.NotFoundError: dlopen(/Users/mspanchenko/anaconda3/envs/cryptoNN_ml_core/lib/python3.11/site-packages/tensorflow-plugins/libmetal_plugin.dylib, 0x0006): Symbol not found: __ZN3tsl8internal10LogMessageC1EPKcii Referenced from: <D2EF42E3-3A7F-39DD-9982-FB6BCDC2853C> /Users/mspanchenko/anaconda3/envs/cryptoNN_ml_core/lib/python3.11/site-packages/tensorflow-plugins/libmetal_plugin.dylib Expected in: <2814A58E-D752-317B-8040-131217E2F9AA> /Users/mspanchenko/anaconda3/envs/cryptoNN_ml_core/lib/python3.11/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so Process finished with exit code 1 ```
type:bug,comp:gpu,TF 2.18
low
Critical
2,769,373,062
rust
[ICE]: Both stable and nightly crash at `compiler/rustc_const_eval/src/interpret/operand.rs:84:42` on the invalid code under `opt-level=3`
### Code ```Rust #![allow(unused)] #![allow(type_alias_bounds)] pub trait Foo { fn test(&self); } async fn generic_function<'g, X: Foo>(x: &'g X) {} enum E where i32: Foo, { V, } struct S where i32: Foo; trait T where i32: Foo, { } union U where i32: Foo, { f: i32, } type Y where i32: Foo, = (); impl Foo for () where i32: Foo, { fn test(&self) { 3i32.test(); Foo::test(&4i32); generic_function(5i32); } } async fn f() where i32: Foo, { let s = S; 3i32.test(); Foo::test(&4i32); generic_function(5i32); } async fn use_op<'g>(s: &'g String) -> String where String: ::std::ops::Neg<Output = String>, { -s } async fn use_for() where i32: Iterator, { for _ in 2i32 {} } trait A {} impl A for i32 {} struct Dst { x: X, } struct TwoStrs(str, str) where str: Sized; async fn unsized_local() where Dst<dyn A>: Sized, { let x: Dst<dyn A> = *(Box::new(Dst { x: 1 }) as Box<Dst<dyn A>>); } async fn return_str() -> str where str: Sized, { *"Sized".to_string().into_boxed_str() } async fn global_hr<'g>(x: &'g fn(&())) where fn(&()): Foo, { x.test(); } fn main() {} ``` ### Affected release channels - [ ] Previous Stable - [x] Current Stable - [ ] Current Beta - [x] Current Nightly ### Rust Version ```Shell $ rustc --version --verbose rustc 1.83.0 (90b35a623 2024-11-26) binary: rustc commit-hash: 90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf commit-date: 2024-11-26 host: x86_64-unknown-linux-gnu release: 1.83.0 LLVM version: 19.1.1 ``` ### Current error output ```Shell $ rustc -C opt-level=3 --edition=2021 1.rs error[E0412]: cannot find type `X` in this scope --> 1.rs:64:8 | 61 | trait A {} | ------- similarly named trait `A` defined here ... 64 | x: X, | ^ | help: a trait with a similar name exists | 64 | x: A, | ~ help: you might be missing a type parameter | 63 | struct Dst<X> { | +++ error[E0277]: the trait bound `i32: Foo` is not satisfied --> 1.rs:9:5 | 9 | i32: Foo, | ^^^^^^^^ the trait `Foo` is not implemented for `i32` | = help: the trait `Foo` is implemented for `()` = help: see issue #48214 error[E0277]: the trait bound `i32: Foo` is not satisfied --> 1.rs:15:5 | 15 | i32: Foo; | ^^^^^^^^ the trait `Foo` is not implemented for `i32` | = help: the trait `Foo` is implemented for `()` = help: see issue #48214 error[E0277]: the trait bound `i32: Foo` is not satisfied --> 1.rs:17:5 | 17 | i32: Foo, | ^^^^^^^^ the trait `Foo` is not implemented for `i32` | = help: the trait `Foo` is implemented for `()` = help: see issue #48214 error[E0277]: the trait bound `i32: Foo` is not satisfied --> 1.rs:22:5 | 22 | i32: Foo, | ^^^^^^^^ the trait `Foo` is not implemented for `i32` | = help: the trait `Foo` is implemented for `()` = help: see issue #48214 error[E0277]: the trait bound `i32: Foo` is not satisfied --> 1.rs:32:5 | 32 | i32: Foo, | ^^^^^^^^ the trait `Foo` is not implemented for `i32` | = help: the trait `Foo` is implemented for `()` = help: see issue #48214 error[E0277]: the trait bound `i32: Foo` is not satisfied --> 1.rs:42:5 | 42 | i32: Foo, | ^^^^^^^^ the trait `Foo` is not implemented for `i32` | = help: the trait `Foo` is implemented for `()` = help: see issue #48214 error[E0277]: the trait bound `String: Neg` is not satisfied --> 1.rs:51:5 | 51 | String: ::std::ops::Neg<Output = String>, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Neg` is not implemented for `String` | = help: see issue #48214 error[E0277]: `i32` is not an iterator --> 1.rs:57:5 | 57 | i32: Iterator, | ^^^^^^^^^^^^^ `i32` is not an iterator | = help: the trait `Iterator` is not implemented for `i32` = help: see issue #48214 error[E0277]: the size for values of type `str` cannot be known at compilation time --> 1.rs:68:5 | 68 | str: Sized; | ^^^^^^^^^^ doesn't have a size known at compile-time | = help: the trait `Sized` is not implemented for `str` = help: see issue #48214 error[E0107]: struct takes 0 generic arguments but 1 generic argument was supplied --> 1.rs:71:5 | 71 | Dst<dyn A>: Sized, | ^^^------- help: remove the unnecessary generics | | | expected 0 generic arguments | note: struct defined here, with 0 generic parameters --> 1.rs:63:8 | 63 | struct Dst { | ^^^ error[E0277]: the size for values of type `str` cannot be known at compilation time --> 1.rs:77:5 | 77 | str: Sized, | ^^^^^^^^^^ doesn't have a size known at compile-time | = help: the trait `Sized` is not implemented for `str` = help: see issue #48214 error[E0308]: mismatched types --> 1.rs:47:22 | 47 | generic_function(5i32); | ---------------- ^^^^ expected `&_`, found `i32` | | | arguments to this function are incorrect | = note: expected reference `&_` found type `i32` note: function defined here --> 1.rs:6:10 | 6 | async fn generic_function<'g, X: Foo>(x: &'g X) {} | ^^^^^^^^^^^^^^^^ -------- help: consider borrowing here | 47 | generic_function(&5i32); | + error[E0600]: cannot apply unary operator `-` to type `&String` --> 1.rs:53:5 | 53 | -s | ^^ cannot apply unary operator `-` error[E0107]: struct takes 0 generic arguments but 1 generic argument was supplied --> 1.rs:73:12 | 73 | let x: Dst<dyn A> = *(Box::new(Dst { x: 1 }) as Box<Dst<dyn A>>); | ^^^------- help: remove the unnecessary generics | | | expected 0 generic arguments | note: struct defined here, with 0 generic parameters --> 1.rs:63:8 | 63 | struct Dst { | ^^^ error[E0107]: struct takes 0 generic arguments but 1 generic argument was supplied --> 1.rs:73:57 | 73 | let x: Dst<dyn A> = *(Box::new(Dst { x: 1 }) as Box<Dst<dyn A>>); | ^^^------- help: remove the unnecessary generics | | | expected 0 generic arguments | note: struct defined here, with 0 generic parameters --> 1.rs:63:8 | 63 | struct Dst { | ^^^ error[E0308]: mismatched types --> 1.rs:37:26 | 37 | generic_function(5i32); | ---------------- ^^^^ expected `&_`, found `i32` | | | arguments to this function are incorrect | = note: expected reference `&_` found type `i32` note: function defined here --> 1.rs:6:10 | 6 | async fn generic_function<'g, X: Foo>(x: &'g X) {} | ^^^^^^^^^^^^^^^^ -------- help: consider borrowing here | 37 | generic_function(&5i32); | + ``` ### Backtrace ```Shell error: internal compiler error: /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/compiler/rustc_const_eval/src/interpret/operand.rs:84:42: Got a scalar pair where a scalar was expected thread 'rustc' panicked at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/compiler/rustc_const_eval/src/interpret/operand.rs:84:42: Box<dyn Any> stack backtrace: 0: 0x7f57f8acb12a - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h5b6bd5631a6d1f6b 1: 0x7f57f92ac8f8 - core::fmt::write::h7550c97b06c86515 2: 0x7f57fa4e3b91 - std::io::Write::write_fmt::h7b09c64fe0be9c84 3: 0x7f57f8acaf82 - std::sys::backtrace::BacktraceLock::print::h2395ccd2c84ba3aa 4: 0x7f57f8acd456 - std::panicking::default_hook::{{closure}}::he19d4c7230e07961 5: 0x7f57f8acd2a0 - std::panicking::default_hook::hf614597d3c67bbdb 6: 0x7f57f7b8f556 - std[c6eb78587944e35c]::panicking::update_hook::<alloc[148a978a4a62f5d]::boxed::Box<rustc_driver_impl[4c2d2ad79fb810ac]::install_ice_hook::{closure#0}>>::{closure#0} 7: 0x7f57f8acdb68 - std::panicking::rust_panic_with_hook::h8942133a8b252070 8: 0x7f57f7bc6371 - std[c6eb78587944e35c]::panicking::begin_panic::<rustc_errors[7f4c80274b6ccf5]::ExplicitBug>::{closure#0} 9: 0x7f57f7bb9976 - std[c6eb78587944e35c]::sys::backtrace::__rust_end_short_backtrace::<std[c6eb78587944e35c]::panicking::begin_panic<rustc_errors[7f4c80274b6ccf5]::ExplicitBug>::{closure#0}, !> 10: 0x7f57f7bb9933 - std[c6eb78587944e35c]::panicking::begin_panic::<rustc_errors[7f4c80274b6ccf5]::ExplicitBug> 11: 0x7f57f7bcfa31 - <rustc_errors[7f4c80274b6ccf5]::diagnostic::BugAbort as rustc_errors[7f4c80274b6ccf5]::diagnostic::EmissionGuarantee>::emit_producing_guarantee 12: 0x7f57f81f9e74 - rustc_middle[a886f61dbc61428a]::util::bug::opt_span_bug_fmt::<rustc_span[3e5cf3424d44936d]::span_encoding::Span>::{closure#0} 13: 0x7f57f81dff6a - rustc_middle[a886f61dbc61428a]::ty::context::tls::with_opt::<rustc_middle[a886f61dbc61428a]::util::bug::opt_span_bug_fmt<rustc_span[3e5cf3424d44936d]::span_encoding::Span>::{closure#0}, !>::{closure#0} 14: 0x7f57f81dfdfb - rustc_middle[a886f61dbc61428a]::ty::context::tls::with_context_opt::<rustc_middle[a886f61dbc61428a]::ty::context::tls::with_opt<rustc_middle[a886f61dbc61428a]::util::bug::opt_span_bug_fmt<rustc_span[3e5cf3424d44936d]::span_encoding::Span>::{closure#0}, !>::{closure#0}, !> 15: 0x7f57f6b0e9a0 - rustc_middle[a886f61dbc61428a]::util::bug::bug_fmt 16: 0x7f57fab8f291 - <rustc_mir_transform[b36c87ceb4bb9a8e]::gvn::VnState>::simplify_operand.cold 17: 0x7f57f6bcb95b - <rustc_mir_transform[b36c87ceb4bb9a8e]::gvn::GVN as rustc_mir_transform[b36c87ceb4bb9a8e]::pass_manager::MirPass>::run_pass 18: 0x7f57f92963dd - rustc_mir_transform[b36c87ceb4bb9a8e]::pass_manager::run_passes_inner 19: 0x7f57f97959fa - rustc_mir_transform[b36c87ceb4bb9a8e]::optimized_mir 20: 0x7f57f9793369 - rustc_query_impl[db795c774d495014]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[db795c774d495014]::query_impl::optimized_mir::dynamic_query::{closure#2}::{closure#0}, rustc_middle[a886f61dbc61428a]::query::erase::Erased<[u8; 8usize]>> 21: 0x7f57f92afb2d - rustc_query_system[b2bb6e43dd6b7fda]::query::plumbing::try_execute_query::<rustc_query_impl[db795c774d495014]::DynamicConfig<rustc_query_system[b2bb6e43dd6b7fda]::query::caches::DefIdCache<rustc_middle[a886f61dbc61428a]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[db795c774d495014]::plumbing::QueryCtxt, false> 22: 0x7f57f92af1b3 - rustc_query_impl[db795c774d495014]::query_impl::optimized_mir::get_query_non_incr::__rust_end_short_backtrace 23: 0x7f57f9d5939f - rustc_middle[a886f61dbc61428a]::query::plumbing::query_get_at::<rustc_query_system[b2bb6e43dd6b7fda]::query::caches::DefIdCache<rustc_middle[a886f61dbc61428a]::query::erase::Erased<[u8; 8usize]>>> 24: 0x7f57f81f98b5 - <rustc_middle[a886f61dbc61428a]::ty::context::TyCtxt>::coroutine_layout 25: 0x7f57f98fec28 - rustc_ty_utils[45bf0f8bee683616]::layout::layout_of_uncached 26: 0x7f57f98efa46 - rustc_ty_utils[45bf0f8bee683616]::layout::layout_of 27: 0x7f57f98ef9d1 - rustc_query_impl[db795c774d495014]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[db795c774d495014]::query_impl::layout_of::dynamic_query::{closure#2}::{closure#0}, rustc_middle[a886f61dbc61428a]::query::erase::Erased<[u8; 16usize]>> 28: 0x7f57f98ef0b2 - rustc_query_system[b2bb6e43dd6b7fda]::query::plumbing::try_execute_query::<rustc_query_impl[db795c774d495014]::DynamicConfig<rustc_query_system[b2bb6e43dd6b7fda]::query::caches::DefaultCache<rustc_middle[a886f61dbc61428a]::ty::ParamEnvAnd<rustc_middle[a886f61dbc61428a]::ty::Ty>, rustc_middle[a886f61dbc61428a]::query::erase::Erased<[u8; 16usize]>>, false, true, false>, rustc_query_impl[db795c774d495014]::plumbing::QueryCtxt, false> 29: 0x7f57f98eeda9 - rustc_query_impl[db795c774d495014]::query_impl::layout_of::get_query_non_incr::__rust_end_short_backtrace 30: 0x7f57f689e0da - <rustc_mir_transform[b36c87ceb4bb9a8e]::known_panics_lint::KnownPanicsLint as rustc_mir_transform[b36c87ceb4bb9a8e]::pass_manager::MirLint>::run_lint 31: 0x7f57f92916b9 - rustc_mir_transform[b36c87ceb4bb9a8e]::run_analysis_to_runtime_passes 32: 0x7f57f94812de - rustc_mir_transform[b36c87ceb4bb9a8e]::mir_drops_elaborated_and_const_checked 33: 0x7f57f9480cfd - rustc_query_impl[db795c774d495014]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[db795c774d495014]::query_impl::mir_drops_elaborated_and_const_checked::dynamic_query::{closure#2}::{closure#0}, rustc_middle[a886f61dbc61428a]::query::erase::Erased<[u8; 8usize]>> 34: 0x7f57f957ee68 - rustc_query_system[b2bb6e43dd6b7fda]::query::plumbing::try_execute_query::<rustc_query_impl[db795c774d495014]::DynamicConfig<rustc_query_system[b2bb6e43dd6b7fda]::query::caches::VecCache<rustc_span[3e5cf3424d44936d]::def_id::LocalDefId, rustc_middle[a886f61dbc61428a]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[db795c774d495014]::plumbing::QueryCtxt, false> 35: 0x7f57f957e6cd - rustc_query_impl[db795c774d495014]::query_impl::mir_drops_elaborated_and_const_checked::get_query_non_incr::__rust_end_short_backtrace 36: 0x7f57f9b7b705 - rustc_interface[88a02114bbdb2383]::passes::run_required_analyses 37: 0x7f57f9b722e5 - rustc_interface[88a02114bbdb2383]::passes::analysis 38: 0x7f57f9b722c9 - rustc_query_impl[db795c774d495014]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[db795c774d495014]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[a886f61dbc61428a]::query::erase::Erased<[u8; 1usize]>> 39: 0x7f57fa07d662 - rustc_query_system[b2bb6e43dd6b7fda]::query::plumbing::try_execute_query::<rustc_query_impl[db795c774d495014]::DynamicConfig<rustc_query_system[b2bb6e43dd6b7fda]::query::caches::SingleCache<rustc_middle[a886f61dbc61428a]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[db795c774d495014]::plumbing::QueryCtxt, false> 40: 0x7f57fa07d38f - rustc_query_impl[db795c774d495014]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace 41: 0x7f57f9fed0bb - rustc_interface[88a02114bbdb2383]::interface::run_compiler::<core[c06ff78fa456ca03]::result::Result<(), rustc_span[3e5cf3424d44936d]::ErrorGuaranteed>, rustc_driver_impl[4c2d2ad79fb810ac]::run_compiler::{closure#0}>::{closure#1} 42: 0x7f57f9fde3d9 - std[c6eb78587944e35c]::sys::backtrace::__rust_begin_short_backtrace::<rustc_interface[88a02114bbdb2383]::util::run_in_thread_with_globals<rustc_interface[88a02114bbdb2383]::interface::run_compiler<core[c06ff78fa456ca03]::result::Result<(), rustc_span[3e5cf3424d44936d]::ErrorGuaranteed>, rustc_driver_impl[4c2d2ad79fb810ac]::run_compiler::{closure#0}>::{closure#1}, core[c06ff78fa456ca03]::result::Result<(), rustc_span[3e5cf3424d44936d]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[c06ff78fa456ca03]::result::Result<(), rustc_span[3e5cf3424d44936d]::ErrorGuaranteed>> 43: 0x7f57fa0adfac - <<std[c6eb78587944e35c]::thread::Builder>::spawn_unchecked_<rustc_interface[88a02114bbdb2383]::util::run_in_thread_with_globals<rustc_interface[88a02114bbdb2383]::interface::run_compiler<core[c06ff78fa456ca03]::result::Result<(), rustc_span[3e5cf3424d44936d]::ErrorGuaranteed>, rustc_driver_impl[4c2d2ad79fb810ac]::run_compiler::{closure#0}>::{closure#1}, core[c06ff78fa456ca03]::result::Result<(), rustc_span[3e5cf3424d44936d]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[c06ff78fa456ca03]::result::Result<(), rustc_span[3e5cf3424d44936d]::ErrorGuaranteed>>::{closure#1} as core[c06ff78fa456ca03]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} 44: 0x7f57fa0aea6b - std::sys::pal::unix::thread::Thread::new::thread_start::hcc78f3943333fa94 45: 0x7f57f4649609 - start_thread at /build/glibc-LcI20x/glibc-2.31/nptl/pthread_create.c:477:8 46: 0x7f57f456e353 - clone at /build/glibc-LcI20x/glibc-2.31/misc/../sysdeps/unix/sysv/linux/x86_64/clone.S:95 47: 0x0 - <unknown> note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md note: rustc 1.83.0 (90b35a623 2024-11-26) running on x86_64-unknown-linux-gnu note: compiler flags: -C opt-level=3 query stack during panic: #0 [optimized_mir] optimizing MIR for `return_str::{closure#0}` #1 [layout_of] computing layout of `{async fn body of return_str()}` end of query stack error: aborting due to 18 previous errors Some errors have detailed explanations: E0107, E0277, E0308, E0412, E0600. For more information about an error, try `rustc --explain E0107`. ``` ### Anything else? Note that the bug can only be reproduced by `rustc -C opt-level=3 --edition=2021 1.rs `. If we remove `-C opt-level=3`, the ICE disappears.
I-ICE,T-compiler,C-bug,A-const-eval,S-has-mcve,S-bug-has-test
low
Critical
2,769,380,434
deno
Vite's development server misbehaves when run under Deno version 2.1.2 and later
Version: Deno 2.1.2, 2.1.3, 2.1.4 OS: Arch Linux When Vite's development server is running under Deno and a file it is tracking is modified by Neovim, a change is registered in every file that Vite is tracking and all are reloaded. Because of this HMR is unusable. Vite will inevitably detect too many changes and overwhelm the refresh system leading to either a crash and relaunch or at best a total source reload. This only happens under Deno after version 2.1.2, earlier versions do not exhibit this issue. Some editors other than Neovim also do not trigger this issue (for instance a filesave in VSCode does not cause this to happen). There seems to be something specific about the way Neovim saves a file that confuses Vite's file watcher when run under Deno 2.1.2 and later. I have tested many versions of Neovim (v9.x, v10.x, nightly) with and without plugins enabled, and all trigger this issue. Many versions of Vite (v4.x, v5.x, v6.x) as well, and all trigger this issue. The problem has specifically been observed in Neovim (any version), Vite (any version), and Deno (`2.1.2`, `2.1.3`, and `2.1.4`) Here is a simple reproduction of the issue https://github.com/GunnerGuyven/deno-issue-example-1 Downgrading Deno using `sudo deno upgrade 2.1.1` also avoids this issue.
bug,node compat
low
Critical
2,769,386,481
flutter
Firebase Flutter tutorial includes incorrect statement statement to define GuestBookState
In [this codelabs firebase tutorial](https://firebase.google.com/codelabs/firebase-get-to-know-flutter#6), it shows below line of code which complains about invalid use of private type in public API... ```dart @override _GuestBookState createState() => _GuestBookState(); ``` ...but the sample source uses this line which gives no error... `State<GuestBook> createState() => _GuestBookState();` https://github.com/flutter/codelabs/blob/7e69ced1af6a90e3c0ebaf2e6a1720ff34e7461e/firebase-get-to-know-flutter/step_09/lib/guest_book.dart#L23
team-codelabs
low
Critical
2,769,387,753
pytorch
PyTorch Enum PYI stubs are invalid. Fix typing of PYI stubs
### 🐛 Describe the bug Updating mypy reveals that the way we have defined enums in our PYI stub is not valid. Specifically, we are not suppose to annotate the type of any values per https://typing.readthedocs.io/en/latest/spec/enums.html#defining-members . Therefore, we need to fix the typing and update it to a more modern typing system. See #143837 for some example errors. ### Versions master as of today cc @ezyang @malfet @xuzhao9 @gramster
module: typing,module: lint,triaged
low
Critical
2,769,396,767
vscode
Hardware acceleration creates memory Leak on 1.96.2; eventually caps RAM and freezes computer
<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ --> <!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ --> <!-- 🕮 Read our guide about submitting issues: https://github.com/microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions --> <!-- 🔎 Search existing issues to avoid creating duplicates. --> <!-- 🧪 Test using the latest Insiders build to see if your issue has already been fixed: https://code.visualstudio.com/insiders/ --> <!-- 💡 Instead of creating your report here, use 'Report Issue' from the 'Help' menu in VS Code to pre-fill useful information. --> <!-- 🔧 Launch with `code --disable-extensions` to check. --> Does this issue occur when all extensions are disabled?: Yes <!-- 🪓 If you answered No above, use 'Help: Start Extension Bisect' from Command Palette to try to identify the cause. --> <!-- 📣 Issues caused by an extension need to be reported directly to the extension publisher. The 'Help > Report Issue' dialog can assist with this. --> - VS Code Version: See title. - Portable version - OS Version: Windows 11 Pro 24H2 Spun off from issue #230090 which was closed without investigating / solving the issue. I voiced my frustration that the bug got closed within a week while I was on holiday after I've waited 3 months for an answer. Please don't do the same with this bug. Steps to Reproduce: 1. Launch VS Code with no extension enabled, but hardware acceleration enabled 2. Wait What happens: 1. RAM usage constantly increases 2. Developer: Process Explorer does not report any usage increase on any of the code main items 3. Eventually the RAM usage caps out, the computer becomes unresponsive, and I have to hard reset it What I have tried, unsuccessfully: 1. Reinstalled VS Code entirely and re-synced to my Github profile 2. Disabled all extensions 3. Uninstalled all extensions What I have tried, **successfully**: 1. Disable hardware acceleration in `argv.json` and restart VSCode. Memory leak does not occur. Memory report from Windows Task Manager as VS Code uses more than 4GB of memory: ![Image](https://github.com/user-attachments/assets/596cba13-d0ed-45ec-976f-2f7267fe3d56) Memory usage at the same time as the above: ![Image](https://github.com/user-attachments/assets/cb9a94b7-b214-433c-af6a-82623b992c46) Developer tools report: ![Image](https://github.com/user-attachments/assets/fbe40722-7393-4e3d-8a4f-510f82e8fe0e) FWIW, adding screenshot of VSCode version: ![Image](https://github.com/user-attachments/assets/fe75c6f6-7a58-4bfa-9b3a-69e621ce429b) Immediately after closing VSCode: ![Image](https://github.com/user-attachments/assets/89367d29-b806-446a-a911-310f399ef229) Command line used to launch the software: `"D:\Users\Mighty\Dropbox\Software\Windows\Tools\VSCode-win32-x64\Code.exe" ` I noticed page faults are constantly increasing: ![Image](https://github.com/user-attachments/assets/6ba166dd-d91e-4882-8c58-81a6cf01d377) I noticed that one of the subprocesses of Code.exe has a constant use of CPU (6.20). The associated command line is: `"D:\Users\Mighty\Dropbox\Software\Windows\Tools\VSCode-win32-x64\Code.exe" --type=gpu-process --user-data-dir="C:\Users\Mighty\AppData\Roaming\Code" --gpu-preferences=UAAAAAAAAADgAAAMAAAAAAAAAAAAAAAAAABgAAEAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAEAAAAAAAAAAIAAAAAAAAAAgAAAAAAAAA --field-trial-handle=1784,i,2806485216046023221,10863828599728893653,262144 --disable-features=CalculateNativeWinOcclusion,PlzDedicatedWorker,SpareRendererForSitePerProcess,WinDelaySpellcheckServiceInit,WinRetrieveSuggestionsOnlyOnDemand --variations-seed-version --mojo-platform-channel-handle=1768 /p` Below, the stack of the thread that uses that 6.20 CPU amount. Note that I have no idea if it is the thread that is problematic. ``` 0x0000000000000000 ntdll.dll!NtFsControlFile+0x14 KERNELBASE.dll!WaitNamedPipeW+0x269 NvMessageBus.dll!releaseMessageBusInterface+0x4bb05 NvMessageBus.dll!releaseMessageBusInterface+0x49a8a NvMessageBus.dll!releaseMessageBusInterface+0x22f4b0 KERNEL32.DLL!BaseThreadInitThunk+0x17 ntdll.dll!RtlUserThreadStart+0x2c ``` Memory usage reported by ProcessExplorer is basically stable and not increasing for Code.exe, but at the same time my RAM is getting filled more and more and more as the process is running. If you need anything else, please let me know.
bug,perf,under-discussion,gpu
low
Critical
2,769,403,308
go
text/scanner: SkipComments is ignored without ScanComments
### Go version go1.23.4 ### Output of `go env` in your module/workspace: ```shell GO111MODULE='' GOARCH='amd64' GOBIN='' GOCACHE='/home/carlo/.cache/go-build' GOENV='/home/carlo/.config/go/env' GOEXE='' GOEXPERIMENT='' GOFLAGS='' GOHOSTARCH='amd64' GOHOSTOS='linux' GOINSECURE='' GOMODCACHE='/home/carlo/go/pkg/mod' GONOPROXY='' GONOSUMDB='' GOOS='linux' GOPATH='/home/carlo/go' GOPRIVATE='' GOPROXY='https://proxy.golang.org,direct' GOROOT='/usr/lib/go' GOSUMDB='sum.golang.org' GOTMPDIR='' GOTOOLCHAIN='auto' GOTOOLDIR='/usr/lib/go/pkg/tool/linux_amd64' GOVCS='' GOVERSION='go1.23.4' GODEBUG='' GOTELEMETRY='off' GOTELEMETRYDIR='/home/carlo/.config/go/telemetry' GCCGO='gccgo' GOAMD64='v3' AR='ar' CC='gcc' CXX='g++' CGO_ENABLED='1' GOMOD='/home/carlo/src/go-scanner-bug/go.mod' GOWORK='' CGO_CFLAGS='-O2 -g' CGO_CPPFLAGS='' CGO_CXXFLAGS='-O2 -g' CGO_FFLAGS='-O2 -g' CGO_LDFLAGS='-O2 -g' PKG_CONFIG='pkg-config' GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build186288891=/tmp/go-build -gno-record-gcc-switches' ``` ### What did you do? The `text/scanner` [docs](https://pkg.go.dev/text/scanner#pkg-constants) say: > Predefined mode bits to control recognition of tokens. For instance, to configure a [Scanner](https://pkg.go.dev/text/scanner#Scanner) such that it only recognizes (Go) identifiers, integers, and skips comments, set the Scanner's Mode field to: > > `ScanIdents | ScanInts | SkipComments` > > With the exceptions of comments, which are skipped if SkipComments is set, unrecognized tokens are not ignored. However, it seems that `SkipComments` only works as advertised when combined with `ScanComments`, despite the example clearly implying otherwise. The following code demonstrates (see [go.dev.play link](https://go.dev/play/p/37ddUf4EPvV)): ```go package main import ( "fmt" "strings" "text/scanner" ) func main() { testScanner(scanner.ScanIdents|scanner.ScanInts|scanner.SkipComments, "// comment") testScanner(scanner.ScanIdents|scanner.ScanInts|scanner.ScanComments|scanner.SkipComments, "// comment") } func testScanner(mode uint, input string) { var sc scanner.Scanner sc.Init(strings.NewReader(input)) sc.Mode = mode for sc.Peek() != scanner.EOF { tok := sc.Scan() fmt.Printf("[%s:'%s'] ", scanner.TokenString(tok), sc.TokenText()) } fmt.Println() } ``` ### What did you see happen? The output is: ``` ["/":'/'] ["/":'/'] [Ident:'comment'] [EOF:''] ``` ### What did you expect to see? I would expect the output to be: ``` [EOF:''] [EOF:''] ```
Documentation,NeedsInvestigation,BugReport
low
Critical
2,769,442,620
tensorflow
MFCC-Example-Model converted from TF to TFlite fails with IsPowerOfTwo-RuntimeError inside rfft2d
### 1. System information - OS Platform and Distribution: Linux Mint 6.2.9 - TensorFlow installation: pip - TensorFlow library: 2.18.0 (latest) ### 2. Code Below is a minimum example which triggers the rfft2d IsPowerOfTwo RuntimeError. The MFCC-Calculation was directly taken from the tutorial from [tensorflow.org](https://www.tensorflow.org/api_docs/python/tf/signal/mfccs_from_log_mel_spectrograms#for_example) ``` import tensorflow as tf class MFCCLayer(tf.keras.layers.Layer): def __init__(self, **kwargs): super(MFCCLayer, self).__init__(**kwargs) def call(self, pcm): # A 1024-point STFT with frames of 64 ms and 75% overlap. stfts = tf.signal.stft(pcm, frame_length=1024, frame_step=256, fft_length=1024) spectrograms = tf.abs(stfts) # Warp the linear scale spectrograms into the mel-scale. num_spectrogram_bins = stfts.shape[-1] lower_edge_hertz, upper_edge_hertz, num_mel_bins = 80.0, 7600.0, 80 linear_to_mel_weight_matrix = tf.signal.linear_to_mel_weight_matrix( num_mel_bins, num_spectrogram_bins, sample_rate, lower_edge_hertz, upper_edge_hertz, ) mel_spectrograms = tf.tensordot(spectrograms, linear_to_mel_weight_matrix, 1) mel_spectrograms.set_shape( spectrograms.shape[:-1].concatenate(linear_to_mel_weight_matrix.shape[-1:]) ) # Compute a stabilized log to get log-magnitude mel-scale spectrograms. log_mel_spectrograms = tf.math.log(mel_spectrograms + 1e-6) # Compute MFCCs from log_mel_spectrograms and take the first 13. mfccs = tf.signal.mfccs_from_log_mel_spectrograms(log_mel_spectrograms)[ ..., :13 ] print("mfccs.shape: ", mfccs.shape) return mfccs def build_model(input_shape): input_layer = tf.keras.layers.Input(shape=input_shape) output_layer = MFCCLayer()(input_layer) return tf.keras.models.Model(inputs=input_layer, outputs=output_layer) if __name__ == "__main__": batch_size, num_samples, sample_rate = 32, 32000, 16000.0 # A Tensor of [batch_size, num_samples] mono PCM samples in the range [-1, 1]. pcm = tf.random.normal([batch_size, num_samples], dtype=tf.float32) print("pcm.shape: ", pcm.shape) model = build_model(pcm.shape) model.summary() # Convert to TensorFlow Lite and Save converter = tf.lite.TFLiteConverter.from_keras_model(model) converter.target_spec.supported_ops = [ tf.lite.OpsSet.TFLITE_BUILTINS, tf.lite.OpsSet.SELECT_TF_OPS, ] converter.optimizations = [tf.lite.Optimize.DEFAULT] tflite_model = converter.convert() with open("mfcc.tflite", "wb") as f: f.write(tflite_model) # Load the model and run inference with open("mfcc.tflite", "rb") as f: tflite_model = f.read() interpreter = tf.lite.Interpreter(model_content=tflite_model) interpreter.allocate_tensors() input_details = interpreter.get_input_details() output_details = interpreter.get_output_details() pcm = tf.expand_dims(pcm, axis=0) # Add batch dimension interpreter.set_tensor(input_details[0]["index"], pcm) interpreter.invoke() # <-- RuntimeError: tensorflow/lite/kernels/rfft2d.cc:117 IsPowerOfTwo(fft_length_data[1]) was not true.Node number 42 (RFFT2D) failed to prepare. mfccs = interpreter.get_tensor(output_details[0]["index"]) print("mfccs.shape: ", mfccs.shape) ``` ### 3. Failure after conversion As far as I know, the RuntimeError should't happen, as all supplied stft-function arguments are power of two's? I am unsure if this is just a user error from myself or this is a bug. I couldn't find any info online, hence i ask here. Is a MFCC-calculation model possible with TFlite? Thanks for all help
stat:awaiting tensorflower,type:bug,comp:lite,TFLiteConverter,TF 2.18
medium
Critical
2,769,446,144
ui
[bug]: Area Chart - Interactive
### Describe the bug when using Area Chart - Interactive with the cart type set to basis the dot isn't on the right place ### Affected component/components Area Chart ### How to reproduce make a chart and set the type to basis ### Codesandbox/StackBlitz link _No response_ ### Logs _No response_ ### System Info ```bash Chrome, Windows 11 ``` ### Before submitting - [X] I've made research efforts and searched the documentation - [X] I've searched for existing issues
bug
low
Critical
2,769,448,053
rust
Improvable error when putting `mut` in front of argument in trait method
### Code ```Rust trait Foo { fn foo(mut a: String); } ``` ### Current output ```Shell error: patterns aren't allowed in functions without bodies --> src/lib.rs:3:12 | 3 | fn foo(mut a: String); | ^^^^^ help: remove `mut` from the parameter: `a` | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = note: for more information, see issue #35203 <https://github.com/rust-lang/rust/issues/35203> = note: `#[deny(patterns_in_fns_without_body)]` on by default ``` ### Desired output ```Shell error: patterns aren't allowed in functions without bodies --> src/lib.rs:3:12 | 3 | fn foo(mut a: String); | ^^^^^ help: remove `mut` from the parameter: `a` | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = note: mutability of arguments cannot be declared in trait functions, as they are not part of the actual function signature. = note: for more information, see issue #35203 <https://github.com/rust-lang/rust/issues/35203> = note: `#[deny(patterns_in_fns_without_body)]` on by default ``` ### Rationale and extra context Adding `mut` in front of an argument makes an owned value be mutable inside a function. This is a form of a pattern, so the current error message is not _wrong_. However, most people, especially beginners, don't intuitively understand this as pattern syntax, and might not understand that it does not at all affect the effective function signature. Thus, adding a specific hint or maybe even a completely different, more specific error message, for this case could help avoid confusion, and might serve as a learning opportunity to beginners. ### Other cases ```Rust ``` ### Rust Version ```Shell rustc 1.83.0 (90b35a623 2024-11-26) binary: rustc commit-hash: 90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf commit-date: 2024-11-26 host: x86_64-unknown-linux-gnu release: 1.83.0 LLVM version: 19.1.1 ``` ### Anything else? _No response_ <!-- TRIAGEBOT_START --> <!-- TRIAGEBOT_ASSIGN_START --> <!-- TRIAGEBOT_ASSIGN_DATA_START$${"user":"mostafarezaei"}$$TRIAGEBOT_ASSIGN_DATA_END --> <!-- TRIAGEBOT_ASSIGN_END --> <!-- TRIAGEBOT_END -->
A-diagnostics,T-compiler
low
Critical
2,769,460,767
next.js
A component accessed data, headers, params, searchParams, or a short-lived cache without a Suspense boundary nor a "use cache" above it.
### Link to the code that reproduces this issue https://github.com/Dan6erbond/portfolio ### To Reproduce 1. Install dependencies with `pnpm i` 2. Copy the `.env.example` to `.env` 3. Start the Postgres container using `docker compose up -d` 4. Run Payload migrations with `pnpm payload migrate` 5. Build the Next app ### Current vs. Expected behavior I expect the app to build after ensuring that my blog page uses `<Suspense>` for components that make use of `searchParams` or `async` functions as per the [docs](https://nextjs.org/docs/messages/next-prerender-missing-suspense). Instead I get the following error: ```node $ pnpm build > [email protected] build C:\Users\morav\Documents\Projects\portfolio > cross-env NODE_OPTIONS=--no-deprecation next build ▲ Next.js 15.1.1-canary.25 - Environments: .env - Experiments (use with caution): · turbo · dynamicIO Creating an optimized production build ... ✓ Compiled successfully ./src/migrations/20250105_184440_baseline.ts 3:32 Warning: 'payload' is defined but never used. Allowed unused args must match /^_/u. @typescript-eslint/no-unused-vars 3:41 Warning: 'req' is defined but never used. Allowed unused args must match /^_/u. @typescript-eslint/no-unused-vars 310:34 Warning: 'payload' is defined but never used. Allowed unused args must match /^_/u. @typescript-eslint/no-unused-vars 310:43 Warning: 'req' is defined but never used. Allowed unused args must match /^_/u. @typescript-eslint/no-unused-vars info - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/app/api-reference/config/eslint#disabling-rules ✓ Linting and checking validity of types ✓ Collecting page data Error: Route "/blog": A component accessed data, headers, params, searchParams, or a short-lived cache without a Suspense boundary nor a "use cache" above it. We don't have the exact line number added to error messages yet but you can see which component in the stack below. See more info: https://nextjs.org/docs/messages/next-prerender-missing-suspense at O (C:\Users\morav\Documents\Projects\portfolio\.next\server\chunks\8711.js:1:14512) at c (C:\Users\morav\Documents\Projects\portfolio\.next\server\chunks\8711.js:1:24207) at f (C:\Users\morav\Documents\Projects\portfolio\.next\server\chunks\8711.js:1:24289) at l (C:\Users\morav\Documents\Projects\portfolio\.next\server\chunks\8711.js:1:10322) at c (C:\Users\morav\Documents\Projects\portfolio\.next\server\chunks\8711.js:1:10423) at P (C:\Users\morav\Documents\Projects\portfolio\.next\server\chunks\8711.js:1:15650) at y (C:\Users\morav\Documents\Projects\portfolio\.next\server\chunks\8711.js:1:7407) at v (C:\Users\morav\Documents\Projects\portfolio\.next\server\chunks\8711.js:1:13216) at E (C:\Users\morav\Documents\Projects\portfolio\.next\server\chunks\8711.js:1:14205) at u (C:\Users\morav\Documents\Projects\portfolio\.next\server\chunks\8711.js:1:27882) at R (C:\Users\morav\Documents\Projects\portfolio\.next\server\chunks\8711.js:1:15937) Error occurred prerendering page "/blog". Read more: https://nextjs.org/docs/messages/prerender-error Export encountered an error on /(frontend)/blog/page: /blog, exiting the build. ⨯ Static worker exited with code: 1 and signal: null  ELIFECYCLE  Command failed with exit code 1. ``` ### Provide environment information ```bash Operating System: Platform: win32 Arch: x64 Version: Windows 10 Pro Available memory (MB): 32440 Available CPU cores: 20 Binaries: Node: 18.20.4 npm: 10.7.0 Yarn: 1.22.22 pnpm: 8.3.1 Relevant Packages: next: 15.1.1-canary.25 // Latest available version is detected (15.1.1-canary.25). eslint-config-next: 15.1.0 react: 19.0.0 react-dom: 19.0.0 typescript: 5.7.2 Next.js Config: output: N/A ``` ### Which area(s) are affected? (Select all that apply) dynamicIO ### Which stage(s) are affected? (Select all that apply) next build (local), Vercel (Deployed) ### Additional context _No response_
dynamicIO
low
Critical
2,769,462,846
neovim
nvim -l/-es/-Es should enable user config + plugins by default
### Problem - By default, `nvim -es` skips user config unless `-u` is given. - By default, `nvim -l` skips user config *and* disables (builtin) plugins. Overriding these defaults is clumsy: `-u path/to/config -c 'set loadplugins'` whereas the inverse case is easy: `--clean`. see discussion in https://github.com/neovim/neovim/pull/21723 ### Expected behavior - Change `nvim -es` to load user config. - Change `nvim -l` to load user config and builtin plugins.
enhancement,defaults,needs:discussion,startup
low
Minor
2,769,475,308
TypeScript
The `parseJsonConfigFileContent` function does not resolve relative JSON paths
### 🔎 Search Terms json, imports, files, allowJs, resolveJsonModule ### 🕗 Version & Regression Information This is replicated in TypeScript version 5.7.2. It has not been tested on earlier versions. ### ⏯ Playground Link _No response_ ### 💻 Code [![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/edit/vanyauhalin-typescript-parsejsonconfigfilecontent-issue?file=main.js) ```sh $ npm install $ npm test ``` ```ts import path from 'node:path'; import { parseJsonConfigFileContent, readConfigFile, sys } from 'typescript'; function testAbsolute() { const f = path.join(process.cwd(), 'tsconfig.json'); const d = path.dirname(f); const j = readConfigFile(f, sys.readFile.bind(sys)); const r = parseJsonConfigFileContent(j.config, sys, d); return r.fileNames; } function testRelative() { const f = 'tsconfig.json'; const d = path.dirname(f); const j = readConfigFile(f, sys.readFile.bind(sys)); const r = parseJsonConfigFileContent(j.config, sys, d); return r.fileNames; } // Absolute: [ '/home/projects/vanyauhalin-typescript-parsejsonconfigfilecontent-issue/package.json' ] // Relative: [] console.log('Absolute:', testAbsolute()); console.log('Relative:', testRelative()); ``` ```json { "compilerOptions": { "allowJs": true, "resolveJsonModule": true }, "include": ["package.json"] } ``` ### 🙁 Actual behavior ```txt Absolute: [ '/home/projects/vanyauhalin-typescript-parsejsonconfigfilecontent-issue/package.json' ] Relative: [] ``` ### 🙂 Expected behavior ```txt Absolute: [ '/home/projects/vanyauhalin-typescript-parsejsonconfigfilecontent-issue/package.json' ] Relative: [ './package.json' ] ``` ### Additional information about the issue I tried to find the reason and ended up [here](https://github.dev/microsoft/TypeScript/blob/56a08250f3516b3f5bc120d6c7ab4450a9a69352/src/compiler/commandLineParser.ts/#L3917). The pattern that is generated for subsequent path validation always starts with a slash. As a result, any relative path in the future will fail this check. An example of the generated pattern is below: ```js /^\/(?!(node_modules|bower_components|jspm_packages)(\/|$))([^./]([^./]|(\.(?!min\.js$))?)*)?\.json$/ ```
Bug,Help Wanted
low
Minor
2,769,485,726
vscode
Iteration Plan for January 2025
This plan captures our work in **January 2025**. This is a 4-week iteration. We will ship in **early February**. Since mid-December, GitHub Copilot has been available for free for everyone. This allows us to treat AI support as an out-of-the-box experience in VS Code. Consequently, going forward, we'll cover our client-side work for Copilot in this plan, similarly to how we have been tracking our work on our Remote Extensions over the last years. ## Endgame <!-- NOTE: Do not change the format of the following text as it is parsed by VS Code Tools to extract endgame schedule --> - **Jan 27, 2025**: Endgame begins - **Jan 31, 2025**: Endgame done The endgame details for this iteration are tracked [here](https://github.com/microsoft/vscode/issues?q=is%3Aissue+label%3Aendgame-plan+milestone%3A%22January+2025%22). ## Plan Items Below is a summary of the top level plan items. Legend of annotations: | Mark | Description | | -------------------- | ------------------------------------------------- | | :runner: | work in progress | | :hand: | blocked task | | :muscle: | stretch goal for this iteration | | :red_circle: | missing issue reference | | :large_blue_circle: | more investigation required to remove uncertainty | | :black_circle: | under discussion within the team | | :black_large_square: | a large work item, larger than one iteration | ### Accessibility - [ ] :runner: Accessibility issues, see [query](https://github.com/microsoft/vscode/issues?q=is%3Aopen+is%3Aissue+label%3Aaccessibility+milestone%3A%22January+2025%22) @meganrogge **team** - [ ] :runner: Accessibility issues in GHPRI, see [query](https://github.com/microsoft/vscode-pull-request-github/issues?q=is%3Aissue%20state%3Aopen%20label%3Aaccessibility) @alexr00 ### Workbench - [x] Support video formats in walkthroughs [vscode#237810](https://github.com/microsoft/vscode/issues/237810) @bhavyaus - [x] Support moveable quick open widget [vscode#17268](https://github.com/microsoft/vscode/issues/17268) @TylerLeonhardt - [x] Explore a QuickPick-like experience close to what invoked it [vscode#238095](https://github.com/microsoft/vscode/issues/238095) @TylerLeonhardt - [x] Support filtering in the output pane [vscode#237432](https://github.com/microsoft/vscode/issues/237432) @sandy081 - [ ] Support macOS Configuration Profiles as a policy backend [vscode#148942](https://github.com/microsoft/vscode/issues/148942) @sandy081 @joaomoreno ### Code Editor - [ ] :runner: Investigation: Use tree-sitter for grammar colorization [vscode#210475](https://github.com/microsoft/vscode/issues/210475) @alexr00 @hediet - [ ] :runner: Explore GPU rendering of the code editor [vscode#221145](https://github.com/microsoft/vscode/issues/221145) @tyriar @hediet - [ ] :runner: Add support for variable line heights [vscode#147067](https://github.com/microsoft/vscode/issues/147067) @aiday-mar - [ ] :runner: Add support for multiple fonts in the editor [vscode#237346](https://github.com/microsoft/vscode/issues/237346) @aiday-mar - [ ] :muscle: Explore computing the indentation level using tree-sitter's AST [vscode#208985](https://github.com/microsoft/vscode/issues/208985) @aiday-mar ### Notebook Editor - [x] Show Inline values for variables in cell editor [vscode#237263](https://github.com/microsoft/vscode/issues/237263) @Yoyokrazy - [x] Improve markdown rendering in notebook (e.g., support custom fonts) [vscode#143907](https://github.com/microsoft/vscode/issues/143907) @Yoyokrazy #### Jupyter Notebooks - [ ] Improve Context key for execution/debug/run-by-line actions [vscode-jupyter#16189](https://github.com/microsoft/vscode-jupyter/issues/16189) @Yoyokrazy - [ ] :muscle: Explore kernel persistence for Remote environments [vscode-jupyter#16224](https://github.com/microsoft/vscode-jupyter/issues/16224) @DonJayamanne ### Settings - [x] Fix fuzzy search in settings search [vscode#226039](https://github.com/microsoft/vscode/issues/226039) @rzhao271 ### Languages #### Python - [ ] :runner: Contributions to the Python extension, see [plan](https://github.com/microsoft/vscode-python/issues?q=is%3Aissue+label%3Aiteration-plan+milestone%3A%22January+2025%22) @karthiknadig **team** #### TypeScript - None. ### Authentication - [x] Adopt Broker flow in Microsoft Auth provider via MSAL-node [vscode#229431](https://github.com/microsoft/vscode/issues/229431) @TylerLeonhardt ### Source Control - [x] Add SCM accessibility help dialog [vscode#203577](https://github.com/microsoft/vscode/issues/203577) @lszomoru @meganrogge - [x] Support for ref context actions [vscode#232992](https://github.com/microsoft/vscode/issues/232992) @lszomoru - [x] Support holding a modifier key to show/hide editor blame decorations [vscode#237433](https://github.com/microsoft/vscode/issues/237433) @lszomoru - [x] Support opening commit in GitHub from blame hover [vscode#237434](https://github.com/microsoft/vscode/issues/237434) @lszomoru - [x] Support GitHub issue/PR links in blame hover [vscode#237436](https://github.com/microsoft/vscode/issues/237436) @lszomoru - [x] Support showing full commit message in blame hover [vscode#237435](https://github.com/microsoft/vscode/issues/237435) @lszomoru ### Testing - None. ### Terminal - [ ] :runner: Improve upon terminal completions [query](https://github.com/microsoft/vscode/issues?q=is%3Aissue%20state%3Aopen%20assignee%3Ameganrogge%20label%3Aterminal-suggest) @meganrogge - [x] Promote terminal ligatures from experimental [query](https://github.com/microsoft/vscode/issues?q=is%3Aissue%20state%3Aopen%20label%3Aterminal-ligatures) @Tyriar - [ ] :runner: Terminal Environment Variable API [vscode#227467](https://github.com/microsoft/vscode/issues/227467) @anthonykim1 - [x] pwsh - [ ] :runner: bash - better perf [vscode#238488](https://github.com/microsoft/vscode/pull/238488) - [ ] zsh - [ ] fish - [x] Terminal Shell Type API [vscode#230165](https://github.com/microsoft/vscode/issues/230165) @anthonykim1 - [ ] :runner: New `conpty` setting blocks update [vscode#225719](https://github.com/microsoft/vscode/issues/225719) @deepak1556 ### API - [ ] :runner: API proposals: [query](https://github.com/microsoft/vscode/issues?q=is%3Aissue+is%3Aopen+milestone%3A%22January+2025%22+label%3A%22api-proposal%22) @jrieken @mjbvz - [ ] :runner: API finalization: [query](https://github.com/microsoft/vscode/issues?q=is%3Aissue+is%3Aopen+milestone%3A%22January+2025%22+label%3A%22api-finalization%22) @jrieken @mjbvz - [X] Finalize document paste API [vscode#30066](http://github.com/microsoft/vscode/issues/30066) @mjbvz ### Extensions - [x] Notify users of extension runtime model on extension install [vscode#215527](https://github.com/microsoft/vscode/issues/215527) @sandy081 - [ ] :runner: Enable extension signature verification by default on Linux [vscode#230816](https://github.com/microsoft/vscode/issues/230816) @sandy081 ### Extension Contributions - [x] Support global PR queries [vscode-pull-request-github#6448](https://github.com/microsoft/vscode-pull-request-github/issues/6448) @alexr00 ### Remote Extension Contributions #### General - None. #### SSH Extension - [ ] :muscle: Better proxy support for remote (install, download extensions, etc) [vscode-remote-release#5927](https://github.com/microsoft/vscode-remote-release/issues/5927), [vscode-remote-release#10491](https://github.com/microsoft/vscode-remote-release/issues/10491) @joshspicer - [x] SSH Config parsing improvements @joshspicer - [x] Upgrade ssh-config dependency [vscode-remote-release#10132](https://github.com/microsoft/vscode-remote-release/issues/10132), [vscode-remote-release#10013](https://github.com/microsoft/vscode-remote-release/issues/10013) - [x] Wildcard support for remote SSH platform [vscode-remote-release#2997](https://github.com/microsoft/vscode-remote-release/issues/2997) - [ ] :muscle: Resolve unique connection issues [vscode-remote-release#10412](https://github.com/microsoft/vscode-remote-release/issues/10412), [vscode-remote-release#6319](https://github.com/microsoft/vscode-remote-release/issues/6319), [vscode-remote-release#6600](https://github.com/microsoft/vscode-remote-release/issues/6600) @joshspicer - [x] Allow connecting to unsupported Linux remotes, by use of custom glibc and stdc++ libraries [vscode#231623](https://github.com/microsoft/vscode/issues/231623) @deepak1556 ### GitHub Copilot <!-- Issue references TBD by kieferrm --> - [ ] Improve out-of-the-box experience [vscode#236511](https://github.com/microsoft/vscode/issues/236511) @bpasero - [x] Support `vscode:` protocol handler for initial chat setup @bpasero - [x] Improve Copilot setup view in secondary sidebar @bpasero - [ ] :runner: Consolidate Copilot status bar items [vscode#237428](https://github.com/microsoft/vscode/issues/237428) @bpasero - [ ] :runner: Improve Copilot Edits and explore self-guided multi-step editing in Copilot Edits [vscode-copilot-release#3974](https://github.com/microsoft/vscode-copilot-release/issues/3974) @kieferrm **team** - [ ] :runner: Provide support for next edit suggestions [vscode-copilot-release#3975](https://github.com/microsoft/vscode-copilot-release/issues/3975) @alexdima **team** - [ ] :runner: Make language-specific context available to Copilot inline completions [vscode-copilot-release#3976](https://github.com/microsoft/vscode-copilot-release/issues/3976) @dbaeumer - [ ] :runner: Provide support for prompt snippets [vscode-copilot-release#3977](https://github.com/microsoft/vscode-copilot-release/issues/3977) @legomushroom ### Engineering - [ ] Support building the monaco-editor AMD variant from new sources [vscode#234114](https://github.com/microsoft/vscode/issues/234114) @hediet @alexdima ### Electron - [x] Electron 34 update [vscode#237437](https://github.com/microsoft/vscode/issues/237437) @deepak1556 - [ ] :runner: Align Electron fetch with Node.js fetch [electron#43715](https://github.com/electron/electron/issues/43715), [electron#43712](https://github.com/electron/electron/issues/43712) @deepak1556 - [ ] :runner: GetBoundingClientRect zoom adjustments [vscode#233692](https://github.com/microsoft/vscode/issues/233692) @deepak1556 ### Documentation - [x] Document extension runtime security [vscode-docs#7874](https://github.com/microsoft/vscode-docs/issues/7874#issuecomment-2548823049) @ntrogh @isidorn --- ### Deferred - [ ] :muscle: Finalize Related code [vscode#126932](https://github.com/microsoft/vscode/issues/126932) @connor4312 - [ ] :muscle: Explore supporting reverse search in tree find to remove filter widget [vscode#227009](https://github.com/microsoft/vscode/issues/227009) @meganrogge - [ ] VSCode freezing when adding folder to workspace while working on remote Linux machine [vscode-remote-release#10168](https://github.com/microsoft/vscode-remote-release/issues/10168) @joshspicer <!-- - [ ] :runner: Proposal for cleaning up our context menus [vscode#225411](https://github.com/microsoft/vscode/issues/225411) @daviddossett --> <!-- - [ ] :muscle: Add setting to control rendering of multi-line inline completions [vscode#225399](https://github.com/microsoft/vscode/issues/225399) @hediet --> <!-- - [ ] :runner: Prepare `FileSearchProvider` API for finalization [vscode#73524](https://github.com/microsoft/vscode/issues/73524) @andreamah --> <!-- - [ ] :runner: Prepare `TextSearchProvider` API for finalization [vscode#59921](https://github.com/microsoft/vscode/issues/59921) @andreamah --> <!-- - [ ] :wrench: Group Policy Support for Mac [vscode#84756](https://github.com/microsoft/vscode/issues/84756) -->
iteration-plan
medium
Critical
2,769,499,654
ui
[bug]: error: Cannot find package 'fast-glob'
### Describe the bug tried installing shadcn ui using bun but am get error: Cannot find package 'fast-glob' from 'C:\Users\tochu\AppData\Local\Temp\bunx-516282117-shadcn@latest\node_modules\shadcn\dist\index.js' instead ### Affected component/components installation ### How to reproduce seeing error ### Codesandbox/StackBlitz link _No response_ ### Logs _No response_ ### System Info ```bash error: Cannot find package 'fast-glob' from 'C:\Users\tochu\AppData\Local\Temp\bunx-516282117-shadcn@latest\node_modules\shadcn\dist\index.js' ``` ### Before submitting - [X] I've made research efforts and searched the documentation - [X] I've searched for existing issues
bug,postpone: more info or changes requested
low
Critical
2,769,500,744
flutter
Exception: Image upload failed due to loss of GPU access on iOS Devices on 3.27.1
### Steps to reproduce Reproducible with flutter 3.27.1, introduced in commit fc011960a2 Not reproducible with parent commit e466195f42 and not reproducible on 3.24.5 1. Run the sample app on an iOS physical device using Flutter version 3.27.1 2. Pan down on the main page 3. Tap on the next arrow to go to the next page in the sample app 4. Move the app to the background by putting another app in the foreground 5. Move the sample app back to the foreground 6. Observe console errors `Exception: Image upload failed due to loss of GPU access.` related: #159397 and fluttercandies/extended_image#724 attempting to reproduce with a binary search on various flutter commits, the first commit introducing the issue is commit fc011960a2 note that today's master branch commit 2d17299f20f3 does not exhibit the issue ### Expected results Expected no exceptions ### Actual results After putting app in foreground after putting it in background, images in the UI fail to render with the following error to console: ``` Exception: Image upload failed due to loss of GPU access. ``` With an "All Exceptions" breakpoint I get the following stack trace: ``` MultiFrameImageStreamCompleter._decodeNextFrameAndSchedule (development/flutter/packages/flutter/lib/src/painting/image_stream.dart:1064) <asynchronous gap> (Unknown Source:0) ``` ### Code sample <details open><summary>Sample app that loads several images</summary> ```dart import 'package:extended_image/extended_image.dart'; import 'package:flutter/material.dart'; void main() { runApp(const MyApp()); } class MyApp extends StatelessWidget { const MyApp({super.key}); @override Widget build(BuildContext context) { return MaterialApp( title: 'Flutter Demo', theme: ThemeData( colorScheme: ColorScheme.fromSeed(seedColor: Colors.blue), useMaterial3: true, ), debugShowCheckedModeBanner: false, home: const MyHomePage(title: 'Loss of GPU Access Demo'), ); } } class MyHomePage extends StatefulWidget { const MyHomePage({super.key, required this.title}); final String title; @override State<MyHomePage> createState() => _MyHomePageState(); } class _MyHomePageState extends State<MyHomePage> { @override Widget build(BuildContext context) { final int imageWidth = MediaQuery.sizeOf(context).width.toInt(); final int imageHeight = 200; final urls = List.generate(50, (i) { return 'https://picsum.photos/seed/$i/$imageWidth/$imageHeight'; }); return Scaffold( appBar: AppBar( backgroundColor: Theme.of(context).colorScheme.inversePrimary, title: Text(widget.title), actions: [ IconButton( icon: const Icon(Icons.navigate_next), tooltip: 'Next', onPressed: () { Navigator.of(context).push( MaterialPageRoute(builder: (context) => const SecondScreen()), ); }, ), ], ), body: ListView.builder( itemCount: urls.length, // No error occurs when removing cacheExtent cacheExtent: MediaQuery.sizeOf(context).height * 5, itemBuilder: (context, index) { if (index == 0) { return Wrap( children: [ Text( 'To reproduce: Scroll down, then use the next button, then put app in background, bring to foreground', ), ], ); } return SizedBox( width: double.infinity, height: imageHeight.toDouble(), child: ExtendedImage.network(urls[index]), ); }, ), ); } } class SecondScreen extends StatefulWidget { const SecondScreen({super.key}); @override State<SecondScreen> createState() => SecondScreenState(); } class SecondScreenState extends State<SecondScreen> { @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( backgroundColor: Theme.of(context).colorScheme.inversePrimary, title: Text('Second Page'), ), body: Center(child: Text('Second Page')), ); } } ``` </details> ### Screenshots or Video no screenshots ### Logs <details open><summary>Logs</summary> ```console ════════ Exception caught by image resource service ════════════════════════════ Exception: Image upload failed due to loss of GPU access. ════════════════════════════════════════════════════════════════════════════════ ``` </details> ### Flutter Doctor output <details open><summary>Doctor output</summary> ```console bug % flutter doctor -v [✓] Flutter (Channel stable, 3.27.1, on macOS 14.6 23G80 darwin-arm64, locale en-CA) • Flutter version 3.27.1 on channel stable at /Users/dgreen/development/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 17025dd882 (3 weeks ago), 2024-12-17 03:23:09 +0900 • Engine revision cb4b5fff73 • Dart version 3.6.0 • DevTools version 2.40.2 [✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0) • Android SDK at /Users/dgreen/Library/Android/sdk • Platform android-35, build-tools 35.0.0 • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 21.0.3+-79915917-b509.11) • All Android licenses accepted. [✓] Xcode - develop for iOS and macOS (Xcode 16.1) • Xcode at /Applications/Xcode.app/Contents/Developer • Build 16B40 • CocoaPods version 1.15.2 [✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome [✓] Android Studio (version 2024.2) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 21.0.3+-79915917-b509.11) [✓] IntelliJ IDEA Community Edition (version 2024.1.7) • IntelliJ at /Applications/IntelliJ IDEA CE.app • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart [✓] VS Code (version 1.96.2) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.102.0 [✓] Connected device (5 available) • David’s iPhone (mobile) • 00008130-000C5C322179001C • ios • iOS 18.1.1 22B91 • iPhone 16 Pro Max (mobile) • 485BC19C-49C5-47D9-802A-43749F36014E • ios • com.apple.CoreSimulator.SimRuntime.iOS-18-2 (simulator) • macOS (desktop) • macos • darwin-arm64 • macOS 14.6 23G80 darwin-arm64 • Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin • macOS 14.6 23G80 darwin-arm64 • Chrome (web) • chrome • web-javascript • Google Chrome 131.0.6778.205 ! Error: Browsing on the local area network for Old iPhone. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac. The device must be opted into Developer Mode to connect wirelessly. (code -27) [✓] Network resources • All expected network resources are available. • No issues found! ``` </details>
c: regression,platform-ios,engine,a: images,has reproducible steps,P1,team-ios,triaged-ios,found in release: 3.27
medium
Critical
2,769,508,931
ui
[bug]: Canary CLI does not respect MacOS modifier keys
### Describe the bug After creating a monorepo and running `bun run dev`, then interacting with the terminal, `CTRL+Z` is required to exit interactivity. In my case, and possibly many others without MacBooks, changing your modifier keys to use the `CTRL` key instead of super key is common. Unfortunately, the CLI does not respect this. Instead of using `CTRL+Z` as displayed on everyday keyboards, it wants `Super+Z`, which does not reflect my preferences within MacOS. ![Current](https://github.com/user-attachments/assets/70ffc507-839d-45bf-a8df-bd0fd64c5771)[^1] ![Default](https://github.com/user-attachments/assets/de2e2e18-b994-4cbb-bc9c-32768a13ae50)[^2] [^1]: My modifier key preferences. [^2]: The default MacOS modifier key preferences. ### Affected component/components CLI ### How to reproduce 1. Create a monorepo with Canary 2. Run `bun run dev` 3. Get error and interact (using `i`) with the terminal 4. `CTRL+Z` is required to exit interactivity ### Codesandbox/StackBlitz link _No response_ ### Logs ```bash ⨯ [custom formatter threw an exception] [Error [TurbopackInternalError]: Failed to write app endpoint /page Caused by: - failed to deserialize message - invalid type: null, expected a string Debug info: - Execution of get_written_endpoint_with_issues failed - Execution of <AppEndpoint as Endpoint>::write_to_disk failed - Failed to write app endpoint /page - Execution of AppEndpoint::output failed - Execution of *ReducedGraphs::get_next_dynamic_imports_for_endpoint failed - Execution of get_reduced_graphs_for_endpoint_inner failed - Execution of get_module_graph_for_endpoint failed - Execution of SingleModuleGraph::new_with_entries_visited failed - Execution of primary_chunkable_referenced_modules failed - Execution of <CssModuleAsset as Module>::references failed - Execution of parse_css failed - Execution of <PostCssTransformedAsset as Asset>::content failed - Execution of PostCssTransformedAsset::process failed - failed to deserialize message - invalid type: null, expected a string at . | v 1 + {"type":"error","name":"CssSyntaxError","message":"/Users/intentionally-blank/Desktop/intentionally-blank/packages/ui/src/...:null,"methodName":"processTicksAndRejections","arguments":["native"],"lineNumber":7,"column":39}]} | ^] ``` ### System Info - Bun 1.1.38 - MacOS Sequoia 15.2 - Safari 18.2 - shadcn-ui Canary (monorepo slightly modified to run with Bun) ```bash { "name": "shadcn-ui-monorepo", "version": "0.0.1", "private": true, "scripts": { "build": "turbo build", "dev": "turbo dev", "lint": "turbo lint", "format": "prettier --write \"**/*.{ts,tsx,md}\"" }, "devDependencies": { "@workspace/eslint-config": "workspace:*", "@workspace/typescript-config": "workspace:*", "prettier": "^3.2.5", "turbo": "^2.3.0", "typescript": "5.5.4" }, "packageManager": "[email protected]", "engines": { "node": ">=20" }, "workspaces": [ "apps/*", "packages/*" ] } ``` ### Before submitting - [X] I've made research efforts and searched the documentation - [X] I've searched for existing issues
bug
low
Critical
2,769,512,122
puppeteer
[Bug]: `BrowserContext.deleteCookie` call signature requires fully populated cookie?
### Minimal, reproducible example ```TypeScript import { BrowserContext } from 'puppeteer'; let a: BrowserContext; a.deleteCookie({ name: 'session', domain: 'localhost', }); ``` ### Background You recently deprecated `page.deleteCookie` et al, it seems the new API is not ready and or brokenly designed. ### Expectation `deleteCookie` does not require full cookie? ### Reality `deleteCookie` requires full cookie. ### Puppeteer configuration file (if used) _No response_ ### Puppeteer version 23.11.1 ### Node version 20.17.0 ### Package manager npm ### Package manager version 10.8.2 ### Operating system macOS
bug,feature,confirmed,P2
low
Critical
2,769,513,214
godot
(Documentation) TextEdit's get_version does not actually return something resembling a count of undo/redo operations
### Tested versions 4.3.beta2 (last version to not have a different bug I'm avoiding) ### System information Godot v4.3.beta2 - Windows 10.0.19045 - GLES3 (Compatibility) - AMD Radeon RX 6800 (Advanced Micro Devices, Inc.; 32.0.12033.1030) - AMD Ryzen 5 7600X 6-Core Processor (12 Threads) ### Issue description The docs here (https://docs.godotengine.org/en/stable/classes/class_textedit.html#class-textedit-method-get-version) say `The version is a count of recorded operations by the undo/redo history.` -- however this is not true and each keypresses that contributes to an undo/redo operation has its own version number. "Operation" in the context of undo/redo is a jargon term that refers to the entire set of actions that make up a single undo/redo step, exemplified by other places on this docs page saying e.g. `Perform redo operation.`. Example: https://github.com/user-attachments/assets/13c4faac-aa3c-424f-ace4-eab93eeaa975 ### Steps to reproduce N/A ### Minimal reproduction project (MRP) N/A
discussion,topic:gui
low
Critical
2,769,537,294
rust
Tracking Issue for std::net::hostname
<!-- Thank you for creating a tracking issue! Tracking issues are for tracking a feature from implementation to stabilization. Make sure to include the relevant RFC for the feature if it has one. If the new feature is small, it may be fine to skip the RFC process. In that case, you can use `issue = "none"` in your initial implementation PR. The reviewer will ask you to open a tracking issue if they agree your feature can be added without an RFC. --> Feature gate: `#![feature(gethostname)]` This is a tracking issue for retrieving the device's hostname. https://github.com/rust-lang/libs-team/issues/330 goes into far more detail; basically, "it seems to be a small but useful addition to `std::net`" ### Public API ```rust // std::net pub fn hostname() -> std::io::Result<OsString> ``` ### Steps / History <!-- For larger features, more steps might be involved. If the feature is changed later, please add those PRs here as well. --> - [ ] Implementation: #135141 - [ ] Final comment period (FCP)[^1] - [x] Implementation on Windows - [ ] Switch to String before stabilization, as the hostname is guaranteed to be valid ASCII (OsString is therefore unnecessary). - [ ] Stabilization PR <!-- Once the feature has gone through a few release cycles and there are no unresolved questions left, the feature might be ready for stabilization. If this feature didn't go through the RFC process, a final comment period (FCP) is always needed before stabilization. This works as follows: A library API team member can kick off the stabilization process, at which point the rfcbot will ask all the team members to verify they agree with stabilization. Once enough members agree and there are no concerns, the final comment period begins: this issue will be marked as such and will be listed in the next This Week in Rust newsletter. If no blocking concerns are raised in that period of 10 days, a stabilization PR can be opened by anyone. --> ### Unresolved Questions <!-- Include any open questions that need to be answered before the feature can be stabilised. If multiple (unrelated) big questions come up, it can be a good idea to open a separate issue for each, to make it easier to keep track of the discussions. It's useful to link any relevant discussions and conclusions (whether on GitHub, Zulip, or the internals forum) here. --> - Will using `netc` be fine for all targets that support `std`, or do we need to do more here? I think so, since any new targets without a libc can just expose the same function signature under `netc` (`gethostname(ptr, len)`) - Is the structure of this (with functions being directly under std::net) fine, with things like gethostbyname in mind? [^1]: https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html
T-libs-api,C-tracking-issue,A-io
low
Minor
2,769,538,919
kubernetes
`matchLabelKeys` in PodTopologySpread should insert a labelSelector like PodAffinity's `matchLabelKeys`
follow up: https://github.com/kubernetes/enhancements/pull/4001#discussion_r1206841191 Currently, we have matchLabelKeys in two places, PodAffinity and PodTopologySpread. Historically, PodTopologySpread's one was introduced first and then PodAffinity. When we designed PodAffinity, we decided to take a different approach from PodTopologySpread. PodTopologySpread handles `matchLabelKeys` within the plugin, internally merging the label selector made from `matchLabelKeys` and calculating the result. It's not that the plugin patches an actual label selector thru kube-apiserver, but it's just that the plugin internally merges the selector with matchLabelKeys before the calculation. Therefore, if you query the pod, the pod would not has the labelSelector coming from matchLabelKeys. https://github.com/kubernetes/kubernetes/blob/3c229949f992d9f798bcfd9f79dab88c21500c36/pkg/scheduler/framework/plugins/podtopologyspread/common.go#L95-L106 But, PodAffinity's `matchLabelKeys` is handled at kube-apiserver; when a PodAffinity has `matchLabelKeys`, a label selector is computed from the pod's label, added additionally into `labelSelector`, and actually stored in the storage (etcd). i.e., if you query the pod after the creation, the pod would has the labelSelector that you didn't add on your own, but is made from `matchLabelKeys`. And the PodAffinity plugin doesn't directly look at `matchLabelKeys`, but just compute `labelSelector` which may or may not have the selector made from `matchLabelKeys`. https://github.com/sanposhiho/kubernetes/blob/810e9e212ec5372d16b655f57b9231d8654a2179/pkg/registry/core/pod/strategy.go#L797-L817 We should make PodTopologySpread's `matchLabelKeys` behave the same as PodTopologySpread to reduce the users' confusion coming from the behavior difference. /sig scheduling /kind feature /cc @alculquicondor @macsko @dom4ha
sig/scheduling,kind/feature,needs-triage
medium
Critical
2,769,555,512
rust
Precise captures in ITIAT are not refining
[I tried this code:](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=5c131dec691c82024576391dc589febe) ```rust #![feature(impl_trait_in_assoc_type)] pub trait Trait {} impl<T> Trait for T {} pub struct Context; pub trait Component { type Creation<'a>: Trait; fn create(self, ctx: &Context) -> Self::Creation<'_>; } impl Component for String { // `+ use<>` is allowed without triggering this lint // #[allow(refining_impl_trait)] type Creation<'a> = impl Trait + use<>; fn create(self, _ctx: &Context) -> Self::Creation<'_> { self } } impl Component for &str { // `+ use<>` correctly rejects the defining use here type Creation<'a> = impl Trait /*+ use<>*/; fn create(self, ctx: &Context) -> Self::Creation<'_> { ctx } } // This should accept `T = String` and not `T = &str`, but it // accepts neither pub fn component<T, R>(prop: T) where T: for<'a> Component<Creation<'a> = R>, { move |ctx: &Context| prop.create(ctx); } fn main() { let but_does_it_work = component(String::new()); // let but_does_it_work = component(""); } ``` I expected to see this happen: successful compilation Instead, this happened: ```rust error[E0308]: mismatched types --> src/main.rs:39:28 | 15 | type Creation<'a> = impl Trait + use<>; | ------------------ | | | the expected opaque type | the found opaque type ... 39 | let but_does_it_work = component(String::new()); | ^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other | = note: expected opaque type `<String as Component>::Creation<'a>` found opaque type `<String as Component>::Creation<'_>` = note: distinct uses of `impl Trait` result in different opaque types note: the lifetime requirement is introduced here --> src/main.rs:33:26 | 33 | T: for<'a> Component<Creation<'a> = R>, | ^^^^^^^^^^^^^^^^ ``` ### Why the expectation [The analogous refinement works with RPITIT and RTN.](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=fe2d135278e8e2ab9a4c5b52edcf0633) ### Meta Playground 1.86.0-nightly (2025-01-04 1891c28669863bf7ed3e) @rustbot label +F-impl_trait_in_assoc_type +A-traits +T-types +requires-nightly
A-lifetimes,A-trait-system,A-impl-trait,C-bug,requires-nightly,S-has-mcve,T-types,F-impl_trait_in_assoc_type
low
Critical
2,769,567,833
terminal
Open in Terminal option not initially appearing in the context menu
### Windows Terminal version 1.21.3231.0 and 1.22.3232.0 ### Windows build number 10.0.22631.0 ### Other Software N/A ### Steps to reproduce 1. Reboot the computer or restart Windows Explorer from Task Manager. Then, right click on the desktop background or a folder background. The context menu does not show the "Open in Terminal" entry: ![Image](https://github.com/user-attachments/assets/743c3b89-633d-41c5-911e-0494e19a3e8a) 2. Click on the desktop/folder background for a second time. Now the entry appears: ![Image](https://github.com/user-attachments/assets/32ee0bb9-f8d2-4487-bcea-559357f95698) ### Expected Behavior The Open in Terminal context menu entry should appear on the first right click after restarting Explorer or rebooting the computer. ### Actual Behavior It takes opening the context menu twice in order for the Terminal context menu entry to appear. It also does not have to be right clicking on the same element two times in a row. For instance, after restarting Explorer, right clicking on a file and then right clicking on the desktop background will cause the Open in Terminal entry to appear.
Issue-Bug,Needs-Triage
low
Minor
2,769,580,341
kubernetes
Can't mount iscsi volume with openiscsi from target that does not automatically inform your initiator about changes in that session.
### What happened? Can't mount iscsi volume in pod. I'm creating pod with iscsi volume from NAS using config: ``` --- apiVersion: v1 kind: Pod metadata: name: iscsipd2 spec: containers: - name: iscsipd-ro image: nginx volumeMounts: - mountPath: "/mnt/iscsipd" name: iscsipd-rw volumes: - name: iscsipd-rw iscsi: targetPortal: <portalhost/port> iqn: <IQN> lun: 1 fsType: ext4 readOnly: false ``` Pod fails to start reporting: ``` Warning FailedMount 2s (x7 over 3m28s) kubelet MountVolume.WaitForAttach failed for volume "iscsipd-rw" : failed to get any path for iscsi disk, last err seen: Timed out waiting for device at path /dev/disk/by-path/<portal-IQN-Lun> after 30s ``` iSCSI server is Synology NAS which uses open iscsi 2.0-876. It is possible to mount LUNs onto the host itself manually. ### What did you expect to happen? Volume mounted. ### How can we reproduce it (as minimally and precisely as possible)? Reproducing could be tricky if you don't have version of iscsi that shows similar behaviour. When kubelet mounts iSCSI volume it executes the following command sequence (starts here https://github.com/kubernetes/kubernetes/blob/642efbb595df18bcac54e1e53ab3d1d4df1569aa/pkg/volume/iscsi/iscsi_util.go#L339) ``` iscsiadm -m discoverydb -t sendtargets -p <portal> -I default -o new iscsiadm -m discoverydb -t sendtargets -p <portal> -I default --discover iscsiadm -m node -p <portal> -T <target> -I default -o update -n node.session.scan -v manual iscsiadm -m node -p <portal> -T <target> -I default --login iscsiadm -m node -p <portal> -T <target> -o update -n node.startup -v manual ``` After this it will wait for device path to appear once iscsid service on the node attaches to LUN. This unfortunately doesn't happen. The reason is `node.session.scan` being set to `manual` which was introduced in #90982 to address different issue. It is happening because my server doesn't notify initiator about new luns in session when `manual` option is set. The solution is to rescan active iSCSI session to discover LUN which would trigger device file creation. The test was to just execute ``` sudo iscsiadm -m node -p <...> -T <...> -I default -R ``` while `kubelet` was waiting for device file. I then added ``` diff --git a/pkg/volume/iscsi/iscsi_util.go b/pkg/volume/iscsi/iscsi_util.go index b51127aa92f..239cb075aef 100644 --- a/pkg/volume/iscsi/iscsi_util.go +++ b/pkg/volume/iscsi/iscsi_util.go @@ -376,6 +376,12 @@ func (util *ISCSIUtil) AttachDisk(b iscsiDiskMounter) (string, error) { klog.Warningf("Warning: Failed to set iSCSI login mode to manual. Error: %v", err) } + // For targets that don't notify initiator about LUNs added to session we need to trigger recans + _, err = execWithLog(b, "iscsiadm", "-m", "node", "-p", tp, "-T", b.Iqn, "-I", b.Iface, "-R") + if err != nil { + klog.Warningf("Warning: Failed to trigger rescan of LUNs in session. Error: %v", err) + } + // Rebuild the host map after logging in portalHostMap, err := b.deviceUtil.GetISCSIPortalHostMapForTarget(b.Iqn) if err != nil { ``` to `kubelet` unconditionally after `--login` command to fix the issue. While it works, I'm sure there might be cases where this behaviour is undesirable, some internet people mentioned rescan being slow. Nevertheless it would be nice to have an option to do rescan either based on config or when mount can't be found within certain time threshold. ### Anything else we need to know? _No response_ ### Kubernetes version <details> ```console $ kubectl version Client Version: v1.31.3 Kustomize Version: v5.4.2 Server Version: v1.32.0 ``` </details> ### Cloud provider <details> Self hosted </details> ### OS version <details> ```console # On Linux: $ cat /etc/os-release PRETTY_NAME="Ubuntu 24.04.1 LTS" NAME="Ubuntu" VERSION_ID="24.04" VERSION="24.04.1 LTS (Noble Numbat)" VERSION_CODENAME=noble ID=ubuntu ID_LIKE=debian HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" UBUNTU_CODENAME=noble LOGO=ubuntu-logo $ uname -a Linux xxx 6.8.0-51-generic #52-Ubuntu SMP PREEMPT_DYNAMIC Thu Dec 5 13:09:44 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux ``` </details> ### Install tools <details> </details> ### Container runtime (CRI) and version (if applicable) <details> </details> ### Related plugins (CNI, CSI, ...) and versions (if applicable) <details> </details>
kind/bug,sig/storage,needs-triage
low
Critical
2,769,625,190
godot
OneShots can't fade out StateMachine shots with no running animation
### Tested versions - Reproduceable in 4.3.stable ### System information Windows 11, 4.3.stable, Vulkan 1.3.289, Forward+, Geforce 4080 RTX ### Issue description When an `AnimationNodeOneShot` in an `AnimationNodeBlendTree` has its `shot` pin connected to an `AnimationNodeStateMachine` with no playing animation, `AnimationNodeOneShot.ONE_SHOT_REQUEST_FADE_OUT` doesn't work. The one shot should fade back to its input over *fadeout_time* seconds. https://github.com/user-attachments/assets/03f99bfb-c7f0-4927-9861-f3d93509e35f ### Steps to reproduce - Add an `AnimationTree` to your scene with a `AnimationNodeBlendTree` root. Add an `AnimationNodeOneShot` with 0.2s fadeout time and give it a looping animation input and state machine shot. ![Image](https://github.com/user-attachments/assets/9164ea46-d2e7-4fbf-9ace-ba24b691fe79) - Inside the state machine, add a non-looping animation and connect it to Start ![Image](https://github.com/user-attachments/assets/a440c778-efbf-4252-9bda-f7095d11b9fc) Fire the one shot, wait for the state machines animation to complete then try fading out the one shot. Instead of fading back into the one shots input, it will do nothing. ### Minimal reproduction project (MRP) MRP attached. [fadeoutissue.zip](https://github.com/user-attachments/files/18312722/fadeoutissue.zip) Open the *character/character.tscn* scene, click its `AnimationTree`, fire and fade out the one shot.
enhancement,topic:animation
low
Minor
2,769,632,754
transformers
Very slow to load deep seekv3 int4 model and device_map="auto" "sequential" bug
### System Info transforms 4.47.0 ### Who can help? _No response_ ### Reproduction please refer the code in model card https://huggingface.co/OPEA/DeepSeek-V3-int4-sym-gptq-inc ### Expected behavior 1 **Loading is very slow.** Loading the model (https://huggingface.co/OPEA/DeepSeek-V3-int4-sym-gptq-inc) on a DGX system with 2TB of memory and 7x80GB A100 GPUs is very slow, taking 30 minutes to 1 hour. **2 device_map bug.** Additionally, on a 7x80GB A100 GPUs, using device_map='auto' results in an OOM error, while switching to device_map='sequential' still causes an OOM error on card 0, even with max_memory configured.
bug
low
Critical
2,769,654,711
transformers
How about adding a combined step and epoch feature to save_strategy?
### Feature request Add epoch+steps functionality to save_strategy ### Motivation I often set save_strategy to epoch for saving, but sometimes I need to run experiments with steps. Recently, I had to compare checkpoints saved at both epoch and step intervals, which required running the experiment twice and was quite cumbersome. Having a combined feature would be really helpful. What do you think? ### Your contribution I can add the epoch+steps functionality to save_strategy.
Feature request
low
Minor
2,769,658,077
transformers
Warning 'The attention mask is not set'
Having the same warning appearing in a closed pull request #33509 ### System Info - `transformers` version: 4.47.1 - Platform: Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.39 - Python version: 3.12.3 - Huggingface_hub version: 0.27.0 - Safetensors version: 0.5.0 - Accelerate version: 1.2.1 - Accelerate config: not found - PyTorch version (GPU?): 2.5.1+cu124 (True) - Tensorflow version (GPU?): not installed (NA) - Flax version (CPU?/GPU?/TPU?): not installed (NA) - Jax version: not installed - JaxLib version: not installed - Using distributed or parallel set-up in script?: no - Using GPU in script?: yes - GPU type: NVIDIA RTX 4000 Ada Generation Laptop GPU ### Who can help? @ylacombe ### Information - [ ] The official example scripts - [X] My own modified scripts ### Tasks - [X] An officially supported task in the `examples` folder (such as GLUE/SQuAD, ...) - [ ] My own task or dataset (give details below) ### Reproduction code: ```python pipe = pipeline( "automatic-speech-recognition", model=self.model, torch_dtype=torch.float16, chunk_length_s=30, batch_size=24, return_timestamps=True, device=self.device, tokenizer=processor.tokenizer, feature_extractor=processor.feature_extractor, model_kwargs={"use_flash_attention_2": True}, generate_kwargs={ "max_new_tokens": 128, }, ) ``` warning: ``` The attention mask is not set and cannot be inferred from input because pad token is same as eos token. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results. Whisper did not predict an ending timestamp, which can happen if audio is cut off in the middle of a word. Also make sure WhisperTimeStampLogitsProcessor was used during generation. ``` ### Expected behavior No warning
bug
low
Minor
2,769,666,713
flutter
[Impeller] Android rendering issues with the RK3588 chip
### Steps to reproduce Flutter demo App ### Expected results ... ### Actual results In Flutter 3.27.1, Android rendering issues (screen tearing) occur when switching pages on devices with the RK3588 chip. After setting Impeller to false, the software runs normally. ### Code sample <details open><summary>Code sample</summary> ```dart import 'package:flutter/material.dart'; void main() { runApp(const MyApp()); } class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( home: HomePage(), ); } } class HomePage extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar(title: Text('Home Page')), body: Center( child: ElevatedButton( onPressed: () { Navigator.push( context, MaterialPageRoute(builder: (context) => SecondPage()), ); }, child: Text('Go to Second Page'), ), ), ); } } class SecondPage extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar(title: Text('Second Page')), body: Center( child: ElevatedButton( onPressed: () { Navigator.pop(context); // 返回上一页 }, child: Text('Back to Home Page'), ), ), ); } } ``` </details> ### Screenshots or Video <details open> <summary>Screenshots / Video demonstration</summary> https://github.com/user-attachments/assets/01642e18-bb99-48e2-a620-fb701bd6262a </details> ### Logs <details open><summary>Logs</summary> ```console [Paste your logs here] ``` </details> ### Flutter Doctor output <details open><summary>Doctor output</summary> ```console [√] Flutter (Channel stable, 3.27.1, on Microsoft Windows [10.0.22631.4602], locale zh-CN) • Flutter version 3.27.1 on channel stable at C:\Users\Mido\flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 17025dd882 (2 weeks ago), 2024-12-17 03:23:09 +0900 • Engine revision cb4b5fff73 • Dart version 3.6.0 • DevTools version 2.40.2 [√] Windows Version (Installed version of Windows is version 10 or higher) [!] Android toolchain - develop for Android devices (Android SDK version 35.0.0) • Android SDK at C:\Users\Mido\AppData\Local\Android\sdk X cmdline-tools component is missing Run `path/to/sdkmanager --install "cmdline-tools;latest"` See https://developer.android.com/studio/command-line for more details. X Android license status unknown. Run `flutter doctor --android-licenses` to accept the SDK licenses. See https://flutter.dev/to/windows-android-setup for more details. [√] Chrome - develop for the web • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe [!] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.12.3) • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community • Visual Studio Community 2022 version 17.12.35527.113 X Visual Studio is missing necessary components. Please re-run the Visual Studio installer for the "Desktop development with C++" workload, and include these components: MSVC v142 - VS 2019 C++ x64/x86 build tools - If there are multiple build tool versions available, install the latest C++ CMake tools for Windows Windows 10 SDK [√] Android Studio (version 2024.1) • Android Studio at D:\zy\software\android-studio-2024.1.2.12-windows\android-studio • Flutter plugin can be installed from: https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: https://plugins.jetbrains.com/plugin/6351-dart • Java vers ``` </details>
waiting for customer response,in triage
low
Major
2,769,668,541
pytorch
Support LayerNorm2d
### 🚀 The feature, motivation and pitch Hi, I want to use a layernorm with BCHW features, where normalization applied to every pixel, see [this](https://github.com/huggingface/pytorch-image-models/blob/131518c15cef20aa6cfe3c6831af3a1d0637e3d1/timm/layers/norm.py#L71) for a reference. Currently, we have to use 2 `reshape` ops in order utilizing fast layernorm implementation of pytorch. ### Alternatives _No response_ ### Additional context _No response_ cc @albanD @mruberry @jbschlosser @walterddr @mikaylagawarecki
module: nn,triaged
low
Minor