sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: go
Issue: cmd/compile: inaccurate compiler error on duplicate wasmexport symbol
Labels: NeedsFix,compiler/runtime

### Go version

tip

### Output of `go env` in your module/workspace:

```shell
GO111MODULE=''
GOARCH='arm64'
GOBIN=''
GOCACHE='/home/johan/.cache/go-build'
GOENV='/home/johan/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='arm64'
GOHOSTOS='linux'
GOINSECURE=''
GOMODCACHE='/home/johan/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/home/johan/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/home/johan/src/tip/go'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/home/johan/src/tip/go/pkg/tool/linux_arm64'
GOVCS=''
GOVERSION='devel go1.24-24fd1a043d Tue Aug 20 23:11:53 2024 +0000'
GODEBUG=''
GOTELEMETRY='local'
GOTELEMETRYDIR='/home/johan/.config/go/telemetry'
GCCGO='gccgo'
GOARM64='v8.0'
AR='ar'
CC='gcc'
CXX='g++'
CGO_ENABLED='0'
GOMOD='/home/johan/src/tip/go/test/wasmexport/go.mod'
GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -fno-caret-diagnostics -Qunused-arguments -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build2688758080=/tmp/go-build -gno-record-gcc-switches'
```


### What did you do?

I created a package that exported two identical symbols (in the same package) using the go:wasmexport compiler directive.

```go
package main

//go:wasmexport A
func A() int64 {
	return 10
}

//go:wasmexport A
func B() int64 {
	return 10
}

func main() {
}
```

### What did you see happen?

I saw a compiler error:

```shell
$ GOARCH=wasm GOOS=wasip1 go build -buildmode=c-shared -o x.wasm main.go
main.go:5:2: <autogenerated>:1: symbol A redeclared
        <unknown line number>: other declaration of symbol A
```

### What did you expect to see?

The error message should be able to point to the line number of both symbols:

```shell
$ GOARCH=wasm GOOS=wasip1 go build -buildmode=c-shared -o x.wasm main.go
main.go:5:2: <autogenerated>:1: symbol A redeclared
        main.go:10:2: other declaration of symbol A
```

It is also notable that `main.go:5` is the location of the return, not the compiler directive.
Repository: flutter
Issue: Deobfuscated stack-traces should show package path like normal stack-traces
Labels: c: new feature,tool,c: proposal,P3,team-tool,triaged-tool

### Use case

When using the `--symbolize` option with an obfuscated stack-trace, the source-code paths appear to be absolute.

For example:

```
at #00 abs 00000070889bcc93 virt 000000000018fc93 _kDartIsolateSnapshotInstructions+0xb9153 (unparsed:null)
at #01 abs 00000070889464fb virt 00000000001194fb _kDartIsolateSnapshotInstructions+0x429bb (unparsed:null)
```
becomes:
```
at #0      _MyAppState.build.<anonymous closure> (/path/to/my/my_app/lib/main.dart:89:17)
at #1      _InkResponseState.handleTap (/path/to/my/sdk/flutter/packages/flutter/lib/src/material/ink_well.dart:1170:21)
```

In a normal (not obfuscated) stack-trace, the paths are all refer to the packages:

e.g.
```
at _MyAppState.build.<fn> line 113, column 24 (package:my_app/main.dart:113)
at _InkResponseState.handleTap line 1170, column 21 (package:flutter/src/material/ink_well.dart:1170) 
```

### Proposal

Looking at the symbols file with a hex editor, I can see that the paths are all absolute to my machine.

I wonder if it would be possible to store package relative paths instead in the symbol files, as they can be observed in non-obfuscated stack-traces.

Main reasons for this request are:

