sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: react
Issue: Firebase Authentication State Resets on Page Reload in Vite-React-TypeScript App
Labels: Status: Unconfirmed

When using Firebase Authentication, the signed-in user's state does not persist on page reload, logging out the user each time the page refreshes. This happens in both development and production builds.

**Steps to Reproduce**
1. Clone the starter repo and configure Firebase.
2. Sign in with a test user account.
3. Refresh the page.

**Expected Behavior**
The user should stay signed in after a page reload.

**Actual Behavior**
The user is logged out automatically on each page reload.

**Reproduction Code**
```typescript
// Firebase Auth setup in a React component or context
useEffect(() => {
  const unsubscribe = firebase.auth().onAuthStateChanged((user) => {
    setUser(user); // user state is reset on page reload
  });
  return () => unsubscribe();
}, []);
```

**System Info:**
- Vite version: 3.0.0
- React version: 18.0.0
- TypeScript version: 4.4.4
- Tailwind CSS version: 3.0.0
- Firebase version: 9.1.0
- Node.js version: 14.17.0
- Operating System: macOS 11.4

**Potential Solution**
Consider using Firebase’s `onAuthStateChanged` with a persistent storage option like `localStorage` or `sessionStorage`. Additionally, check if initializing Firebase Auth inside a `useEffect` hook in a context provider resolves the issue.

**Additional Context**
This issue impacts the user experience, as users need to log in repeatedly.
Repository: vscode
Issue: Allow to pin/filter a tree node with all it's child elements
Labels: feature-request,tree-widget

In some cases it's helpful to be able to only see a sub tree of the entire tree. For example as mentioned in this issue for the Outline View: https://github.com/microsoft/vscode/issues/233185#issue-2637853923

or, for the file explorer when a user has a very large workspace but is only working on one or two sub directories.
Repository: kubernetes
Issue: PersistentVolumeClaim cannot be deleted.
Labels: kind/bug,sig/storage,needs-triage

### What happened?

https://github.com/kubernetes/kubernetes/blob/c25f5eefe4efda4c0d9561d06942cd3de3dfe2e4/pkg/controller/volume/pvcprotection/pvc_protection_controller.go#L374-L388
If a pod with UnexpectedAdmissionError exists in the environment and PersistentVolumeClaim is used, the PVC cannot be deleted after the pod is deleted. The controller-manager log shows that Pod uses PVC xxx. Check the code and find that the podUsesPVC method does not determine the pod status. I think this is a problem.

### What did you expect to happen?

The pvc should be deleted correctly.

### How can we reproduce it (as minimally and precisely as possible)?

Construct a pod in the UnexpectedAdmissionError state, configure a PVC, and delete the pod that is using the PVC.

### Anything else we need to know?

_No response_

### Kubernetes version

<details>

```console
$ kubectl version
# paste output here
```
1.31
</details>


### Cloud provider

<details>

</details>


### OS version

<details>

```console
# On Linux:
$ cat /etc/os-release
# paste output here
$ uname -a
# paste output here

# On Windows:
C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture
# paste output here
```

</details>


### Install tools

<details>

</details>


### Container runtime (CRI) and version (if applicable)

<details>

</details>


### Related plugins (CNI, CSI, ...) and versions (if applicable)

<details>

</details>
Repository: neovim
Issue: checkhealth: show detected terminal features
Labels: enhancement,api,tui

### Problem

There is a number of heuristics the Neovim TUI performs on startup to detect terminal features like CSI-u/Kitty protocol/modifyOtherKeys, truecolor/24-bit color support, and a few other modes/features.

Some examples from `terminfo_start` and friends:
<https://github.com/neovim/neovim/blob/master/src/nvim/tui/tui.c#L407>
<https://github.com/neovim/neovim/blob/master/src/nvim/tui/tui.c#L441>
<https://github.com/neovim/neovim/blob/master/src/nvim/tui/tui.c#L453>
<https://github.com/neovim/neovim/blob/master/src/nvim/tui/tui.c#L459>

For a lot of these, there isn't a good way to test that they are actually working, beyond things like 'try mapping `<C-S-Tab>` and see if it works' or 'try using a highlight group with extended underline styles'.

