sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: deno
Issue: Deno run throws error to use --allow-read flag even after passing
Labels: bug

Version: Deno 2.1.2

This is my `deno.json` file. I am using protobuf-js to generate JS and TS files.

```
{
  "nodeModulesDir": "auto",
  "tasks": {
    "dev": "deno run -A --unsafely-ignore-certificate-errors --watch src/main.ts --config-path /Users/niteshchowdharybalusu/Documents/zbd/lightning-interceptor-service/config.toml",
    "gen-proto": "pbjs -t static-module --keep-case -w es6 -o src/compiled.js protos/lightning.proto",
    "gen-ts": "pbts -o src/compiled.d.ts src/compiled.js"
  },
  "imports": {
    "@eznix/try": "npm:@eznix/try@^2.0.7",
    "@std/assert": "jsr:@std/assert@1",
    "@std/cli": "jsr:@std/cli@^1.0.8",
    "@std/encoding": "jsr:@std/encoding@^1.0.5",
    "@std/fs": "jsr:@std/fs@^1.0.6",
    "@std/toml": "jsr:@std/toml@^1.0.2",
    "lightning": "npm:lightning@^10.22.2",
    "protobufjs": "npm:protobufjs@^7.4.0",
    "protobufjs-cli": "npm:protobufjs-cli@^1.1.3",
    "zod": "npm:zod@^3.23.8"
  },
  "lint": {
    "rules": {
      "exclude": ["no-explicit-any"]
    }
  }
}
```

What is weird here is, `deno run gen-proto` works fine. But when I run `deno run gen-ts` it throws the following error:

I have tried `deno run --allow-read gen-ts` and `deno run -A gen-ts` and it still throws the same.

<img width="1718" alt="Screenshot 2024-12-29 at 6 04 33 AM" src="https://github.com/user-attachments/assets/dcd48d24-dd32-4d05-a17e-85a6a2e5f79a" />
Repository: PowerToys
Issue: [PowerToys Run] Unit conversion - add shorthands for area units
Labels: Needs-Triage

### Description of the new feature / enhancement

Currently if I want to convert areas, I need to type it like `200 squarefeet to squaremeter`.
It would be quite handy if I could just write `200 sqft to sqm` like Google's unit converter supports.

### Scenario when this would be used?

Any time someone needs to convert areas.

### Supporting information

_No response_
Repository: rust
Issue: Audit {`check-run-results`, `regex-error-pattern`, `error-pattern`, `check-stdout`, `normalize-*`, `dont-check-compiler-*`, `run-rustfix`, `rustfix-only-machine-applicable`, `forbid-output`} family of directives
Labels: A-testsuite,E-hard,T-compiler,T-bootstrap,C-bug,A-compiletest,E-needs-design,E-needs-investigation

I don't know about other contributors, but I have to look at the source implementation (or trial-and-error) every time I see or try to use one of these compiletest directives. IMO, we should audit the design of these directives, and possibly revamp them entirely.

Concrete confusions:
- `check-run-results` check both run stderr and stdout and puts them into snapshot files (on bless), then compares the subsequent run stderr and stdout against the snapshot.
- `error-pattern` doesn't only check stderr (whose stderr? compiler? run?), it can also check stdout (or both??) depending on `check-stdout`, `dont-check-compiler-*`, and also it can check *also* compiler stderr or stdout I think??
- `normalize-*` (that is not `normalize-stdout` or `normalize-stderr`) I believe can simultaneously apply to {compiler,run} {stderr,stdout}.
- `run-rustfix` will run rustfix and try to apply *all* non-placeholder suggestions, including non-machine-applicable ones like `MaybeIncorrect` ones.
- `rustfix-only-machine-applicable` is like `run-rustfix` but only tries to apply `MachineApplicable` suggestions.
- `forbid-output` is like `error-pattern` but named completely differently. I don't remember which output pattern of {compiler,run}x{stderr,stdout} it is forbidding.

