sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: react
Issue: [React 19] Suspense throttling behavior (`FALLBACK_THROTTLE_MS`) kicks in too often
Labels: Type: Discussion,React 19

<!--
  Please provide a clear and concise description of what the bug is. Include
  screenshots if needed. Please test using the latest version of the relevant
  React packages to make sure your issue has not already been fixed.
-->

React version: 19.0.0

Related Issues: #30408, #31697

This may be the intended behavior, but I'm opening this issue anyway because enough discussion hasn't been done in the related issues IMO and the current behavior still feels poor to me in that it makes it too easy to slow down actual user experience.

## Steps To Reproduce

<details>
  <summary>Code</summary>

```jsx
const zero = Promise.resolve(0);

function getNumber(num) {
  return new Promise((resolve) => {
    setTimeout(() => resolve(num), 100);
  });
}

function App() {
  const [count, setCount] = useState(zero);

  const countValue = use(count);

  useEffect(() => {
    console.log("countValue =", countValue, Date.now());
  }, [countValue]);

  return (
    <button
      onClick={() => {
        console.log("click", Date.now());
        setCount(getNumber(countValue + 1));
      }}
    >
      count is {countValue}
    </button>
  );
}
```
</details>

In short, when a rerendering suspends, you always have to wait for 300ms even if underlying data fetching has finished sooner.

In the attached example, when user pushes the button, a new Promise is passed to `use()`, which triggers Suspense. Even though that Promise resolves exactly after 100ms, the UI is updated only after 300ms.

