sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: vscode
Issue: Git - Add sparsed file automatically on a git commit in sparse-checkout repository
Labels: feature-request,git

### Use case

I'm working with sparse-checkout on a git repository because I have a repository with too many files to track locally.

However, when I create a new file and try to commit it to the remote repository using VSCode Git Control, I encounter an error. Here is the output:

![image](https://github.com/microsoft/vscode/assets/25882357/5f00a1e2-32c5-486c-b518-9e6f80e7744a)

Output: 

> git add -A -- .
The following paths and/or pathspecs matched paths that exist
outside of your sparse-checkout definition, so will not be
updated in the index:
simon.txt
hint: If you intend to update such entries, try one of the following:
hint: * Use the --sparse option.
hint: * Disable or modify the sparsity rules.
hint: Disable this message with "git config advice.updateSparsePath false"

This error occurs because git add --sparse <file> was not run previously, causing the commit process to abort.

Steps to reproduce:

`git clone --no-checkout https://myproject.git`

`git sparse-checkout init --no-cone`

`git checkout`

Create a new file and try to commit it through VSCode to the remote. 
Will get the error described in this issue.

Note: This error does not occur when using the GitHub Desktop app.

### Feature request:

VSCode should identify that the current repository is using sparse-checkout and automatically run `git add --sparse <file>` to facilitate the commit process.
Repository: node
Issue: [REG 20.9->20.10] stream: Pipe is stopped after error on another pipe from the same source
Labels: stream,regression

### Version

20.13.1

### Platform

Microsoft Windows NT 10.0.19045.0 x64

### Subsystem

stream

### What steps will reproduce the bug?

```js
import assert from 'assert';
import stream from 'stream';

class SizeCounter extends stream.Writable {
  constructor(name, fail) {
    super();
    this.totalSize = 0;
    this.name = name;
    this.fail = fail;
  }

  _write(chunk, _encoding, callback) {
    this.totalSize += chunk.length;
    console.log(this.name, this.totalSize);
    if (this.fail)
      return callback(new Error('You asked me to fail'));
    return callback();
  }

  _final(callback) {
    console.log(`${this.name} Total size: ${this.totalSize}`);
    callback();
  }
}

const src = new stream.PassThrough();
const dst1 = new SizeCounter('1', true);
const dst2 = new SizeCounter('2', false);

src.write(Buffer.alloc(20000));
src.write(Buffer.alloc(20000));
src.end();

dst1.on('error', () => {
  // uncomment as a workaround
  // src.resume();
});

stream.finished(src, () => console.log('src ended'));
stream.finished(dst1, (err) => console.log('dst1 ended', err?.message));
stream.finished(dst2, (err) => console.log('dst2 ended', err?.message));

src.pipe(dst1, { end: true });
src.pipe(dst2, { end: true });
setImmediate(() => assert.strictEqual(dst2.totalSize, 40000));
```

Output with 20.9.0:
```
1 20000
2 20000
dst1 ended You asked me to fail
2 40000
2 Total size: 40000
src ended
dst2 ended undefined
```

Output with 20.10.0:
```
1 20000
2 20000
dst1 ended You asked me to fail
node:assert:125
  throw new AssertionError(obj);
  ^

AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:

20000 !== 40000

    at Immediate._onImmediate (file:///home/orgads/test/test.mjs:45:27)
    at process.processImmediate (node:internal/timers:478:21) {
  generatedMessage: true,
  code: 'ERR_ASSERTION',
  actual: 20000,
  expected: 40000,
  operator: 'strictEqual'
}

Node.js v20.10.0
```


### How often does it reproduce? Is there a required condition?

Always

### What is the expected behavior? Why is that the expected behavior?

I expect the stream to keep draining (at least when it still has listeners to `data`).

### What do you see instead?

The stream is paused.

### Additional information

Bisected to #50014.

Related bug:
- #51930
Repository: vscode
Issue: Undo in notebooks should undo changes across multiple cells
Labels: bug,notebook-undo-redo,notebook-format

Testing #213608

Not clear if this is an issue with vscode core or the sample extension.

![image](https://github.com/microsoft/vscode/assets/2193314/29b9c017-6bc3-468b-aa22-ad0ff6ba0007)

Do sample ext code action:

![image](https://github.com/microsoft/vscode/assets/2193314/5d7a138a-28b5-4821-89b3-889e9741b113)

Undo:

![image](https://github.com/microsoft/vscode/assets/2193314/0de39ac0-48ea-4b6b-98cb-ab48226605cc)
Repository: vscode
Issue: Inconsistent behavior of opening custom editor via ctrl+p 
Labels: bug,custom-editors

Type: <b>Bug</b>

I have my own extension which is adding custom editor view type for specific file extension. I need to have both built in (default) code editor and custom editor operable. Custom editor has priority "option":
```
"customEditors": [
      {
        "viewType": "some",
        "displayName": "some",
        "selector": [
          {
            "filenamePattern": "*.some_ext"
          }
        ],
        "priority": "option"
      }
    ]
```
The bug I am observing is when trying re-open closed files via `ctrl+p`.
Steps to reproduce:
1.  Open custom editor for file 1.some_ext
2. Close 1.some_ext
3. Via ctrl+p re-open 1.some_ext

Actual behavior:
Custom editor opened. NOTE, that I haven't changed default editor type in `Open with` explorer's context menu. 

Expected behavior:
Default code editor opened

NOTE: When reproducing the same scenario but, at step 3 intead of using ctrl+p, opening file via explorer it works as expected (opens code editor).

I tried setting `workbench.editorAssociations` and it did not help with the scenario:
```
"workbench.editorAssociations": {
    "*.some_ext": "default"
}
```


VS Code version: Code 1.89.1 (Universal) (dc96b837cf6bb4af9cd736aa3af08cf8279f7685, 2024-05-07T05:14:24.611Z)
OS version: Darwin arm64 22.6.0
Modes:
Remote OS version: Linux x64 
Remote OS version: Linux x64 

<details><summary>Extensions (6)</summary>

Extension|Author (truncated)|Version
---|---|---
coder-remote|cod|0.1.37
remote-ssh|ms-|0.110.1
remote-ssh-edit|ms-|0.86.0
remote-explorer|ms-|0.4.3
nix-env-selector|arr|1.0.11
vscode-jest-runner|fir|0.4.73


</details>
<!-- generated by issue reporter -->
Repository: godot
Issue: Print an error when attempting to pass an Object or Callable through an RPC
Labels: enhancement,topic:multiplayer

### Tested versions

Reproducible in 4.2.2

### System information

Windows 11 

### Issue description

I'm trying to instantiate an object for host and client. Object takes in a custom resource and sets texture based on above resource on _ready. Since Multiplayer Synchronizer does not synchronize resources/objects, I moved _ready code block into an RPC setter function which will set the custom resource in the object (spawned across peers with Multiplayer Spawner) for all peers. The RPC setter takes in a resource as argument. Unexpected behavior resulted: stepping into RPC setter, the passed resource was "null" for client, but not for host, for whom the resource was populated as normal. 

### Steps to reproduce

1. Spawn 2 instances in debug
2. Click "Host" with 1st window. Click "Join" with 2nd window.
3. Walk players so they face each other.
4. Hit "Tab" to open inventory, click on any item to grab, hover grabbed item off inventory screen as if to place on level, hit RMB to spawn in level.
5. Should trigger error.

### Minimal reproduction project (MRP)

Relevant code is in _on_inventory_interface_drop_slot_data (spawns object) in world_debug.gd and set_slot_data in pick_up.gd 
[MRP.zip](https://github.com/godotengine/godot/files/15471859/MRP.zip)
Repository: next.js
Issue: NextJs [14.2.3]  MaxListenersExceededWarning appears when using Draft Mode
Labels: bug,Runtime

### Link to the code that reproduces this issue

https://github.com/AnasArafeh/NextJs-14.2.3-Draft-Mode-with-Static-pages

### To Reproduce

1. install packages ( you will probably need -legacy-peer-deps ) probably related to the react version
2. you can use both next start or next dev
3.  add  either this URL api/draft-mode?slug=home or api/draft-mode?slug=home/isr to the example : http://localhost:3000/api/draft-mode?slug=home
4. Try to kill the terminal using Ctrl + C the issue should appear

### Current vs. Expected behavior

Previously when I was using version 14.0.3 the terminal would terminate without an issue.

Currently in version 14.2.3 when you try to kill the terminal, the terminal gets stuck and you have either to way or spam Ctrl + C and then  you get the following error :
![image](https://github.com/vercel/next.js/assets/68680829/abfe358e-5065-487c-a3bc-01440233e441)



### Provide environment information

```bash
Operating System:
  Platform: win32
  Arch: x64
  Version: Windows 10 Enterprise
  Available memory (MB): 20323
  Available CPU cores: 8
Binaries:
  Node: 18.18.0
  npm: N/A
  Yarn: N/A
  pnpm: N/A
Relevant Packages:
  next: 14.3.0-canary.85 // Latest available version is detected (14.3.0-canary.85).
  eslint-config-next: N/A
  react: 19.0.0-rc-f994737d14-20240522
  react-dom: 19.0.0-rc-f994737d14-20240522
  typescript: 5.1.3
Next.js Config:
  output: N/A
```


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

Not sure, Runtime

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

next dev (local), next start (local)

### Additional context

_No response_
Repository: ant-design
Issue: DatePicker onChange doesn't work for dates on lower edge of disabledDate
Labels: Inactive,unconfirmed

### Reproduction link

[![Edit on StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/edit/react-cwcqr8-kmxmty?file=demo.tsx)

### Steps to reproduce

1) Open Console
2) Open DatePicker
3) Click 2022
4) Check console to find "onchange" log output
5) Open DatePicker
6) Click 2017 (not disabled)
7) Check console, no log output