EDIT:
- `regex-error-pattern` is like `error-pattern` but accepts a regex...
Repository: godot
Issue: At startup `ERROR: editor/progress_dialog.cpp:169 - Do not use progress dialog (task) while flushing the message queue or using call_deferred()!`
Labels: bug,topic:editor,needs testing

### Tested versions

- Happens in v4.4.dev7.mono.official [46c8f8c5c]

### System information

Godot v4.4.dev7.mono - Windows 10 (build 19045) - Multi-window, 1 monitor - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1060 6GB (NVIDIA; 32.0.15.6094) - Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz (4 threads)

### Issue description

I get this error sometimes at startup. My project is mostly GDScript code with two C# scripts.

This _might_ be related to https://github.com/godotengine/godot/issues/96550, at least the error message is the same.

```
Godot Engine v4.4.dev7.mono.official (c) 2007-present Juan Linietsky, Ariel Manzur & Godot Contributors.
--- Debug adapter server started on port 6006 ---
--- GDScript language server started on port 6005 ---
  ERROR: editor/progress_dialog.cpp:169 - Do not use progress dialog (task) while flushing the message queue or using call_deferred()!
  ERROR: editor/progress_dialog.cpp:203 - Condition "!tasks.has(p_task)" is true. Returning: canceled
  ERROR: editor/progress_dialog.cpp:203 - Condition "!tasks.has(p_task)" is true. Returning: canceled
  ERROR: editor/progress_dialog.cpp:203 - Condition "!tasks.has(p_task)" is true. Returning: canceled
  ERROR: editor/progress_dialog.cpp:203 - Condition "!tasks.has(p_task)" is true. Returning: canceled
  ERROR: editor/progress_dialog.cpp:203 - Condition "!tasks.has(p_task)" is true. Returning: canceled
  ERROR: editor/progress_dialog.cpp:203 - Condition "!tasks.has(p_task)" is true. Returning: canceled
  ERROR: editor/progress_dialog.cpp:226 - Condition "!tasks.has(p_task)" is true.
[LSP] Connection Taken
```

### Steps to reproduce

Unfortunately I have no idea. I _feel_ that I have mostly seen this error when starting Godot first time after booting the computer. I did managed to get the error once by repeatedly starting Godot while Microsoft Defender was scanning the drive thus making everything slow. But even then I got the error only once with maybe 15 tries.

### Minimal reproduction project (MRP)

N/A
Repository: rust
Issue: Audit `run-fail` ui tests to see if they need *exact* run stderr/stdout
Labels: C-cleanup,A-testsuite,T-compiler,E-medium,E-tedious

> compiletest triage: I'm not convinced switching `error-pattern` run-fail ui tests to use only the current form of `check-run-results` is an improvement over `error-pattern` unconditionally. If anything, it would be a regression to flaky tests in many cases that are sensitive to *exact* run stdout/stderr (line numbers, backtraces that can depend on platform-specific unwind mechanism, concrete addresses, version numbers, etc.).
> 
> I would be in favor of auditing some of these run-fail tests and sparingly add `check-run-results` if the *exact* run stderr/stdout is critical for the intention of the test, but not in a blanket fashion. As such, I'm going to close this issue in favor of a more concrete audit issue. 

 _Originally posted by @jieyouxu in [#65865](https://github.com/rust-lang/rust/issues/65865#issuecomment-2564704568)_
Repository: vscode
Issue: html dosyasını yeni pencerede açtığımda boş sayfa görünüyor
Labels: info-needed,*english-please,translation-required-turkish


Type: <b>Bug</b>

ben normalde alt+l+o ya bastığımda html dosyam chrome de açılıyordu.ama istemeden birkaç ayarla uğraştım bidaha sayfa açılmadı hep boş sayfa gosteriyor

VS Code version: Code 1.96.2 (fabdb6a30b49f79a7aba0f2ad9df9b399473380f, 2024-12-19T10:22:47.216Z)
OS version: Windows_NT x64 10.0.19045
Modes:

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

|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i5-4590 CPU @ 3.30GHz (4 x 3292)|
|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)|15.96GB (7.25GB free)|
|Process Argv|--crash-reporter-id 1873f56a-c5e0-43e8-bf6c-2290d397f05e|
|Screen Reader|no|
|VM|0%|
</details><details><summary>Extensions (6)</summary>

