sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: vscode
Issue: Cursor always stick to the end of line in Notebooks
Labels: info-needed

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

I'm having a particular weird issue where I'm unable to select specific parts of a line inside a Jupyter notebook cell and instead my cursor is placed at the end of the lines, unless I modify it.

I attach a video describing the situation, note that I am clicking any point within the line but the cursor is always sticking to the rightmost side of it (for most lines). I cannot select a specific part of the lines and double clicking will select the whole line instead.

https://github.com/user-attachments/assets/1baaa8ed-6b82-4e0b-b0da-7e579ee4f985


<!-- 🪓 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: 1.94.2
- OS Version: Windows 11 NT 10.0; Win64; x64

Steps to Reproduce:

1.  Have a Jupyter notebook opened, in my case I'm using it through WSL.
I'm still not quite sure what causes it, because it often happens when reloading/opening the notebook from disk but sometimes it appears to be triggered when cells are unrendered from view.
2. Click on any recently unmodified line, the cursor should jump to the end

Console log doesn't show anything and/or maybe I haven't checked on every log.
From what I know, disabling extensions (except WSL) doesn't fix the issue and it can still be triggered when selecting a line in another cell.
Repository: deno
Issue: `shadcn-svelte` hangs without `-A`
Labels: bug,permissions,node compat

Originally reported on Discord:
https://discord.com/channels/684898665143206084/684898665151594506/1297443793028780034

