sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: neovim
Issue: Unable to open swap file when using UNC path
Labels: bug,platform:windows,filesystem

### Problem

neovim supports partially UNC paths.

In particular, if a file is in a path that must be accessed through an UNC path, nvim creates an error message that it is not able to create a swap file.


References:

 * https://googleprojectzero.blogspot.com/2016/02/the-definitive-guide-on-win32-to-nt.html
 * https://learn.microsoft.com/en-us/windows/win32/fileio/naming-a-file

### Steps to reproduce

From git-bash (for simplicity, path and file can be created from powershell too)

~~~~
mkdir /c/test.   # trailing dot
echo Hello > /c/test./file.txt
# file can be opened with vim packaged in git-bash without issues
vim /c/test./file.txt          # opens file.txt without errors/warnings
vim '\\?\C:\test.\file.txt'    # opens file.txt without errors/warnings
~~~~


from PowerShell and cmd (or even git-bash):

~~~~
nvim --clean \\?\C:\test.\file.txt  # opens file.txt with(!) errors/warnings
~~~~


Shows following error message

~~~~
E303: Unable to open swap file for "\\?\C:\test.\file.txt", recovery impossible
Press ENTER or type command to continue    
~~~~

After pressing enter, it is possible to view, edit and save changes to `file.txt`

### Expected behavior

No error message.

### Nvim version (nvim -v)

NVIM v0.10.1 Build type: Release LuaJIT 2.1.1713484068 Run "nvim -V1 -v" for more info

### Vim (not Nvim) behaves the same?

no, VIM - Vi IMproved 9.1 packaged for git-bash

### Operating system/version

Windows 11

### Terminal name/version

powershell, cmd

### $TERM environment variable

$TERM is not defined

### Installation

installer
Repository: react
Issue: [React 19] The namespace type in @types/react/index.d.ts causes problems.
Labels: React 19

## Summary

Hello, I am creating a service using monorepo structure via pnpm.

The development environment is as follows:

-pnpm
- @types/react18
- @types/react19
- react18
- react19

---

my-monorepo/
├── package.json
├── node_modules/
│   └── .pnpm/
└── apps/
     ├── project-a/
     │   ├── package.json
     │   └── node_modules/
     │       ├── react/           # React 18
     │       │   └── ...          
     │       └── @types/
     │           └── react/       # @types/react 18
     └── project-b/
         ├── package.json
         └── node_modules/
             ├── react/           # React 19
             └── @types/
                 └── react/       # @types/react 19

I am working on a project with the above structure.  

A type error related to `ReactNode` occurs in apps/project-b using `react v19`.

The cause of the problem I thought was

This problem occurred because the `declare namespace React` statement declared in `index.d.ts` inside `root/node_modules/@types+react18` and `root/node_modules/@types+react19` were merged due to hoist in the package manager. I think.  

This is an error caused by the type of react.  

Would you recognize this as a problem?

---