Extension|Author (truncated)|Version
---|---|---
monica-code|Mon|1.2.0
vscode-language-pack-tr|MS-|1.96.2024121109
python|ms-|2024.22.1
remote-wsl|ms-|0.88.5
live-server-preview|neg|0.1.4
five-server|yan|0.3.2


</details><details>
<summary>A/B Experiments</summary>

```
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805cf:30301675
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
2i9eh265:30646982
962ge761:30959799
pythonnoceb:30805159
pythonmypyd1:30879173
2e7ec940:31000449
pythontbext0:30879054
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
dvdeprecation:31068756
dwnewjupyter:31046869
nativerepl2:31139839
pythonrstrctxt:31112756
nativeloc1:31192215
cf971741:31144450
iacca1:31171482
notype1:31157159
5fd0e150:31155592
dwcopilot:31170013
stablechunks:31184530
6074i472:31201624

```

</details>

<!-- generated by issue reporter -->
Repository: rust
Issue: Impl has "stricter" requirement that is implied by existing requirement
Labels: A-trait-system,C-bug,S-has-mcve,T-types,A-implied-bounds

<!--
Thank you for filing a bug report! 🐛 Please provide a short summary of the bug,
along with any information you feel relevant to replicating the bug.
-->

I tried this code:

```rust
trait Foo {
    type Assoc;

    fn bar<'x>()
    where
        Self::Assoc: 'x;
}

impl<A: Foo> Foo for Option<A> {
    type Assoc = Option<A::Assoc>;

    fn bar<'x>()
    where
        Self::Assoc: 'x,
    {
        todo!()
    }
}
```

I expect this to compile, but it gives the following error

```
error[E0276]: impl has stricter requirements than trait
  --> src/lib.rs:14:22
   |
4  | /     fn bar<'x>()
5  | |     where
6  | |         Self::Assoc: 'x;
   | |________________________- definition of `bar` from trait
...
14 |           Self::Assoc: 'x,
   |                        ^^ impl has extra requirement `<A as Foo>::Assoc: 'x`