### What is expected?

Click on 2017 triggers onChange and log output

### What is actually happening?

onChange isn't triggered, no log output

| Environment | Info |
| --- | --- |
| antd | 5.17.4 |
| React | 18.3.1 |
| System | MacOS Sonoma 14.5 |
| Browser | Chrome Version 125.0.6422.76 (Official Build) (arm64) |

---
The disabledDate prop seems to more or less work as intended since 2017 isn't disabled like years 2016 and lower are. It's just the onChange that isn't triggered.

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: vscode
Issue: Multi-select should fire one tabs API event
Labels: debt,workbench-tabs

Testing #213550

The Tabs API has support for firing an array of tabs when there is a change event such as `{opened: Array(0), closed: Array(1), changed: Array(0)}` 

It would be ideal to support firing one event with the array of tabs, however I'm not sure what the event granularity looks like in core for this as the tabs API is just a proxy for editor service events.
Repository: PowerToys
Issue: PowerToys UI won't open
Labels: Issue-Bug,Product-Settings,Needs-Triage

### Microsoft PowerToys version

0.80.1

### Installation method

GitHub, Microsoft Store

### Running as admin

Yes

### Area(s) with issue?

General, System tray interaction

### Steps to reproduce

Sometime in the last several months, I'm no longer able to open the PowerToys UI. It shows in the system tray and I see several PT modules running in Task Manager as seen in the screenshot below. Ive tried uninstalling/reinstalling .exe (user and machine) from GitHub and app from Microsoft Store. I have the same results across several Windows 11 PCs. These are corporate PCs, so Im thinking it may be one of our companies anti-malware or network security apps, but Im not sure the best way to confirm that. Ive tried running as Admin and without with the same results. I also tried installing as Admin and not as admin with same results.