![image](https://github.com/user-attachments/assets/7df35f93-dfeb-47de-8ebb-fbee2ac71ab8)


![image](https://github.com/user-attachments/assets/ed800d32-9055-414e-9bb1-f563ef9fd1a5)
Repository: vscode
Issue: Terminal size is wrong
Labels: bug,terminal-layout

I see this from time to time but I don't know how to reproduce... This time I was able to record at least and it shows that somehow the terminal layed out with wrong dimensions, its container is higher than the terminal itself leading to the gap at the bottom

https://github.com/user-attachments/assets/73fcdc90-4646-40ce-931c-5287545da89c
Repository: PowerToys
Issue: [Update] Installer crashes because of missing permissions
Labels: Issue-Bug,Area-Setup/Install,Status-Reproducible

### Microsoft PowerToys version

0.86.0

### Installation method

GitHub

### Running as admin

None

### Area(s) with issue?

Installer

### Steps to reproduce

1. Disable UAC in Group Policies completely. 
![Image](https://github.com/user-attachments/assets/1b7a56f0-e390-48cb-b793-683337b62480)
3. Log-in using a normal user account (no admin permissions).
4. Search for updates in Settings.
5. Press "Install button".

### ✔️ Expected Behavior

The "Install" button is disabled because of the missing permissions or the setup complains correctly about the missing permissions.

### ❌ Actual Behavior

I can press the install button in settings and the the setups crashes silently without error message.

[PowerToysReport_2024-12-17-11-39-17.zip](https://github.com/user-attachments/files/18164203/PowerToysReport_2024-12-17-11-39-17.zip)


### Other Software

_No response_
Repository: PowerToys
Issue: Continuously resetting results
Labels: Issue-Bug,Needs-Triage,Needs-Team-Response

### Microsoft PowerToys version

0.87.0

### Installation method

PowerToys auto-update

### Running as admin

Yes

### Area(s) with issue?

PowerToys Run

### Steps to reproduce

Open PowerToys Run and either have plugin hints or the result list that is scrollable, try scrolling and it will reset back to the top almost instantly.
Scrolling scenarios:
![Image](https://github.com/user-attachments/assets/a27b5ce7-d3b3-4341-bc06-3d6dbbabc7cb)
![Image](https://github.com/user-attachments/assets/10a1eb47-2155-4405-94de-15c794e36430)


### ✔️ Expected Behavior

Scroll down and stay down, including when reopening with the same prompt in the search field.

### ❌ Actual Behavior

Scrolling resets to the top of the list continuously and it becomes impossible to read anything below or properly select it.

### Other Software

_No response_
Repository: TypeScript
Issue: Refactoring 'Move to file' imports undefined from source file
Labels: Bug

### 🔎 Search Terms

"move to file imports undefined", "refactor", "move to a new file imports undefined"

### 🕗 Version & Regression Information

This changed between versions 5.7.1-rc and 5.7.2

### ⏯ Playground Link

https://www.typescriptlang.org/play/?#code/KYDwDg9gTgLgBAYwgOwM7wG4EMoEssBGANsHALxwCuyAJsAGa7LA0DcQA

### 💻 Code

```ts
export const variable = undefined;
```


### 🙁 Actual behavior

When applying the **Move to file** or **Move to a new file** refactoring, the resulting file incorrectly imports an undefined value from the original module.

For example, if the original file is named orig.ts, the refactored file will output

```ts
import { undefined } from "./orig";

export const variable = undefined;
```

### 🙂 Expected behavior

**undefined** is an internal type and should not be imported. The correct output should be:

```ts
export const variable = undefined;
```

### Additional information about the issue

_No response_
Repository: storybook
Issue: Unhandled error message could be more helpful
Labels: feature request,addon: test

When using the testing module, any unhandled error can be seen in Storybook:
<img width="759" alt="Image" src="https://github.com/user-attachments/assets/3c9344e4-495d-435d-879a-041de2c89280" />

However, the error message in the terminal is **far more useful** for debugging my failed test: 
```
storybook/test: ⎯⎯⎯⎯⎯⎯ Unhandled Errors ⎯⎯⎯⎯⎯⎯

Vitest caught 1 unhandled error during the test run.
This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected.
storybook/test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Error ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
TypeError: handleSubmit is not a function
 ❯ onSubmit src/stories/CreateAccount.tsx:67:52
storybook/test: 65|       <div className='form-wrapper'>
     66|         <h2>Create Account</h2>
     67|         <form onSubmit={(e) => {e.preventDefault(); handleSubmit();}} …
       |                                                    ^
     68|           <div className='fullName'>
     69|             <InputField
storybook/test:
storybook/test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
```

Can we pipe this error message instead of (or in addition to??) the stack trace?
Repository: flutter
Issue: Feature request: TabBarView.builder
Labels: framework,f: material design,c: proposal,P3,team-design,triaged-design

We have `PageView.builder` however we do not have `TabBarView.builder`. 

### Rationale

Context: My specific app's PageView/TabBarView needs around 800k children.

The reason I would like TabBarView.builder is due to the way that TabBarView and PageView handle animating to pages. `TabBarView` simply animates along the axis by 1 page  regardless of which page you are animating to -this means there are no unnecessary page builds. `PageView` however animates the entire range of pages between the current page and the desired page. When handling such a large number of pages this because unfeasible. 
 
---

NB: This was requested by in 2019 (#26957) but locked due to inactivity.
Repository: PowerToys
Issue: PWA doesn't launch with Workspace
Labels: Issue-Bug,Needs-Triage,Needs-Team-Response,Product-Workspaces

### Microsoft PowerToys version

0.87.0

### Installation method

PowerToys auto-update

### Running as admin

No

### Area(s) with issue?

Workspaces

### Steps to reproduce

create a workspace with a minimum width skype window and a PWA host in Edge. Create a Desktop shortcut (and move it to Start|Programs and pin it to Start - why oh, why does Workspaces not do this? Who on Earth clutters their desktop with icon? Monsters!). Launch workspace from any shortcut or direct in Workspaces App. Skype launches, PWA does not, no Edge window appears either. [PowerToysReport_2024-12-17-11-27-55.zip](https://github.com/user-attachments/files/18164942/PowerToysReport_2024-12-17-11-27-55.zip)


### ✔️ Expected Behavior

PWA should launch as advertised.

### ❌ Actual Behavior

PWA does not launch

I have workspaces for two different PWAs, neither works as expected

### Other Software

Edge Version 131.0.2903.99 (Official build) (64-bit)
Skype for Desktop 8.134
Repository: flutter
Issue: Tapping same BottomNavigationBar item does not show background fill animation
Labels: c: new feature,framework,f: material design,has reproducible steps,P3,team-design,triaged-design,found in release: 3.27,found in release: 3.28

### Steps to reproduce

1. Create a BottomNavigationBar and assign a backgroundColor to each BottomNavigationBarItem.
2. Change the background when tapped.

### Expected results

Animate the background transition.

### Actual results

Directly switch the background.

### Code sample

<details open><summary>Code sample</summary>

```dart
BottomNavigationBar(
      items: [
        const BottomNavigationBarItem(
          icon: Icon(Icons.home),
          label: 'Home',
          // backgroundColor: Colors.green
        ),
        BottomNavigationBarItem(
          icon: const Icon(Icons.search),
          label: 'Search',
          backgroundColor: backgroundColor,
        ),
        const BottomNavigationBarItem(
            icon: Icon(Icons.library_books),
            label: 'Library',
            backgroundColor: Colors.deepPurple),
        const BottomNavigationBarItem(
          icon: Icon(Icons.person),
          label: 'Profile',
          backgroundColor: Colors.greenAccent,
        ),
      ],
      currentIndex: _selectedIndex,
      onTap: (index){
        count += 1;
        setState(() {
          backgroundColor = count % 2 == 0 ? Colors.green : Colors.black;
          _selectedIndex = index;
        });
      },
      type: BottomNavigationBarType.shifting,
      backgroundColor: Colors.yellow,
      selectedItemColor: Colors.teal,
      unselectedItemColor: Colors.blue,
      showSelectedLabels: true,
      showUnselectedLabels: true,
    )
```

</details>


### Screenshots or Video

<details open>
<summary>Screenshots / Video demonstration</summary>

Switch to the same item:  | Switch to a different item
:-: | :-:
<video src='https://github.com/user-attachments/assets/454a9107-05e6-4855-bfc0-13caab2a041d' width=180/> | <video src='https://github.com/user-attachments/assets/f857fe47-5865-4b36-b6ff-5592fa412577' width=180/> 

</details>


### Logs

_No response_

### 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.0, on macOS 14.0 23A344 darwin-arm64 (Rosetta), locale zh-Hans-CN)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.3)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.2)
[✓] VS Code (version 1.95.0)
[✓] Connected device (4 available)
[✓] Network resources
• No issues found!
```

</details>
Repository: tensorflow
Issue: Aborted (core dumped) in `LearnedUnigramCandidateSampler`
Labels: stat:awaiting tensorflower,type:bug,comp:ops,2.17

### Issue type

Bug

### Have you reproduced the bug with TensorFlow Nightly?

Yes

### Source

source

### TensorFlow version

tf2.17.0 tf2.16.1

### Custom code

Yes

### OS platform and distribution

Ubuntu 20.04

### Mobile device

_No response_

### Python version

3.11

### Bazel version

_No response_

### GCC/compiler version

_No response_

### CUDA/cuDNN version

_No response_

### GPU model and memory

_No response_

### Current behavior?

On specific inputs,`tf.raw_ops.LearnedUnigramCandidateSampler` triggers crash.

### Standalone code to reproduce the issue

```shell
import tensorflow as tf

true_classes = tf.constant([], dtype=tf.int64)
num_true = 3590707793247644003
num_sampled = 126
unique = False
range_max = 186785497093039093
seed = 8997
seed2 = 0

tf.raw_ops.LearnedUnigramCandidateSampler(
    true_classes=true_classes,
    num_true=num_true,
    num_sampled=num_sampled,
    unique=unique,
    range_max=range_max,
    seed=seed,
    seed2=seed2,
    name=None
)
```


### Relevant log output

```shell
2024-12-17 11:36:29.305345: W tensorflow/core/framework/op_kernel.cc:1816] OP_REQUIRES failed at candidate_sampler_ops.cc:37 : INVALID_ARGUMENT: Attr num_true has value 3590707793247644003 out of range for an int32
2024-12-17 11:36:29.305378: F external/local_tsl/tsl/lib/random/weighted_picker.cc:28] Check failed: N >= 0 (0 vs. -2090015755)
Aborted (core dumped)
```
Repository: deno
Issue: zsh: illegal hardware instruction  deno run a.ts
Labels: bug,upstream,swc

Version: Deno 2.1.2
OS: Mac OS

a.ts
```ts
export class Case {
  constructor() {
    get() as any;
  }
  @doc
  method() {}
}
function get() {}
function doc(args: any): any {}
console.log(1);
```
`deno run a.ts` terminal Output  `zsh: illegal hardware instruction  deno run a.ts`

When I comment out the third or fifth line, this bug will not appear

```ts
export class Case {
  constructor() {
    // get() as any;
  }
//   @doc
  method() {}
}
function get() {}
function doc(args: any): any {}
console.log(1);
```
Repository: vscode
Issue: Add option to ignore URL in link in text-to-speech
Labels: feature-request,workbench-voice

This is related to https://github.com/microsoft/vscode/issues/214481#issuecomment-2545979234

When performing speech synthesis through text-to-speech, currently the URL in hyperlinks is read out loud, which is not very reasonable. It would be nice to have a option to avoid reading the content of the URL.

![Image](https://github.com/user-attachments/assets/31dc9242-1ed8-4b9c-8320-2c5de25e87f0)
Repository: react-native
Issue: Modal is covering Element inspector
Labels: Component: Modal,Debugger,Needs: Author Feedback,Needs: Repro

### Description

Looks like this was fixed in the past but is currently broken.

https://github.com/facebook/react-native/issues/8193

### Steps to reproduce

Open dev tools. Select element inspector.
Open your react native modal. 
Element inspector vanishes, or (if modal isn't full screen) can't be clicked on.

### React Native Version

0.76.5

### Output of `npx react-native info`

```text
System:
  OS: Windows 11 10.0.22631
  CPU: (8) x64 Intel(R) Core(TM) i7-9700K CPU @ 3.60GHz
  Memory: 15.20 GB / 31.92 GB
Binaries:
  Node:
    version: 20.18.0
    path: C:\Program Files\nodejs\node.EXE
  Yarn:
    version: 1.22.22
    path: ~\AppData\Roaming\npm\yarn.CMD
  npm:
    version: 10.9.0
    path: C:\Program Files\nodejs\npm.CMD
  Watchman: Not Found
SDKs:
  Android SDK:
    API Levels:
      - "30"
      - "34"
      - "35"
    Build Tools:
      - 33.0.1
      - 34.0.0
      - 35.0.0
    System Images:
      - android-35 | Google Play Intel x86_64 Atom
    Android NDK: Not Found
  Windows SDK: Not Found
IDEs:
  Android Studio: AI-242.23339.11.2421.12700392
  Visual Studio: Not Found
Languages:
  Java:
    version: 17.0.12
    path: C:\Program Files\Microsoft\jdk-17.0.12.7-hotspot\bin\javac.EXE
  Ruby: Not Found
npmPackages:
  "@react-native-community/cli":
    installed: 15.1.3
    wanted: latest
  react:
    installed: 18.3.1
    wanted: 18.3.1
  react-native:
    installed: 0.76.5
    wanted: 0.76.5
  react-native-windows: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: Not found
  newArchEnabled: Not found
```


### Screenshots and Videos


https://github.com/user-attachments/assets/b88e3c2e-4071-49fb-a2e9-378bf3806cac
Repository: vscode
Issue: Source control shows all files as deleted when another window is opened with git difftool
Labels: bug,info-needed,git

When diffing a file against another branch with VS Code as the configured git difftool and then opening a folder within the repository with VS Code, Source Control shows all files of the repository as deleted while there are actually no changes.

I can reproduce this bug with [this minimal repository](https://github.com/thabse/vscode-issue-repro).
- Configure VS code as git difftool.
- Clone the repository.
- When in the main branch, in the root folder of the repository run `git difftool dev folder/inner.txt`.
- Open another VS Code instance in parallel by opening the "folder" directory from the repository.
- In the Source Control tree of the second instance, all files are now shown as deleted (except the file that is being diffed) while `git status` shows no changes.

![Image](https://github.com/user-attachments/assets/b74bb662-4e59-471b-8174-b5d1e2209188)

```
$ git status
On branch main
Your branch is up to date with 'origin/main'.

nothing to commit, working tree clean
```


In summary, I can reproduce the bug with the following commands.
```
git clone git@github.com:thabse/vscode-issue-repro.git
cd vscode-issue-repro
git difftool dev folder/inner.txt
code folder/
```
-------

My global .gitconfig has the following difftool configuration
```
[difftool "vscode"]
	cmd = code --wait --diff $LOCAL $REMOTE
```
-------

Type: <b>Bug</b>



VS Code version: Code 1.96.0 (138f619c86f1199955d53b4166bef66ef252935c, 2024-12-11T02:29:09.626Z)
OS version: Windows_NT x64 10.0.22621
Modes:

Extensions: none<details>
<summary>A/B Experiments</summary>

```
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805cf:30301675
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
pythonnoceb:30805159
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
dvdeprecation:31068756
dwnewjupytercf:31046870
2f103344:31071589
nativerepl1:31139838
pythonrstrctxt:31112756
nativeloc2:31192216
cf971741:31144450
iacca1:31171482
notype1cf:31157160
5fd0e150:31155592
dwcopilot:31170013
stablechunks:31184530
6074i472:31201624

```

</details>

<!-- generated by issue reporter -->
Repository: PowerToys
Issue: Hosts File Editor: Adds no whitespace option
Labels: Help Wanted,Good first issue,Status-In progress,Issue-Feature,Product-Hosts File Editor

### Microsoft PowerToys version

0.87.0

### Installation method

WinGet

### Running as admin

Yes

### Area(s) with issue?

Hosts File Editor

### Steps to reproduce

Create or modify any hosts file entry or simply enabling/disabling them.

### ✔️ Expected Behavior

creates or modifies any entry without adding leading spaces for every entry.

### ❌ Actual Behavior

creates or modifies entries with two leading spaces for every entry. Those leading spaces cause issues with some software, e.g. squid. 

### Other Software

Squid proxy (4.14)
Repository: tauri
Issue: Multiple windows with different menu not working as expected
Labels: type: bug,status: needs triage

### Discussed in https://github.com/tauri-apps/tauri/discussions/11990

<div type='discussions-op-text'>

<sup>Originally posted by **shalapatil** December 17, 2024</sup>
I am working on tauri app with next js. 


        tauri::Builder::default()
            .setup(|app| {
                let app_handle = app.handle();

                // Create the "main" window with its menu
                let main_window = WindowBuilder::new(
                    &app_handle,
                    "main".to_string(),
                    tauri::WindowUrl::App("/".into()),
                )
                .menu(create_main_menu()) // Attach the main menu
                .visible(false) // Hidden by default
                .build()?;
                println!("Main window created: {:?}", main_window);
        
                // Create the "onboarding" window with its menu
                let onboarding_window = WindowBuilder::new(
                    &app_handle,
                    "onboarding".to_string(),
                    tauri::WindowUrl::App("/onboarding".into()),
                )
                .menu(create_onboarding_menu()) // Attach the onboarding menu
                .build()?;
                println!("Onboarding window created: {:?}", onboarding_window);
        
        
                Ok(())
            })
            .run(tauri::generate_context!())
            .expect("error while running Tauri application");


Onboarding window is created at last. onboarding menu is only getting shown for main window as well. 

What could be the issue? 

thank you!</div>
Repository: PowerToys
Issue: New+ bug shortcut create new folder w10
Labels: Issue-Bug,Resolution-Fix Committed,Priority-1,Status-Reproducible,Product-New+

### Microsoft PowerToys version

0.87.0

### Installation method

PowerToys auto-update

### Running as admin

None

### Area(s) with issue?

New+

### Steps to reproduce

When New+ is enabled, I can't use the shortcut to create new folders (Ctrl+Shift+N) because it opens the New+ folder

### ✔️ Expected Behavior

Another shortcut to open the New+ folder

### ❌ Actual Behavior

I can't use the shortcut to create new folders while New+ is enabled

### Other Software

_No response_