sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: vscode
Issue: code file not getting uploded in vs code
Labels: info-needed,triage-needed


Type: <b>Bug</b>

I am trying to upload code file it not getting uploaded. showing mw empty editor

VS Code version: Code 1.95.3 (f1a4fb101478ce6ec82fe9627c43efbf9e98c813, 2024-11-13T14:50:04.152Z)
OS version: Windows_NT x64 10.0.19045
Modes:

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

|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz (4 x 2496)|
|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.89GB (10.07GB free)|
|Process Argv|--crash-reporter-id c9c7fbdc-f352-48fc-8028-56a446029c76|
|Screen Reader|no|
|VM|0%|
</details><details><summary>Extensions (2)</summary>

Extension|Author (truncated)|Version
---|---|---
playwright|ms-|1.1.12
vscode-css-custom-properties|Toc|0.0.5


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

```
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805cf:30301675
binariesv615:30325510
vsaa593:30376534
py29gd2263:31024239
vscaac:30438847
c4g48928:30535728
azure-dev_surveyone:30548225
2i9eh265:30646982
962ge761:30959799
pythonnoceb:30805159
asynctok:30898717
pythonmypyd1:30879173
2e7ec940:31000449
pythontbext0:30879054
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
jg8ic977:31013176
dvdeprecation:31068756
dwnewjupytercf:31046870
2f103344:31071589
nativerepl2:31139839
pythonrstrctxt:31112756
nativeloc2:31185842
cf971741:31144450
iacca1:31171482
notype1:31157159
5fd0e150:31155592
dwcopilot:31170013
stablechunks:31184530

```

</details>

<!-- generated by issue reporter -->
Repository: TypeScript
Issue: `tsserver` diagnostic discrepancy on identifier completion
Labels: Needs More Info

### 🔎 Search Terms

region diagnostics auto complete

### 🕗 Version & Regression Information

- This changed between versions 5.5 and 5.6

I suspect this is a regression caused by #57842

### ⏯ Playground Link

_No response_

### 💻 Code

Any code that auto-completes an identifier should trigger the bug (sometimes)

### 🙁 Actual behavior

Typing an identifier that TS recognizes, then selecting one of the possible completions, may cause the server to see the source in a way that's inconsistent with the currently opened buffer.

For example, some hours ago, I tried
```ts
import { Typog/*cursor*/ } from "@mui/material";
```
Completed to `Typography` succesfully, but the LSP said
```
Module '"@mui/material"' has no exported member 'Tyraphypog'.
```
Sometimes, instead of a permutation of chars, it's a duplicate substring (example: `useState` -> `useStState`)

I can assure you this is **not an ESM-specific issue**, it happens with regular variables, and object properties too, even on minimal projects with 0 dependencies.

I have to **restart the LSP multiple times** during a coding session. However, as I said, this is non-deterministic, sometimes it's fine for a while. A single restart is enough to sync the states, until the bug happens again.

### 🙂 Expected behavior

The LSP must have an internal state that's consistent (no discrepancies) with the actual buffer

### Additional information about the issue

`hx -V`: `helix 24.7 (079f5442)`

`npm ls -g` (snip): `typescript-language-server@4.3.3`
Repository: react
Issue: Bug: web animation cancel() followed by animate() behave oddly when requestAnimationFrame's involved
Labels: Status: Unconfirmed