Bug report attached.
[PowerToysReport_2024-05-28-12-20-29.zip](https://github.com/microsoft/PowerToys/files/15473180/PowerToysReport_2024-05-28-12-20-29.zip)

![image](https://github.com/microsoft/PowerToys/assets/5709588/8c26cec3-34b4-4b20-b6ad-4cecafe09918)


### ✔️ Expected Behavior

PowerToys UI should open.

### ❌ Actual Behavior

Seemingly nothing.

### Other Software

_No response_
Repository: PowerToys
Issue: Unable to use Windows application switcher after mapping "ALT" -> "CTRL"
Labels: Issue-Bug,Product-Keyboard Shortcut Manager,Needs-Triage

### Microsoft PowerToys version

0.81.0

### Installation method

WinGet

### Running as admin

None

### Area(s) with issue?

Keyboard Manager

### Steps to reproduce

Map "ALT" to "CTRL"

### ✔️ Expected Behavior

I expected some way to be able to get application switching (say, switching between Firefox and VSCode) to work after mapping. 

### ❌ Actual Behavior

Instead, since this normally is "ALT+TAB" , the ALT gets picked up and converted to a CTRL, meaning there is no way to get application switching with "ALT+TAB" as normal once the global "ALT" -> "CTRL" mapping has been made. 

The only way for me to solve this was to individually map every single other combination of "ALT + __" with the exception of TAB. So the mapping looks like:

- "ALT+W" -> "CTRL+W"
- "ALT+T" -> "CTRL+T"
- "ALT+S" -> "CTRL+S"
- ... and so on

but this is extremely annoying. There should be a better way to do this!

### Other Software

Edition	Windows 11 Home
Version	23H2
Installed on	‎10/‎12/‎2023
OS build	22631.3593
Repository: flutter
Issue: `flutter run` fails on Android on Windows when installed in a path with non-ascii symbol
Labels: c: crash,platform-android,tool,platform-windows,has reproducible steps,P2,team-tool,triaged-tool,found in release: 3.22,found in release: 3.23

I suspect this is an underlying gradle issue rather than Flutter, but I failed to find a meta bug for this issue for `flutter_tools` so filing one.

The root cause is that spaces an (in this case) non-ascii chars are almost always broken in tools (especially on windows) if they aren't covered in e2e testing, not due to the fault of the devs, rather that the fundamental building blocks of path handling are just broken on all systems, and so it's really hard to get all path handling correct.

In this case, non-ascii characters seem broken for at least android/gradle on windows, but possibly also other flutter commands.

To repro:

I tested locally by taking a stock flutter (not shorebird) copying it (to flutter2) and then renaming flutter2 to test_flutter木 (via explorer) and I also get failures from gradle when trying to run flutter out of test_flutter木

Even powershell seems confused by the 木.

This is the log from running a test within powershell within visual studio code:
```
PS C:\Users\micro> .\test_flutter?\bin\flutter create foo
Creating project foo...
Resolving dependencies in `foo`...
Downloading packages...
Got dependencies in `foo`.
Wrote 129 files.
You can find general documentation for Flutter at: https://docs.flutter.dev/
Detailed API documentation is available at: https://api.flutter.dev/
If you prefer video documentation, consider: https://www.youtube.com/c/flutterdev

In order to run your application, type:

  $ cd foo
  $ flutter run

Your application code is in foo\lib\main.dart.

PS C:\Users\micro> cd .\foo\
PS C:\Users\micro\foo> ..\test_flutter?\bin\flutter run
Launching lib\main.dart on sdk gphone x86 64 in debug mode...

FAILURE: Build failed with an exception.

* Where:
Settings file 'C:\Users\micro\foo\android\settings.gradle' line: 20

* What went wrong:
Error resolving plugin [id: 'dev.flutter.flutter-plugin-loader', version: '1.0.0']
> Included build 'C:\Users\micro\test_flutter�?�\packages\flutter_tools\gradle' does not exist.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 13s
Running Gradle task 'assembleDebug'...                             15.1s
Error: Gradle task assembleDebug failed with exit code 1
```

https://github.com/shorebirdtech/shorebird/issues/2140 is where this came in for Shorebird.  https://github.com/shorebirdtech/shorebird/pull/2159/files is where we added a non-ascii char to our e2e tests for Shorebird, which passed everywhere but windows.
Repository: vscode
Issue: notebook.codeActionsOnSave doesn't respect "never"
Labels: under-discussion,notebook-format,notebook-code-actions

Testing #213608

Related: https://github.com/microsoft/vscode/issues/213718

I have the following set:

```json
{
  "notebook.codeActionsOnSave": {
    "notebook.format.extensionName": "never"
  },
  "notebook.formatOnSave.enabled": true,
}
```

When using the sample extension at https://github.com/microsoft/vscode-extension-samples/tree/main/notebook-format-code-action-sample I expect this to not trigger the code action on save but it does do it.
Repository: vscode
Issue: boolean options are not deprecated and marked as will be deprecated?
Labels: bug,notebook-code-actions

Testing #213608

![image](https://github.com/microsoft/vscode/assets/2193314/a2e7860d-7aca-4912-b536-391fa9cd52de)

If we don't want people to use these we should just remove them as supported options in the configuration registration while still supporting the `boolean` type in the code. This would result in a working setting but a warning in the settings.json file.
Repository: ollama
Issue: Model download finally fails behind company firewall
Labels: bug,networking

### What is the issue?

I want to make ollama available to our developer community in our company in order to learn to use the technology. We got ollama.com/* whitelisted through our company firewall, and it actually pretty much works quite well, but at the end of the model download, the process gets stuck:

pulling 42ba7f8a01dd... 100% ▕███████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏  557 B                          
verifying sha256 digest                                                                                                                                                            
Error: digest mismatch, file must be downloaded again: want sha256:8934d96d3f08982e95922b2b7a2c626a1fe873d7c3b06e8e56d7bc0a1fef9246, got sha256:1dd340187fa2df434fb562efa41b824c8b1ef6f3f3f3bc401280f80d8adea61e                                                                                                                                                      

After some digging, it seems that our malware scanner runs into a false positive with a file served from a cloudflare location

![image](https://github.com/ollama/ollama/assets/227312/c92406eb-f00a-41ee-a050-b26791df932c)

The malware software reports this: "Trickling"...

![image](https://github.com/ollama/ollama/assets/227312/a34df958-d6ba-47a0-b76d-91e4f0fee223)

Any chance to get this changed/fixed?

### OS

Windows

### GPU

AMD

### CPU

AMD

### Ollama version

0.1.30
Repository: material-ui
Issue: [material-ui] Questions regarding Pigment CSS usage
Labels: support: question,package: material-ui,package: pigment-css

### Related page

https://mui.com/blog/introducing-pigment-css

### Kind of issue

Missing information

### Issue description

Sorry if this is not the best place to discuss this, I was not sure where to, if you have a better place please point me to that! :) 

My team has a very specific way of using material-ui, we expose our components for usage in TypeScript and [Dart](https://dart.dev/). Pigment seems to depend on [source transformations](https://github.com/mui/pigment-css/blob/master/HOW_PIGMENT_CSS_WORKS.md#2-transformation-and-runtime-replacement) which would be fine for our TypeScript consumers but would possibly be a hard stopper for our Dart consumers, unless we are able to provide similar functionality with a custom dart build step.

So questions:

1. Will Pigment be the only way to use mui-material going forward? or will it be an optional dependency? Meaning could we continue to use `emotion` as our sx & styled engine even after Pigment? 
2. Are there plans to drop support for Emotion at some point? If not, will there be disadvantages to staying on Emotion?
3. Will sx continue to work on material-ui components under Emotion, even without Pigment's source transformations?
4. Is there possibly alternate ways to use Pigment that doesn't require source transformations? 

### Context

_No response_

**Search keywords**: pigment, css-in-js, emotion, css
Repository: ollama
Issue: Supress spinner option or add file out option
Labels: feature request

I am using a powershell script to direct the ollama output to a file. However, when I do the first line is always `failed to get console mode for stdout: The handle is invalid`. If I watch the file as it is written, as soon as the spinner shows I get the error added.

I would request that either there is a built in parameter that directs the output to a file. Or that there is a way to supress the spinner so I don't get this error.
Repository: TypeScript
Issue: [isolatedDeclarations] Should imported JSON files be emitted when "resolveJsonModules", "emitDeclarationOnly",  and "isolatedDeclarations" are all enabled?
Labels: Needs Investigation

### 🔍 Search Terms

json, resolvejsonmodules, isolateddeclarations, emit, declarations, import, emitDeclarationOnly

### ✅ Viability Checklist

- [X] This wouldn't be a breaking change in existing TypeScript/JavaScript code
- [X] This wouldn't change the runtime behavior of existing JavaScript code
- [X] This could be implemented without emitting different JS based on the types of the expressions
- [X] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
- [X] This isn't a request to add a new utility type: https://github.com/microsoft/TypeScript/wiki/No-New-Utility-Types
- [X] This feature would agree with the rest of our Design Goals: https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals

### ⭐ Suggestion

Emit/transpile JSON files when the aforementioned compile options are enabled

### 📃 Motivating Example

The primary purpose of isolated declarations is to be able to emit declarations for a project without needing to typecheck it and one of the main motivators for that is being able to start typechecking downstream projects, e.g. in a composite build, without waiting for typecheck.

It might be fair to say then that it would be good for downstream projects to be able to start typechecking without waiting for their dependees to transpile code. Even with isolated declarations, this is not possible at the moment, because types may depend on JSON files when `resolveJsonModules` is enabled, and JSON files are only emitted/copied when JS transpilation is enabled, i.e. `"emitDeclarationOnly": false`.


### 💻 Use Cases

Being able to typecheck a composite project in parallel where sub-projects are configured with
```json
    "isolatedDeclarations": true,
    "emitDeclarationOnly": true,
    "resolveJsonModule": true,
```