sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: vscode
Issue: Can not accept current file in Git view
Labels: bug,merge-conflict

Type: <b>Bug</b>

Hello, Team!

I have a merge conflict where I want to resolve the conflict by accepting the current version of the file. However, when I click on "Accept current version", nothing happens in the latest Insiders Edition (see attached gif). Can you please fix this?
[CanNotAcceptCurrent](https://github.com/microsoft/vscode/assets/1839739/f1a4f1ef-a238-4cb4-b197-c14fccf75aa6)

VS Code version: Code - Insiders 1.83.0-insider (aad333b878b4cfce2f4152d48552fb6f980d7daf, 2023-09-28T05:34:00.540Z)
OS version: Windows_NT x64 10.0.22621
Modes:

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz (8 x 1992)|
|GPU Status|2d_canvas: enabled<br>canvas_oop_rasterization: enabled_on<br>direct_rendering_display_compositor: disabled_off_ok<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>opengl: enabled_on<br>rasterization: enabled<br>raw_draw: disabled_off_ok<br>video_decode: enabled<br>video_encode: enabled<br>vulkan: disabled_off<br>webgl: enabled<br>webgl2: enabled<br>webgpu: enabled|
|Load (avg)|undefined|
|Memory (System)|15.81GB (1.17GB free)|
|Process Argv|--crash-reporter-id 46a474c1-bb0b-418e-9983-038a8b8f2595|
|Screen Reader|no|
|VM|67%|
</details><details><summary>Extensions (4)</summary>

Extension|Author (truncated)|Version
---|---|---
cmake-tools|ms-|1.15.31
cpptools|ms-|1.17.5
cpptools-extension-pack|ms-|1.3.0
cmake|twx|0.0.17

(1 theme extensions excluded)

</details><details>
<summary>A/B Experiments</summary>

```
vsliv695:30137379
vsins829:30139715
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
pythontb:30258533
vsc_aa:30263845
pythonptprofiler:30281269
vshan820:30294714
vscod805cf:30301675
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
pythonvs932:30404738
py29gd2263:30784851
vscaat:30438846
vsclangdf:30492506
c4g48928:30535728
dsvsc012:30540252
pynewext54:30618038
a9j8j154:30646983
showlangstatbar:30737417
7ij38806:30687742
pythonfmttext:30716741
fixshowwlkth:30771523
showindicator:30805243
pythongtdpath:30726887
i26e3531:30792625
welcomedialog:30812478
pythonnosmt12:30779711
pythonidxpt:30768918
pythonnoceb:30776497
copilotsettingt:30808721
dsvsc013:30777762
dsvsc014:30777825
diffeditorv2:30786206
pythonlinttypecf:30823782
pythonmpsinfo:30842935
dsvsc015:30821418
pythontestfixt:30826906
pythonfb280951:30830809
pythonregdiag:30842812
pythoncet0:30848247

```

</details>

<!-- generated by issue reporter -->
Repository: node
Issue: Node-API performance
Labels: feature request,performance,never-stale

### What is the problem this feature will solve?

Improve performance when creating large V8 objects which is **critical since these must always be created on the main thread, blocking the event loop.**

Currently, the overhead of each method is very significant - especially for the primitive operations such as simply setting a property.

As a very typical example of the current problem, you can consider these two methods for setting a property on an object:

```cpp
napi_status napi_set_property(napi_env env,
                                          napi_value object,
                                          napi_value key,
                                          napi_value value);
napi_status napi_set_named_property(napi_env env,
                                          napi_value object,
                                          const char* utf8name,
                                          napi_value value);
```

Naively, one expects that using the first one will be faster when the `key` is already UTF-16. However calling this method requires to first call `napi_create_string_utf16` and the combined overhead of the two calls offsets the single call of the second method when the key is not very long (which is usually the case).

### What is the feature you are proposing to solve the problem?

~~Step 1: `napi_set_named_property` that takes UTF-16~~ (not needed, see below)

Step 2: Methods that can create in one call a whole array/object from a C data structure - ~~especially ones for strings already encoded in UTF-16~~

### What alternatives have you considered?

_No response_
Repository: TypeScript
Issue: unique symbol lost on assignment to const despite type assertion 
Labels: Suggestion,In Discussion

### 🔎 Search Terms

unique symbol widening

### 🕗 Version & Regression Information

- This is the behavior in every version I tried

### ⏯ Playground Link

[Playground Link](https://www.typescriptlang.org/play?#code/N4KABBYMYPYHYGcAuYCuYC8YBEBBbA3OJLIigIYCMmaY5CYSAngA4CmMAZrQPQ9hwYKAO4BLACZs4bccQilkdAEw10fAULBjJ02ZDAAbNhQDMqug2bsuvfoJESpMuYeN0ALOfXansgL4gIKD6CijoWADKTAC2AEYwBgAUAJREIfCKVOb0jKwc3Gr8PrpggLwbgKU7LqHKXkWOui5GptmWeTaFWvUyZZX6TR61nTrOfkA)

### 💻 Code

```ts
const u = Symbol();
const a7 = u as typeof u // widened  to symbol
```


### 🙁 Actual behavior

`a7` is `symbol`

### 🙂 Expected behavior

`a7` has `typeof u`

### Additional information about the issue

This issue is a huge problem for isolated declarations as it breaks the assumption that in an expression `const o = a as T` we can always use `T` as the type of  `o`. This is also inconsistent with the way similar expressions work for string/number literal types ([ex](https://www.typescriptlang.org/play?#code/N4KABBYMYPYHYGcAuYCuYC8YBEBBbA3OJLIigIYCMmaY5CYSAngA4CmMAZrQPQ9hwYKAO4BLACZs4bccQilkdAEw10fAULBjJ02ZDAAbNhQDMqug2bsuvfoJESpMuYeN0ALOfXansgL4gIKD6CijoWADKTAC2AEYwBgAUAJREIfCKVOb0jKwc3Gr8PrpggLwbgKU7LqHKXkWOui5GptmWeTaFWvUyZZX6TR61nTrOfkA))

Similar issues: 
- https://github.com/microsoft/TypeScript/issues/43657 - Widening on return type not on variable declaration 
- https://github.com/microsoft/TypeScript/issues/55361 - Similar, explicitly typed variable is widened 
- https://github.com/microsoft/TypeScript/issues/36876 - Widening when assigning from object property (but no assertion)
- https://github.com/microsoft/TypeScript/issues/53276

@Andarist perhaps https://github.com/microsoft/TypeScript/pull/54778 also fixes this?
Repository: PowerToys
Issue: Request for an option to automatically adjust virtual memory settings.
Labels: Idea-New PowerToy,Needs-Triage

### Description of the new feature / enhancement

I would like to ask you to create an option in this program to automatically and optimally adjust the virtual memory, what the initial and maximum size should be, no matter how much RAM users have, and to make the PC hardware run really fast, in addition to very fast Windows startup. .

### Scenario when this would be used?

Apply to paging file and automatically adjust virtual memory settings.

### Supporting information

_No response_
Repository: next.js
Issue: `redirect()` should trigger loading screen if the target page takes too long
Labels: bug,linear: next

### Link to the code that reproduces this issue

https://github.com/5minds/redirect_timeout_in_server_actions

### To Reproduce

1. Start the application in dev 
2. Click on redirect button

### Current vs. Expected behavior

When a server action redirects to a new server component with a long running async method call, the client hangs for a few minutes until the redirect get a timeout exception:

`Internal error: Error: The render was aborted by the server without a reason.
    at eQ (/Users/XXX/src/5Minds/redirect_timeout_in_server_actions/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:68:94611)
    at Object.cancel (/Users/XXX/src/5Minds/redirect_timeout_in_server_actions/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:68:108428)
    at readableByteStreamControllerCancelSteps (node:internal/webstreams/readablestream:2576:37)
    at ReadableByteStreamController.[kCancel] (node:internal/webstreams/readablestream:1135:12)
    at ensureIsPromise (node:internal/webstreams/util:174:19)
    at readableStreamCancel (node:internal/webstreams/readablestream:1552:5)
    at node:internal/webstreams/readablestream:1389:15
    at complete (node:internal/webstreams/readablestream:1279:9)
    at shutdownWithAnAction (node:internal/webstreams/readablestream:1275:5)
    at node:internal/webstreams/readablestream:1388:14
    at processTicksAndRejections (node:internal/process/task_queues:96:5)`

I would expect that the loading page is shown until the long running method finished.

### Verify canary release

- [X] I verified that the issue exists in the latest Next.js canary release

### Provide environment information

```bash
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 22.2.0: Fri Nov 11 02:03:51 PST 2022; root:xnu-8792.61.2~4/RELEASE_ARM64_T6000
Binaries:
  Node: 16.17.0
  npm: 8.15.0
  Yarn: N/A
  pnpm: N/A
Relevant Packages:
  next: 13.5.4-canary.4
  eslint-config-next: N/A
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.1.3
Next.js Config:
  output: N/A
```


### Which area(s) are affected? (Select all that apply)

App Router, TypeScript (plugin, built-in types)

### Additional context

_No response_

<sub>[NEXT-1668](https://linear.app/vercel/issue/NEXT-1668/redirect-timeout-in-server-actions)</sub>
Repository: vscode
Issue: Settings editor object widget screen cheese
Labels: bug,settings-editor

* have the config below
* have a narrow editor column
* open settings UI, reveal the codeActionsOnSave
* 🐛 the value and item overlap

```
"notebook.codeActionsOnSave": {
  "notebook.source.normalizeVariableNames": "explicit"
}
```

<img width="850" alt="Screenshot 2023-09-28 at 12 47 00" src="https://github.com/microsoft/vscode/assets/1794099/ea79a773-86ec-4d4a-b8ea-69fa8b3c8882">
Repository: tensorflow
Issue: cuBLAS Error in 2.14.0
Labels: stat:awaiting tensorflower,type:build/install,comp:gpu,subtype: ubuntu/linux,TF2.14

### Issue type

Bug

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

No

### Source

binary

### TensorFlow version

2.14.0

### Custom code

No

### OS platform and distribution

Ubuntu 23.04

### Mobile device

_No response_

### Python version

3.11.5

### Bazel version

_No response_

### GCC/compiler version

_No response_

### CUDA/cuDNN version

CUDA 11.8 CUDNN 8.9.4

### GPU model and memory

Nvidia RTX 3080ti

### Current behavior?

in the shell terminal

install tensorflow via pip
```sh
pip install tensorflow==2.14.0
```

In the python terminal

input 

```python
import tensorflow as tf
```

then the output

```sh
2023-09-28 19:19:50.298229: E tensorflow/compiler/xla/stream_executor/cuda/cuda_dnn.cc:9342] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered
2023-09-28 19:19:50.298259: E tensorflow/compiler/xla/stream_executor/cuda/cuda_fft.cc:609] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered
2023-09-28 19:19:50.298302: E tensorflow/compiler/xla/stream_executor/cuda/cuda_blas.cc:1518] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered
2023-09-28 19:19:50.303578: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
2023-09-28 19:19:50.982905: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
```



### Standalone code to reproduce the issue

```shell
no
```


### Relevant log output

_No response_
Repository: next.js
Issue: Redirects not working correctly together with middleware
Labels: bug,Navigation,Runtime

### Link to the code that reproduces this issue

https://github.com/serGlazkov/next-redirect-middleware-bug

### To Reproduce

- Set up redirects in the next.config.js file.
- Confirm that the redirects are working as expected.
- Add a middleware.ts file to the project.
- Click a link that should trigger a redirect.

### Current vs. Expected behavior

**Actual Result**
The user is redirected to the page, but it's rendered without any properties.

**Expected Result**
The user should be redirected to the intended page with all the expected properties. (Should work the same as without middleware)


### Verify canary release

- [X] I verified that the issue exists in the latest Next.js canary release

### Provide environment information

```bash
Operating System:
  Platform: darwin
  Arch: x64
  Version: Darwin Kernel Version 22.6.0: Wed Jul  5 22:21:56 PDT 2023; root:xnu-8796.141.3~6/RELEASE_X86_64
Binaries:
  Node: 18.14.2
  npm: 9.5.0
  Yarn: 1.22.19
  pnpm: N/A
Relevant Packages:
  next: 13.5.3
  eslint-config-next: N/A
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.2.2
Next.js Config:
  output: N/A
```


### Which area(s) are affected? (Select all that apply)

Middleware / Edge (API routes, runtime), Routing (next/router, next/navigation, next/link)

### Additional context

_No response_
Repository: godot
Issue: Editor subwindows displayed on the wrong screen when using WMR with SteamVR causing freezes
Labels: bug,platform:windows,topic:editor,topic:porting,topic:xr

### Godot version

4.1.1.stable.mono

### System information

Godot v4.1.1.stable.mono - Windows 10.0.22621 - Vulkan (Mobile) - dedicated NVIDIA GeForce RTX 3060 (NVIDIA; 31.0.15.3713) - AMD Ryzen 9 7900 12-Core Processor (24 Threads)

### Issue description

When using Window Mixed Reality HMD with SteamVR enabled, Godot editor will most of the time open subwindows (Add Node, Add script, Project settings...) in inaccessible screens, causing freezes as you cannot close them anymore.

### Steps to reproduce

1. Plug a Window Mixed Reality headset.
2. Define SteamVR as OpenXR executive environment
3. Start Mixed Reality portal along with SteamVR.

Now the Windows Screen settings panel should display multiple screens:
![image](https://github.com/godotengine/godot/assets/1221777/b256be89-e782-4952-9ffa-3e8db3472455)

4. Start Godot
5. Open any project
6. Add a node to the scene or open Project settings
7.1 Subwindow is not displayed on the main screen, causing the editor freeze
7.2 Subwindow is displayed on the main screen at a random place



### Minimal reproduction project

N/A
Repository: godot
Issue: Load Error "Unable to write to file *, file in use, locked or lacking permissions."
Labels: bug,topic:editor,usability,needs testing

### Godot version

Godot v4.1.1.stable

### System information

Godot v4.1.1.stable - Windows 10.0.22621 - Vulkan (Mobile) - dedicated NVIDIA GeForce GTX 1660 Ti (NVIDIA; 31.0.15.3713) - Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz (12 Threads)

### Issue description

This issue happens sometimes when I save my project after editing some code, it doesn't allow me to save the new changes, so I end up having to reload the project, and it rolls back to the code before the save, so I have to rewrite it again.

The files are definitely not locked or lacking permissions, so I assume it's the "file in use" bit, even though I don't have anything else using that file outside of the Godot editor.

![image](https://github.com/godotengine/godot/assets/81040138/96ac6c93-e9f7-49b5-aa46-a1832d3ee119)

### Steps to reproduce

Unfortunately, I was not able to find a step-by-step way to reproduce this bug, it seems to happen randomly.

I will reply here if I find anything.

### Minimal reproduction project

Read **Steps to reproduce**
Repository: PowerToys
Issue: Request for option to set Text Extractor default - single line
Labels: Idea-Enhancement,Product-Text Extractor

### Description of the new feature / enhancement

An option to set the default text extractor default to “make result single line” for instance, will be great. This way, users won’t need to keep selecting the option before selecting the image area each time the text extractor function is used. This will greatly increase productivity. Thanks, and kudos on the work so far.


### Scenario when this would be used?

When repeatedly using the text extrator function, such as over the period of an online lecture which has many images containing text, over the course of an hour, or more.

### Supporting information

_No response_
Repository: PowerToys
Issue: File comparison as tiny as it can be compressed with all kind of files
Labels: Idea-New PowerToy

### Description of the new feature / enhancement

Hello, i have an idea for a new feature of Microsoft PowerToys.

There should be an option to compress files you select as small as possible. It should also work as a Windows ShellExtension when selecting files. You can then specify the path or various reduction options in an input field.

Finally, the files are compressed and saved.

The aim is to ensure that no files are damaged and, if necessary, backups are created beforehand. I made some code examples:

Compress files, way 1:
```csharp
using System.IO;
using System.IO.Compression;

public static void CompressFile(string sourceFilePath, string destinationFilePath)
{
    using (FileStream sourceStream = new FileStream(sourceFilePath, FileMode.Open))
    {
        using (FileStream destinationStream = new FileStream(destinationFilePath, FileMode.Create))
        {
            using (GZipStream compressionStream = new GZipStream(destinationStream, CompressionLevel.Optimal))
            {
                sourceStream.CopyTo(compressionStream);
            }
        }
    }
}
```

Compress files, way 2:
```csharp
public static void CompressFile(string path)
{
    FileStream sourceFile = File.OpenRead(path);
    FileStream destinationFile = File.Create(path + ".gz");

    byte[] buffer = new byte[sourceFile.Length];
    sourceFile.Read(buffer, 0, buffer.Length);

    using (GZipStream output = new GZipStream(destinationFile, CompressionMode.Compress))
    {
        Console.WriteLine("Compressing {0} to {1}.", sourceFile.Name, destinationFile.Name, false);

        output.Write(buffer, 0, buffer.Length);
    }

    sourceFile.Close();
    destinationFile.Close();
}
```

### Scenario when this would be used?

It's nice to have when you have a big amount of data and you want to clear some space or sort out old/unnecessary files.
Just a personal request, i think some users would like it.

### Supporting information

http://www.codeproject.com/Articles/10104/Add-a-context-menu-to-the-Windows-Explorer
Repository: rust
Issue: The distributed compiler sources do not come with an up-to-date lockfile
Labels: T-bootstrap,C-bug,T-release,A-reproducibility

After installing the `rustc-src` component, trying to run `cargo metadata` on them will fail if the sources are installed in a read-only location (such as on Nix, or when `cargo metadata` is run in a sandbox). This could be avoided by either fixing cargo (https://github.com/rust-lang/cargo/issues/10096), or by adjusting the rustc-src component to work around this behavior of cargo, by shipping an up-to-date lockfile.

Part of the problem seems to be that the cargo crates are not in a workspace any more when they are inside rustc-src. However, sadly, even if one puts a `Cargo.toml` (with all references to `library/` and `src/tools/` removed) into the right place, Cargo is still not happy with the lockfile -- it insists on removing everything unnecessary from this lockfile. So producing a lockfile that cargo is happy with could be rather tricky.
Repository: next.js
Issue: ModularizeImport path is wrong for `react-bootstrap` when using jest with next/jest config
Labels: bug,Testing


### Link to the code that reproduces this issue

https://github.com/energyaspects/modularize-react-bootstrap-issue

### To Reproduce
npm install (ofc)
npm run test

### Current vs. Expected behavior

Following error is thrown `    Cannot find module 'modularize-import-loader?name=useAccordionButton&from=named&as=default!react-bootstrap/AccordionButton' from 'src/presentation/components/Cards/ExpandableCard/ExpandableCardToggle/ExpandableCardToggle.tsx'`.

Expected behaviour is that no error is thrown

### Verify canary release

- [X] I verified that the issue exists in the latest Next.js canary release

### Provide environment information

```bash
Operating System:
  Platform: linux
  Arch: x64
  Version: #86-Ubuntu SMP Mon Jul 10 16:07:21 UTC 2023
Binaries:
  Node: 18.12.0
  npm: 8.19.2
  Yarn: 1.22.19
  pnpm: 8.8.0
Relevant Packages:
  next: 13.5.4-canary.4
  eslint-config-next: N/A
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.1.3
Next.js Config:
  output: N/A
```


### Which area(s) are affected? (Select all that apply)

Jest (next/jest)

### Additional context

introduced in [THIS COMMIT](https://github.com/vercel/next.js/commit/555ff3bcdb6e599858ad1c869a12d367ea621b01)
![actuallines](https://github.com/vercel/next.js/assets/22454458/83699c5f-923f-420f-8f38-3a5ee9d0c7b2)
Repository: storybook
Issue: [Bug]: CORS issue with Storybook composer and hostname
Labels: question / support,help wanted,composition

### Describe the bug

I'm using the Storybook composer to load in other Storybooks, these Storybooks also have a custom hostname. When running the composer I hit the following issue:

```sh
Uncaught TypeError: Cannot read properties of null (reading 'storyId')
    at chunk-45GKKSU6.js:398:54577
    at Array.map (<anonymous>)
    at chunk-45GKKSU6.js:398:54428
    at renderWithHooks (chunk-NBCGHFLK.js:69:936)
    at updateFunctionComponent (chunk-NBCGHFLK.js:69:48263)
    at updateSimpleMemoComponent (chunk-NBCGHFLK.js:69:46640)
    at updateMemoComponent (chunk-NBCGHFLK.js:69:44544)
    # ....

Access to fetch at 'https://web.bitttttten.com:7007/index.json' from origin 'https://web.bitttttten.com:7006' has been blocked by CORS policy: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'.
:7007/stories.json:1
```

The composer is run with `storybook dev -p 6006 -h 'web.bitttttten.com'`, and there is a proxy that proxies 7006 to 6006 so you're able to have storybook running locally on 6006, and with SSL at https://web.bitttttten.com:7006.

The storybook is run with `storybook dev -p 6007 -h 'web.bitttttten.com'`.

### To Reproduce

Run with hostname and composer and see the CORS issue.

If there is any other info needed, please let me know.