```

The extra requirement `<A as Foo>::Assoc: 'x` that it mentions is actually implied by the real requirement ` Self::Assoc: 'x`.
I think rust should always accept trait impls that have the exact same bounds as the trait defintion, that is why I labeled this as a bug.

### Meta
<!--
If you're using the stable version of the compiler, you should also check if the
bug also exists in the beta or nightly versions.
-->

`rustc --version --verbose`:
```
rustc 1.85.0-nightly (426d17342 2024-12-21)
binary: rustc
commit-hash: 426d1734238e3c5f52e935ba4f617f3a9f43b59d
commit-date: 2024-12-21
host: x86_64-unknown-linux-gnu
release: 1.85.0-nightly
LLVM version: 19.1.6
```
Same result on stable
Repository: godot
Issue: SubViewport's descendant tool nodes do not receive input in editor
Labels: bug,topic:editor,topic:input,topic:gui

### Tested versions

4.0.stable
4.3.stable.mono
4.4.dev7

### System information

Godot v4.3.stable.mono - Arch Linux #1 SMP PREEMPT_DYNAMIC Fri, 27 Dec 2024 14:24:37 +0000 - Wayland - Vulkan (Forward+) - dedicated AMD Radeon RX 6600 (RADV NAVI23) - AMD Ryzen 7 9700X 8-Core Processor (16 Threads)

### Issue description

Tool Nodes under a SubViewport do not receive input in the editor. Nodes which are not descendants receive input. When the scene is run then all nodes receive input. 

Expected behaviour: All tool nodes receive input in the editor.

### Steps to reproduce

An MRP is included. It loads a scene as a plugin. When a node with an attached script receives key input it will print the node's name and the event received.

1. In the editor press a key
2. Note that SubViewport and ControlContainer print output
3. Clear the output
4. Open and run test.tscn
5. Press a key
6. Note that SubViewport, ControlContainer and ControlSub print output


https://github.com/user-attachments/assets/dbf27f6b-dd85-4887-b4c8-97964f239c7f


### Minimal reproduction project (MRP)

[input_test.zip](https://github.com/user-attachments/files/18269579/input_test.zip)
Repository: vscode
Issue: Freeze and protect cell / skip execution
Labels: help wanted,feature-request,notebook-serialization,notebook-execution

# Feature: Notebook Editor, Interactive Window, Python Editor cells

<!-----------------------------------------------------------------------------------------------
                                                      ***PLEASE READ***
If this issue doesn't relate to Jupyter Notebooks, Python Interactive Window features
or other "cell"-based features of the Python extension, please use the main Python feature
request template instead of this one. ***Thank you!***
------------------------------------------------------------------------------------------------->

## Description

The unofficial Jupyter notebook extension have a ["Freeze" extension](https://jupyter-contrib-nbextensions.readthedocs.io/en/latest/nbextensions/freeze/readme.html). I am wondering if the team can add this feature to the notebook extension. It has 3 modes:

* Unlock: user can freely edit and execute the content of the cell
* Read-only: user can execute but not edit the cell
* Frozen: user can neither edit nor execute the cell

Use cases:
* Run the entire notebook from end to end, but want to skip some cells
* Store some core functions / parameters at a cell, and make that cell read-only to avoid changes during model tuning

# Note:

Feature request in Jupyter Lab https://github.com/jupyterlab/jupyterlab/issues/4213
Extension for Jupyter lab https://github.com/DataDog/jupyterlab-freeze
Repository: PowerToys
Issue: Allow certain pinned windows to stay pinned across multiple desktops.
Labels: Needs-Triage

### Description of the new feature / enhancement

Some windows are pinned and specially selected. When switching between desktops (Ctrl + Win + Right/Left), these windows can follow the desktop you switch to and stay on top.

### Scenario when this would be used?

Some apps can only open one window. If you try to reopen them on a different desktop from where they first appeared, you will be pulled back to the desktop where the app window is located. You need to either close the app or move it to the desktop you want to use. This might throw off the rhythm a bit.

### Supporting information

I first discovered this feature in Snipaste (https://www.snipaste.com/index.html). It allows screenshots to be pinned across multiple desktops, but only for screenshots.
Repository: transformers
Issue: [Feature Request] Add beam search text streaming visualization feature
Labels: Feature request

### Feature request

### Feature request
Remove the limitation that prevents using streamers with beam search. Currently, there's an error in the generation code:

```python
if streamer is not None and (generation_config.num_beams > 1):
   raise ValueError(
       "`streamer` cannot be used with beam search (yet!). Make sure that `num_beams` is set to 1."
   )

### Motivation

### Motivation
When working with beam search generation, it's often difficult to understand why the model makes certain choices or how the beams evolve during generation. While debugging some beam search behavior, I discovered the `MultiBeamTextStreamer` class, but it took me some time to find it as it wasn't prominently featured in the documentation.

From an educational perspective, this tool is extremely valuable. Being able to visualize multiple beams in real-time provides an excellent way to teach and understand how beam search actually works. Students and educators could see the algorithm's decision-making process step by step, making abstract concepts concrete and interactive.

Making this feature more visible and providing better examples would help users who need to:
- Learn/teach beam search concepts interactively
- Debug beam search issues
- Understand model decision-making
- Create interactive demos

This improvement would make beam search less of a "black box" and provide a powerful educational tool for the NLP community.

### Your contribution

### Your contribution
I have implemented the MultiBeamTextStreamer class with tests and documentation. I plan to submit a PR for review after final cleanup. Would love early feedback on this approach.

Example of usage:
https://huggingface.co/spaces/mosheofer1/multi_beam_text_streamer
Repository: tensorflow
Issue: No GPU support for tf.image.resize(method='bicubic') 
Labels: type:support,comp:gpu,2.17