See repro: [tinyurl.com/4u85ehnh](https://t.co/3eMtHJfEQ5)

Video of the glitch: https://x.com/_chenglou/status/1860978002643063054

Tldr on button click I cancel the existing animation and in `useLayoutEffect` I start a new one. The animation goes from translate 100px to 200px. However, clicking on the button will show a split second glitched unstyled view of the animated text (position at 0px) before jumping to 100px and animating to 200px. Commenting out the `requestAnimationFrame` wrapper inside `handleClick` solves it.

Happens across Chrome, Safari and Firefox.

Notes:
- The rAF happens on the same frame as everything else, so there shouldn't be any visible DOM repaint
- Even if the rAF is executed later, it'd means `cancel()` is executed _later_, which should hide the unstyled visual, not reveal it
- Although, the fact is that rAF can be _scheduled_ earlier, if this is relevant: https://x.com/nomsternom/status/1853687984266055983 (original post unrelated to this issue)
- You can check the difference in console.logs. The microtask log result & order is different. The logs themselves (including getComputedStyle which forces reflows) don't disturb this repro
- FWIW, I was wondering whether the first frame of `animate()` is skipped when `cancel()` is done in the rAF, and it seems it's preserved. Another debugging video (first 6 times glitching, 7th time not) below. The first frame's position is 100px, which is where the red square is. For alignment. Here:

https://github.com/user-attachments/assets/c7a9a21f-57e7-4123-bac5-8a07a02741f4

I'd also like to be able to get a clean, React-less repro but not sure how complicated that'd be.
Repository: rustdesk
Issue: When the host computer screenshots and transfers it to the controlled computer, pasting it into WeChat 4.0 results in a blank image.
Labels: bug

### Bug Description

When the host computer screenshots and transfers it to the controlled computer, pasting it into WeChat 4.0 results in a blank image.

### How to Reproduce

You can reproduce the issue by directly pasting the screenshot from the host computer into WeChat 4.0.

### Expected Behavior

The image should be a normal image when pasted into WeChat.

### Operating system(s) on local (controlling) side and remote (controlled) side

Windows11->windows10ltsc2019

### RustDesk Version(s) on local (controlling) side and remote (controlled) side

1.3.2->1.3.2

### Screenshots


https://github.com/user-attachments/assets/0f6ce0aa-cb01-4898-88a5-2451d647dc98



### Additional Context

_No response_
Repository: kubernetes
Issue: kubelet can't print stack like containerd
Labels: sig/node,kind/feature,needs-triage

### What would you like to be added?

kill -s SIGUSR1 `pidof containerd ` containerd will print stack. but i can't find kubelet  how to print stack

### Why is this needed?

to print where is hanging.
Repository: TypeScript
Issue: `Intl.DurationFormat` missing from library definitions
Labels: Bug,Help Wanted,Domain: lib.d.ts

### ⚙ Compilation target

ESNext

### ⚙ Library

ESNext

### Missing / Incorrect Definition

`Intl.DurationFormat` is missing. It's implemented in all browsers except Firefox.

### Sample Code

```TypeScript
new Intl.DurationFormat('en-US', { style: 'long' }).format({ hours: 5, minutes: 2, seconds: 42 })
// '5 hours, 2 minutes, 42 seconds'
```

### Documentation Link

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DurationFormat

https://github.com/tc39/proposal-intl-duration-format
Repository: angular
Issue: `FormResetEvent` is not emitted via `AbstractControl.reset()`
Labels: area: forms

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

forms

### Is this a regression?

No

### Description

While working with forms, I was trying to subscribe to the `FormResetEvent` on `AbstractControl.events` and adding some special logic for when a form is reset (by the user or programatically with new initial values). Surprisingly the event is never emitted when using `AbstractControl.reset()`, but only when a `<input type="reset">` button is clicked.

Here are some screenshots from the StackBlitz linked below:
![Image](https://github.com/user-attachments/assets/a093f008-b93c-4b99-8688-a9f2f5cf80aa)

As you can see the `FormResetEvent` is only emitted by the second form:
![Image](https://github.com/user-attachments/assets/701a4a44-9479-4bc0-aa8e-69edac3ab1b1)


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

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

### Please provide the exception or error you saw

```true

```

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

```true
Angular CLI: 18.2.12
Node: 22.11.0
Package Manager: npm 10.9.0
OS: linux x64

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

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1802.12
@angular-devkit/build-angular   18.2.12
@angular-devkit/core            18.2.12
@angular-devkit/schematics      18.2.12
@angular/cdk                    18.2.14
@schematics/angular             18.2.12
ng-packagr                      18.2.1
rxjs                            7.8.1
typescript                      5.5.4
zone.js                         0.14.10

But also happens with Angular 19 (see StackBlitz)
```

### Anything else?

_No response_
Repository: rust
Issue: macOS: Crate symbols get discarded when crate appears unused
Labels: A-linkage,O-macos,T-compiler,C-bug,O-apple

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

<details>
<summary>I tried <a href="https://gitlab.com/Fraser999/divan-example">this code</a>:</summary>

Within the base crate, the [`#[divan::bench]`](https://docs.rs/divan/latest/divan/attr.bench.html) macro is used for benchmarking crate internals. Its generated code translates to something similar to:

```rs
#[used]
#[cfg_attr(target_os = "macos", link_section = "__DATA,__mod_init_func,mod_init_funcs")]
#[cfg_attr(target_os = "linux", link_section = ".init_array")]
#[cfg_attr(target_os = "windows", link_section = ".CRT$XCU")]
static CONSTRUCTOR: extern "C" fn() = constructor;

extern "C" fn constructor() {
    // Register benchmark...
}
```

This crate has a benchmark executable with only:

```rs
fn main() {
    divan::main();
}
```

</details>


I expected to see this happen: run the `add` benchmark and output the results. This runs correctly on Linux and Windows, but not macOS.

Instead, this happened: [`divan::main()`](https://docs.rs/divan/latest/divan/fn.main.html) cannot find the benchmark because the pre-`main` constructor function never ran.

In order to make the benchmarks visible to the executable, the base crate needs to have one of its items appear to be used, such as `black_box`-ing _any_ item from the crate.

Note that this also happens with code like:

```rs
#[used(linker)]
#[link_section = "__DATA,__my_values,regular,no_dead_strip"]
static VALUE: u32 = 42;
```

This issue occurs even when doing `extern crate my_crate` or `use my_crate as _`, which is a known workaround for similar issues.

### 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.82.0 (f6e511eec 2024-10-15)
binary: rustc
commit-hash: f6e511eec7342f59a25f7c0534f1dbea00d01b14
commit-date: 2024-10-15
host: aarch64-apple-darwin
release: 1.82.0
LLVM version: 19.1.1
```
Repository: three.js
Issue: NodeMaterial: Add utility to convert normal materials to their node pendants.
Labels: Enhancement

### Description

Copying a model to get its properties assigned from a meshmaterial to a nodematerial breaks

### Reproduction steps

1. create a MeshBasicMaterial 
2.create a MeshBasicNodeMaterial
3.copy the meshbasicmaterial into the node one



### Live example

[Live fiddle test ](https://jsfiddle.net/njf1mae9/8/)

Line 53 

### Screenshots

<img width="425" alt="Screenshot 2024-11-26 at 11 28 01" src="https://github.com/user-attachments/assets/2efff5f5-5e6a-46bf-90ee-4d4fabbbc142">


### Version

r170

### Device

Desktop

### Browser

Chrome

### OS

MacOS
Repository: pytorch
Issue: Incremental CI testing
Labels: feature,module: ci,triaged

### 🚀 The feature, motivation and pitch

This is an idea about how we could reduce some of the on-PR testing while shortening the feedback cycle on PR for PyTorch contributors.

This is based on the assumption that PRs typically go through one or more iterations, driven by a combination of automated testing and human reviews. 

Today we run the whole matrix of relevant tests on PR submission. If one of the linter jobs fails, it is likely that the whole matrix will be run again. Looking at the data for September and October 2024 on the [PyTorch CI Cost](https://hud.pytorch.org/cost_analysis) tool, the `pull` category accounts for ~30% of the entire expenditure, so a significant reduction in pull request testing would have a significant impact on expenditure.

A different approach could be as follows:

- on PR submission (and sync) only run a subset of the matrix (e.g. linters plus non-backend specific tests)
- a list of available tests is posted as a comment to the PRs, contributors may trigger extra tests on demand
- an admin may request to run the whole test matrix on demand
- all tests (same as today) are executed before merge, so we still gate on the same matrix as today

The downside of this approach is that it introduces the risk of discovering issues only at merge time, and we would have to measure this to see if on average this leads to a reduction in resource utilisation and an improvement on the user experience.

One metric to consider would be the average number of CI runs per PR, or perhaps the cost analytics tool (https://hud.pytorch.org/cost_analysis) could be extended to calculate the cost per PR and average cost per PR.

In terms of user experience with the CI system, a survey could be used.

### Alternatives

There are already a number of strategies in place to reduce waste in CI testing:

- When a test job fails, the entire group is cancelled
- Test jobs are filtered based on the files touched by a PR

Alternative approaches could be:
- Make the cancelling more aggressive: when a job fail cancel more than the group. This is a risky strategy thought, and might result in more resource consumption ultimately, as a flake job or temporary infra issue on one of the jobs would cancel the entire run, wasting all CI resources used up to that point.
- Make the filtering more precise. This also involves a good amount of risk, as it is easy to over-optimise which could lead to a reduction of quality for the project. Quality is not something we should compromise on. If we had good quality data about relationship between changes and failures in tests, we could attempt to use AI to decide when to run a test, but I believe such dataset is not available

### Additional context

With this issue, I would like to gauge how the community of PyTorch contributors about the idea, and hopefully evolve it into a form that can help us reduce CI resource consumption without compromising on quality and user experience.

cc @seemethere @malfet @pytorch/pytorch-dev-infra
Repository: vscode
Issue: test "hint is not shown when there has been input" always fails
Labels: debt,unit-test-failure

* run `./scripts/test.sh --dev`
* notice silent fails of 

```
2 !== 0

    at terminalInitialHint.test.js:95:17
(anonymous)	@	terminalInitialHint.test.js:95
setTimeout		
(anonymous)	@	terminalInitialHint.test.js:93
```
Repository: ollama
Issue: Ovis1.6-Gemma2-27B Model request
Labels: model request

https://huggingface.co/AIDC-AI/Ovis1.6-Gemma2-27B

very good multi modal.
Could be the best open source multimodal atm.

Would love to have it in Ollama.
Repository: pytorch
Issue: [Feature Request] Add source Inductor Python file path to each Triton kernel
Labels: triaged,oncall: pt2

### 🚀 The feature, motivation and pitch

When using torch.compile, we have noticed that the generated Triton code may throw runtime errors. One possible solution is to locate the corresponding source code and then use `torch.compiler.disable` to fallback to ATen. 

It seems that the only way to locate the source code is finding the Python file generated by Inductor that contains the Triton kernel, then identifying the relevant FxGraph nodes from the its comments, and finally speculating on which part of the source code these FxGraph nodes belong to.

However, searching the Triton kernel's origin Inductor Python file can be quite cumbersome, as the Python file may contains too many Triton kernels. If the Triton code could include a path to its Inductor Python file, debugging would be much easier.
```diff
+ # Origin: /tmp/torchinductor_xxx/yy/zzz.py
import triton
import triton.language as tl
from triton.compiler.compiler import AttrsDescriptor

from torch._inductor.runtime import triton_helpers, triton_heuristics
from torch._inductor.runtime.triton_helpers import libdevice, math as tl_math
from torch._inductor.runtime.hints import AutotuneHint, ReductionHint, TileHint, instance_descriptor, DeviceProperties

@triton_heuristics.pointwise
@triton.jit
def triton_(in_ptr0, out_ptr0, xnumel, XBLOCK : tl.constexpr):
```

### Alternatives

_No response_

### Additional context

I'm glad to submit a PR if this Feature Request passed. 

cc @chauhang @penguinwu
Repository: terminal
Issue: Foreground and background are inverted for certain characters
Labels: Needs-Repro,Area-Rendering,Issue-Bug,Product-Terminal

### Windows Terminal version

1.22.3232.0

### Windows build number

10.0.22631.0

### Other Software

_No response_

### Steps to reproduce

The *Black Large Circle* ⬤ (`0x2b24`) has inverted colors, e.g. printing both *Black Circle* ● (`0x25cf`) and the large version in red via PowerShell:

```pwsh
echo "$([char]0x001b)[31m●⬤$([char]0x001b)[0m"
```

(The explicit coloring is not necessary to show this, though my use case requires the color to indicate various statuses.)

### Expected Behavior

In both cases the circle is red.

### Actual Behavior

Only for the small circle is red, for the larger one, the background becomes red instead:

![screenshot showing inversion](https://github.com/user-attachments/assets/18273490-2eb0-46d0-8dcc-f64f1b951f6c)

VS Code seems to do this as well in the editor 🤔
![screenshot showing inversion in VS code text file](https://github.com/user-attachments/assets/a142c610-7482-46c3-9fee-da277174e0cd)

...but its terminal does not
![screenshot showing no inversion in VS Code terminal](https://github.com/user-attachments/assets/0c933aad-f62d-45e0-80c9-9c201ef27b49)
Repository: pytorch
Issue: Advanced indexing with empty ellipsis (discrepency to numpy)
Labels: triaged,module: advanced indexing

### 🐛 Describe the bug

There is a difference in handling empty ellipses in advanced indexing.

The order of the result axes changes if the axes indexed are not next to each other. In that case, the new axes are prepended at the beginning. If they are neighboring, the are put in place of the original axes.

Here pytorch seems to check if an ellipsis actually covers any axes.
Numpy always treats it as covering axes and moves the new dimensions to the front

```python
import numpy as np
a=np.ones((3,4,5))
print(a[:,(0,1),...,(0,1)].shape)
# (2, 3)

import torch
a=torch.ones(3,4,5)
print(a[:,(0,1),...,(0,1)].shape)
# torch.Size([3, 2])
```

Is this an intentional deviation? Is this documented anywhere? Or is it a bug?

(If it is a bug, I am not sure if it is possible to fix this without breaking compilation or backward compatibility. )


### Versions

torch version: 2.5.1+cu121
Repository: langchain
Issue: PromptTemplate doesn't work with multi layer metadata (e.g. BedrockKnowledgeBase/AmazonKnowledgeBasesRetriever)
Labels: 🤖:bug

### Checked other resources

- [X] I added a very descriptive title to this issue.
- [X] I searched the LangChain documentation with the integrated search.
- [X] I used the GitHub search to find a similar question and didn't find it.
- [X] I am sure that this is a bug in LangChain rather than my code.
- [X] The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package).

### Example Code

```
def _get_document_info(doc: Document, prompt: BasePromptTemplate[str]) -> dict:
    if 'source_metadata' in doc.metadata:
        base_info = {"page_content": doc.page_content, **doc.metadata, **doc.metadata['source_metadata']}
    else:
        base_info = {"page_content": doc.page_content, **doc.metadata}

```

### Error Message and Stack Trace (if applicable)

_No response_

### Description

I'm trying to use Langchain as a conversational retrieval chain to pull documents with metadata from BedrockKnowledgeBase, include the document prompt with some Bedrock Metadata in the prompt template.

The document metadata for the Document object looks like:
metadata: {
location: "s3://xyz",
score: 0.654,
source_metadata: { field_i_want: 123, another_field: 456}
}

The prompt template is failing in base_get_document_info() on the missing_metadata check as it only draws on the base level of metadata.

The following is a (hack) resolution:
```
def _get_document_info(doc: Document, prompt: BasePromptTemplate[str]) -> dict:
    if 'source_metadata' in doc.metadata:
        base_info = {"page_content": doc.page_content, **doc.metadata, **doc.metadata['source_metadata']}
    else:
        base_info = {"page_content": doc.page_content, **doc.metadata}
```
however the tactical resolution would be to somehow allow the dict path to be specified.

### System Info




System Information
------------------
> OS:  Darwin
> OS Version:  Darwin Kernel Version 23.6.0: Thu Sep 12 23:36:12 PDT 2024; root:xnu-10063.141.1.701.1~1/RELEASE_ARM64_T6020
> Python Version:  3.12.5 (main, Aug  6 2024, 19:08:49) [Clang 15.0.0 (clang-1500.3.9.4)]

Package Information
-------------------
> langchain_core: 0.3.15
> langchain: 0.3.7
> langchain_community: 0.3.5
> langsmith: 0.1.142
> langchain_aws: 0.2.7
> langchain_text_splitters: 0.3.2

Optional packages not installed
-------------------------------
> langgraph
> langserve

Other Dependencies
------------------
> aiohttp: 3.10.10
> async-timeout: Installed. No version info available.
> boto3: 1.35.57
> dataclasses-json: 0.5.9
> httpx: 0.27.2
> httpx-sse: 0.4.0
> jsonpatch: 1.33
> numpy: 1.26.4
> orjson: 3.10.11
> packaging: 23.2
> pydantic: 2.9.2
> pydantic-settings: 2.6.1
> PyYAML: 6.0.2
> requests: 2.32.3
> requests-toolbelt: 1.0.0
> SQLAlchemy: 2.0.35
> tenacity: 8.3.0
> typing-extensions: 4.12.2
Repository: PowerToys
Issue: PowerToys Peek
Labels: Issue-Bug,Help Wanted,Resolution-Fix Committed,Status-Reproducible,Product-Peek

### Microsoft PowerToys version

0.86.0

### Installation method

Microsoft Store, PowerToys auto-update

### Running as admin

No

### Area(s) with issue?

Peek

### Steps to reproduce

- Open a file using Peek (ctrl + space)
- Minimize the file
- Select another file and open the file using Peek

### ✔️ Expected Behavior

I expected peek to un-minimize itself and show the file I opened.

### ❌ Actual Behavior

Instead it seems to stay minimized until I open it from my taskbar. I'm not sure if this is considered a bug, but usually when you open a file in an app, the app will "un-minimize" to show the file you opened using the app. But peek doesnt seem to do so.

### Other Software

_No response_
Repository: deno
Issue: `deno doc`: add Native Markdown Export Functionality
Labels: cli,suggestion

Currently, the deno doc command provides documentation generation capabilities, but lacks a direct option to export documentation in Markdown (.md) format. This feature request proposes adding a `--markdown` or `--md` flag to enable seamless documentation export.

Add a new CLI flag to deno doc that allows exporting documentation as a Markdown file:

```
# Proposed usage
deno doc --markdown web/ui/button.tsx
deno doc --md web/ui/button.tsx
```