sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: vscode
Issue: Expose API/configuration to add supported language IDs for `typescript-language-features`
Labels: feature-request,api,typescript

<!-- ⚠️⚠️ Do Not Delete This! feature_request_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->

<!-- Describe the feature you'd like. -->

We are migrating the Vue Language Features extension from our own TS LSP server to the TS plugin. I found that some features of `typescript-language-features` cannot be configured. I can only modify `typescript-language-features` in a very hacky way. Code to add supported language mode:

https://github.com/vuejs/language-tools/pull/3788/files#diff-3c2b2dc57146f5d52dc996ede798d28b5e6163dcd75762900a25803398a099edR187-R207

I think it is feasible to expose a function like `addSupportedLanguageMode()` through [`getAPI()`](https://github.com/microsoft/vscode/blob/46a233646602c378c2168fa2a104dff8e8551558/extensions/typescript-language-features/src/api.ts#L21), or configure through contributions.

In addition to Vue, Astro, MDX, and Svelte may also be migrated to TS plugin soon, which will be helpful for related extensions.
Repository: godot
Issue: Linking .NET Godot project files into iOS XCode project breaks build
Labels: enhancement,documentation,topic:dotnet

### Tested versions

- Reproducible in 4.2.1 RC1

### System information

M1 MacBook Pro, macOS Sonoma 14.0, Xcode 15.0

### Issue description

When I follow the guide outlined under "Active development considerations": https://docs.godotengine.org/en/latest/tutorials/export/exporting_for_ios.html#active-development-considerations

This does not work for me when using Godot 4.2.1 RC1 .NET Version.

I follow the exact steps to reproduce, the build *does work* but as soon as it starts up on device, Godot crashes with
```
USER ERROR: AudioOutputUnitStart failed, code: -50
   at: start (drivers/coreaudio/audio_driver_coreaudio.cpp:251)
Godot Engine v4.2.1.rc1.mono.official.daeb1c729 - https://godotengine.org
USER ERROR: AudioOutputUnitStart failed, code: -50
   at: start (drivers/coreaudio/audio_driver_coreaudio.cpp:251)
```


### Steps to reproduce

New empty project with a single C# script attached to a node, printing `GD.Print("Hello, world!");` in `_Ready()`
Build project, export for iOS, follow the steps here: https://docs.godotengine.org/en/latest/tutorials/export/exporting_for_ios.html#active-development-considerations

Build for iOS, run on device, crash.

### Minimal reproduction project (MRP)

N/A
Repository: node
Issue: --dns-result-order=ipv4first not being respected for a custom .npmrc registry
Labels: dns,net,npm

### Version

v20.10.0

### Platform

Centos 7  Linux 3.10.0-1160.76.1.el7.x86_64 #1 SMP Wed Aug 10 16:21:17 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

### Subsystem

_No response_

### What steps will reproduce the bug?

I have a custom registry for my company set in .npmrc. This has been working for many years. I recently upgraded from nodejs v16 to nodejs v20 and I am facing sporadic failures with trying to "`npm install`" our internal registry.

After a lot of googling I see that in v17, the IP addresses to resolve the registry are now returned in a somewhat random order. It seems that my issue is when the IPv6 address is being used.

I have tried the setting` --dns-result-order=ipv4first` in many ways, i.e. running "`node --dns-result-order=ipv4first npm install`" and also "`export NODE_OPTIONS=--dns-result-order=ipv4first`" but neither seem to work.

Only completely disabling IPv6 in my Centos 7 machine allows me to install our internal npm modules.

Is the `--dns-result-order=ipv4first` setting being ignored?

When I do `node -h` I do not even see NODE_OPTIONS as one of the available environment variables either.

And yes, I have deleted the proxy config as per my googling of this issue but it didn't help:

npm config delete http-proxy
npm config delete https-proxy
npm config rm proxy
npm config rm https-proxy
set HTTP_PROXY=null
set HTTPS_PROXY=null

Please help!

### How often does it reproduce? Is there a required condition?

_No response_

### What is the expected behavior? Why is that the expected behavior?

_No response_

### What do you see instead?

$ node --dns-result-order=ipv4first /usr/bin/npm install @xxx/YYYYY
npm ERR! code ETIMEDOUT
npm ERR! errno ETIMEDOUT
npm ERR! network request to https://my-custom-registry failed, reason: 
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network 
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly.  See: 'npm help config'


### Additional information

As mentioned above. Disabling IPv6 in my Centos 7 machine fixes the issue. But shouldn't the `--dns-result-order=ipv4first ` essentially do the same without having to do a machine wide config change?
Repository: PowerToys
Issue: Executables are not picked up from custom program sources
Labels: Issue-Bug,Product-PowerToys Run,Status-In progress,Run-Results (Programs)

### Microsoft PowerToys version

0.76.1

### Installation method

GitHub

### Running as admin

No

### Area(s) with issue?

PowerToys Run

### Steps to reproduce

1. Assuming you have a directory `C:\Tools` with a suite of executables, e.g. download and extract SysInternals suite from `https://download.sysinternals.com/files/SysinternalsSuite.zip`.
2. Exit PowerToys if it is currently running.
3. Edit `%LocalAppData%\Microsoft\PowerToys\PowerToys Run\Settings\Plugins\Microsoft.Plugin.Program\ProgramPluginSettings.json`
4. Change ProgramSources to
```
"ProgramSources": [
   {
     "Location": "C:\\Tools",
     "Enabled": true,
     "UniqueIdentifier": "d379c7a9-bcfc-4edf-86b8-a256222558c2"
   }
]
```
5. Start PowerToys.
6. Open Run dialog (Alt+Space).
7. Search for `procexp`.

### ✔️ Expected Behavior

`C:\Tools\procexp.exe` is found.

### ❌ Actual Behavior

`C:\Tools\procexp.exe` is not found. No exe, bat etc are found, only shortcuts, despite the fact that the default settings file contains:
```
  "ProgramSuffixes": [
    "bat",
    "appref-ms",
    "exe",
    "lnk",
    "url"
  ],
```

### Other Software

_No response_
Repository: vscode
Issue: SSH Host File - Grouping several servers
Labels: feature-request,ssh

<!-- ⚠️⚠️ Do Not Delete This! feature_request_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->

<!-- Describe the feature you'd like. -->
Hello,
I have several ssh hosts in the related config file. I would like to be able to groups them.
I have 3 ssh host per application (I have severals) I manage (D, UAT, P) for the time being they are listed one after the other in the same order as they are defined in the config file. Likewise, I put in the Host the server name, the acronym of the app, and it related environment (e.g. srv1-appn-d, srv2-appn-a and svr3-appn-p).
And so on for each of my apps.
I know it is purely visual, but it would be great to have a way to group them.


Group APPN
  Host srv1-d
    HostName yyyy
    User xxxx
    IdentityFile zzzz
  Host srv2-a
    HostName yyyy
    User xxxx
    IdentityFile zzzz
  Host srv3-p
    HostName yyyy
    User xxxx
    IdentityFile zzzz

Group APPN2
  Host srv1-d
    HostName yyyy
    User xxxx
    IdentityFile zzzz
  Host srv2-a
    HostName yyyy
    User xxxx
    IdentityFile zzzz
  Host srv3-p
    HostName yyyy
    User xxxx
    IdentityFile zzzz

So in the remote explorer we will have, under the SSH, collapsible group making it more readable.

Thank you
Repository: pytorch
Issue: Can PyTorch support using custom compilers for model's components and the Inductor compiler for the model?
Labels: feature,triaged,oncall: pt2,module: dynamo

### 🚀 The feature, motivation and pitch

```python
import torch
from torch._dynamo.eval_frame import _debug_get_cache_entry_list

def mycompiler(gm: torch.fx.GraphModule, example_inputs):
    return torch.jit.trace(gm.forward, example_inputs)

def pre_break_graph(model, inputs):
    if torch.sum(inputs[0])>1:
        return inputs

def after_break_graph(model, inputs, outputs):
    if torch.sum(outputs[0])>1:
        return outputs

class Sub1(torch.nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = torch.nn.Linear(10, 10)
        # self.register_forward_pre_hook(pre_break_graph)
        # self.register_forward_hook(after_break_graph)


    def forward(self, x):
        x = x+1
        return self.linear(x)

class Sub2(torch.nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = torch.nn.Linear(10, 10)
        # self.register_forward_pre_hook(pre_break_graph)
        # self.register_forward_hook(after_break_graph)

    def forward(self, x):
        x = x+2
        return self.linear(x)

class Model(torch.nn.Module):
    def __init__(self):
        super().__init__()
        self.sub1 = Sub1()
        self.sub2 = Sub2()

    def forward(self, x):
        x = self.sub1(x)
        x = x + 100
        x = self.sub2(x)
        return x



if __name__=="__main__":
    m = Model()
    for name, sub in m._modules.items():
        if name == "":
            continue
        opt_sub = torch.compile(sub, backend=mycompiler)
        m.register_module(name, opt_sub)

    opt_m = torch.compile(m, backend="inductor")
    res = opt_m(torch.ones(10, 10))
    print(opt_m.forward)
```
code like this does not work. 

### Alternatives

_No response_

### Additional context

_No response_

cc @ezyang @anijain2305 @chauhang @penguinwu @voznesenskym @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @chenyang78 @kadeng @amjames @msaroufim @wconstab @bdhirsh @zou3519
Repository: PowerToys
Issue: Add Binary Gcode (.bgcode) support for thumbnails
Labels: Idea-Enhancement,Help Wanted,Product-File Explorer

### Description of the new feature / enhancement

Prusa has moved to using .bgcode for their Mk4 and XL printers. The File Explorer add-ons already supports .gcode, so hopefully this shouldn't be too much of a stretch to support.

### Scenario when this would be used?

For displaying thumbnails of binary gcode files.

### Supporting information

Binary gcode is very similar to regular ASCII gcode and Prusa already offers a [library](https://github.com/prusa3d/libbgcode) to read or convert between the two. By default, Prusa Slicer now embeds both QOI and PNG images for the Mk4 and XL printers.
Repository: rust
Issue: Should we seal `FileExt`, `MetadataExt` and `OpenOptionsExt`?
Labels: T-libs-api,C-discussion

context https://github.com/rust-lang/rust/issues/118795#issuecomment-1848998350
Repository: PowerToys
Issue: Powertoys cannot be installed/uninstalled
Labels: Issue-Bug,Area-Setup/Install,Needs-Triage

### Microsoft PowerToys version

0.76

### Installation method

GitHub

### Running as admin

None

### Area(s) with issue?

General

### Steps to reproduce


https://github.com/microsoft/PowerToys/assets/101560143/bf0e183e-1044-4a46-80a5-2caaa5c51da5
The following window is displayed during the installation process.
![屏幕截图 2023-12-11 155324](https://github.com/microsoft/PowerToys/assets/101560143/0f6a927b-c1c9-4119-92d5-d90edccef702)
Here is the log file.
[powertoys-bootstrapper-msi-0.76.1_20231211155053.log](https://github.com/microsoft/PowerToys/files/13632581/powertoys-bootstrapper-msi-0.76.1_20231211155053.log)


### ✔️ Expected Behavior

I previously modified the volume label of the disk where the application is located and found that it cannot be uninstalled. After using Geek Uninstaller to forcefully uninstall the software, the application cannot be found in the application list, and then I used https://github.com/microsoft/powertoys/tree/main/tools/cleanup_tool_powershell_script. The I start the installation file as shown in the figure.
Sorry, I accidentally closed the issue before, so I am resubmitting it.

### ❌ Actual Behavior

_No response_

### Other Software

_No response_
Repository: opencv
Issue: Java multi-threaded call to org.opencv.imgproc.Imgproc.findContours causes the runtime environment to crash
Labels: bug,incomplete,needs reproducer

### System Information

OpenCV version: 4.8.0
Operating System / Platform: Ubuntu 22.04
Compiler & compiler version: gcc version 11.4.0 (Ubuntu 11.4.0-1ubuntu1~22.04) 

### Detailed description

Call org.opencv.imgproc.Imgproc.findContours using multiple threads.

this is log file.
[hs_err_pid1.log](https://github.com/opencv/opencv/files/13632806/hs_err_pid1.log)


### Steps to reproduce

1. build docker image.

```
FROM mcr.microsoft.com/playwright/java:v1.36.0

COPY ./opencv-4.8.0.tar.gz ./

ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

RUN apt-get update && apt-get install -y ant --no-install-recommends \
            tzdata build-essential cmake pkg-config libgtk2.0-dev \
            curl ca-certificates libcurl4-openssl-dev libssl-dev \
            libavcodec-dev libavformat-dev libswscale-dev libtbb2 libtbb-dev \
            libjpeg-turbo8-dev libpng-dev libtiff-dev libdc1394-dev nasm && \
            rm -rf /var/lib/apt/lists/* && \
            tar -zxvf opencv-4.8.0.tar.gz && \
            rm opencv-4.8.0.tar.gz && \
            cd opencv-4.8.0 && \
            cmake -S . -B build -D CMAKE_BUILD_TYPE=RELEASE \
                  -D CMAKE_INSTALL_PREFIX=/usr/local/opencv \
                  -D OPENCV_ENABLE_NONFREE=ON \
                  -D BUILD_opencv_java=YES \
                  -D BUILD_opencv_python2=NO \
                  -D BUILD_opencv_python3=NO && \
                  cd build && \
                  make -j $(nproc --all) && \
                  make install
```
2. Call org.opencv.imgproc.Imgproc.findContours using multiple threads in docker container.

```java
Imgproc.findContours(
        locationMat,
        locationContours,
        locationHierarchy,
        Imgproc.RETR_EXTERNAL,
        Imgproc.CHAIN_APPROX_SIMPLE)
```
### Issue submission checklist

- [X] I report the issue, it's not a question
- [x] I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
- [x] I updated to the latest OpenCV version and the issue is still there
- [x] There is reproducer code and related data files (videos, images, onnx, etc)
Repository: vscode
Issue: Click scroll bar by page not smooth(Editor,Workbench list )
Labels: bug,editor-scrollbar

<!-- ⚠️⚠️ 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/No

<!-- 🪓 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.85.0 (user setup)
- OS Version: Windows_NT x64 10.0.22631

Steps to Reproduce:

1. enable "editor.scrollbar.scrollByPage", "workbench.list.scrollByPage". Let you click the scrollbar to scroll by page, not go to position.
2. enable "workbench.list.smoothScrolling", "editor.smoothScrolling"
3. You can find that click scrollbar is not scrolling smooth. But it can scroll smoothly using keyboard or mouse wheel.

And last, click terminal panel scrollbar by page is always smooth. Not controled by "terminal.integrated.smoothScrolling".
Repository: excalidraw
Issue: Question: How do I hide the default library button?
Labels: enhancement

I would like to hide the button that opens the library. Is there a way to do this?

![chrome_j0QkzDOieh](https://github.com/excalidraw/excalidraw/assets/55281206/fbb31dd8-a1c3-45b5-908e-9eca6cd4f3a1)
Repository: ollama
Issue: Ollama API Documentation: Error responses are not defined.
Labels: documentation,api

I received a 500 Internal Server error as a response when using Ollama MacOS and Ollama-UI.
This made me realise that errors are not mentioned in [Ollama's documentation](https://github.com/jmorganca/ollama/blob/main/docs/api.md), so other projects are unable to implement it in their proxy. 

Here is the Ollama logs dump for my issue: https://github.com/ollama-webui/ollama-webui/issues/193#issuecomment-1849616910

Can we have Errors returned by each API in the documentation?
Repository: godot
Issue: If the window size is very large, the game freezes and begins to consume RAM.
Labels: bug,topic:rendering,needs testing

### Tested versions

4.2-stable

### System information

Godot v4.2.stable.mono - Arch Linux #1 SMP PREEMPT_DYNAMIC Fri, 08 Dec 2023 17:06:25 +0000 - Wayland - Vulkan (Forward+) - dedicated AMD Radeon RX 570 Series (RADV POLARIS10) () - AMD Ryzen 5 3600 6-Core Processor (12 Threads)

### Issue description


When resizing a window with stretch enabled on the subviewportconteiner it causes heavy RAM consumption leading to OOM and the PC freezing (not visible in the video, it just broke)

https://github.com/godotengine/godot/assets/55760436/61053f32-6017-486f-96e6-a66322e8b806

### Steps to reproduce

Launch the game and increase the window size until this problem occurs (with SubViewportContainer the bug is reproduced at a lower resolution)

### Minimal reproduction project (MRP)

N/A
Repository: vscode
Issue: Support more than 32 modifiers for Semantic Tokens
Labels: feature-request,api,semantic-tokens

<!-- ⚠️⚠️ Do Not Delete This! feature_request_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->

<!-- Describe the feature you'd like. -->

While experimenting with the [semantic-tokens-sample](https://github.com/microsoft/vscode-extension-samples/tree/88b8e4af531693ef1eaa3fdbc07f962302bc031a/semantic-tokens-sample), I noticed that the included modifier encoding implementation only handles up to 32 modifiers.

**Reference:**  
- [_encodeTokenModifiers](https://github.com/microsoft/vscode-extension-samples/blob/88b8e4af531693ef1eaa3fdbc07f962302bc031a/semantic-tokens-sample/src/extension.ts#L54-L65)
- [provideDocumentSemanticTokens](https://github.com/microsoft/vscode/blob/d4ca08f0976af1d9fe675d631e9e3cad52f1d00a/src/vs/vscode.d.ts#L3327C4-L3330)
- [Semantic Tokens API](https://github.com/microsoft/vscode/issues/86415#issuecomment-587327402)

---

If there's a recommended way of handling more than that, it would be very useful to have a reference example.

If it's not currently possible, perhaps the API could implement a user-provided means of handling encoding & decoding of modifiers.
Repository: angular
Issue: Document how to properly set status codes when using SSR
Labels: P3,area: docs

### Describe the problem that you experienced

For pages such as 404, 403, 500 etc. you need to set their respective status codes or they're treated as 200. However, the documentation doesn't mention this anywhere.

### Enter the URL of the topic with the problem

https://angular.dev/guide/ssr

### Describe what you were looking for in the documentation

Code examples and descriptions of how to set status codes on the response from the server when using SSR.

### Describe the actions that led you to experience the problem

I was upgrading from v16 to v17, and with that came a new way of handling this. However, you're forced to dig through issues, or in my case, a commit for a new migration that shows what the code should look like after the migration runs (in my case it didn't even run, so had to do it manually). 

And even after all that, the code is still not working in production. I've provided the REQUEST and RESPONSE injection tokens in `server.ts` and then injected this into my 404 page component where I set the status, but the status is always 200 after navigating to the 404 route.

You can see the code for this here:

https://stackoverflow.com/questions/77619409/angular-17-ssr-setting-status-on-response-doesnt-work-despite-using-injectionto

### Describe what you want to experience that would fix the problem

I want the documentation page for SSR to properly and thoroughly describe how to add this (including code examples), and also how it works. Because right now it's very difficult to understand what to do, and I've seen multiple questions and issues on this. If the documentation would just state how to do this it will save a lot of people time and frustration.
Repository: pytorch
Issue: DISABLED test_silu_cuda_cuda_wrapper (__main__.TestCudaWrapper)
Labels: module: rocm,triaged,module: flaky-tests,skipped,module: inductor

Platforms: rocm

This test was disabled because it is failing in CI. See [recent examples](https://hud.pytorch.org/flakytest?name=test_silu_cuda_cuda_wrapper&suite=TestCudaWrapper) and the most recent trunk [workflow logs](https://github.com/pytorch/pytorch/runs/19506535522).

Over the past 3 hours, it has been determined flaky in 2 workflow(s) with 2 failures and 2 successes.

**Debugging instructions (after clicking on the recent samples link):**
DO NOT ASSUME THINGS ARE OKAY IF THE CI IS GREEN. We now shield flaky tests from developers so CI will thus be green but it will be harder to parse the logs.
To find relevant log snippets:
1. Click on the workflow logs linked above
2. Click on the Test step of the job so that it is expanded. Otherwise, the grepping will not work.
3. Grep for `test_silu_cuda_cuda_wrapper`
4. There should be several instances run (as flaky tests are rerun in CI) from which you can study the logs.


Test file path: `inductor/test_cpp_wrapper.py`

cc @jeffdaily @sunway513 @jithunnair-amd @pruthvistony @ROCmSupport @dllehr-amd @jataylo @hongxiayang @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @peterbell10 @ipiszy @yf225 @chenyang78 @kadeng @muchulee8 @aakhundov @ColinPeppler
Repository: deno
Issue: Unexpected return from `input` function on Windows
Labels: bug,web

Version: Deno 1.38.5
Shell: pwsh

# Reproduction
```js
let x = prompt(">");
console.log(`${x}\n${new TextEncoder().encode(x)}`);
```
# Result
## My local machine (Polish locale)
```
> Hello! ążć
Hello! ���
72,101,108,108,111,33,32,239,191,189,239,191,189,239,191,189
```
## Windows VPS (US locale)
```
> Hello! ążć
Hello! azc
72,101,108,108,111,33,32,97,122,99
```
## Expected
```
> Hello! ążć
Hello! ążć
72,101,108,108,111,33,32,196,133,197,188,196,135
```