- Stack-traces are consistent between obfuscated and non-obfuscated apps.
- Stack-traces are consistent between machines/setups (as paths won't matter anymore).
- Shorter package relative paths are easier to read.
Repository: PowerToys
Issue: Do not work AI-Paste on Excel sheet.
Labels: Issue-Bug,Needs-Triage

### Microsoft PowerToys version

0.83.0

### Installation method

Microsoft Store

### Running as admin

None

### Area(s) with issue?

Advanced Paste

### Steps to reproduce

When simply using the AI-Paste function in the Excel application.

### ✔️ Expected Behavior

The value returned from AI should be pasted into the selected cell/cells.

### ❌ Actual Behavior

The value returned from AI could not be pasted into the selected cell/cells.
This might be because the clipboard value was occupied by the Excel.Range value selected for copying.

### Other Software

Windows 10 pro, Microsoft 365 Apps for enterprise, Excel (Desctop App.).
Repository: transformers
Issue: Trainer.model.push_to_hub() does not allow a private repository flag
Labels: trainer,Feature request

### System Info

As the title described.

### Who can help?

_No response_

### Information

- [ ] The official example scripts
- [ ] My own modified scripts

### Tasks

- [ ] An officially supported task in the `examples` folder (such as GLUE/SQuAD, ...)
- [ ] My own task or dataset (give details below)

### Reproduction

Use the function Trainer.model.push_to_hub().

### Expected behavior

Trainer.model.push_to_hub() allows a private repository flag.
Repository: deno
Issue: WebSocket leaves TCP connection open after calling close
Labels: bug,ext/websocket

Version: Deno 1.45.5

Steps: start the server, start the client, wait for the client to call method `close`. Check the connections, I use `ss -atn | grep 3333` on linux (can use `lsof -i TCP:3333` on macos). I still see the tcp connection established and it’s still there several minutes after.

This looks unexpected to me. My use case - lets say there is some server issue so I wasn’t able to open a ws connection after a few seconds. I would keep trying to close and open another ws connection (with some delay). But that would keep leaking TCP connections.

```
LISTEN    0      128        127.0.0.1:3333         0.0.0.0:*           
ESTAB     0      0          127.0.0.1:45680      127.0.0.1:3333        
ESTAB     0      0          127.0.0.1:3333       127.0.0.1:45680      
```

### Repro scripts

Server - establishes TCP connections and prints received data to stdout, does not implement web socket protocol

```typescript
const listener = Deno.listen({
  hostname: '127.0.0.1',
  port: 3333,
  transport: 'tcp',
});

for await (const conn of listener) {
  console.log('connected');
  readLoop(conn);
}

async function readLoop(conn: Deno.TcpConn) {
  const buf = new Uint8Array(1024 * 1024);
  const decoder = new TextDecoder();

  while (true) {
    const nread = await conn.read(buf);
    if (nread === null) {
      console.log('eof');
      break;
    }
    const txt = decoder.decode(buf.slice(0, nread));
    console.log('read', txt);
  }

  conn.close();
}
```

Client - opens a websocket connection and closes it after 1 second regardless of the result.

```typescript
const socket = new WebSocket('http://localhost:3333');

setTimeout(() => {
  socket.close();
  console.log('Called close');
}, 1000);
```
Repository: react
Issue: [DevTools Bug]: inspecting pseudo-elements in Firefox gives error `Permission denied to access property "__reactFiber$sofadm08s2"`
Labels: Type: Bug,Status: Unconfirmed,Component: Developer Tools

### Website or app

https://wk82tp.csb.app/

### Repro steps

1. Go to the Sandbox link in Firefox (129.0.2), with React DevTools (5.3.1)
2. Open the inspector.
3. Select the `::after` pseudo-element next to the `<h1>`.

### More Info
I add a screenshot of the issue.
<img width="1305" alt="Screenshot 2024-08-21 at 09 06 24" src="https://github.com/user-attachments/assets/d3e869af-80f1-44d5-a9ec-a47ed8472974">

This is happening from a while. Of course, is not a big issue, because if I close the error on the main screen, I can keep working. And until now I wasn't using much of pseudo-elements. 

But now, I'm working on a new feature in our app, where I'm relying hardly on `::after` en `::before` pseudo elements. And it is quite annoying.

This is happening since DevTools 4.28.4. Until v4.27.8 I didn't had problems. On this version (4.27.8) the error is shown only when opening the tab "(React) Components" in the inspector... which kind of make sense, right?. 

What doesn't make sense (to me) is that I got this error when inspecting the pseudo-element in the basic firefox inspector (trying to apply css properties on it).

### How often does this bug happen?

Every time
Repository: ui
Issue: [feat]: Add tag input component 
Labels: area: request

### Feature description

A component which lets us add tag input with and without autocomplete.

### Without auto complete
https://github.com/user-attachments/assets/0d2af048-e644-4b21-bd31-f5b3a8dad4b2


### With auto complete
https://github.com/user-attachments/assets/b5a0c56d-4b50-4ee4-8b92-ac256f2331fe


But with create new tag too.

Please let me know, if i can add it.

### Affected component/components

_No response_

### Additional Context

Additional details here...

### Before submitting

- [X] I've made research efforts and searched the documentation
- [X] I've searched for existing issues and PRs
Repository: ui
Issue: [feat]: Datepicker component disabled prop.
Labels: area: request

### Feature description

Add disabled feature to date picker component.

### Affected component/components

Date Picker

### Additional Context

![resim](https://github.com/user-attachments/assets/4531c03c-15e4-4539-94df-666f1d6e9081)


### Before submitting

- [X] I've made research efforts and searched the documentation
- [X] I've searched for existing issues and PRs
Repository: langchain
Issue: Langchain document loader giving "Resource punkt_tab not found" error 
Labels: Ɑ: doc loader,🤖: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

```python
loader = AzureBlobStorageFileLoader(
    conn_str=conn_str,
    container=container,
    blob_name=blob,
)
 document = loader.load()```

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

_No response_

### Description

- I am trying to use Langchain to load the documents using `AzureBlobStorageFileLoader`. 
- When loading the document I get an error related to nltk that seems upstream to langchain 
- I could fix the problem temporarily by using a downgraded version of nltk. `nltk == 3.8.1`
![image](https://github.com/user-attachments/assets/f803ddc6-ecae-4b45-8c62-e35016cccc41)


### System Info

langchain==0.2.12
langchain-community==0.2.11
langchain-core==0.2.29
langchain-experimental==0.0.36
langchain-text-splitters==0.2.2

Platform: Ubuntu WSL2 on Windows 10
Containerisation: Docker version 27.0.2, build 912c1dd
Python: Python 3.10.12
Repository: rust
Issue: #[inline(never)] does not work for async functions
Labels: A-LLVM,A-codegen,T-lang,C-bug,disposition-merge,finished-final-comment-period,A-async-await,AsyncAwait-Triaged,S-has-mcve


I would expect [the following code](https://godbolt.org/z/35KMqqWjP) produced a `Future::poll()` impl with the `noinline` attribute.

```rust
#![feature(noop_waker)]

use std::task::{Context, Waker, Poll};
use std::future::Future;

#[inline(never)]
pub async fn foo() -> u32 {
    std::hint::black_box(1)
}

pub fn bar() -> Poll<u32> {
    let f = std::pin::pin!(foo());
    f.poll(&mut Context::from_waker(Waker::noop()))
}
```

Instead, the poll method has `inlinehint` applied to it and gets inlined accordingly:

```llvm
; This is the function creating the async fn obj:
; Function Attrs: noinline nonlazybind uwtable
define i8 @_RNvCs8Nh0J9OTdDr_15async_fn_inline3foo() unnamed_addr #2 {
  %1 = alloca [1 x i8], align 1
  store i8 0, ptr %1, align 1
  %2 = load i8, ptr %1, align 1
  ret i8 %2
}

; This the poll method:
; Function Attrs: inlinehint nonlazybind uwtable <== this should arguably be noinline too
define internal { i32, i32 } @_RNCNvCs8Nh0J9OTdDr_15async_fn_inline3foo0B3_(...)
```

### 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-nightly (636d7ff91 2024-08-19)
binary: rustc
commit-hash: 636d7ff91b9847d6d43c7bbe023568828f6e3246
commit-date: 2024-08-19
host: x86_64-unknown-linux-gnu
release: 1.82.0-nightly
LLVM version: 19.1.0
```
Repository: vscode
Issue: Flicker'ish test tree
Labels: polish,testing

* vscode selfhost
* filter text tree by `inlineChat`
* select run all
* 🐛 the progress items flicker a lot



https://github.com/user-attachments/assets/f7687f11-d796-4865-97d6-8550f49451f7
Repository: PowerToys
Issue: ScreenNotes, Persistent transparent sketch layer(s)
Labels: Needs-Triage

### Description of the new feature / enhancement

Always-on-top transparent canvas, disabled from interaction.
Hotkey1, Create or toggle Enabled overlay, screen extents, Show palette of tools.
 - Dock screen, Full
Hotkey2, Create or toggle Enabled overlay, window extents, Show palette of tools.
 - Dock window, Full

Palette of tools primarily colour highlighter, but could easily be expanded with a multitude of ideas.

### Scenario when this would be used?

When working in programs where you want to "complete" different task, but the program itself is not capable of structuring the operations it would be a nice solution to colour highlight parts that are done, or as a reminder that there is something left to be done in this area.

### Supporting information

_No response_
Repository: ui
Issue: [feat]: Skeleton component with auto-sizing
Labels: area: request

### Feature description

Radix Themes got this super nice skeleton component which has auto-sizing based on the children and a controllable state:

https://www.radix-ui.com/themes/docs/components/skeleton

Feels overkill installing Radix Themes just for this one component though

Usage:

```tsx
<Skeleton>
  {Number(500_000).toLocaleString()}
</Skeleton>
```

No need to manually specify the size, just put some placeholder data and the skeleton adjusts accordingly

With controllable state:

```tsx
<Skeleton loading={false}>
  {Number(500_000).toLocaleString()}
</Skeleton>
```

would display the actual number

### Affected component/components

Skeleton

### Additional Context

Additional details here...

### Before submitting

- [X] I've made research efforts and searched the documentation
- [X] I've searched for existing issues and PRs
Repository: vscode
Issue: Git - wrong handling of .gitignore that contains the folder name
Labels: bug,git

Type: <b>Bug</b>

if I create a folder named `test` and inside have test/.gitignore file that has the entry `test` , then vscode ignores the entire folder, while he should only ignore a file named `test/test`


VS Code version: Code 1.92.2 (fee1edb8d6d72a0ddff41e5f71a671c23ed924b9, 2024-08-14T17:29:30.058Z)
OS version: Windows_NT x64 10.0.22631
Modes:
Remote OS version: Linux x64 4.4.0-210-generic

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|12th Gen Intel(R) Core(TM) i5-1235U (12 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.73GB (6.01GB free)|
|Process Argv|--crash-reporter-id 39b50b30-0b69-4d2a-85a9-0dd4641e19df|
|Screen Reader|no|
|VM|0%|

|Item|Value|
|---|---|
|Remote|SSH: xangrila-hub-linux|
|OS|Linux x64 4.4.0-210-generic|
|CPUs|Common KVM processor (16 x 0)|
|Memory (System)|62.92GB (28.72GB free)|
|VM|0%|
</details><details><summary>Extensions (13)</summary>

Extension|Author (truncated)|Version
---|---|---
Bookmarks|ale|13.5.0
remote-ssh|ms-|0.113.1
remote-ssh-edit|ms-|0.86.0
remote-explorer|ms-|0.4.3
gitlens|eam|15.3.0
vscode-docker|ms-|1.29.2
debugpy|ms-|2024.10.0
python|ms-|2024.12.3
vscode-pylance|ms-|2024.8.1
cpptools|ms-|1.21.6
cpptools-extension-pack|ms-|1.3.0
ocaml-platform|oca|1.20.0
markdown-all-in-one|yzh|3.6.2

(1 theme extensions excluded)

</details><details>
<summary>A/B Experiments</summary>

```
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492:30256859
vscod805:30301674
binariesv615:30325510
vsaa593:30376534
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
2i9eh265:30646982
962ge761:30959799
pythongtdpath:30769146
welcomedialog:30910333
pythonnoceb:30805159
asynctok:30898717
pythonregdiag2:30936856
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
accentitlementst:30995554
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
01bff139:31013167
pythoncenvpt:31062603
a69g1124:31058053
dvdeprecation:31068756
dwnewjupytercf:31046870
newcmakeconfigv2:31071590
impr_priority:31102340
nativerepl2:31104044
refactort:31108082
pythonrstrctxt:31112756
flighttreat:31119336
wkspc-onlycs-c:31111717
wkspc-ranged-t:31118572
fje88620:31121564

```

</details>

<!-- generated by issue reporter -->
Repository: TypeScript
Issue: Unions of assertion functions do not act as assertion functions
Labels: Bug,Help Wanted

### 🔎 Search Terms

narrowing, assertion function

### 🕗 Version & Regression Information

- This is the behavior in every version I tried, and I reviewed the FAQ for entries about everything


### ⏯ Playground Link

https://tsplay.dev/Wv3DYw

### 💻 Code

```ts
  class box<T> {
    constructor(public value: T){}

    check(): this is box<string> {
      return typeof this.value == 'string';
    }

    assert(): asserts this is box<string> {
      if (typeof this.value != 'string') throw new Error();
    }

    private test() {
      this.assert();
      // type correctly narrowed
      this.value.substring(0);
    }
  }

  function make() : box<string> | box<number> {
    return new box('a');
  }

  function assert(b: box<string> | box<number>): asserts b is box<string> {
    if (typeof b.value != 'string') throw new Error();
  }

  const b = make();

  if (b.check()) {
    // type correctly narrowed
    b.value.substring(0);
  }

  b.assert();

  // type not narrowed (substring does not exist on type 'string | number')
  b.value.substring(0);
   
  assert(b);

  // type correctly narrowed
  b.value.substring(0);
```


### 🙁 Actual behavior

Type is not narrowed after method call

### 🙂 Expected behavior

I expected the type to be narrowed after method call since it is narrowed within other methods or when using a function external to the type.

### Additional information about the issue

https://stackoverflow.com/questions/78879014/typescript-type-assertion-does-not-narrow-class-instance-from-union
Repository: pytorch
Issue: libtorch reasoned that the crnn model was out of speed the first few times
Labels: oncall: jit,module: cpp,triaged

### 🐛 Describe the bug


string torch_model_path = model_path + ".pt";
device_type = torch::kCUDA;
torch::Device device(device_type, gpuid);
torch::jit::script::Module net;
net = torch::jit::load(torch_model_path, device);
tensor_image = tensor_image.to(torch::kCUDA);
torch::NoGradGuard no_grad;
at::Tensor output = net.forward({ tensor_image }).toTensor();
output = output.to(torch::kCPU);

Do not use torch::NoGradGuard no_grad; The first reasoning time is more than 300 milliseconds, the second time is 47ms, the third time is more than 2000 milliseconds, and then the reasoning is normal; Using torch::NoGradGuard no_grad, the first inference time is more than 300 milliseconds, the second time is more than 2000 milliseconds, and then the inference is normal. How to solve this problem

### Versions

libtorch2.0.1 + cuda11.8 + windows + vs2017


cc @EikanWang @jgong5 @wenzhe-nrv @sanchitintel @jbschlosser
Repository: PowerToys
Issue: Auto-run
Labels: Needs-Triage,Needs-Team-Response

### Description of the new feature / enhancement

Auto-run editor. Also, the ability to enable / disable PowerToys to auto-run with Windows startup. Kinda surprised it's not already a thing.

### Scenario when this would be used?

Every day I turn on my pc.

### Supporting information

I opened the settings of .83 to disable PowerToys starting with Windows logon, only to find that the option for that isn't available. I was shocked!

Then I thought, "Hey, self, how about an auto-run editor? That sounds good." So, here I am writing you guys. Cheers!
Repository: vscode
Issue: SCM Graph - scm/history/Title menu contribution proposal
Labels: feature-request,scm,api-proposal
Repository: godot
Issue: Docs of `Node.duplicate` don't mention it duplicates whole Node subtree
Labels: topic:core,documentation

### Tested versions

I am experiencing this behavior on Homebrew-Godot 4.2 and 4.3.
+ I just built 4.0-stable and it too is affected.

### System information

Godot v4.3.stable - macOS 14.6.1 - Vulkan (Forward+) - integrated Apple M1 - Apple M1 (8 Threads)

### Issue description

In one of my projects I am using Polygon2Ds as terrain.
To make them fit into the pixelart style of the game, I add a SubViewportContainer and a SubViewport (transparent_bg = true) as children to the Polygon2D via a script, make the Polygon2D duplicate itself and attach its copy to the SubViewport. (See polygon_cloner.gd!)

This messes up the view order in my scenes when I edit z_index and set show_behind_parent = true in a Polygon2D that is attached to another Polygon2D running the same script.
As far as I can tell, this doesn't happen with Sprite2Ds.

![Screenshot 2024-08-21 at 11 00 24](https://github.com/user-attachments/assets/35dcf51e-5ac7-4274-b487-92459af1a32b)

### Steps to reproduce

Open the MRP.
Run the node_2d.tscn scene.
Observe the red Polygon2D sticking through OccludingSprite2D when it shouldn't.

### Minimal reproduction project (MRP)

[subviewport.zip](https://github.com/user-attachments/files/16689373/subviewport.zip)