sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: node
Issue: readFile will not read files larger than 2 GiB even if buffers can be larger
Labels: fs,good first issue

### Version

v22.11.0

### Platform

```text
Darwin LAMS0127 23.6.0 Darwin Kernel Version 23.6.0: Thu Sep 12 23:36:23 PDT 2024; root:xnu-10063.141.1.701.1~1/RELEASE_ARM64_T6031 arm64 arm Darwin
```


### Subsystem

_No response_

### What steps will reproduce the bug?

```javascript
const fs = require("fs/promises");

const FILE = "test.bin";

async function main() {
  const buffer1 = Buffer.alloc(3 * 1024 * 1024 * 1024);
  await fs.writeFile(FILE, buffer1);

  const buffer2 = await fs.readFile(FILE);
  // does not reach here
  console.log(buffer2.length);
}

main();

```

### How often does it reproduce? Is there a required condition?

It is deterministic.

### What is the expected behavior? Why is that the expected behavior?

readFile should allow for files as large as the max buffer size, as according to the documentation:

> RR_FS_FILE_TOO_LARGE[#](https://nodejs.org/api/errors.html#err_fs_file_too_large)
An attempt has been made to read a file whose size is larger than the maximum allowed size for a Buffer.

https://nodejs.org/api/errors.html#err_fs_file_too_large

In newer node versions, the maximum buffer has increased but the maximum file size is still capped at 2 GiB

In older versions (v18), the max buffer size on 64bit platforms was 4GB, but files cannot be that large either.

### What do you see instead?

`readFile` will throw the error

```
RangeError [ERR_FS_FILE_TOO_LARGE]: File size (3221225472) is greater than 2 GiB
```

### Additional information

_No response_
Repository: go
Issue: x/sys/windows: signal.Notify doesn't handle windows.Signal well
Labels: Thinking,OS-Windows,NeedsInvestigation,compiler/runtime

### Go version

go version go1.22.3 windows/amd64

### Output of `go env` in your module/workspace:

```shell
set GO111MODULE=
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\qian\AppData\Local\go-build
set GOENV=C:\Users\qian\AppData\Roaming\go\env
set GOEXE=.exe
set GOEXPERIMENT=
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GOMODCACHE=C:\Users\qian\go\pkg\mod
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=C:\Users\qian\go
set GOPRIVATE=
set GOROOT=D:\Environments\go
set GOTMPDIR=
set GOTOOLCHAIN=auto
set GOTOOLDIR=D:\Environments\go\pkg\tool\windows_amd64
set GOVCS=
set GOVERSION=go1.22.3
set GCCGO=gccgo
set GOAMD64=v1
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=0
set GOMOD=NUL
set GOWORK=
set CGO_CFLAGS=-O2 -g
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-O2 -g
set CGO_FFLAGS=-O2 -g
set CGO_LDFLAGS=-O2 -g
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -fno-caret-diagnostics -Qunused-arguments -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=C:\Users\qian\AppData\Local\Temp\go-build3528663502=/tmp/go-build -gno-record-gcc-switches
```


### What did you do?

When developing a server on Windows, we want to capture the SIGINT signal for extension purposes.
https://go.dev/play/p/wiNlThXDUPT

### What did you see happen?

signal.Notify(c chan<- os.Signal, sig ...os.Signal) cannot correctly capture windows.Signal.

### What did you expect to see?

signal.Notify can correctly handle windows.Signal. 
This means that when pressing Ctrl+C, the logic can be correctly triggered.
Repository: react
Issue: [DevTools Bug]: Components tab freezes after inspecting
Labels: Type: Bug,Status: Unconfirmed,Component: Developer Tools

### Website or app

https://dev.permaplant.net

### Repro steps

1. Login
2. Go to Maps and create or open one
3. Look for the TimelinePicker component in the components tab
4. Click on it to inspect it

After that my components tab freezes and sometimes my RAM fills up endlessly. 

(If you need authentication, just contact me)

### How often does this bug happen?

Every time

### DevTools package (automated)

_No response_

### DevTools version (automated)

_No response_

### Error message (automated)

_No response_

### Error call stack (automated)

_No response_

### Error component stack (automated)

_No response_

### GitHub query string (automated)

_No response_
Repository: go
Issue: proposal: os: add methods to safely convert between files and roots
Labels: Proposal

### Proposal Details

I have code which opens both files and directories as files to perform various actions such as fetching and comparing generations (I need to upstream to linux once I write tests) or other metadata with `SyscallConn`.

Trying to use #67002 to make it less conservative with some TOCTOU edge cases prove challenging since `*os.Root` does not provide needed `SyscallConn` to fetch the generation of directories and more architecturally the current codepath is to open everything as a `*os.File` and then use [`statx`](https://man7.org/linux/man-pages/man2/statx.2.html) to decide what to do next.

---

```go
package os

// AsRoot open the File as a Root if it is a directory otherwise it errors.
// The Root is returned with a new lifetime such that each need to be closed independently.
func (*File) AsRoot() (*Root, error)

// AsFile opens the Root as a File.
// The File is returned with a new lifetime such that each need to be closed independently.
func (*Root) AsFile() (*File, error)
```
Repository: godot
Issue: Drag & drop a node in visual shader produces an incorrect label and error
Labels: bug,topic:editor

### Tested versions

- Reproducible in: 4.4 (673f396677654220d7e1d5b6fb5ed3b50126b4e6), 4.3

### System information

Windows 11

### Issue description

![vs_bug2](https://github.com/user-attachments/assets/9bb16dec-2e5e-413b-a86e-be8bd410cb72)


### Steps to reproduce

- Create a visual shader and try to drag & drop a node from Add Node dialog

### Minimal reproduction project (MRP)

Too easy to reproduce
Repository: angular
Issue: HttpInterceptor can trigger effect recomputation
Labels: area: core,area: common/http,bug,core: reactivity,cross-cutting: signals

### Which @angular/* package(s) are the source of the bug?

common

### Is this a regression?

No

### Description

I have a service with a signal that is used inside interceptor. If we have inside `effect` HttpClient usage, effect will catch signal reads inside interceptor function.

Here is a minimal repro: https://stackblitz.com/edit/stackblitz-starters-o7huam?file=src%2Fmain.ts
I have effect without any signal reads but if in the end of effect function I will print effect producerNode, we will see that effect tracks smth, and that is signal that is read inside interceptor. And http call happens each time when signal inside interceptor changes.


IMHO, this is undocumented behavior of http client + interceptor + effect and it works only in combination. The solution for this behavior will be wrapping signal read with `untracked`.

### Please provide a link to a minimal reproduction of the bug

https://stackblitz.com/edit/stackblitz-starters-o7huam?file=src%2Fmain.ts

### Please provide the exception or error you saw

```true
When inside effect I have http call via HttpClient, effect starting to track signal that is read inside interceptors.
```

### Please provide the environment you discovered this bug in (run `ng version`)

```true
Angular CLI: 18.2.7
Node: 18.20.3
Package Manager: npm 10.2.3
OS: linux x64

Angular: 18.2.7
... animations, cli, common, compiler, compiler-cli, core, forms
... platform-browser, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1802.7
@angular-devkit/build-angular   18.2.7
@angular-devkit/core            18.2.7
@angular-devkit/schematics      18.2.7
@schematics/angular             18.2.7
rxjs                            7.8.1
typescript                      5.5.4
zone.js                         0.14.10
```

### Anything else?

_No response_
Repository: ui
Issue: [bug]: No Spacing in between Toasts
Labels: bug

### Describe the bug


https://github.com/user-attachments/assets/750fb4e5-5374-4934-a351-7f8d81b01803

No spacing when multiple Toasts are shown at once.

### Affected component/components

Toast

### How to reproduce

1. Just followed the instructions here - https://ui.shadcn.com/docs/components/toast
2. Increased the `TOAST_LIMIT` to 3
3. Saw the issue as per the video

### Codesandbox/StackBlitz link

https://github.com/user-attachments/assets/750fb4e5-5374-4934-a351-7f8d81b01803

### Logs

_No response_

### System Info

```bash
Brave Browser, macOS
```


### Before submitting

- [X] I've made research efforts and searched the documentation
- [X] I've searched for existing issues
Repository: material-ui
Issue: [Autocomplete][material-ui] Missing aria-multiselectable attribute when multiple prop is set
Labels: accessibility,component: autocomplete,ready to take

### Steps to reproduce

https://stackblitz.com/edit/vitejs-vite-kcvsmw?file=src%2FApp.tsx&view=editor

### Current behavior

The `Autocomplete` component has `multiple` set to `true`.
React Testing Library [deselectOptions](https://testing-library.com/docs/user-event/utility#-selectoptions-deselectoptions) fails.

The documentation says:
> Selecting multiple options and/or deselecting options of HTMLSelectElement is only possible if [multiple](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select#attr-multiple) is specified.

I expected it to work.

### Expected behavior

We can use `deselectOptions` on an `Autocomplete` when `multiple` is set to `true`.

### Context

Please see: https://stackblitz.com/edit/vitejs-vite-kcvsmw?file=src%2FApp.tsx&view=editor
This issue is similar to https://github.com/mui/material-ui/issues/38631

### Your environment

<details>
  <summary><code>npx @mui/envinfo</code></summary>

```
  System:
    OS: Linux 5.0 undefined
  Binaries:
    Node: 18.20.3 - /usr/local/bin/node
    npm: 10.2.3 - /usr/local/bin/npm
    pnpm: 8.15.6 - /usr/local/bin/pnpm
  Browsers:
    Chrome: Not Found
  npmPackages:
    @emotion/react:  11.13.3 
    @emotion/styled: ^11.13.0 => 11.13.0 
    @mui/core-downloads-tracker:  6.1.7 
    @mui/material: ^6.1.7 => 6.1.7 
    @mui/private-theming:  6.1.7 
    @mui/styled-engine:  6.1.7 
    @mui/system:  6.1.7 
    @mui/types:  7.2.19 
    @mui/utils:  6.1.7 
    @types/react: ^18.3.12 => 18.3.12 
    react: ^18.3.1 => 18.3.1 
    react-dom: ^18.3.1 => 18.3.1 
    typescript: ~5.6.2 => 5.6.3
```
</details>


**Search keywords**: autocomplete multiple aria-multiselectable
Repository: transformers
Issue: FileNotFoundError when using SentenceTransformerTrainingArguments(load_best_model_at_end=True) and Peft
Labels: bug

### System Info

I used google colab default environment, with last version of transformers and sentence-transformers

### Who can help?

@muellerzr 

### Information

- [ ] The official example scripts
- [X] My own modified scripts

### Tasks

- [ ] An officially supported task in the `examples` folder (such as GLUE/SQuAD, ...)
- [ ] My own task or dataset (give details below)

### Reproduction

Here is the example code as a gist: [gist](https://gist.github.com/GTimothee/cb3551ba6eb14b04f7a06d63ea4616f9)

Just open the gist in a colab notebook and run it

### Expected behavior

This is a follow up about another bug found in sentence-transformers. The sentence-transformers library just integrated peft using transformers.integrations. The bug is that when using SentenceTransformerTrainingArguments(load_best_model_at_end=True) there is a FileNotFoundError as we try to load a classical checkpoint file (pth) but we saved an adapter instead. When looking into the load_best_model function, it just uses the function from the transformers.trainer.Trainer. So we need to modify the transformers library to solve the problem. 

The issue is that there is a function in transformers that checks if the model is a PeftMixedModel or not. If not, it is not considered a peft model and the trainer tries to load the model as usual. The problem is our model is a PeftAdapterMixin so it is not recognized as a peft model. 

See also: https://github.com/UKPLab/sentence-transformers/issues/3056 

In my opinion, we need to add to the check a 2-step check 1) is it a PeftAdapterMixin and 2) has it adapters loaded? Maybe it is only one part of the solution though, and we need a special loading snippet in the transformers.trainer.Trainer._load_best_model directly.
Repository: TypeScript
Issue: TS2823 import attributes error when using node16 module
Labels: Docs

### 🔎 Search Terms

TS2823 import attributes node16 module


### 🕗 Version & Regression Information

- This is the behavior in every version I tried, and I reviewed the FAQ for entries about 5.6.3 and dev


### ⏯ Playground Link

https://www.typescriptlang.org/play/?target=99&moduleResolution=99&module=100&ts=5.8.0-dev.20241115#code/JYWwDg9gTgLgBGAhgYwNaIOYFMBSBnCAOzgDMoIQ4ByAOgHok1MsaArAwquAd2BgAs4AbzgwAnmCwAuauyJcAvkA

### 💻 Code

```ts
import packageJson from './package.json' with { type: 'json' }
```


### 🙁 Actual behavior

We get the following error:

```
TS2823: Import attributes are only supported when the --module option is set to esnext, nodenext, or preserve
```

### 🙂 Expected behavior

The [docs](https://www.typescriptlang.org/docs/handbook/modules/theory.html#the-module-output-format) state the following:

> [nodenext](https://www.typescriptlang.org/docs/handbook/modules/reference.html#node16-nodenext): Currently identical to node16, but will be a moving target reflecting the latest Node.js versions as Node.js’s module system evolves.

Either the syntax should be supported on `node16` or the documentation needs to be updated.

### Additional information about the issue

_No response_
Repository: rust
Issue: Tracking issue for collecting `config.toml`s and analysis of config/profile usage patterns and pain points
Labels: T-bootstrap,C-tracking-issue,E-needs-investigation,A-bootstrap-config

Contributors often run into friction when using `config.toml` and profiles, and we would like to better understand the different workflows of different contributors and how contributors utilize `config.toml` and profiles to inform future changes and improvements.

### Steps

- [ ] Identify what we want to know about (e.g. pain points, usage patterns) regarding `config.toml`, profiles and their usage patterns and contributor workflows.
- [ ] Figure out a mechanism to collect such info: survey? metrics initiative?
- [ ] Inform contributors that we would like to collect such info.
- [ ] Analysis of the collected information.
- [ ] Identify possible future steps and improvements/changes.
Repository: flutter
Issue: Unable to Serve NOTICES File in Flutter Web App Deployed on IIS
Labels: a: assets,platform-web,a: release,P2,team-web,triaged-web

I am encountering an issue when deploying a Flutter web application on IIS. The application fails to load the NOTICES file and shows the following error in the browser console:

Uncaught Error: Unable to load asset: "NOTICES".

The NOTICES file is present in the deployment folder, but it doesn't have any file extension. Since the file lacks an extension, IIS does not serve it correctly.

**Environment**
Flutter Version: 3.24v
Dart Version: 3.5.3
Operating System: Windows Server
IIS Version: 10.0.22621.1
Build Command: flutter clean & flutter build web

![image](https://github.com/user-attachments/assets/3ff75ade-0976-4141-a2fc-18b12da7ba66)

**What I’ve Tried**
1. Adding MIME types for files without extensions in IIS (Which IIS does not allow)
2. Created the web.config to include:
```
<staticContent>
    <mimeMap fileExtension="" mimeType="text/plain" />
</staticContent>

```
3. Renaming the NOTICES file to include an extension (e.g., NOTICES.txt), which failed as the main.dart.js still references the original file name.

**Request**
Please advise on how to handle extensionless files like NOTICES in a Flutter web app deployed on IIS. If this is a limitation of the current Flutter build process, it would be helpful to:

Provide a way to customize the file name or extension of the NOTICES file.
Document any IIS-specific deployment considerations for Flutter web apps.
Thank you for your help!
Repository: next.js
Issue: Loading with parallel routes only works on root
Labels: bug,Parallel & Intercepting Routes

### Link to the code that reproduces this issue

https://github.com/bananashell/nextjs-parallel-route-loading-issue

### To Reproduce

1. next dev
2. hard reload localhost:3000 (loading of header is done as expected)
3. hard reload localhost:3000/a
4. loading of header is skipped and entier page results in being sync

### Current vs. Expected behavior

If a loading.tsx is added to the root of a parallel route it only uses that suspense boundary on the root level.

Give this tree

```
/ (root)
    @header
        page.tsx
        default.tsx
        loading.tsx
    /a
        page.tsx
        loading.tsx
    /b
        page.tsx
        loading.tsx
```

-   navigating to `/` will use the loading.tsx if `@header/page.tsx` is async
-   navigating to `/a`directly would not use the loading.tsx for `@header` and prevent streaming from happening

The only solution I've found for this is to manually add a Suspense boundary to `default.tsx`

```tsx
// @header/default.tsx
import HeaderSlot from "./page";
import { Suspense } from "react";
import Loading from "./loading";

export default function DefaultSlot() {
    return (
        <Suspense fallback={<Loading />}>
            <HeaderSlot />
        </Suspense>
    );
}
```


### Provide environment information

```bash
Operating System:
  Platform: darwin
  Arch: arm64
  Version: unknown
  Available memory (MB): 36864
  Available CPU cores: 14
Binaries:
  Node: 22.6.0
  npm: N/A
  Yarn: 1.22.22
  pnpm: N/A
Relevant Packages:
  next: 15.0.3 // Latest available version is detected (15.0.3).
  eslint-config-next: N/A
  react: 18.3.1
  react-dom: 18.3.1
  typescript: N/A
Next.js Config:
  output: N/A
```


### Which area(s) are affected? (Select all that apply)

Parallel & Intercepting Routes

### Which stage(s) are affected? (Select all that apply)

next dev (local), next start (local)

### Additional context

_No response_
Repository: storybook
Issue: [Bug]: HMR events lead to new WS connections for Storybook's Channel
Labels: bug

### Describe the bug

A file change usually triggers a reload event in Storybook's manager. As soon as this happens, Storybook's manager establishes a new WebSocket connection to the backend.

### Reproduction steps

1. Start Storybook
2. Make a change in a story file or component file
3. Take a look at the network tab. Filter for WS. You can see that a new WS connection has been established

### Additional context

_No response_
Repository: react-native
Issue: TouchableOpacity isn't working on IOS device
Labels: Platform: iOS,Component: TouchableOpacity,Needs: Repro,Newer Patch Available,Needs: Attention

### Description

After updating to the latest version, SDK52, my app has stopped working on iOS devices, although it was previously working fine on both iOS and Android. Specifically, the TouchableOpacity button and card components are not functioning correctly on iOS.

### Steps to reproduce

.

### React Native Version

0.76.1

### Affected Platforms

Runtime - iOS

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

```text
.
```


### Stacktrace or Logs

```text
.
```


### Reproducer

https://github.com/halilyildiz384589

### Screenshots and Videos

.
Repository: godot
Issue: Cannot use keywords inside dictionary with Lua-style syntax
Labels: topic:gdscript,documentation

### Tested versions

Godot v4.4.dev4

### System information

Godot v4.4.dev4 - macOS 15.1.0 - Multi-window, 2 monitors - Metal (Mobile) - integrated Apple M1 Max (Apple7) - Apple M1 Max (10 threads)

### Issue description

Writing this
```gdscript
{class="xyz"}
```

Results in this parse error:
```
Expected expression as dictionary key.
Expected ":" or "=" after dictionary key.
Expected ":" after dictionary key.
Expected expression as dictionary value.
Expected closing "}" after dictionary elements.
Expected end of statement after expression, found "class" instead.
Expected statement, found "class" instead.
```

[Docs](https://docs.godotengine.org/en/stable/classes/class_dictionary.html#dictionary) say:
```gdscript
# Alternative Lua-style syntax.
# Doesn't require quotes around keys, but only string constants can be used as key names.
# Additionally, key names must start with a letter or an underscore.
# Here, `some_key` is a string literal, not a variable!
another_dict = {
	some_key = 42,
}
```

In this case, I think class (and others keywords) should not be considered as keyword, but a string literal.

I know I could write `{"class"="xyz"}` or `{"class": "xyz"}`, but I think it breaks the developer experience.

For reference, Ruby allows using keywords as Hash key (Ruby's equivalent to Dictionary), because in this case it handles the keys as  Symbol (similar Godot's StringName).

<img width="296" alt="Screenshot 2024-11-15 at 10 53 31" src="https://github.com/user-attachments/assets/cec9f558-69d9-465d-987b-9ddc9826a5b2">



### Steps to reproduce

Write `{class="xyz"}` in a script file.

### Minimal reproduction project (MRP)

N/A
Repository: godot
Issue: [4.3] Crash when exporting in headless mode on linux with godot 4.3
Labels: bug,needs testing,crash,topic:export

### Tested versions

Tested this on 4.3 stable

### System information

Windows 11

### Issue description

When exporting in headless mode via a github action I get a crash:
```
savepack: end
Unloading addon: res://addons/Todo_Manager/plugin.cfg
Unloading addon: res://addons/gdUnit4/plugin.cfg
Unloading addon: res://addons/godot-playfab/plugin.cfg
Unloading addon: res://addons/godot-sqlite/plugin.cfg
Unloading addon: res://addons/gut/plugin.cfg
Unloading addon: res://addons/runtime_debug_tools/plugin.cfg
Unloading addon: res://addons/script-ide/plugin.cfg
ERROR: Parameter "m" is null.
Unloading addon: res://addons/Todo_Manager/plugin.cfg
   at: mesh_get_surface_count (servers/rendering/dummy/storage/mesh_storage.h:120)

================================================================
handle_crash: Program crashed with signal 11
Engine version: Godot Engine v4.3.stable.official (77dcf97d82cbfe4e4615475fa52ca03da645dbd8)
Dumping the backtrace. Please include this when reporting the bug to the project developer.
ERROR: FATAL: Index p_index = 1 is out of bounds (size() = 0).
   at: get (./core/templates/cowdata.h:205)
Illegal instruction (core dumped)
```
The export exe is still created in this instance however the process exits with code 132 (SIGILL) and this causes the rest of the CI pipeline to fail. I was doing this as part of a CI pipeline that exports the project on push to master.

Here are the commands used for the CI export
`GODOT_VERSION=4.3`
`EXPORT_DIR=build`
`EXPORT_NAME=test-project`

```
      - name: Setup Godot
        run: |
          mkdir -v -p ~/.local/share/godot/export_templates/
          mkdir -v -p ~/.config/
          mv /root/.config/godot ~/.config/godot
          mv /root/.local/share/godot/export_templates/${GODOT_VERSION}.stable ~/.local/share/godot/export_templates/${GODOT_VERSION}.stable
      - name: Windows Export
        run: |
          mkdir -v -p build/windows
          EXPORT_DIR="$(readlink -f build)"
          cd $PROJECT_PATH
          godot --headless --verbose --import --export-release "windows" "$EXPORT_DIR/windows/$EXPORT_NAME.exe"
```


### Steps to reproduce

This looks like a reoccurrence of https://github.com/godotengine/godot/issues/89674

### Minimal reproduction project (MRP)

N/A