sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: vscode
Issue: Consider to move `NotebookContribution` off blocking startup
Labels: debt,perf-startup

Refs: https://github.com/microsoft/vscode/issues/203947

Today, the notebook contribution blocks startup:

https://github.com/microsoft/vscode/blob/6b1906a0ecc930c2214ef0b4ca36d228eef2535b/src/vs/workbench/contrib/notebook/browser/notebook.contribution.ts#L226

We have support to instantiate a contribution only when a certain editor kind opens:

https://github.com/microsoft/vscode/blob/6b1906a0ecc930c2214ef0b4ca36d228eef2535b/src/vs/workbench/common/contributions.ts#L72-L78

I wonder if we could adopt this for this kind of contribution.
Repository: electron
Issue: [Bug]: NoNewPrivs is set to true on app.relaunch() and chromium patch did not fix it
Labels: bug :beetle:,has-repro-gist,stale,29-x-y

### Preflight Checklist

- [X] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/main/CONTRIBUTING.md) for this project.
- [X] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/main/CODE_OF_CONDUCT.md) that this project adheres to.
- [X] I have searched the [issue tracker](https://www.github.com/electron/electron/issues) for a bug report that matches the one I want to file, without success.

### Electron Version

29.0.1

### What operating system are you using?

Ubuntu

### Operating System Version

Ubuntu 20.04

### What arch are you using?

x64

### Last Known Working Electron version

_No response_

### Expected Behavior

I setup a basic electron application in the gist that print out the parameters set in /proc/self/status file.
I expected NoNewPrivs to be false (0) in every app instance.
This patch is supposed to allow new privileges for child process https://github.com/electron/electron/blob/3394ee71f008d4655dde3acf883d6c89b994b218/patches/chromium/allow_new_privileges_in_unsandboxed_child_processes.patch

### Actual Behavior

But after relaunching the app, NoNewPrivs is set to true (1) regardless the --no-sandbox flag.

### Testcase Gist URL

https://gist.github.com/iishiishii/f4c7935c13e228c93919b0d8ddc28f67

### Additional Information

Our application requires privileges from host and this bug stops our app on Linux system from working with relaunch feature.
Repository: next.js
Issue: After using getServerSideProps, when the server is redeployed, json and their responses are empty {}.
Labels: bug,Pages Router

### Link to the code that reproduces this issue

https://github.com/rick-liruixin/body-scroll-lock-upgrade/tree/next/examples/next

### To Reproduce

After using getServerSideProps, when the server is redeployed, json and their responses are empty {}.

The code repository address is only a rough code, because it requires redeployment and other operations, and cannot provide a demonstration address

Reproduce the scene:
1, to be replicated in the deployed environment.
2, there are two server rendered a and b pages.
3. Add middleware generateBuildId, e.g. /_next/data/**/*.json
4. Open page a next to the deployment server. The link to go to page b must be displayed on page a. Link or router jump. Do not refresh the page during this period. The browser stays on page a.
5, modify any code and deploy the server again.
6, and then click on the original a page to jump to the B page, you will find that the B page getServerSideProps return is {}

![空对象](https://github.com/vercel/next.js/assets/50647350/d579c027-c0e3-4828-af43-46e551c8a7b8)


### Current vs. Expected behavior

There should be data returned instead of empty objects

### Provide environment information

```bash
Operating System:
  Platform: darwin
  Arch: x64
  Version: Darwin Kernel Version 22.4.0: Mon Mar  6 21:00:17 PST 2023; root:xnu-8796.101.5~3/RELEASE_X86_64
Binaries:
  Node: 18.12.1
  npm: 8.19.2
  Yarn: 1.22.19
  pnpm: 8.2.0
Relevant Packages:
  next: 13.5.6
  eslint-config-next: 13.5.6
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.0.2
Next.js Config:
  output: standalone
```


### Which area(s) are affected? (Select all that apply)

Data fetching (gS(S)P, getInitialProps)

### Which stage(s) are affected? (Select all that apply)

Vercel (Deployed)

### Additional context

_No response_
Repository: ollama
Issue: Madlad400 model
Labels: model request

Hello, I wanted to test [madlad400](https://huggingface.co/jbochi/madlad400-3b-mt/blob/main/model-q4k.gguf) which said to be a great translator model.

I downloaded the GGUF and created a file with models name with only FROM line. It looks like model created but when I test-run it, it outputs 2 empty lines for some reason. And when I specify `--verbose` flag there is no report at the end of inference.

This should work in theory no?
<img width="842" alt="image" src="https://github.com/ollama/ollama/assets/13527277/f1cc65ea-4dd1-4c58-adc4-eb198f087dd3">
Repository: node
Issue: Add test reporter events lifecycle diagram to the docs
Labels: doc,test_runner

What do you say we add a diagram to the docs with the lifecycle of the test with the reporter

Like what event come after what and what is running that causing that

Partial Example: test:start -> running test -> test:pass

Cc @nodejs/test_runner
Repository: ant-design
Issue: 移动端的分页组件-显示更多...部分 明显超出了边界
Labels: Inactive,unconfirmed

### Reproduction link

[https://ant.design/components/pagination-cn](https://ant.design/components/pagination-cn)

### Steps to reproduce

1 使用手机访问 https://ant.design/components/pagination-cn
2 观察 分页组件的...部分明显超出边界
<img width="590" alt="image" src="https://github.com/ant-design/ant-design/assets/32573416/6ca6753a-8807-4bf0-a753-4c83741941ec">

### What is expected?

分页组件... 部分和数字序号同样大小
使用chrome调试移动端可以看到正常情况下的显示
<img width="379" alt="image" src="https://github.com/ant-design/ant-design/assets/32573416/acf4ee51-ebd7-455c-a72d-3690f1c55044">

### What is actually happening?

分页组件的...部分明显超出边界

| Environment | Info |
| --- | --- |
| antd | 5.14.2 |
| React | 18.2.0 |
| System | Android 13 |
| Browser | via  夸克 小米默认 都有这个问题 |

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: go
Issue: proposal: cmd/vet: `unusedresult` should accept a list of functions whose results _may be unused_ (inverse sense to -funcs flag)
Labels: Proposal

### Proposal Details

Similar in spirit to proposal #20803 (for the go compiler), and related to #63689, #14972, and #20148.

I recently lost time on a subtle bug where I forgot to use the result of a function. I tried to simplify the issue to a minimal example:

```go
func f(x float64) float64 {
	math.Sqrt(16.0)  // No warning!?
	return x + 1.0
}
```

Currently, `go vet` will only catch this if I list `-unusedfuncs=math.Sqrt`. But I would only add `math.Sqrt` if I already knew about the bug, which defies the `go vet` purpose. I would like to pass all my projects functions/methods and its dependencies (including standard library) to `-unusedfuncs`.

Instead, can we have an alternative flag `-unusedignorefuncs` (or something else) where one can pass a "blacklist", and every other function whose results are unused are reported back ? (maybe with some defaults, like `fmt.Printf`) ?

I understand a similar point is being made for the compiler (and extra syntax?) in proposal #20803.

Having a "blacklist" option to `go vet` could also be an intermediary solution for that proposal -- for those using `go vet` systematically.
Repository: PowerToys
Issue: Quick select for remote desktop connections in Powertoys Run
Labels: Idea-Enhancement,Product-PowerToys Run,Run-Plugin

### Description of the new feature / enhancement

I have a couple different remote desktop connections I have to access frequently for my job, It would be super nice if there was a shortcut in powertoys run to access the saved connections quickly.

It could work luke the quick access for the Terminal profiles!

### Scenario when this would be used?

Open Powertoys run -> prefix for RDS connections -> all saved connections show in dropdown

### Supporting information

_No response_
Repository: vscode
Issue: Hover over quick pick
Labels: polish,workbench-hover

![Image](https://github.com/microsoft/vscode/assets/1931590/02691faa-eb1e-450d-b781-edbe5306a33d)

I had the mouse over the explorer item and opened quick pick and then the hover popped over the quick pick
Repository: angular
Issue: Add the ability to get reference to component and props
Labels: area: devtools

### Is this a bug report or a feature request?

- [ ] Bug Report
- [X] Feature Request

### Please provide the steps to reproduce the issue [Bug Report only]

_No response_

### Please provide the expected behavior vs the actual behavior you encountered [Bug Report only]

_No response_

### Please provide a screenshot if possible [Bug Report only]

_No response_

### Please provide the exception or error you saw [Bug Report only]

_No response_

### Is this a browser-specific issue? If so, please specify the device, browser, and version. [Bug Report only]

_No response_

### Description [Feature Request only]

![image](https://github.com/angular/angular/assets/40625750/4dad3537-dce7-4051-a23e-92888bcadbae)
It would be very helpful to have the ability to get a reference to the currently clicked component (1) in the tree using a button or icon. Similarly, for component reference properties (2). I know that it is currently possible to get a reference to a component by clicking on it and typing $ng0 in the console, but this is not intuitive and I have the impression that few people remember this option.





### Proposed solution [Feature Request only]

I think it works very well and intuitively in the case of the Injector Tree, where there is an arrow icon that logs the service directly to the console. The same mechanism could work for the Components tab. Just add that icon next to element or prop. :)

![image](https://github.com/angular/angular/assets/40625750/e4663f32-9034-4a92-81a6-1b0e299b1393)

### Alternatives considered [Feature Request only]

_No response_
Repository: stable-diffusion-webui
Issue: 使用同样的参数，通过页面调用没有问题，通过api调用就报错
Labels: bug-report

### Checklist

- [ ] The issue exists after disabling all extensions
- [ ] The issue exists on a clean installation of webui
- [ ] The issue is caused by an extension, but I believe it is caused by a bug in the webui
- [ ] The issue exists in the current version of the webui
- [ ] The issue has not been reported before recently
- [ ] The issue has been reported before but has not been fixed yet

### What happened?

使用同样的参数，通过页面调用没有问题，通过api调用，就一直报上面的错误，

### Steps to reproduce the problem

使用同样的参数，通过页面调用没有问题，通过api调用，就一直报上面的错误，

### What should have happened?

使用同样的参数，通过页面调用没有问题，通过api调用，就一直报上面的错误，

### What browsers do you use to access the UI ?

_No response_

### Sysinfo

使用同样的参数，通过页面调用没有问题，通过api调用，就一直报上面的错误，

### Console logs

```Shell
A tensor with all NaNs was produced in Unet. This could be either because there's not enough precision to represent the picture, or because your video card does not support half type. Try setting the \"Upcast cross attention layer to float32\" option in Settings > Stable Diffusion or using the --no-half commandline argument to fix this. Use --disable-nan-check commandline argument to disable this check.
```


### Additional information

_No response_
Repository: vscode
Issue: [find-replace] [regex-replace] Regex replace named capture group stopped working
Labels: editor-find,under-discussion

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- 🕮 Read our guide about submitting issues: https://github.com/microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions -->
<!-- 🔎 Search existing issues to avoid creating duplicates. -->
<!-- 🧪 Test using the latest Insiders build to see if your issue has already been fixed: https://code.visualstudio.com/insiders/ -->
<!-- 💡 Instead of creating your report here, use 'Report Issue' from the 'Help' menu in VS Code to pre-fill useful information. -->
<!-- 🔧 Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: Yes

<!-- 🪓 If you answered No above, use 'Help: Start Extension Bisect' from Command Palette to try to identify the cause. -->
<!-- 📣 Issues caused by an extension need to be reported directly to the extension publisher. The 'Help > Report Issue' dialog can assist with this. -->

Environment
---
```
Version: 1.86.2 (system setup)
Commit: 903b1e9d8990623e3d7da1df3d33db3e42d80eda
Date: 2024-02-13T19:40:56.878Z
Electron: 27.2.3
ElectronBuildId: 26908389
Chromium: 118.0.5993.159
Node.js: 18.17.1
V8: 11.8.172.18-electron.0
OS: Windows_NT x64 10.0.22631
```

Description
----
Using named capture groups in a find+replace op doesn't seem to work anymore. This worked fine 2 weeks ago, but as of today it doesn't

Steps to Reproduce
----

```
text:         beforetextToMatchAndCaptureafter
regex find:   before(?<g>textToMatchAndCapture)after
replace with: ${g}
expected:     textToMatchAndCapture
received:     ${g}
```

Screenshots
-----
![image](https://github.com/microsoft/vscode/assets/9629574/1e0d1eca-ea52-4f0b-8d2d-98e59c1b42cf)
Repository: ant-design
Issue: 滚动时，Tooltip没有消失
Labels: unconfirmed

### Reproduction link

[https://4x.ant.design/components/tooltip-cn/#components-tooltip-demo-arrow-point-at-center](https://4x.ant.design/components/tooltip-cn/#components-tooltip-demo-arrow-point-at-center)

### Steps to reproduce

鼠标悬浮"边缘对齐"按钮，往下滚动鼠标滚轮，离开该按钮，鼠标不要有位移

### What is expected?

鼠标滚动时Tooltip消失，

### What is actually happening?

鼠标滚动时Tooltip没有消失，但是只要鼠标产生位移，Tooltip就消失了

| Environment | Info |
| --- | --- |
| antd | 4.24.15 |
| React | 18.2 |
| System | windows 10  |
| Browser | Edge 122.0.2365.52 |

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->

![GIF 2024-2-28 18-31-55](https://github.com/ant-design/ant-design/assets/17866683/2cd0355b-2571-4881-a559-8ffe344b4bdb)
Repository: vscode
Issue: Double clicking on outline entry sometimes results in jumping to another item
Labels: bug,tree-widget,outline

See in the screencast how I double click on `_extensionUri`, cursor jumps to that item's `range.start`, but because of "follow cursor", the outline entry focus changes to `constructor`

(Testing with typescript extension-provided outline)

https://github.com/microsoft/vscode/assets/16353531/8394e832-ae09-4164-84be-d659ef96e0b5

(assigning myself as well in case I get around to fixing this)

Version: 1.87.0-insider
Commit: 41e601871ac9e197b6a9245072994f6904addb60
Date: 2024-02-27T10:45:58.586Z
Electron: 27.3.2
ElectronBuildId: 26836302
Chromium: 118.0.5993.159
Node.js: 18.17.1
V8: 11.8.172.18-electron.0
OS: Darwin arm64 23.3.0
Repository: pytorch
Issue: about tensor.new(storage) issue
Labels: needs reproduction,triaged,module: python frontend

### 🐛 Describe the bug

In pytorch 2.1.1+cu118, in this code 
```python
if _use_shared_memory:
            # If we're in a background process, concatenate directly into a
            # shared memory tensor to avoid an extra copy
            numel = sum([x.numel() for x in batch])
            storage = batch[0].storage()._new_shared(numel)
            out = batch[0].new(storage)
```
the out's size is not equal storage ,but in pytorch 1.13.x, they are same, I guess maybe method of tensor.new(storage) is changing or just a bug，so I issue it. 

### Versions

pytorch 2.1.1+cu118

cc @albanD
Repository: tensorflow
Issue: Is there a way to sync the journal of data service with checkpoint?
Labels: stat:awaiting tensorflower,type:support,comp:data,2.6.0

### Issue type

Support

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

No

### Source

source

### TensorFlow version

tf 2.6

### Custom code

No

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

In my app, I set fault_tolerant_mode True with data service, and save_checkpoint_steps is 5000 in tf.train.MonitoredTrainingSession.
For example, the app is killed when the global step is 9500, and then I resume the app with checkpoint from the step 5000, but the data service will continue consume the data from the step 9500. It skip about 4500 steps data.

Is there a way to sync the journal of data service with checkpoint, or make the skip less?

### Standalone code to reproduce the issue

```shell
# dispatcher server snippet
dispatcher_server = tf.data.experimental.service.DispatchServer(
    tf.data.experimental.service.DispatcherConfig(
        fault_tolerant_mode=True,
        work_dir=...
    ))

# train worker
dataset = dataset.apply(tf.data.experimental.service.distribute(service=dispatcher_service,...)

with tf.train.MonitoredTrainingSession(checkpoint_dir=checkpoint_dir,
                                       save_checkpoint_steps=5000, ...) as mon_sess:
```


### Relevant log output

_No response_
Repository: pytorch
Issue: libtorch MultiheadAttention doesn't accept different dimensions for Q, K, V
Labels: module: nn,triaged

### 🐛 Describe the bug

`MultiHeadAttention` is supposed to support different number of features for Q, K, and V, but in practice an error is thrown:
```c++
#include <torch/torch.h>

int main(int ac, char **av) {

  torch::Tensor q = torch::randn({1, 1, 5});
  torch::Tensor k = torch::randn({1, 1, 5});
  torch::Tensor v = torch::randn({1, 1, 4});

  torch::nn::MultiheadAttentionOptions opt(5, 1);
  opt.vdim(4);
  torch::nn::MultiheadAttention multihead_attention(opt);

  multihead_attention->forward(q, k, v);
}
```

```
terminate called after throwing an instance of 'c10::Error'
  what():  key.sizes() == value.sizes() INTERNAL ASSERT FAILED at "torch/csrc/api/include/torch/nn/functional/activation.h":675, please report a bug to PyTorch.
```

BTW, the module doesn't accept unbatched input either, but that is less critical.

### Versions

PyTorch version: 2.2.1

cc @albanD @mruberry @jbschlosser @walterddr @mikaylagawarecki @bhosmer @cpuhrsch @erichan1 @drisspg
Repository: godot
Issue: AudioBus level meters incorrect readout
Labels: bug,topic:audio

### Tested versions

v4.2.1.stable.official [b09f793f5]

### System information

Godot v4.2.1.stable - Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 2060 (NVIDIA; 31.0.15.3758) - AMD Ryzen 5 5600X 6-Core Processor (12 Threads)

### Issue description

Level meters of audio busses read out inaccurate decibels. It looks like the meter simply shows the dB linearly.

I generated a sine-wave signal with amplitude 1.0 in Audacity, so the sound is normalized.

Here are the dB reductions on the AudioStreamPlayer itself, with the level meter readout below.
![image](https://github.com/godotengine/godot/assets/31851431/ac9e0555-a556-43a0-8610-2bc154c8cfa1)

Notice how -40dB goes up halfway the meter, indicating that it's simply doing a linear readout in a range of 0 to -80 (which is I believe the dB range Godot uses), instead of converting with linear_to_db().

Also note how the dB level indicators on the side of the meter are not aligned properly. The skipped bar in the dB meter towards the top indicates 0 dB, however the actual level indicators on the side indicates it several bars lower. This means that even if the dB levels readout is corrected, the information shown to the user will still not be accurate.
I'll create a separate issue post for this though, or a proposal for a UI rework on the audio busses, since this part of the UI feels very rigid and inflexible, unlike most other parts of the editor.

### Steps to reproduce

- Play a normalized constant tone
- Adjust volume dB in the AudioStreamPlayer
- Check level meter readout on bus

### Minimal reproduction project (MRP)

[Issue audiobus levels meter readout incorrect.zip](https://github.com/godotengine/godot/files/14433276/Issue.audiobus.levels.meter.readout.incorrect.zip)
Repository: rust
Issue: "variable possibly uninitialized" diagnostic points to the wrong control flow construct
Labels: A-diagnostics,T-compiler,C-bug,D-confusing,S-has-mcve

<!--
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
fn main() {
    test();
}

fn test() {
    let mut x: i32;
    let a = true;
    
    for i in 0..12 {
        if a {
            x = 5;
        } else {
            return;
        }
        println!("x is initialized in {i}: {x}.");
    }
    
    let z = x;
    println!("{z}");
}
```

I expected to see this happen: *The code compiles and prints the value of z.*

Instead, this happened: *Compilation failed with the following message*

> error[E0381]: used binding `x` is possibly-uninitialized
>   --> src/main.rs:18:13
>    |
> 6  |     let mut x: i32;
>    |         ----- binding declared here but left uninitialized
> ...
> 12 |         } else {
>    |          ------ if the `if` condition is `false` and this `else` arm is executed, `x` is not initialized
> ...
> 18 |     let z = x;
>    |             ^ `x` used here but it is possibly-uninitialized
> 
> For more information about this error, try `rustc --explain E0381`.
> error: could not compile `playground` (bin "playground") due to 1 previous error

I gave a very simple example, the original is much more complex. Here, a is even always true, but the error still appears. In my code, the condition calls a function in each iteration of the loop. Furthermore, the branch it complains about returns, not even reaching the assignment to z below.

To me this seems to be a bug as the code is not asking a ton from the compiler here.

### 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.75.0 (82e1608df 2023-12-21)
binary: rustc
commit-hash: 82e1608dfa6e0b5569232559e3d385fea5a93112
commit-date: 2023-12-21
host: aarch64-unknown-linux-gnu
release: 1.75.0
LLVM version: 17.0.6
```
Happens with 1.76.0 and on nightly as well.