The fact the Neovim [FAQ](https://neovim.io/doc/user/faq.html) lists a large number of potential TUI issues indicates to me that some of this information/these checks could/should have a place in checkhealth.

### Expected behavior

It would be valuable troubleshooting information if the healthcheck could show information about what Neovim knows and expects about the terminal based on the information available to it.

I don't have a comprehensive list, but at minimum, I think it would be good to show the input mode (legacy/modifyOtherKeys/CSI u/kitty) and the detected terminal type (to see if e.g. the detection fell back to something generic like `xterm` when it shouldn't have), and ideally any other features that directly affect the functionality of the TUI but aren't exposed through options (e.g. extended underline support), though that's more for-the-users-interest than for debugging.
Repository: kubernetes
Issue: DRA: detect stale DRA plugin sockets
Labels: priority/backlog,sig/node,kind/feature,needs-triage,wg/device-management

### What would you like to be added?

@klueska observed that after uninstalling his DRA driver *without* removing the Unix Domain socket used for gRPC towards the kubelet, kubelet didn't unregister the driver. We may have to add some liveness probing to `pkg/kubelet/cm/dra/plugin/registration.go`.

/sign node
/wg device-management
/priority backlog

### Why is this needed?

The kubelet needs to remove ResourceSlices on behalf of a defunct DRA driver.
Repository: pytorch
Issue: torch.set_autocast_enabled is not working in torch.compile(fullgraph=True)
Labels: triaged,oncall: pt2,module: dynamo

### 🐛 Describe the bug

Dynamo creates a graph break around `set_autocast_enabled` causing fullgraph=True mode to fail. Since `torch.autocast` context manager is supported in Dynamo its lower-level component of disabling or enabling autocast could also be supported.

### Error logs

```py
Unsupported: Graph break due to unsupported builtin torch.set_autocast_enabled. This function is either a Python builtin (e.g. _warnings.warn) or a third-party C/C++ Python extension (perhaps created with pybind). If it is a Python builtin, please file an issue on GitHub so the PyTorch team can add support for it and see the next case for a workaround. If it is a third-party C/C++ Python extension, please either wrap it into a PyTorch-understood custom operator (see https://pytorch.org/tutorials/advanced/custom_ops_landing_page.html for more details) or, if it is traceable, use torch.compiler.allow_in_graph.

from user code:
   File "<ipython-input-6-85cbde30c3a9>", line 7, in f
    set_autocast_enabled("cuda", False)

Set TORCH_LOGS="+dynamo" and TORCHDYNAMO_VERBOSE=1 for more information


You can suppress this exception and fall back to eager by setting:
    import torch._dynamo
    torch._dynamo.config.suppress_errors = True
```

### Minified repro

```py
from torch import set_autocast_enabled
import torch

@torch.compile(fullgraph=True)
def f(x):
    try:
        set_autocast_enabled("cuda", False)
        return x @ x
    finally:
        set_autocast_enabled("cuda", True)

x = torch.randn(4, 4, device="cuda")
with torch.autocast("cuda", dtype=torch.bfloat16):
    assert f(x).dtype == torch.float32
```

### Versions

`2.6.0a0+git8b08559`

cc @ezyang @chauhang @penguinwu @voznesenskym @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @chenyang78 @kadeng @amjames
Repository: ant-design
Issue: DatePicker点击弹出面板上的元素后会错误地触发onBlur方法
Labels: 🗣 Discussion,Inactive

### Reproduction link