I experienced this issue when using [Jotai](https://jotai.org/), a Suspense-based state management library.

Given that the throttling behavior kicks in even in this simplest situation, it seems impossible to implement a user experience that involves Suspension and is quicker than 300ms regardless of, say, user's network speed.

**Link to code example:**

https://codesandbox.io/p/sandbox/4f4r94

## The current behavior

Almost always need to wait for 300ms.

## The expected behavior

Maybe some better heuristic for enabling the throttling behavior? It would also be very nice to make this configurable.
Repository: node
Issue: [feature] Option/flag for process.cwd( ) to return the actual PWD with symlinks, not real path
Labels: feature request

### What is the problem this feature will solve?

Certain software such as docker or VS Code relies on the actual path, not real path. In case we use NodeJS based scripts - we would like to know from what actual folder this code is running. Unfortunately process.cwd( ) does not work. This code `node -p 'process.cwd()'` returns path without symlink. Flags like `--preserve-symlinks` or `NODE_PRESERVE_SYMLINKS=1` do not help to solve the problem.





### What is the feature you are proposing to solve the problem?

Please introduce a flag and what is more important environment variable  to force process.cwd to follow the actual path, not realpath.
Environment variable is needed for scenarios when we cannot already change scripts, but we can force node to work different by changing it.

### What alternatives have you considered?

Alternative solution now is to use process.env.PWD, but it's OS dependent, so will not work in Windows

### Related issues

This will solve directly this issue:
https://github.com/devcontainers/cli/issues/932

And as a result will help to solve following problems:
https://github.com/microsoft/vscode-remote-release/issues/10301
https://github.com/docker/for-win/issues/14380

Thanks!
Repository: godot
Issue: Godot and the risks of nontrivial relocatability
Labels: bug,discussion,topic:core,needs testing

Godot currently has hidden assumptions about trivial relocatability. Let's gather knowledge about relocations in this issue, and see how we can best handle them

## Tested versions

All versions are affected.

## About Relocations 

_Relocation_ of an object means moving it to a different position in memory.

Relocation may commonly be implemented by `memcpy` with subsequent non-destructing deallocation of the old memory. Calls to `realloc` may trigger the same operation.

This brings us to _trivial relocation_:
- An object is _trivially relocatable_ if the above operations are _correct_.
- An object is _not trivially relocatable_ if the above operation is incorrect, such as if:
    - The object has a pointer to itself.
    - The object uses relative pointers.
    - Other examples can be found [here](https://open-std.org/JTC1/SC22/WG21/docs/papers/2020/p1144r5.html#non-trivial-samples).

A violation of nontrivial relocatability is undefined behavior, and will likely lead to a crash.

The verb 'relocate' was introduced rather recently, and is (i believe) part of C++23: https://open-std.org/JTC1/SC22/WG21/docs/papers/2020/p1144r5.html
Using C++17, we do not have access to its APIs.

## How to handle non-trivial relocatability

If an object is not trivially relocatable, it needs to be moved using _relocation semantics_ instead. For example (pseudocode):

```c++
if constexpr (std::is_trivially_relocatable<T>) {
    realloc(array, new_size);
}
else {
    // Not trivially relocatable
    T *new_array = alloc(new_size);
    for (int i = 0; i < size; i++) {
        new_array[i] = relocate(array[i]);
    }
}
```

In the common case, `relocate` may be implemented as `std::move`.

## Examples of code violating nontrivial relocatability

- `CowData`, through use of `realloc`, affecting `Vector`.
- `LocalVector`, through use of `realloc`.
- `HashSet`, through use of `realloc`.
- `AHashMap`, through use of `realloc`.
- `PagedAllocator`, through use of `realloc`.
- `PagedArrayPool`, through use of `realloc`.

I'm sure there are more examples; please comment to expand the list.

## Examples of nontrivially relocatable types

I don't know of any, please comment to expand the list.
GDExtension users may have their own nontrivially relocatable types.

## Practical Proposal to move forwards

To have safe relocation dynamics, we need to either avoid nontrivial relocation entirely (inefficient) or introduce relocation structures into the Godot codebase.

I don't think Godot has many nontrivially relocatable types. It is questionable whether we want to sacrifice time to implement relocation-safe versions of code, especially since the trivially relocatable path should not be changed, as it is faster.

Instead, I propose we document such limitations, and statically safeguard incompatible types such as `CowData` against nontrivially relocatable element types. We can remove this limitation if needed later.
Repository: vscode
Issue: `vscode://vscode-remote/wsl+<distro>/path/to/file` des not use already open window 
Labels: bug,opener


Type: <b>Bug</b>

Try opening a file on the WSL filesystem, let's say /home/USERNAME/.profile, using this URI: `vscode://file/home/USERNAME/.profile`. Instead of opening the intended file, I get an error dialog complaining that `\home\USERNAME\.profile` (with backslashes!) does not exist.

This is rather unfortunate. I asked ChatGPT for a workaround but its recommended solution (use `vscode://vscode-remote/wsl+<distro>/path/to/file`) does not work correctly: it closes the WSL instance of VS Code, creating a brand new instance with *just* the designated file, and also doesn't solve the problem of links generated by tools assuming a local VS code instance.

Extension version: 0.88.5
VS Code version: Code 1.95.3 (f1a4fb101478ce6ec82fe9627c43efbf9e98c813, 2024-11-13T14:50:04.152Z)
OS version: Windows_NT x64 10.0.26100
Modes:
Remote OS version: Linux x64 5.15.167.4-microsoft-standard-WSL2

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i7-1065G7 CPU @ 1.30GHz (8 x 1498)|
|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>skia_graphite: disabled_off<br>video_decode: enabled<br>video_encode: enabled<br>vulkan: disabled_off<br>webgl: enabled<br>webgl2: enabled<br>webgpu: enabled<br>webnn: disabled_off|
|Load (avg)|undefined|
|Memory (System)|31.60GB (14.05GB free)|
|Process Argv|--folder-uri=vscode-remote://wsl+Ubuntu/home/gvanrossum/TypeAgent --remote=wsl+Ubuntu --crash-reporter-id 51308fcb-286e-416b-bcf9-7695a190b373|
|Screen Reader|no|
|VM|0%|

|Item|Value|
|---|---|
|Remote|WSL: Ubuntu|
|OS|Linux x64 5.15.167.4-microsoft-standard-WSL2|
|CPUs|Intel(R) Core(TM) i7-1065G7 CPU @ 1.30GHz (8 x 0)|
|Memory (System)|15.42GB (13.47GB free)|
|VM|0%|
</details><details>
<summary>A/B Experiments</summary>

```
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805cf:30301675
binariesv615:30325510
vsaa593:30376534
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
pythonnoceb:30805159
asynctok:30898717
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
dvdeprecation:31068756
dwnewjupytercf:31046870
nativerepl2:31139839
pythonrstrctxt:31112756
nativeloc1:31192215
cf971741:31144450
iacca1:31171482
notype1cf:31157160
5fd0e150:31155592
dwcopilot:31170013
stablechunks:31184530

```

</details>

<!-- generated by issue reporter -->
Repository: ui
Issue: [bug]: Popover Content not working within the use of Dialog Content
Labels: bug

### Describe the bug

1) I have an issue where i have a link which has longer text and i needed to open them separately in dialog and showing them.
2) Now when i added Popover and all of its related components with className of (truncate) on PopoverTrigger such that when i click on that truncated line the Popover opens and i can select and copy the whole link from there but, now the issue is that i can't click on any content on the Popover Content.

