sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: vscode
Issue: Firefox on iOS: Cannot type in editor after changing focus
Labels: firefox,editor-edit-context

<!-- ⚠️⚠️ 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/No

<!-- 🪓 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. -->

In Firefox on iOS (iPad Pro 12.9 Gen4) I am unable to type in the editor or terminal windows (whichever I last used) after switching focus to another application and then back to Firefox. Clicking (touching) another pane, e.g. if I was in the editor changing to the terminal and back, resolves the issue. 

- VS Code Version: GitHub Codespaces
- OS Version: iOS 18

Steps to Reproduce:

1. Open a GitHub Codespace in Firefox on iOS.
2. Open an editor window to a file.
3. Change to another application.
4. Change back to Firefox.
5. No keyboard input works in the editor.
6. Select a different pane (e.g. explorer, terminal).
7. Select the editor.
8. The keyboard works normally.

**Additional Context**
This is not limited to GitHub Codespaces. The default in-place editor on github.com experiences the same issue. The issue occurs both with and without the Magic Keyboard attached.
Being on iOS there are no plugins in Firefox. Safe Browsing is FF is set to `Strict`.
Repository: pytorch
Issue: Torch compile cache
Labels: triaged,oncall: pt2

### 🐛 Describe the bug

Hi,

I'm setting the following values

TORCHINDUCTOR_FX_GRAPH_CACHE
TORCHINDUCTOR_CACHE_DIR

I see the cache folder is populated by 3.8G.

I'm creating a tar archive to place the cache on another instance, with same H100 and untar on the other instance. But compile time shows the cache has not been used.

If I'm setting the variables on two instances that share the same network drive, compile on one, then run on the other one, I see that the compile time is still very high, like the cache has not been taken into account.

What are the signatures of the cache elements? If I know better what triggers the cache retrieval, I might find a configuration where I can reuse the cache between instances.

Thanks for your help!


### Versions

torch @ https://download.pytorch.org/whl/nightly/cu124/torch-2.6.0.dev20240918%2Bcu124-cp311-cp311-linux_x86_64.whl
torchaudio @ https://download.pytorch.org/whl/nightly/cu124/torchaudio-2.5.0.dev20240918%2Bcu124-cp311-cp311-linux_x86_64.whl
torchvision @ https://download.pytorch.org/whl/nightly/cu124/torchvision-0.20.0.dev20240918%2Bcu124-cp311-cp311-linux_x86_64.whl
pytorch_triton @ https://download.pytorch.org/whl/nightly/pytorch_triton-3.1.0%2B5fe38ffd73-cp311-cp311-linux_x86_64.whl