[5.12.8（不会触发onBlur）](https://codesandbox.io/p/sandbox/suspicious-williams-jnzm76)

[5.21.6（会触发onBlur）](https://codesandbox.io/p/sandbox/heuristic-buck-4jy484)：

### Steps to reproduce

1. 点击DatePicker
2. 随便点击一个日期

### What is expected?

不触发onBlur方法

### What is actually happening?

触发了onBlur方法

| Environment | Info |
| --- | --- |
| antd | 5.21.6 |
| React | 18.2.0 |
| System | macos Sonoma 14.2.1 |
| Browser | Chrome 114.0.5735.133 |

---
从5.12.8升级到了5.21.6后发现此问题，不太确定是哪个版本引入的issue

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: vscode
Issue: Vscode does not open links in default browser
Labels: bug,linux,snap

<!-- ⚠️⚠️ 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: 

```
Version: 1.95.1
Commit: 65edc4939843c90c34d61f4ce11704f09d3e5cb6
Date: 2024-10-31T05:14:54.222Z
Electron: 32.2.1
ElectronBuildId: 10427718
Chromium: 128.0.6613.186
Node.js: 20.18.0
V8: 12.8.374.38-electron.0
OS: Linux x64 5.15.0-124-generic snap
```

- OS Version: 
```
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.3 LTS
Release:        22.04
Codename:       jammy
```

Steps to Reproduce:

1. Enter a link in the editor such as `http://duckduckgo.com`
2. Ctrl+Click the link
3. Wrong browser is used to open the link

My default browser is firefox and if if I enter the command `open http://duckduckgo.com` in the terminal, it opens it in the correct firefox window, but vscode uses the wrong browser (opens in chrome). This issue is recent and I've noticed it in v1.95.1, previously it worked fine

If you can provide detail on which mime type the links are using I can further inspect the default application for the mime type, `text/html` is correctly configured on firefox hence not sure where the issue lies. Other applications also open the correct browser and I've only noticed the issue with vscode
Repository: angular
Issue: Issue with withViewTransitions when used in iframe causing navigation to stall in Angular applications
Labels: area: router

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

router

### Is this a regression?

Yes

### Description

**Browser/Platform:**
Safari on iOS 18.x

**Current Behavior:** 
When using the withViewTransitions feature in an Angular application, which is embedded in a different website via an iframe, the navigation changes the URL but does not render the new component. The application remains stuck on the initial page despite the URL change being reflected correctly in the address bar.

**Expected Behavior:** 
When navigating to a new route within an Angular application embedded in an iframe, the new component should render correctly, and the URL should update without any issues.

**Reproduction:**
Create an Angular application with routes configured using withViewTransitions.
Embed this application in an iframe on another webpage.
Perform a navigation within the iframe-based application.

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

_No response_

### Please provide the exception or error you saw

_No response_

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

Angular CLI: 18.2.11
Node: 20.12.2
Package Manager: npm 10.5.0
OS: linux x64

Angular: 18.2.11
... animations, build, cli, common, compiler, compiler-cli, core
... forms, language-service, localize, platform-browser
... platform-browser-dynamic, platform-server, router
... service-worker, ssr

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.1802.11
@angular-devkit/core         18.2.11
@angular-devkit/schematics   18.2.11
@angular/cdk                 18.2.12
@angular/fire                18.0.1
@angular/google-maps         18.2.12
@schematics/angular          18.2.11
rxjs                         7.8.1
typescript                   5.4.5
webpack                      5.96.1
zone.js                      0.14.10


### Anything else?

The problem is resolved if withViewTransitions is removed.
Repository: vscode
Issue: Is "Sucessfully signed out" notification really needed
Labels: feature-request,authentication

1. Sign out from an account in VS Code
2. Notice notification saying "Successfully signed out"
3. Though the Account view will most likely show a badge, since we now need you to sign in for something to light up

Do we really need the notification? Since we have the account view changing and confirming to user that everything is ok.

![Image](https://github.com/user-attachments/assets/4d72b820-61ee-4531-b3f3-8550114d9af9)
Repository: PowerToys
Issue: Image Resizer
Labels: Needs-Triage

### Description of the new feature / enhancement

Have the ability to choose a group of image sizes, in order to resize the selected images into the different sizes that make up the group.

### Scenario when this would be used?

If I want to resize 10 images in 3 different sizes, it would be usefull

### Supporting information

Many CMS resize uploaded picture in serveral size. And this new feature will be usefull for many developpers and webmaster
Repository: flutter
Issue: [Feature request] Support version catalog
Labels: c: new feature,platform-android,tool,t: gradle,P2,team-android,triaged-android

### Use case

setting.gradle.kts
```kts
pluginManagement {
    val flutterSdkPath = run {
        val properties = java.util.Properties()
        file("local.properties").inputStream().use { properties.load(it) }
        val path = properties.getProperty("flutter.sdk")
        checkNotNull(path) { "flutter.sdk not set in local.properties" }
        path
    }
    includeBuild("$flutterSdkPath/packages/flutter_tools/gradle")

    repositories {
        google()
        mavenCentral()
        gradlePluginPortal()
    }
}

plugins {
    alias(libs.plugins.flutterPluginLoader)
    alias(libs.plugins.android.application) apply false
    alias(libs.plugins.kotlin.android) apply false
}

include(":app")
include(":core")
```


### Proposal

e: file:///D:/Android/xx/xx/android/settings.gradle.kts:33:11: Unresolved reference: libs

sample test code:
https://github.com/android-dev2015/catalogs
Repository: pytorch
Issue: [onnx] [njt] [feature request] Export NJT-enabled SDPA / MHA ops to ORT's PackingMode Attention
Labels: module: onnx,triaged

### 🚀 The feature, motivation and pitch

I found that some support for NJT-enabled SDPA / MHA exists in onnxruntime: https://github.com/microsoft/onnxruntime/issues/22764 as "PackedAttention"

https://github.com/microsoft/onnxruntime/blob/main/onnxruntime/python/tools/transformers/convert_to_packing_mode.py#L317

NJT-enabled SDPA also used to exist in FasterTransformer, known as "Effective Transformer kernels": https://github.com/NVIDIA/FasterTransformer/blob/main/docs/bert_guide.md#standard-bert-and-effective-fastertransformer

I wonder if in the long term it would be good to have some example of exporting NJT ops to ORT and mapping NJT-enabled SDPA to this PackingMode directly at export time.

### Alternatives

_No response_

### Additional context

_No response_

cc @jbschlosser
Repository: godot
Issue: Warnings are printed as errors on the web platform
Labels: bug,platform:web,topic:porting

### Tested versions

- Reproducible in: 4.3.stable	

### System information

Godot v4.3.stable - Firefox 132, Chromium 130 - X11 - OpenGL (Compatibility) - dedicated NVIDIA GeForce RTX 4090 (nvidia; 565.57.01) - 13th Gen Intel(R) Core(TM) i9-13900K (32 Threads)

### Issue description

In the browser's devtools, all warnings appear as errors:

![image](https://github.com/user-attachments/assets/44be3435-086d-496c-a6f0-e5f6c47e8372)

They should appear using warnings instead, similar to `console.warn()`.

### Steps to reproduce

Export a project that calls `push_warning()` or uses unsupported features in the Compatibility rendering method, such as https://github.com/godotengine/godot-demo-projects/tree/master/2d/particles.

### Minimal reproduction project (MRP)

https://godotengine.github.io/godot-demo-projects/2d/particles/
Repository: PowerToys
Issue: Keys like Shift and Alt don't get released after being used as triggers
Labels: Issue-Bug,Needs-Triage

### Microsoft PowerToys version

0.86.0

### Installation method

GitHub, PowerToys auto-update

### Running as admin

Yes

### Area(s) with issue?

Keyboard Manager

### Steps to reproduce

I wanted to have media controls on a normal US English laptop keyboard that lacks the numpad.

I remapped:
Insert to Volume Mute
Page Up to Volume Up
Page Down to Volume Down
PrintScreen to Play/Pause Media

Then made the shortcuts:
Shift + Play/Pause Media = Next Track
Alt + Play/Pause Media = Previous Track

### ✔️ Expected Behavior

When i pressed Shift or Alt + PrintScreen (remapped to Play/Pause Media), it should do Next/Previous Track, and after releasing these keys, Shift or Alt should act like their normal selves.

### ❌ Actual Behavior

After the shortcut works the first time, Shift or Alt stays pressed and it won't unpress even if i press Shift or Alt again.

This behavior has been ever since Keyboard Manager was first released, and i tried this in many computers. This is the first time i have time to make a report.

### Other Software

_No response_
Repository: node
Issue: detect-module: confusing error when parsing a CommonJS module with top-level `await`
Labels: module,esm

Porting from https://github.com/nodejs/TSC/issues/1445#issuecomment-2388678002:

`index.js`:

```js
const {
    getPort,
    checkPort,
    getRandomPort,
    waitForPort,
} = require("get-port-please")

const port = await getPort()
```

Getting this:

```
Restarting 'index.js'
(node:15356) [MODULE_TYPELESS_PACKAGE_JSON] Warning: Module type of file:///C:/Users/Babak/Documents/Code/c12/index.js is not specified and it doesn't parse as CommonJS.
Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
To eliminate this warning, add "type": "module" to C:\Users\Babak\Documents\Code\c12\package.json.
(Use `node --trace-warnings ...` to show where the warning was created)
file:///C:/Users/Babak/Documents/Code/c12/index.js:7
} = require("get-port-please")
    ^

ReferenceError: require is not defined in ES module scope, you can use import instead
    at file:///C:/Users/Babak/Documents/Code/c12/index.js:7:5
    at ModuleJob.run (node:internal/modules/esm/module_job:262:25)
    at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:483:26)

Node.js v22.9.0
Failed running 'index.js'
```

With this `package.json`:

```json
{
    "dependencies": {
        "express": "4.21.0",
        "get-port-please": "3.1.2"
    },
    "devDependencies": {
        "@types/express": "5.0.0"
    }
}
```

LOL. (`await` 😈).

_Originally posted by @babakfp in https://github.com/nodejs/TSC/issues/1445#issuecomment-2388678002_

<hr>

So basically, this module fails to parse as _either_ CommonJS or as ESM, and we show the ESM parsing error message. Perhaps we should show both, or show a special message for the common use case of using top-level `await` in a CommonJS module.
Repository: tensorflow
Issue: tf.cast to int8 produce wrong number
Labels: type:bug,comp:apis,2.17

### Issue type

Bug

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

Yes

### Source

source

### TensorFlow version

tf2.15 - 2.17

### Custom code

No

### OS platform and distribution

_No response_

### Mobile device

_No response_

### Python version

_No response_

### Bazel version

_No response_

### GCC/compiler version

_No response_

### CUDA/cuDNN version

_No response_

### GPU model and memory

_No response_

### Current behavior?

input is a long list include random numbers.
tf.cast to int8 output is  different from numpy cast.

The strange thing is if you truncate the long input list to a short list then things works fine.

The code is straight forward, you can reproduce it in the colab

### Standalone code to reproduce the issue

```shell
https://colab.research.google.com/drive/18dYjvY6JQk79hVq8JsjcWEwIG5KBuF1v?usp=sharing
```


### Relevant log output

```shell
NumPy Casted values (int8): 
 [   0    0    0    0    1   -1    0    3   -3    2   -2    0   50   21
 -125   62   25   31  127   -9  117   61  123   47  -20   28   52   36
  -43  -45  -84  118   37  -17   -6  -79    1   75  -45  -60 -103  -63
   85 -112   76   96  -56   86  -32 -108 -105 -121   -2  121   86  -54
   91  -55   36 -119   -3  -36   95  127 -105  -60   37   -9 -106    7
  -31  105   13 -103 -123   79   17  -48 -108  -56  -87 -128   35  -94
  -45  118  -91   86  -63  -43   77    1 -127  -16  -71  -73  -76  -15
  -11]
TensorFlow Casted values (int8): 
 [   0 -128    0    0    1   -1    0    3   -3    2   -2    0  127  127
  127  127  127  127  127  127  127  127  127  127  127  127  127  127
  127  127  127  127  127  127  127  127  127  127  127  127  127  127
  127  127  127  127  127  127  127  127  127  127  127  127  127  127
  127  127  127  127  127  127  127  127  127  127  127  127  127  127
  127  127  127  127  127  127  127  127  127  127  127  127  127  127
  127  127  127  127  127  127  127  127  127  127  127  127  -76  -15
  -11]
```
```
Repository: neovim
Issue: interact with virtual text
Labels: enhancement,complexity:high,marks,floatwin

### Problem

There is no easy way to yank a virtual text, eg. inlay hints, cursorline git blame from gitsigns, inline diff hunks(most useful usecase).

### Expected behavior

Make cursor capable at putting above virtual text , so one can yank text from them, but disallowing modification.
Repository: storybook
Issue: [Bug]: Play function results carry over from story to story when navigating
Labels: bug,sev:S3,addon: test

### Describe the bug

Report from Storybook test EAP:

When switching from a story that includes a component test to another story without one, the test results are incorrectly carried over and displayed in the wrong story.

### Reproduction link

https://github.com/AlmarAubel/sb-playground

### Reproduction steps

1. Start Storybook.
2. Go to story Case 1.
3. Then click the Default story (don’t wait for Case 1 to finish the component test).
It will always show failures, even when Case 1 normally succeeds.


Side note: Adding sleep in the test didn’t trigger this bug. I suspect that the `waitFor function (const text = await waitFor(() => canvas.getByText(/slurp/i), { timeout: 10000 }))` is suspicious and causing issues. 


### System

-

### Additional context

_No response_
Repository: opencv
Issue: Document 0d/1d Mat, MatShape and other 5.x specific changes
Labels: category: core,category: documentation

### Describe the doc issue

1. API in header
2. doc/tutorials/core/mat_the_basic_image_container/mat_the_basic_image_container.markdown
3. Python/Java tutorials?

### Fix suggestion

_No response_