![dialog and popover mixture issue](https://github.com/user-attachments/assets/507cdaf8-e130-4a8b-9768-56274b55d402)

### Affected component/components

PopoverContent

### How to reproduce

```
<Dialog>
   <DialogTrigger>Some</DialogTrigger>
   <DialogContent>
    <Popover modal>
          <PopoverTrigger className="w-40 truncate hover:text-muted-foreground/90">
             // Supposed to be link that is truncated
            lorem50 can be used for demo
          </PopoverTrigger>
          <PopoverContent align="start">
             // Supposed to be the whole link
            lorem50 can be used for demo
          </PopoverContent>
        </Popover>
   </DialogContent>
</Dialog>
```

### Codesandbox/StackBlitz link

_No response_

### Logs

_No response_

### System Info

```bash
Google Chrome, Windows
```


### Before submitting

- [X] I've made research efforts and searched the documentation
- [X] I've searched for existing issues
Repository: deno
Issue: SSH SFTP "Signature verification failed"
Labels: bug,node compat

Version: Deno 2.1.4

Hi,

I'm using the `ssh2` npm package to connect to an sftp server. Very much like https://github.com/denoland/deno/issues/24118 but without the mention of a missing digest, I can't initiate the connection properly using this code :

```typescript
import { Client } from "npm:ssh2@latest";

const conn = new Client();
conn.on("error", function (err: Error) {
  console.log("SSH - Connection Error: " + err);
});
conn.on("ready", () => {
  console.log("Client :: ready");
  conn.sftp((err: Error, sftp) => {
    if (err) throw err;
    sftp.readdir("export", (err: Error, list: string[]) => {
      if (err) throw err;
      console.dir(list);
      conn.end();
    });
  });
}).connect({
  host: <host>,
  port: 22,
  username: <user>,
  password: <pwd>,
  algorithms: {
    kex: [
      "diffie-hellman-group14-sha1",
      "diffie-hellman-group1-sha1",
    ]
  },
  debug: console.log,
});
```

```
Socket connected
Remote ident: 'SSH-2.0-2.0'
Outbound: Sending KEXINIT
Inbound: Handshake in progress
<handshake>
Outbound: Sending KEXDH_INIT
Received DH Reply
Host accepted by default (no verification)
Host accepted (verified)
Outbound: Sending NEWKEYS
Inbound: NEWKEYS
Verifying signature ...
Signature verification failed
Outbound: Sending DISCONNECT (3)
SSH - Connection Error: Error: Handshake failed: signature verification failed
Socket ended
Socket closed
```

When using nodejs: 

```
Socket connected
Remote ident: 'SSH-2.0-2.0'
Outbound: Sending KEXINIT
Inbound: Handshake in progress
<handshake>
Outbound: Sending KEXDH_INIT
Received DH Reply
Host accepted by default (no verification)
Host accepted (verified)
Outbound: Sending NEWKEYS
Inbound: NEWKEYS
Verifying signature ...
Verified signature
Handshake completed
```

The same is true using `npm:ssh2-sftp-client@10.0.3`
Repository: next.js
Issue: Server-actions redirect not HTTP RFC compliant
Labels: Upstream,Navigation

### Link to the code that reproduces this issue

https://github.com/Netail/repro-server-action-redirect

### To Reproduce

1. Have a service in your infrastructure which checks if responses are HTTP compliant, (e.g. in a load balancer - in our case F5's load-balancer)
2. Create an app with a server-action
3. In the server-action perform a `redirect()`

### Current vs. Expected behavior

A server action redirect returns with a 303, which is fine, but instead of a `location` header (according to the HTTP/303 spec), they send back a `x-action-redirect` header with the url. When you have something in your infrastructure which checks responses against the HTTP RFC, it will prevent the response from reaching the client.

In our case F5's HTTP RFC non-compliance prevented server-action redirects from reaching the client, thus resulting in no-response back from the server-action.

The thing is, we could whitelist the response if it contains the `x-action-redirect` header, but what if this naming changes? Then the will break again

### Provide environment information

```bash
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 24.1.0: Thu Oct 10 21:03:15 PDT 2024; root:xnu-11215.41.3~2/RELEASE_ARM64_T6000
  Available memory (MB): 32768
  Available CPU cores: 10
Binaries:
  Node: 22.11.0
  npm: 10.9.0
  Yarn: 1.22.22
  pnpm: 9.6.0
Relevant Packages:
  next: 14.2.18 // An outdated version detected (latest is 15.1.0), upgrade is highly recommended!
  eslint-config-next: N/A
  react: 18.3.1
  react-dom: 18.3.1
  typescript: 5.5.4
Next.js Config:
  output: standalone
```


### Which area(s) are affected? (Select all that apply)

Navigation, Upstream

### Which stage(s) are affected? (Select all that apply)

Other (Deployed)

### Additional context

Still the case for Next 15, if I check the codebase
Repository: TypeScript
Issue: Add Error.isError() to ESNext lib
Labels: Bug,Help Wanted,Domain: lib.d.ts

### ⚙ Compilation target

ESNext

### ⚙ Library

ESNext

### Missing / Incorrect Definition

```ts
interface ErrorConstructor {
    /**
     * Indicates whether the argument provided is a built-in Error instance or not.
     */
    isError(error: unknown): error is Error;
}
```

### Sample Code

```TypeScript
try {
  // ...
} catch (e) {
  if (Error.isError(e)) {
    // ...
  }
}
```

### Documentation Link

See https://github.com/tc39/proposal-is-error
Repository: tauri
Issue: [bug] RPM installer places resources in wrong path
Labels: type: bug,good first issue,platform: Linux,scope: bundler,status: needs triage

### Describe the bug

DEB and MSI correctly place resources in the system, but RPM does not.
It seems that the configuration (`bundle` -> `resources`) for generating RPM is used incorrectly.

Before running the build command, I place my resources next to `tauri.conf.json` in the `res` folder.

My config:
```json
    "resources": {
      "res/resources/first.db": "resources/first.db",
      "res/resources/second.bin": "resources/second.bin",
      "res/resources/third.db": "resources/third.db",
      "res/resources/fourth.db": "resources/fourth.db"
    },
```

I want the installer to place my resources in the same way that almost all installers do:
- `<res-base>/resources/first.db`
- `<res-base>/resources/second.bin`
- `<res-base>/resources/third.db`
- `<res-base>/resources/fourth.db`

But RPM does like that:
- `<res-base>/res/resources/first.db`
- `<res-base>/res/resources/second.bin`
- `<res-base>/res/resources/third.db`
- `<res-base>/res/resources/fourth.db`

After installing such RPM I get a non-working application.
As a bonus here we see that the resource directories differ even without installing:

![image](https://github.com/user-attachments/assets/850f7273-71eb-4aa0-9181-f92055261625)

### Reproduction

1. Clone repo https://github.com/livwvil/tauri2-rpm-build-problem
2. Switch to the `resources-problem` branch
3. Use `build:image` and `build:container` commands to produce bundles

### Expected behavior

_No response_

### Full `tauri info` output

```text
All correct
```


### Stack trace

_No response_

### Additional context

_No response_
Repository: rust
Issue: rustdoc: Quick way to collapse all impl blocks
Labels: C-enhancement,A-rustdoc-ui,T-rustdoc-frontend

The primary motivation of #130612 was to provide an easy way to overview the different kinds of impls on a type.
#132155 fulfills the layout aspect of the motivation, but there is no way (to my knowledge) to quickly collapse all impl blocks with one click.
The user has to manually click collapse on each one.
There should be a quick and convenient way to collapse (and expand) all the impl blocks to make it convenient to overview them.

The question is what would be the best way.
Here are some possibilities:
1. Change the behavior of the summary button to also collapse impl blocks. Would this be desirable or annoying for users?
2. Add another button. Would it clutter the UI too much?
3. Add an alternate way to use the summary button. For example a shift+click could also collapse/expand impl blocks.
    A hover tooltip on the button could inform the user about this alternate usage.
Repository: vscode
Issue: Show code actions for the problems even when the file is not open
Labels: feature-request,error-list

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- 🕮 Read our guide about submitting issues: https://github.com/microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions -->
<!-- 🔎 Search existing issues to avoid creating duplicates. -->
<!-- 🧪 Test using the latest Insiders build to see if your issue has already been fixed: https://code.visualstudio.com/insiders/ -->
<!-- 💡 Instead of creating your report here, use 'Report Issue' from the 'Help' menu in VS Code to pre-fill useful information. -->
<!-- 🔧 Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: Yes

<!-- 🪓 If you answered No above, use 'Help: Start Extension Bisect' from Command Palette to try to identify the cause. -->
<!-- 📣 Issues caused by an extension need to be reported directly to the extension publisher. The 'Help > Report Issue' dialog can assist with this. -->
- VS Code Version: 1.96.0
- OS Version: Windows 11 Pro

Steps to Reproduce:

1. Add a file with a "problem" and some server fixes
2. Close that file
3. Restart the cache for the server (close vscode and reopen)
4. You can now have any _other_ file opened here. If you try to right-click the problems it'll only show "Copy" options
5. As soon as you open the file you can right-click on the "problem" and you'll see the list of fixes from the server
6. Now you can close it and whatever (maybe cache or something?) that list will always show

https://github.com/user-attachments/assets/1b28b600-c09d-40a9-bc32-f4376916a745

I've asked @DanTup (the maintainer of the Dart-Code extension - for Dart) and he said there are no requests to the server until you open that file. 

Is this intended behaviour or a bug?
Repository: godot
Issue: Android: Export: Godot Blue Background apear on exported apk.
Labels: enhancement,platform:android,documentation,topic:export

### Tested versions

Godot 4.3, 4.4+

### System information

Android 14 - Compatibility Renderer

### Issue description

In first splash screen (screen that apear before main splash screen) background color is blue. expecting it black or any way to customize the color. Sometimes it doesn't match with game theme 

Video:

https://github.com/user-attachments/assets/44f0d2bf-fc64-4d36-89b1-f1345c21df88

Screenshot:
![Image](https://github.com/user-attachments/assets/b54f1673-8911-4160-9f70-960ca1b16d5d)


### Steps to reproduce

Exported game to apk

### Minimal reproduction project (MRP)

Example App: https://play.google.com/store/apps/details?id=com.mw_games.play2race
Repository: vscode
Issue: "Undo" history lost after "Save as".
Labels: bug,undo-redo

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- 🕮 Read our guide about submitting issues: https://github.com/microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions -->
<!-- 🔎 Search existing issues to avoid creating duplicates. -->
<!-- 🧪 Test using the latest Insiders build to see if your issue has already been fixed: https://code.visualstudio.com/insiders/ -->
<!-- 💡 Instead of creating your report here, use 'Report Issue' from the 'Help' menu in VS Code to pre-fill useful information. -->
<!-- 🔧 Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: Yes

<!-- 🪓 If you answered No above, use 'Help: Start Extension Bisect' from Command Palette to try to identify the cause. -->
<!-- 📣 Issues caused by an extension need to be reported directly to the extension publisher. The 'Help > Report Issue' dialog can assist with this. -->
Version: 1.94.2 (user setup)
Commit: 384ff7382de624fb94dbaf6da11977bba1ecd427
Date: 2024-10-09T16:08:44.566Z
Electron: 30.5.1
ElectronBuildId: 10262041
Chromium: 124.0.6367.243
Node.js: 20.16.0
V8: 12.4.254.20-electron.0
OS: Windows_NT x64 10.0.26100

I opened a 180MB csv file intending to cut it down to a few lines to produce a smaller sample from it. Then instead of "save as" i pressed ctrl+s by habit and overwrote the full file. But that shouldn't have been fatal - undo should have been available to return the editing buffer to before cutting out the extra lines. Unfortunately, it wasn't - undo/redo just switched between an entirely blank file (even tho the file never was blank) and the end state after several edits, no in-between state.