![image](https://github.com/user-attachments/assets/27f4d253-7300-4e10-a4c9-8e46a7109fa1)
Repository: svelte
Issue: feature: dev environment nested signal indicator
Labels: feature request

### Describe the problem

Tracking nested signals, and therefore figuring out which functions may be reactive or not, is surprisingly not as big as an issue as I originally thought it was before I started mucking about in Svelte 5. Nevertheless, it would be great to be able to know what functions might reference signals.

### Describe the proposed solution

It might be possible and awesome to do something similar to [does-it-throw](https://github.com/michaelangeloio/does-it-throw/tree/main) except for signals. A function could be marked as 'signally' if it refers to a signal or another 'signally' function.

This means to use the IDE to make a best guess on functions to see whether they are or are not reactive. Obviously being that signals are runtime animals, there will always be a grey area where this is impossible to predict, but if it could cover at least the cases where a function definitely is or definitely isn't reactive, that would be pretty cool!

```javascript
let favouriteAnimal = $state("cat")

function isAnimalBest() { // <-- Definitely reactive, some kind of icon in the margin or squiggle?
  return favouriteAnimal == "goat" ? "🐐" :  "🚫"
}
```

### Importance

nice to have
Repository: deno
Issue: NestJS cannot resolve ModuleRef dependency after TerminusModule is added
Labels: bug,node compat

## Problem

- NestJS cannot resolve ModuleRef dependency after TerminusModule is added
- ./src/app.module.ts
   ```
   import { Module } from '@nestjs/common';
   import { TerminusModule } from '@nestjs/terminus';
   
   @Module({
     imports: [TerminusModule]
   })
   export class AppModule {}
   ```

## How To Reproduce

1. Clone the minimal reproducible project example
   ```
   git clone https://github.com/lucassusanto/nestjs-deno-terminus-issue
   ```
2. Install the dependencies
   ```
   deno install
   ```
3. Run the application
   ```
   deno run --allow-env --allow-net --allow-read src/main.ts
   ```
4. NestJS won't start

   ```
   [Nest] 13408  - 10/20/2024, 3:06:53 PM   ERROR [ExceptionHandler] Nest can't resolve dependencies of the TypeOrmHealthIndicator (?). Please make sure that the argument ModuleRef at index [0] is available in the TerminusModule context.

   Potential solutions:
   - Is TerminusModule a valid NestJS module?
   - If ModuleRef is a provider, is it part of the current TerminusModule?
   - If ModuleRef is exported from a separate @Module, is that module imported within TerminusModule?
     @Module({
       imports: [ /* the Module containing ModuleRef */ ]
     })
   ```

## Expected Result

- NestJS should run without error
  ```
  [Nest] 13531  - 10/20/2024, 3:07:54 PM     LOG [NestApplication] Nest application successfully started +7ms
  ```

## Additional Context

- Deno version
  ```
  deno 2.0.2 (stable, release, x86_64-unknown-linux-gnu)
  v8 12.9.202.13-rusty
  typescript 5.6.2
  ```
Repository: ui
Issue: [bug]: Mobile sidebar doesn't play nice with Clerk popup
Labels: bug

### Describe the bug

<img width="427" alt="image" src="https://github.com/user-attachments/assets/77ae160b-3bde-46cc-a8d3-0a20589e7edf">

I place the Clerk signed-in user button on my sidebar, and this button is impossible to click on any screen where the sidebar is an overlay.

![CleanShot 2024-10-20 at 01 12 39@2x](https://github.com/user-attachments/assets/bc160119-292b-472d-ab68-094a217bed9d)

This appears to be because the sidebar's interaction area overrides the clerk button.

```
    <Sidebar variant="floating" collapsible="offcanvas">
      <SidebarHeader>
        <div className="flex justify-between items-center p-4">
          Workspace
          <SignedIn>
            <div className="relative z-1">
              <UserButton
                appearance={{
                  baseTheme: darkMode ? dark : undefined,
                }}
              />
            </div>
          </SignedIn>
        </div>
      </SidebarHeader>
```

I've tried using tailwind to adjust the relative z but no luck so far.

### Affected component/components

Sidebar

### How to reproduce

1. Add Sidebar
2. Add Clerk signed in button to sidebar.

### Codesandbox/StackBlitz link

_No response_

### Logs

_No response_

### System Info

```bash
Chrome 129
macOS 15
Vite 5.4.2
```


### Before submitting

- [X] I've made research efforts and searched the documentation
- [X] I've searched for existing issues
Repository: transformers
Issue: Access to model outputs inside LogitProcessor
Labels: Feature request,Generation

### Feature request

![image](https://github.com/user-attachments/assets/cb57d5dd-6502-4b31-a948-bb46e535fea5)

The LogitProcessor __call__ method currently has access to the input_ids and the logits generated. It would be really helpful if it has access to the model output for that iteration.

### Motivation

I am trying to implement something similar to [Get To The Point: Summarization with Pointer-Generator Networks](https://arxiv.org/abs/1704.04368) along with transformers, especially Llama models. I am required to add the attention output to the model's generated logit for pointing mechanism, but I do not have access to the attention value inside logit processor. As seen in the picture, if the standard model output object can be passes to the logit processor, then the user can extract required details from the output object and use it to further process the generated logits.

![image](https://github.com/user-attachments/assets/4103b2f8-a09c-4a2e-8916-9ebac8962dd1)


### Your contribution

I can implement the required changed and create a PR if allowed.
Repository: godot
Issue: ENet server memory leak when clients disconnect abruptly
Labels: bug,topic:network

### Tested versions

Reproducible in Godot 4.4 dev3, Godot 4.3 stable

### System information

Godot v4.4.dev3 - Windows 10.0.19045 - Multi-window, 2 monitors - OpenGL 3 (Compatibility) - NVIDIA GeForce RTX 3060 (NVIDIA; 32.0.15.6109) - 13th Gen Intel(R) Core(TM) i9-13900K (32 threads)

### Issue description

I am building a server app for my multiplayer game using ENet Connection with DTLS, and I think I found a memory leak: when clients are closed suddenly with kill process, they disconnect on the server side but without freeing the used memory.

In addition, after the Server app reaches ~500MB of leaked memory, I observed a noticeble CPU usage, even when there are apparently no clients connected.

The attached MRP was tested on 3 PCs: locally, over LAN, and over Internet, in both debug and release builds.

### Steps to reproduce

Testing with the attached MRP:
1. Start the Client and Server apps.
2. Press the button in the Client to add 300 clients. This will add ~75MB to the Server app memory.
3. Close the Client window normally (from X button or Alt+F4). The Server app memory will decrease and the clients will disconnect.
4. Repeat 1 & 2, but this time close the Client app by killing its process from Task Manager (or using the Stop button in the editor). The clients on the Server app will disconnect as usual, but the memory will not decrease.

### Minimal reproduction project (MRP)

[ENet Client Server.zip](https://github.com/user-attachments/files/17449578/ENet.Client.Server.zip)
Repository: ui
Issue: [feat]: unable to verify the first certificate
Labels: area: request

### Feature description

![image](https://github.com/user-attachments/assets/573d9abe-9f16-4aeb-a1df-76dfa28d7f60)

### 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: go
Issue: x/crypto/ssh: Marshal silently ignores fields with unsupported types
Labels: NeedsInvestigation

### Go version

go version go1.23.1 linux/amd64

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

```shell
$ go env
GO111MODULE='on'
GOARCH='amd64'
GOBIN=''
GOCACHE='/home/daniil_stepanenko/.cache/go-build'
GOENV='/home/daniil_stepanenko/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMODCACHE='/home/daniil_stepanenko/go/pkg/mod'
GOOS='linux'
GOPATH='/home/daniil_stepanenko/go'
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/home/daniil_stepanenko/go/go1.23.1'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/home/daniil_stepanenko/go/go1.23.1/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='go1.23.1'
GODEBUG=''
GOTELEMETRY='local'
GOTELEMETRYDIR='/home/daniil_stepanenko/.config/go/telemetry'
GCCGO='gccgo'
GOAMD64='v1'
AR='ar'
CC='gcc'
CXX='g++'
CGO_ENABLED='1'
GOMOD='/home/daniil_stepanenko/work/upstream/gomplate/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 -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build2364282043=/tmp/go-build -gno-record-gcc-switches'
```


### What did you do?

https://go.dev/play/p/D6fgIrq7PpV

### What did you see happen?

Marshal succeeds, but its result cannot be used. Unmarshal returns an error.

```
prog.go:24: ssh: unmarshal error for field E of type PublicKey: unsupported type: int
prog.go:25: ssh: short read
prog.go:36: ssh: unmarshal error for field E of type PublicKey: unsupported type: int
prog.go:37: ssh: short read
```

### What did you expect to see?

ssh.Marshal+ssh.Unmarshal work successfully with rsa.PublicKey (and keys of other algorithms)

Or at least Marshal panics when it encounters a public field without the `ssh:"skip"` tag on an unsupported type.
Repository: deno
Issue: node:http IncomingMessage and ServerResponse don't emit close event
Labels: bug,node compat,node:http

Version: Deno 2.0.1

`node:http`'s `IncomingMessage` and `ServerResponse` streams don't emit the `close` event.

Reproduction:

```js
import { createServer } from "node:http";

createServer((req, res) => {
  req.once("close", () => {
    console.log("Request closed");
  });

  res.once("close", () => {
    console.log("Response closed");
  });
}).listen(3000);
```

Run the above script with `deno run -A close.js`, and then, in a separate terminal, run the following:

```
curl --request GET --no-buffer http://localhost:3000
```

Then cancel the request by pressing Ctrl+C. Node will output the expected messages while Deno won't output anything.

This is important because it can cause resource leaks when using server-sent events and similar long polling responses.
Repository: deno
Issue: Installation fails on Windows
Labels: windows,needs info

Version: Deno 2.0.2

On Windows 11, I'm running the install command using PowerShell:
`irm https://deno.land/install.ps1 | iex` 

The command fails, giving this error:
```
curl: (35) schannel: next InitializeSecurityContext failed: CRYPT_E_NO_REVOCATION_CHECK (0x80092012)
 + CategoryInfo : ObjectNotFound: (C:\Users\MyUser\.deno\bin\deno.zip:String) [Remove-Item], ItemNotFoundException
 + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.RemoveItemCommand
```
Repository: deno
Issue: `deno add npm:@aws-cdk/aws-ecs` appears to hang forever
Labels: bug,install

Version: Deno 2.0.0-2.0.2

Based on the debug logs, it appears to be some kind of issues with deduplicating dependencies as it does resolution.
Repository: ollama
Issue: New professional model for analyzing images of human organs
Labels: model request

A digital vision model that shows excellent results in image analysis https://developer.nvidia.com/blog/ai-medical-imagery-model-offers-fast-cost-efficient-expert-analysis/

Here is the model itself https://github.com/cozygene/SLIViT
Repository: neovim
Issue: :substitute \= has unexpected behavior
Labels: bug,inccommand

### Problem

When using \=expression in substitute command, the expression runs before the user hits enter, and causing unexpected behavior.

https://github.com/user-attachments/assets/46384d0d-78ed-4f25-84a9-4a3eccfd7d1d

### Steps to reproduce

Type these keys:
```
nvim --clean
aa<esc>
:%s/a/\=setreg("a",submatch(0))<esc>
:reg
```

The output is:
```
Type Name Content
  c  "a   a
  c  "*   :%s/a/\=setreg("a",submatch(0))
  c  "+   :%s/a/\=setreg("a",submatch(0))
  c  ".   a
```

Note the "a is filled by substitute command, even the user doesn't actually run it.

### Expected behavior

Prevent side effect when using expression substitution.

### Nvim version (nvim -v)

NVIM v0.10.2 Build type: Release LuaJIT 2.1.1713484068

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

no, since vim doesn't show substitution result in real-time.

### Operating system/version

6.11.3-arch1-1

### Terminal name/version

wezterm 20240203-110809-5046fc22

### $TERM environment variable

xterm-256color

### Installation

bob install stable
Repository: go
Issue: x/tools/gopls: handle undefined struct type in `undeclaredname` autofix code action
Labels: FeatureRequest,gopls,Tools

### gopls version

golang.org/x/tools/gopls v0.16.2

### go env

```shell
not relevant
```


### What did you do?

I ran an autofix code action for an undefined struct.

![image](https://github.com/user-attachments/assets/3b333c7a-3c6c-4663-97c9-a45324cf6a4c)


### What did you see happen?

`gopls` generated a new variable instead of a struct type definition.
This is nonsensical from a user point of view & also doesn't compile.

![image](https://github.com/user-attachments/assets/7453a996-5ec5-435f-a207-deea00f172ca)

### What did you expect to see?

A struct type definition above the function body.

<img width="966" alt="image" src="https://github.com/user-attachments/assets/ace05132-91ca-4eaa-a8f2-9bd071c6919e">

### Editor and settings

_No response_

### Logs

_No response_
Repository: godot
Issue: writing to `POSITION` gives wrong `VIEW` in fragment shader
Labels: enhancement,discussion,documentation,topic:shaders

### Tested versions

stable 4.3

### System information

Kubuntu 22.04

### Issue description

If you write to `POSITION` to make a full screen post processor, then your `VIEW` vector will become invalid and you have to calculate it manually.
What i observe that if i write to `POSITION` then the `VIEW` variable will become affected by camera translation.

### Steps to reproduce

write to POSITION

### Minimal reproduction project (MRP)

[viewbugreport.zip](https://github.com/user-attachments/files/17450091/viewbugreport.zip)
Repository: pytorch
Issue: batch_first support for multi_head_attention_forward
Labels: module: nn,triaged,module: sdpa

### 🚀 The feature, motivation and pitch

I want to pass in batch/B/N as the first dimension. torch.nn.MultiheadAttention module supports this via the `batch_first` argument. 

However the functional version of multihead attention i.e. multi_head_attention_forward() in [pytorch/torch/nn/functional.py](https://github.com/pytorch/pytorch/tree/main) does not take that argument. 

I know that I can transpose the dimensions to have it work like so:
```
t_first_x = x.permute(1,0,2)
torchfnc = torch.nn.functional.multi_head_attention_forward(t_first_x,t_first_x,t_first_x
                                                            ...)
```

but I thought I should be a simple addition to the function to make it consistent with non-functional one.


cc @albanD @mruberry @jbschlosser @walterddr @mikaylagawarecki @bhosmer @cpuhrsch @erichan1 @drisspg
Repository: kubernetes
Issue: OpenAPI Markdown transformation doesn't handle code blocks well
Labels: kind/bug,lifecycle/stale,wg/api-expression,needs-triage

We should [render code blocks properly in OpenAPI](https://github.com/kubernetes/kube-openapi/pull/482).

Right now we don't.

---

There is possibly an argument for not using code blocks in the API reference (for example, if we want equations, there may be better options), but equally we may want labelled code blocks where we put eg MathML or LaTex inside a block and have a downstream renderer do something clever).

For now, let's find a basic fix.

/wg api-expression
Repository: neovim
Issue: cursor position wrong after wrapped unicode line
Labels: bug,tui,display,unicode  💩

### Problem

When the string "नमस्कार" is encountered after a soft-wrapped line, the insert mode cursor is always one position ahead of where the characters are actually inserted.

This is the cursor right after pressing `A`:
![Image](https://github.com/user-attachments/assets/991703b2-e7f7-46c0-8079-21f15dbac364)

If I type `a` it goes right beside the "'" but the cursor is one position ahead
![Image](https://github.com/user-attachments/assets/e07926a0-37a2-4deb-ae46-0da314535c0f)

If I type `backspace` right after `A` it deletes the ' even though visually the cursor is far away:
![Image](https://github.com/user-attachments/assets/7127943e-bd9a-44b2-b3fb-8fe672483905)

### Steps to reproduce

```
echo "Very long string that spans at least one line of the terminal, very very very very very very long string 'नमस्कार'" > /tmp/unicodebug.txt 
nvim --clean /tmp/unicodedebug.txt
:set wrap
```
Then press `A` to go to the last character of the line and start inserting characters, the cursor appears one position ahead of where it should be

### Expected behavior


On insert mode the characters are inserted directly on top of the cursor.

### Nvim version (nvim -v)

 NVIM v0.10.2 Build type: RelWithDebInfo LuaJIT 2.1.1727870382

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

No, Vim 9.1.2024 works as expected

### Operating system/version

 6.11.1-arch1-1

### Terminal name/version

 wezterm 20240203-110809-5046fc22

### $TERM environment variable

xterm-256color

### Installation

`pacman -S neovim`
Repository: rust
Issue: rustdoc should link to its current version of the rustdoc book
Labels: T-rustdoc,C-enhancement,A-rustdoc-ui

currently, rustdoc just links to https://doc.rust-lang.org/rustdoc/

this could lead to confusion for old crates on docs.rs when someone tries to use a new feature and it doesn't work.

perhaps, rustdoc 1.80.1 should link to https://doc.rust-lang.org/1.80.1/rustdoc/ and other versions should link to their matching documentation...

<!-- TRIAGEBOT_START -->

<!-- TRIAGEBOT_ASSIGN_START -->

<!-- TRIAGEBOT_ASSIGN_DATA_START$${"user":"poliorcetics"}$$TRIAGEBOT_ASSIGN_DATA_END -->

<!-- TRIAGEBOT_ASSIGN_END -->
<!-- TRIAGEBOT_END -->
Repository: pytorch
Issue: torch.div throws a floating point exception when rounding_mode is `trunc` or `floor`
Labels: module: crash,triaged,module: intel,module: python frontend,module: edge cases

### 🐛 Describe the bug

Here is the code to reproduce:

```
import torch
x = torch.tensor([-2147483648], dtype=torch.int32)
y = torch.tensor([-1], dtype=torch.int32)
torch.div(x, y, rounding_mode='trunc')
```

When `x=-2147483648` and `y=-1`, setting the rounding_mode to `trunc` or `floor` will lead to a floating point exception. Instead, when not specifying rounding_mode (rounding_mode is None), this API will not crash.

### Versions

[conda] numpy                     1.26.2                   pypi_0    pypi
[conda] nvidia-cublas-cu12        12.1.3.1                 pypi_0    pypi
[conda] nvidia-cuda-cupti-cu12    12.1.105                 pypi_0    pypi
[conda] nvidia-cuda-nvrtc-cu12    12.1.105                 pypi_0    pypi
[conda] nvidia-cuda-runtime-cu12  12.1.105                 pypi_0    pypi
[conda] nvidia-cudnn-cu12         9.1.0.70                 pypi_0    pypi
[conda] nvidia-cufft-cu12         11.0.2.54                pypi_0    pypi
[conda] nvidia-curand-cu12        10.3.2.106               pypi_0    pypi
[conda] nvidia-cusolver-cu12      11.4.5.107               pypi_0    pypi
[conda] nvidia-cusparse-cu12      12.1.0.106               pypi_0    pypi
[conda] nvidia-nccl-cu12          2.20.5                   pypi_0    pypi
[conda] nvidia-nvjitlink-cu12     12.3.101                 pypi_0    pypi
[conda] nvidia-nvtx-cu12          12.1.105                 pypi_0    pypi
[conda] optree                    0.11.0                   pypi_0    pypi
[conda] torch                     2.4.1                    pypi_0    pypi
[conda] triton                    3.0.0                    pypi_0    pypi

cc @ezyang @gchanan @zou3519 @kadeng @msaroufim @frank-wei @jgong5 @mingfeima @XiaobingSuper @sanchitintel @ashokei @jingxu10 @albanD
Repository: deno
Issue: Export feature for P-521 and X25519 cryptoKey
Labels: feat,web,ext/crypto,crypto

It would be better if Deno fully support for Webcrypto API,..

I have tested that deno can create P-521 and X25519 cryptoKey like a charm.
**P-521 cryptoKey**
- [ ] export to JWK failed on both private and public key - `NotSupportedError: Unsupported namedCurve`
- [ ] export to RAW failed - `TypeError: expected valid private EC key`

**X25519 cryptoKey**
- [ ] export to JWK failed on private key only - `NotSupportedError: Not implemented`