cc @chauhang @penguinwu
Repository: flutter
Issue: [ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: PlatformException(channel-error, Unable to establish connection on channel: "dev.flutter.pigeon.shared_preferences_foundation.LegacyUserDefaultsApi.getAll"., null, null)
Labels: waiting for customer response,in triage

### Steps to reproduce

[ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: PlatformException(channel-error, Unable to establish connection on channel: "dev.flutter.pigeon.shared_preferences_foundation.LegacyUserDefaultsApi.getAll"., null, null)


### Expected results

[ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: PlatformException(channel-error, Unable to establish connection on channel: "dev.flutter.pigeon.shared_preferences_foundation.LegacyUserDefaultsApi.getAll"., null, null)


### Actual results

[ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: PlatformException(channel-error, Unable to establish connection on channel: "dev.flutter.pigeon.shared_preferences_foundation.LegacyUserDefaultsApi.getAll"., null, null)


### Code sample

<details open><summary>Code sample</summary>

```dart
await SharedPreferences.getInstance();
```

</details>


### Screenshots or Video

<details open>
<summary>Screenshots / Video demonstration</summary>


<img width="1347" alt="Image" src="https://github.com/user-attachments/assets/413713cb-d5d0-4e9a-9faa-572efb9a4631" />

</details>


### Logs

<details open><summary>Logs</summary>

```console
h List all available interactive commands.
d Detach (terminate "flutter run" but leave application running).
c Clear the screen
q Quit (terminate the application on the device).

A Dart VM Service on 15 pro max 17.0 is available at: http://127.0.0.1:59532/h7t2NlTl1Ww=/
The Flutter DevTools debugger and profiler on 15 pro max 17.0 is available at: http://127.0.0.1:9101?uri=http://127.0.0.1:59532/h7t2NlTl1Ww=/

Performing hot restart...                                               
Restarted application in 575ms.
[ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: PlatformException(channel-error, Unable to establish connection on channel: "dev.flutter.pigeon.shared_preferences_foundation.LegacyUserDefaultsApi.getAll"., null, null)

```

</details>


### Flutter Doctor output

<details open><summary>Doctor output</summary>

```console
h List all available interactive commands.
d Detach (terminate "flutter run" but leave application running).
c Clear the screen
q Quit (terminate the application on the device).

A Dart VM Service on 15 pro max 17.0 is available at: http://127.0.0.1:59532/h7t2NlTl1Ww=/
The Flutter DevTools debugger and profiler on 15 pro max 17.0 is available at: http://127.0.0.1:9101?uri=http://127.0.0.1:59532/h7t2NlTl1Ww=/

Performing hot restart...                                               
Restarted application in 575ms.
[ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: PlatformException(channel-error, Unable to establish connection on channel: "dev.flutter.pigeon.shared_preferences_foundation.LegacyUserDefaultsApi.getAll"., null, null)

```

</details>
Repository: terminal
Issue: BringWindowToTop doesn't set active tab
Labels: Issue-Feature,Product-Conpty,Area-Windowing

### Description of the new feature

Currently, BringWindowToTop only brings the terminal window to the foreground; however, it does not activate the correct tab. In certain scenarios, the user's focus is not restored to the intended location if the active tab isn't the one that initiated the BringWindowToTop call. 

Using the information from [this StackOverflow post](https://stackoverflow.com/a/59659421/3594197), I created a [functional example](https://github.com/zacuke/start-shim). The example demonstrates BringWindowToTop being used to ensure the user focus returns to the correct command line.  

A current workaround for this limitation is to avoid using tabs altogether and stick with individual console windows instead.

As a side note, it would be nice if the built-in windows `start` command also had a `/refocus` option, so the functional example I created wouldn't be necessary. We could alias `start /wait /refocus myapp $*` to achieve this workflow behavior.

### Proposed technical implementation details

If BringWindowToTop() can't be hooked to automatically switch to the active tab, is there an alternative approach to programmatically identify the correct tab using some sort of ID or identifier, and then invoke a function to set that tab as active?

I see a possible way of doing it on line 940 in src/cascadia/TerminalControl/HwndTerminal.cpp
`void __stdcall TerminalSetFocus(void* terminal)`  but it doesn't seem to me that is exposed as a public API.


Which leads me to this 
```
    /// This class is only left public since xaml cannot work with internal classes.
    /// </remarks>
    public class TerminalContainer : HwndHost
    { 
...
private IntPtr TerminalContainer_MessageHook(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, ref bool handled)
        {
            if (hwnd == this.hwnd)
            {
                switch ((NativeMethods.WindowMessage)msg)
                {
                    case NativeMethods.WindowMessage.WM_SETFOCUS:
                        NativeMethods.TerminalSetFocus(this.terminal);
```

I can imagine trying to send the terminal host process some kind of IPC message which would trigger the TerminalSetFocus allowing us to call BringWindowToTop as well as this additional trick to bring the correct tab up too. But ideally, the host process detects BringWindowToTop() and also brings the tab to top.
Repository: vscode
Issue: Dragging does not work in a VSCode extension WebView
Labels: bug,webview

<!-- ⚠️⚠️ 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.96.3 (user setup)
Commit: 91fbdddc47bc9c09064bf7acf133d22631cbf083
Date: 2025-01-09T18:14:09.060Z
Electron: 32.2.6
ElectronBuildId: 10629634
Chromium: 128.0.6613.186
Node.js: 20.18.1
V8: 12.8.374.38-electron.0
- OS Version:  Windows 11 Professional x64 22631.4602

Steps to Reproduce:

1. Clone https://github.com/wchengk09/vscode-webview-dragging-does-not-work
2. Open it in VSCode
3. Press `F5` to run the extension

I want to create a WebView to add files by dragging it from the explorer to the WebView. But when I drag a file, VSCode will open it in a new editor, and the dragging event will not be caught. 
I also tried dragging files from the Windows explorer, and the result is the same.
I even tried pressing `shift` when dragging the file, but I still cannot catch the event.
I found some similar issues, such as #182449 and #218626, but none of them helped me.

Here is a video:

https://github.com/user-attachments/assets/acaf2051-4162-42bc-b7c6-d3101df17f31
Repository: neovim
Issue: Capability to show diagnostics as markdown
Labels: enhancement,lsp,diagnostic

### Problem

I was working on pretty typescript error message formatter for float. While it's somewhat better than the default output it would be nice to have markdown syntax highlighting for diagnostics as well.

I did some digging and found out that we are using same function Neovim using for LSP `hover` in diagnostics except we have `syntax=plaintext` hard coded here.

https://github.com/s1n7ax/neovim/blob/a78eddd54112033eea0212865efd2f75cc59fc93/runtime/lua/vim/diagnostic.lua?plain=1#L1977

## Before
![Image](https://github.com/user-attachments/assets/cb90b490-3e16-4a55-87f8-1e98e4a411a4)

## After
![Image](https://github.com/user-attachments/assets/a1666cda-891d-44b0-836a-4c18527fd0fb)

I would like to implement this feature. My plan is to add `syntax` field to `vim.diagnostic.Opts.Float`. possible values would be either `markdown` or `plaintext`. Additionally we might need to disable default highlights that's added line by line

https://github.com/s1n7ax/neovim/blob/a78eddd54112033eea0212865efd2f75cc59fc93/runtime/lua/vim/diagnostic.lua?plain=1#L1986

### Expected behavior

When syntax is set to markdown, diagnostics markdown syntax highlighting should be used
Repository: PowerToys
Issue: Image resizer incorrectly calculates missing dimension in fit mode
Labels: Issue-Bug,Needs-Triage

### Microsoft PowerToys version

0.87.1

### Installation method

WinGet

### Running as admin

No

### Area(s) with issue?

Image Resizer

### Steps to reproduce

Take this image as input.

![Image](https://github.com/user-attachments/assets/506b5a4d-e2a9-4f86-9058-70b10c2d7fec)

The dimensions are 2040 x 1530 pixels.

Now resize it.

![Image](https://github.com/user-attachments/assets/c8480f98-8291-41dc-877b-14d0cf64763f)





### ✔️ Expected Behavior

Resulting dimension should be 1000 pixels x whatever number of pixels is necessary to keep the ratio.

### ❌ Actual Behavior

Here is the resulting image.

![Image](https://github.com/user-attachments/assets/62ef377a-588d-4d04-af6a-5d6242fcab26)

The dimensions are 853 x 640 pixels.

### Other Software

None.
Repository: opencv
Issue: threshold API : query threshold only, and masks
Labels: feature,category: imgproc

### Describe the feature and motivation

Currently (OpenCV 4.11), `cv::threshold()` supports auto-threshold binarizations OTSU and TRIANGLE and returns the computed threshold value.
It's a pity that there is no API to only query that auto-threshold without actually performing the thresholding.

To avoid adding an API for that and do not duplicate any code, a very easy fix would be to add some flag ~`cv::THRESH_DISABLE`~ `cv::THRESH_DRYRUN` specifically for that purpose.

However, `cv::threshold()` also has a big limitation : it does not support masking. I would like to add such a `cv::thresholdWithMask()` (or a `cv::threshold()` overload with additional mask parameter). But if this new API is created, ~`cv::THRESH_DISABLE`~ `cv::THRESH_DRYRUN` could be irrelevant, replaced by a boolean parameter of the new function.

- would a PR `cv::thresholdWithMask()` (or `cv::threshold()` overload) be accepted or is there a reason why thresholding does not support masking ?
- which is better, `cv::thresholdWithMask()` or `cv::threshold()` overload ?
- is the flag ~`cv::THRESH_DISABLE`~ `cv::THRESH_DRYRUN` a better idea than some `cv::getThresholdAutoValue()` ?
- is the flag ~`cv::THRESH_DISABLE`~ `cv::THRESH_DRYRUN` a better idea than some specific boolean input parameter ?
Repository: pytorch
Issue: Region check for in-place read and write does not always work
Labels: triaged,module: partial aliasing

### 🐛 Describe the bug

Hello!

If I try to read and write from and to the same locations along the first axis of a tensor, I get a RuntimeError, which is expected:

```python
>>> arr = torch.arange(9).reshape(3, 3)
>>> arr[1:, :] = arr[:-1, :]
---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
Cell In[25], line 1
----> 1 arr[1:, :] = arr[:-1, :]
      2 arr

RuntimeError: unsupported operation: some elements of the input tensor and the written-to tensor refer to a single memory location. Please clone() the tensor before performing the operation.
```

However, if I do the same on the second axis, there is no error, but (for me) unexpected behaviour:

```python
>>> arr = torch.arange(9).reshape(3, 3)
>>> arr[:, 1:] = arr[:, :-1]
>>> arr
tensor([[0, 0, 0],
        [3, 3, 3],
        [6, 6, 6]])
```

The expected behaviour would be what happens on the GPU (and also for numpy arrays):
```python
>>> arr = torch.arange(9).reshape(3, 3).cuda()
>>> arr[:, 1:] = arr[:, :-1]
>>> arr
tensor([[0, 0, 1],
        [3, 3, 4],
        [6, 6, 7]], device='cuda:0')
```

I'm not sure if this is actually a bug or just something to be aware of, but I would at least expect CPU and GPU operations to behave the same. How does the check work that results in the RuntimeError in the first case? Is it too expensive to make work for arbitrary slices?

Thanks!

### Versions

Tested torch versions up to 2.4.0
Repository: rust
Issue: `-C split-debuginfo={off,packed,unpacked}` is (effectively) untested on windows-msvc and windows-gnu (well, windows generally)
Labels: A-testsuite,A-debuginfo,E-hard,T-compiler,O-windows-gnu,O-windows-msvc,C-bug,A-run-make

`tests/run-make/split-debuginfo` has this:

https://github.com/rust-lang/rust/blob/2776bdfe423c9fdfcd6313d678f0852ea26f1309/tests/run-make/split-debuginfo/Makefile#L34-L38

Which lumps windows-msvc and windows-gnu together, and also doesn't test anything on windows altogether.

Noticed while working on porting `split-debuginfo` to rmake.rs.

If this is tested somewhere else, well, it's clearly not in this run-make test.
Repository: PowerToys
Issue: Exclusion list for 'Move newly created windows to their last known zone'
Labels: Needs-Triage

### Description of the new feature / enhancement

I generally love the 'Move newly created windows to their last known zone' feature, but it breaks Edge's own attempt to place its windows to monitors they were last on. After starting edge, it first positions windows well and then PowerToys move it to a single zone.

I wouldn't like to exclude edge completely as I like the snap feature that works well.

### Scenario when this would be used?

Described above.

### Supporting information

_No response_
Repository: kubernetes
Issue: persistentVolumeReclaimPolicy: Recycle is said deprecated but still used in PV example
Labels: sig/docs,needs-triage

Recycle reclaim policy is deprecated: 
https://kubernetes.io/docs/concepts/storage/persistent-volumes/#recycle
https://github.com/kubernetes/kubernetes/pull/59063
https://groups.google.com/g/kubernetes-dev/c/uexugCza84I

Primary example to showcase a PV is using  `persistentVolumeReclaimPolicy: Recycle`:
https://kubernetes.io/docs/concepts/storage/persistent-volumes/#persistent-volumes
Repository: TypeScript
Issue: Accessing protected computed property does not produce a compiler error
Labels: Suggestion,Awaiting More Feedback

### 🔎 Search Terms

protected computed no error bug

### 🕗 Version & Regression Information

This is the behavior in every version I tried (v3.3.3333, v4.0.5, v5.7.3), and I reviewed the FAQ for entries about **Common "Bugs" That Aren't Bugs**


### ⏯ Playground Link

https://tsplay.dev/wjdn7m

### 💻 Code

```ts
declare class Foo {
  protected readonly baz = 42
}

declare class Bar {
  readonly foo: Foo
}

declare const bar: Bar

// @ts-expect-error
console.log(bar.foo["baz"].toFixed(2))
```


### 🙁 Actual behavior

- (without `// @ts-expect-error`): No errors
- (with `// @ts-expect-error`): Compiler error `Unused '@ts-expect-error' directive`


### 🙂 Expected behavior

- (without `// @ts-expect-error`): Compiler error `Property […] is protected and only accessible within class 'Foo' and its subclasses`
- (with `// @ts-expect-error`): No errors


### Additional information about the issue

_No response_
Repository: tensorflow
Issue: Windows libtensorflow size increased 4x with 2.17
Labels: type:build/install,subtype:windows,2.17

### Issue type

Build/Install

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

No

### Source

binary

### TensorFlow version

2.17+

### Custom code

No

### OS platform and distribution

Windows x86_64

### 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?

Libtensorflow.dll for windows was 238MB with 2.16.2, is 909MB with 2.17.0, and is 931MB with 2.18.0.

At the same time the linux versions haven't changed significantly.

I would not expect the tensorflow binaries on windows to be over twice the size of linux, nor for the size to increase so much without any notice in the release notes.

I've tried to look through the bazel configs but there's nothing obvious to me which would cause this!

### 2.16.2 
versions_2.16.2_libtensorflow-cpu-windows-x86_64 238MB
versions_2.16.2_libtensorflow-cpu-linux-x86_64 422MB

### 2.17.0
 versions_2.17.0_libtensorflow-cpu-windows-x86_64 909MB
versions_2.17.0_libtensorflow-cpu-linux-x86_64 412MB

### 2.18.0
versions_2.18.0_libtensorflow-cpu-windows-x86_64 931MB

### Standalone code to reproduce the issue

```shell
Libtensorflow is provided by google via the GCS buckets documented here https://www.tensorflow.org/install/lang_c
```

### Relevant log output

```shell

```
Repository: flutter
Issue: [flutter_adaptive_scaffold] allow users to specify navigation rail padding with AdaptiveScaffold
Labels: framework,package,c: proposal,team-ecosystem,P2,p: flutter_adaptive_scaffold,triaged-ecosystem

### Use case


The current implementation of AdapativeScaffold supplies the default 8 dp padding which is undesirable in some layouts, such as when there is an `AppBar` in the body of a given page. I would like to have control over the padding and be able to override it manually.

<img width="202" alt="Image" src="https://github.com/user-attachments/assets/4ace5aab-8146-43d5-a379-980f3078e837" />



### Proposal

Include a `navigationRailPadding` property in the constructor for `AdaptiveScaffold` that allows you to override the default padding for the navigation rail.
Repository: PowerToys
Issue: (Mouse) back/forward button support
Labels: Needs-Triage

### Description of the new feature / enhancement

Ability to use the back/forward button e.g. mouse buttons in the PowerToys app

### Scenario when this would be used?

Switch back to the dashboard when visiting a module's settings and the back button was clicked

### Supporting information

_No response_
Repository: rust
Issue: Tracking issue for release notes of #135536: Add more impls of PartialEq and PartialOrd for strings
Labels: T-libs-api,relnotes,needs-triage,I-release-nominated,relnotes-tracking-issue


This issue tracks the release notes text for #135536.

### Steps

- [x] Proposed text is drafted by PR author (or team) making the noteworthy change.
- [x] Issue is nominated for release team review of clarity for wider audience.
- [ ] Release team includes text in release notes/blog posts.

### Release notes text

The responsible team for the underlying change should edit this section to replace the automatically generated link with a succinct description of what changed, drawing upon text proposed by the author (either in discussion or through direct editing).

````markdown
# Libraries
- [Add more impls of `PartialEq` and `PartialOrd` for strings and different levels of references](https://github.com/rust-lang/rust/pull/135536). These impls make more cases of comparisons work, and provide more robustness against future inference issues when adding more impls in the future.
````

### Release blog section

If the change is notable enough for inclusion in the blog post, the responsible team should add content to this section.
*Otherwise leave it empty.*

````markdown
````

cc @joshtriplett -- origin issue/PR authors and assignees for starting to draft text