### Issue type

Feature Request

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

Yes

### Source

source

### TensorFlow version

2.17.1

### Custom code

Yes

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

tf.image.resize() does not support GPU execution with 'bicubic' interpolation method. 

*I can help add this feature* 

### Standalone code to reproduce the issue

```shell
print(tf.config.list_physical_devices())
tf.debugging.set_log_device_placement(True)

# runs on GPU
img = tf.ones([4,100,100,1])
img_resized = tf.image.resize(img, [50,50])

# runs on CPU (no GPU implementation available!)
img2 = tf.ones([4,100,100,1])
img2_resized = tf.image.resize(img2, [50,50], method='bicubic')
```


### Relevant log output

_No response_
Repository: PowerToys
Issue: Unable to debug for OpenAl request failed with status code: 400 in Advanced Paste
Labels: Issue-Bug,Needs-Triage

### Microsoft PowerToys version

0.87.1

### Installation method

PowerToys auto-update

### Running as admin

No

### Area(s) with issue?

Advanced Paste

### Steps to reproduce

1. Open https://mp.weixin.qq.com/s/8qK4vOul97zt6Chv0Xt5RQ
2. Ctrl+A: Select All
3. Ctrl+C: Copy
4. Win+Shift+V: Advanced Paste
5. Enter `summary the text into 100 words`

Then you will see this error:

![Image](https://github.com/user-attachments/assets/d9509ab2-f634-417b-9265-56336127165e)

Is there any log I can see to debug this?

### ✔️ Expected Behavior

The text only 4,759 tokens. It should work on OpenAI API.

### ❌ Actual Behavior

![Image](https://github.com/user-attachments/assets/d9509ab2-f634-417b-9265-56336127165e)

### Other Software

_No response_
Repository: godot
Issue: Image thumbnail is darker than the original file
Labels: discussion,topic:editor

### Tested versions

- Reproducible in all 4.x versions, also tested in 3.6.

### System information

Godot v4.4.dev (75ce4266c) - Windows 10 (build 19045) - Multi-window, 2 monitors - Vulkan (Forward+) - dedicated AMD Radeon RX 580 2048SP (Advanced Micro Devices, Inc.; 31.0.21921.1000) - AMD Ryzen 5 3600 6-Core Processor (12 threads)

### Issue description

As can be seen in the image bottom, Godot generates a thumbnail much more darker than the original file, only the thumbnails seems to be affected. I didn't noticed this behavior in other .webp files.

![Image](https://github.com/user-attachments/assets/bd86bdfa-9c79-45f9-a9bd-2b7b2e6ae01e)


### Steps to reproduce

Open the mrp or download the image and import in your project.

### Minimal reproduction project (MRP)

[test_thumbnail.zip](https://github.com/user-attachments/files/18270131/test_thumbnail.zip)

[image.zip](https://github.com/user-attachments/files/18270132/image.zip)
Repository: PowerToys
Issue: Mouse utilities: Dynamically change Mouse Speed, e.g. while pressing a Hotkey
Labels: Needs-Triage

### Description of the new feature / enhancement

Hello
Sometimes, one must select very precise a single pixel, therefore, it would be very useful, if one could change the mouse speed by a hotkey.

Thanks a lot, kind regards,
Thomas


### Scenario when this would be used?

- For creating Screenshots
- For measuring screen distances


### Supporting information

_No response_
Repository: PowerToys
Issue: [Registry Preview] Add context menu to key tree and value
Labels: Idea-Enhancement,Resolution-Fix Committed,Area-User Interface,Product-Registry Preview

### Description of the new feature / enhancement

Add context menu to key tree and value list for copy the data.

### Scenario when this would be used?

Easily copy Information and especially the decoded value data.

### Supporting information

_No response_
Repository: neovim
Issue: Combined injections not entirely highlighted
Labels: bug,highlight,treesitter

### Problem

The treesitter highlighter fails to consider all text of a combined injection, even when it is visible on screen. Sometimes it will draw it correctly but the highlights go back to being incorrect on the next redraw(?)

### Steps to reproduce

minimal.lua:

```lua
vim.treesitter.query.set(
  'lua',
  'injections',
  [[((comment_content) @injection.content (#set! injection.self) (#set! injection.combined))]]
)

vim.api.nvim_buf_set_lines(0, 0, -1, false, {
  '-- print([[some',
  '-- text',
  '-- here]])',
})
vim.bo.ft = 'lua'
```

```sh
nvim --clean -u minimal.lua
```

Observe:
![Image](https://github.com/user-attachments/assets/d3de9396-f1c5-424b-9cd4-8ad22da6b023)

Weird redrawing:
https://github.com/user-attachments/assets/8e845f91-29fe-46ae-a3bd-617e2d8387cd


### Expected behavior

In the above example, `here]]` should also have a string highlight, and the final closing parenthesis should have a bracket highlight. Instead they are not parsed as injections.

### Nvim version (nvim -v)

NVIM v0.11.0-dev-1422+g35247b00a4-dirty Build type: Debug LuaJIT 2.1.1734355927

### Vim (not Nvim) behaves the same?

NA

### Operating system/version

Linux 6.12.5 @ NixOS

### Terminal name/version

kitty 0.37.0

### $TERM environment variable

xterm-kitty

### Installation

Build from source
Repository: TypeScript
Issue: Mixins Overrides Drop Documentation
Labels: Help Wanted,Possible Improvement

### 🔎 Search Terms

mixins overrides, documentation dropped

### 🕗 Version & Regression Information

- This is the behavior in every version I tried, and I reviewed the FAQ for entries about documentation, mixins, etc.


### ⏯ Playground Link

https://www.typescriptlang.org/play/?ts=5.7.2#code/CYUwxgNghgTiAEkoGdnwEIpAYWq+A3gFDynwD0AVJfMgPYC2CwdYArkwHYAuU3AlnU7xK5EmWS8BYeE24ALOsAAUASgBc8ThwBGIGAG4iAXyJFuATwAOCAIKcL2IZJhsw3OjHgBeeFB0uUO5aIADu8MoAdNGwAObImlAOANoAuqo+AHzwdDoAVuDcZgBmbJzugsIAsvwAHgA8ACrwILXcIJzAaPaOztyu7p6ZypjIOHgJ8I0ZxKT+gcFI+DW1-Jy4KGit7Z1oo+ObhOKkYH0DHjBRMTDxiSnpR2QSbDaX0ZFxyKpGT6akpuI4Nw2DBqnU1htUEYAeRyPAAPJeBieBDIfgMKwQCzwCx0NiIJLwUIwfjtdREWGICbwFYQ6kEUyU0BIODwUrlARCGl1JotNodLrwHpOTguNwXYb7SGTaaaSw2OjFbmrdbUgBkUyMRGZ0FZSzQKxAwD5O0FKxGWGlM3Ekj4-BkckUKg0Wl0+mhZkNwEijqURkpZAAevAAHJ0eAsdhcKSVSJAA

### 💻 Code

```ts
declare class BaseClass {
    /** some documentation */
    static method(): number;
}

type AnyConstructor = abstract new (...args: any[]) => object

function Mix<T extends AnyConstructor>(BaseClass: T) {
  abstract class MixinClass extends BaseClass {
    constructor(...args: any[]) {
      super(...args);
    }
  }

  return MixinClass;
}

// Or more simply you can write:
class MixinClass {}
declare function Mix<T extends AnyConstructor>(BaseClass: T): typeof MixinClass & T;

declare class Mixed extends Mix(BaseClass) {
  static method(): number;
}

Mixed.method;
//    ^ No documentation.
```

### 🙁 Actual behavior

Overrides of a mixin class does not have documentation.

Notably if you _don't_ override the method the documentation does show up. This shows it's possible to get it.

### 🙂 Expected behavior

It should inherit documentation.

### Additional information about the issue

_No response_