sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: vscode
Issue: Don't rely on QuickInputService in EditorResolverService
Labels: debt,workbench-editor-resolver

I'm trying to allow validation messages in the quick pick to support links. Unfortunately, adding OpenerService to the QuickInputService has left me in a service dependency cycle:

- IQuickInputService
- [IOpenerService](https://github.com/microsoft/vscode/blob/613bac1aa4a8ccd6a11df50158858821ee3d064f/src/vs/editor/browser/services/openerService.ts#L99)
- [ICodeEditorService](https://github.com/microsoft/vscode/blob/613bac1aa4a8ccd6a11df50158858821ee3d064f/src/vs/workbench/services/editor/browser/codeEditorService.ts#L19)
- [IEditorService](https://github.com/microsoft/vscode/blob/613bac1aa4a8ccd6a11df50158858821ee3d064f/src/vs/workbench/services/editor/browser/editorService.ts#L37)
- [IEditorResolverService](https://github.com/microsoft/vscode/blob/613bac1aa4a8ccd6a11df50158858821ee3d064f/src/vs/workbench/services/editor/browser/editorResolverService.ts#L41)
- IQuickInputService

Can we move things around so the resolver service doesn't depend on QuickInput?

Logan had the idea of moving the usage into the commands which makes sense to me.
Repository: stable-diffusion-webui
Issue: [Bug]: TI with xformers AND cross-attention optimization on rtx 3060 results in untrianed embeddings
Labels: bug-report

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What happened?

The TI training process always outputs completely untrained embedding files after switching from an rtx 2060 gpu to rtx 3060, **while xformers AND cross-attention optimization during training are on at the same time**, and the console/interface doesn't throw special errors or notifications.

### Steps to reproduce the problem

1. have a system with an rtx 3060 gpu
2. install sd with the webui
3. enable xformers at launch
4. enable cross-attention optimization during training in the webui settings
5. Train a new embedding
6. test the embedding file in txt2img after ~1000 steps

### What should have happened?

after at least ~1000 steps into the TI process, the embedding should have learned some things that compare decently to the training data

### Commit where the problem happens

ea9bd9fc

### What platforms do you use to access the UI ?

Windows

### What browsers do you use to access the UI ?

Microsoft Edge

### Command Line Arguments

```Shell
--xformers
```


### List of extensions

only the default ones that come with webui

### Console logs

```Shell
i nuked and re-installed sd out of frustration when going back to my rtx2060 and returning the rtx3060, so no logs and also can't reproduce them anymore, but i do recall the console never mentioned anything out of the ordinary wich is what made it extra frustrating in the first place, and every embedding coming out untrained was literally the only way to notice.
```


### Additional information

TI training with cross-attention optimization on rtx 3060 does work when xformers isn't active, but that makes TI veeeery slow.
Also, the rtx 2060 has no problem with batch sizes of 24, while the rtx 3060 somehow makes the console say "out of memory" at just 4.
Repository: PowerToys
Issue: Keep awake until computer restarts
Labels: Idea-Enhancement,Product-Awake

### Description of the new feature / enhancement

Please add option to keep computer awake until next Windows restart.

I think it would be useful to be able to indicate a custom number of hours for which the computer should be active.

### Scenario when this would be used?

When I want to turn the option on for a couple of hours and I'm worried that I'll forget to turn it off afterwards.

### Supporting information

_No response_
Repository: vscode
Issue: [json] formatter: option to keep object in arrays on the same line
Labels: feature-request,json,formatting

<!-- ⚠️⚠️ 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 team,
I am wondering if there is any setting for JSON formatter in VSCode (Not json.format.keepLines) to be able to keep an array in a single line (arrays and array of objects)

JSON expected format:
```
{
  "schemas": {
    "required": ["name"],
    "oneOf": [{
         "$ref": "#/components/schemas/NotFound"
      }, {
         "$ref": "#/components/schemas/ApiNotFound"
      }]
   }
}
```
The present VSCode JSON formatter will format as below:
```
{
  "schemas": {
    "required": [
        "name"
     ],
     "oneOf": [
           {
              "$ref": "#/components/schemas/NotFound"
           },
           {
               "$ref": "#/components/schemas/ApiNotFound"
           }
     ]
  }
}
```
Repository: TypeScript
Issue: Boolean CLI options in standard "--someFlag=someValue" form fail with "error TS5023: Unknown compiler option..."
Labels: Suggestion,Awaiting More Feedback

# Bug Report

tl;dr: User's expect to assign CLI flag options with an equal sign.  E.g.`--flag=value`.  That this fails in `tsc` with an unobvious error is confusing.  It misleads users into thinking there isn't a way of disabling options from the command line. [For example](https://github.com/Microsoft/TypeScript/issues/30661#issuecomment-629780928):
>  Even if you wanted to forgo the speed benefits of "incremental"... you can't turn it off temporarily because there is no --noIncremental (or analogous) flag.

The form above is wide-spread, especially within the JS community ...

* [node's command line options](https://nodejs.org/api/cli.html#options)
* [commander.js options](https://github.com/tj/commander.js#options)
* [yargs options](https://github.com/yargs/yargs#description)
* [minimist options](https://github.com/minimistjs/minimist#example)

### 🔎 Search Terms

`error TS5023: Unknown compiler option`

### 🕗 Version & Regression Information

Boolean CLI options were first introduced in #11798 , but have never supported the standard `--flag=value` format

* [ ] This is a crash
* [ ] This changed between versions ______ and _______
* [x] This is the behavior in every version I tried, and I reviewed the FAQ for entries about _________
* [ ] I was unable to test this on prior versions because _______

### 🙁 Actual behavior

Providing boolean CLI options  like `--incremental=false`, `--noEmit=false`, and so on all result in a `TS5023: Unknown compiler option` error.

### 🙂 Expected behavior

Using the standard double-dash notation of "--flagName=flagValue" (.e.g `--incremental=false`) should work as expected.
Repository: go
Issue: x/sys/unix: xattr functions erroneously pass Go pointers as type uintptr on BSDs
Labels: help wanted,OS-FreeBSD,OS-NetBSD,NeedsFix,compiler/runtime

The [`unsafe.Pointer` rules](https://pkg.go.dev/unsafe#Pointer) allow “conversion of a `Pointer` to a `uintptr` when calling `syscall.Syscall`”, with a caveat:
> If a pointer argument must be converted to uintptr for use as an argument, that conversion must appear in the call expression itself:
> …
> The compiler handles a Pointer converted to a uintptr in the argument list of a call to a function implemented in assembly by arranging that the referenced allocated object, if any, is retained and not moved until the call completes, even though from the types alone it would appear that the object is no longer needed during the call.

The `linux` and `darwin` implementations of the `.*xattr` functions (such as [`Getxattr`](https://pkg.go.dev/golang.org/x/sys/unix#Getxattr)) appear to comply with that requirement.

However, the BSD implementation does not:
https://cs.opensource.google/go/x/sys/+/master:unix/xattr_bsd.go;l=60;drc=4e121b1efb52d0ccc0c89c55272b7c3da9a475f8

Instead of calling `syscall.Syscall` directly, it passes the `dest` pointer to another helper function (such as `ExtattrGetFile`) as type `uintptr`. That can cause a use-after-free bug if the Go garbage collector reclaims or relocates the destination slice concurrently with the system call. (The danger is especially high if the caller happens not to refer to the destination buffer after the call, although that situation is less likely.)

It appears that the erroneous signatures were added in [CL 147850043](https://go.dev/cl/147850043).

Probably this will need to be fixed by adding (unexported?) variants of the `Extattr` functions, with the `data` arguments correctly encoded as type `*byte` or `unsafe.Pointer` instead of `uintptr`, and then switching `Getxattr` and similar to use those safer variants. (For comparison, see the `ioctl` / `ioctlPtr` split on Linux from #44834.)

(attn @golang/freebsd @golang/netbsd; CC  @tklauser @bradfitz @ianlancetaylor)
Repository: TypeScript
Issue: Add semantic token scope for object literal shorthand properties 
Labels: Suggestion,Help Wanted,Experience Enhancement

*TS Template added by @mjbvz*

**TypeScript Version**: 4.9.5

**Search Terms**
- Semantic tokens
- semantic colorization

---

<!-- ⚠️⚠️ 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. -->

I want a way to configure vscode to treat literal property value shorthand as parameter or variable, not just a property key.

![image](https://user-images.githubusercontent.com/3690680/216259026-1c3b4864-abbc-4b1a-91b0-7bce251ddc59.png)
Above is what happend in vscode. I configure a purple color for parameters, but vscode treat literal property value shorthand as "property" key, not "parameter" or "variable". That's bad for me to find out how parameters are processed in a function quickly.

However, webstorm is ok in this case.
![image](https://user-images.githubusercontent.com/3690680/216259174-87e49ca6-99e6-4e8a-8173-7e60337048e9.png)

My settings is as follows:
```
  "editor.tokenColorCustomizations": {
    "[Default Dark+]": {
      "keywords": "#499CD5",
      "textMateRules": [
        { 
          "scope": "variable.parameter",
          "settings": {
            "foreground": "#C288BE"
          }
        },
      ],
    }
  },
```
Repository: storybook
Issue: [Feature Request]: A11Y addon should allow a custom wait time until A11Y is checked
Labels: feature request,addon: a11y

### Is your feature request related to a problem? Please describe

If a story has a brief animation (e.g., an opacity animation), the A11Y check is run at the start of this animation, resulting in erroneous contrast issues being found

### Describe the solution you'd like

A new parameter in the `a11y` object for a story, allowing per-story customization of how long to wait before running the A11Y check

### Describe alternatives you've considered

I've considered turning off animations in Storybook, which obviously would fix the A11Y issue... but then the Storybook story is no longer representative of how the component behaves 

### Are you able to assist to bring the feature to reality?

no

### Additional context

https://master--620e7e7c7297f6003ac9ee5b.chromatic.com/?path=/story/design-system-notice--button is a story in our storybook which exhibits this issue as of 2023-02-07
Repository: storybook
Issue: [Feature Request]: Support @remarks tsdoc block
Labels: feature request,block: argstable,argtypes

### Is your feature request related to a problem? Please describe

Storybook is also a great way for developers to see how components should be used. Sometimes the tsdoc summary isn't quite enough, and the "show source" doesn't show comments. Making custom mdx files just for this is overkill.

### Describe the solution you'd like

Storybook already parses summaries from ts/jsdoc blocks. It would be nice if it could also read the [@remarks](https://tsdoc.org/pages/tags/remarks/) tag and include that content - most likely an "show more" expandable section.

I was asked to make a feature request in discord by Jeppe Reinhold after mentioning the remarks tag.

### Describe alternatives you've considered

Since I was asked to file this issue I haven't really considered alternatives. 

### Are you able to assist to bring the feature to reality?

no

### Additional context

_No response_
Repository: vscode
Issue: Keybindings in the keybindings editor should use <kbd>
Labels: bug,accessibility,keybindings-editor

This is for accessibility to tell assistive technologies that the contents is a keybinding. It would also be good to support `<kbd>` styles generally such that we can use them in markdown so they just work in hovers (https://github.com/microsoft/vscode/issues/173722)
Repository: PowerToys
Issue: [FancyZones Editor] Mark default layouts on the main page
Labels: Idea-Enhancement,FancyZones-Editor,Product-FancyZones,Area-User Interface

> I didn't notice the default option because in custom layout editor page it needs scrolling to be visible and it's not indicated anywhere else - not even an indicator in the layout listing...

Agreed, I saw the default selection on the built-in templates but didn't know it was available for custom layouts. Would be nice to have some kind of icon on the layout selection screen. Here's my crappy MS paint mockup:

![image](https://user-images.githubusercontent.com/16966992/217355729-b5d2b20c-25cd-4aed-94c4-beb7f409102e.png)

_Originally posted by @wilsond20 in https://github.com/microsoft/PowerToys/issues/23620#issuecomment-1421390496_
Repository: PowerToys
Issue: Caps Lock, Num Lock by Program
Labels: Idea-New PowerToy

### Description of the new feature / enhancement

I would like to be able to automatically turn on or off the Caps/Num Lock key depending on the active program or a predefined window.  For example, it could turn off Caps Lock when you switch to word processor or chat app, and would turn on Caps Lock when you switch over to a database entry screen, command prompt, etc. There could be an icon in the system tray that indicates if caps lock or num lock is active or not.

### Scenario when this would be used?

I often have to type in all capital letters when entering data into databases, entering comments in code, or when working entering data for construction drawings but often will switch quickly over to a chat app or email and forget to untoggle caps lock resulting in needing to retype the text in lower case. It would be extremely convenient to not have to remember to toggle caps lock, num lock, scroll lock, etc and be able to type letter in the appropriate lower or upper case automatically. 

### Supporting information

_No response_
Repository: stable-diffusion-webui
Issue: [Bug]: (AMD Rx580x) stderr: "hipErrorNoBinaryForGpu: Unable to find code object for all current devices!
Labels: asking-for-help-with-local-system-issues

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What happened?

cuda in pytorch doesn't work

### Steps to reproduce the problem

1. install the program


### What should have happened?

it should have worked

### Commit where the problem happens

ea9bd9fc7409109adcd61b897abc2c8881161256

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

Linux

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

Mozilla Firefox, Google Chrome, Brave

### Command Line Arguments

```Shell
❯ git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui
cd stable-diffusion-webui
python -m venv venv
source venv/bin/activate
python -m pip install --upgrade pip wheel

# It's possible that you don't need "--precision full", dropping "--no-half" however crashes my drivers
TORCH_COMMAND='pip install torch torchvision --extra-index-url https://download.pytorch.org/whl/rocm5.1.1' python launch.py --precision full --no-half
```


### List of extensions

No

### Console logs

```Shell
fatal: destination path 'stable-diffusion-webui' already exists and is not an empty directory.
Requirement already satisfied: pip in ./venv/lib/python3.10/site-packages (23.0)
Requirement already satisfied: wheel in ./venv/lib/python3.10/site-packages (0.38.4)
Python 3.10.9 (main, Dec 19 2022, 17:35:49) [GCC 12.2.0]
Commit hash: ea9bd9fc7409109adcd61b897abc2c8881161256
Traceback (most recent call last):
  File "/home/roza/stable-diffusion-webui/launch.py", line 360, in <module>
    prepare_environment()
  File "/home/roza/stable-diffusion-webui/launch.py", line 272, in prepare_environment
    run_python("import torch; assert torch.cuda.is_available(), 'Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check'")
  File "/home/roza/stable-diffusion-webui/launch.py", line 129, in run_python
    return run(f'"{python}" -c "{code}"', desc, errdesc)
  File "/home/roza/stable-diffusion-webui/launch.py", line 105, in run
    raise RuntimeError(message)
RuntimeError: Error running command.
Command: "/home/roza/stable-diffusion-webui/venv/bin/python" -c "import torch; assert torch.cuda.is_available(), 'Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check'"
Error code: -6
stdout: <empty>
stderr: "hipErrorNoBinaryForGpu: Unable to find code object for all current devices!"
```


### Additional information

Gpu: Amd Rx580x
i've tried to find how make pytorch work but i haven't find
I know there are people who have achieved to make it work but i haven't understand how they made it
Repository: flutter
Issue: [flutter_tools] have ProcessUtils keep track of running sub-processes, and periodically printTrace about them
Labels: c: new feature,tool,P2,team-tool,triaged-tool

This would help us to investigate CI failures where the build hangs, such as https://github.com/flutter/flutter/issues/118469
Repository: neovim
Issue: Unexpectedly getting out of terminal mode when switching windows
Labels: bug,terminal

### Describe the bug

I have some autocommands to ensure that terminal mode is entered whenever a terminal window is `BufEnter`ed. However, when I switch windows as part of a terminal callback, it seems to not be honored

### Steps to reproduce

Create a new file (say `/tmp/bar.vim`) with the following contents:

```vim
" File: bar.vim
function! s:OnOutput(chan_id, msgs, name)
    let msg = join(a:msgs, '')
    if msg =~ "foobar"
        call win_gotoid(s:sourcewin)
        call win_gotoid(s:bashwin)
    endif
endfunction

augroup EnterTermMode
    au!
    autocmd BufWinEnter,WinEnter term://* startinsert
    autocmd BufWinLeave,WinLeave term://* stopinsert
    autocmd TermOpen * startinsert
augroup END

let s:sourcewin = win_getid(winnr())
new
let s:bashwin = win_getid(winnr())
call termopen('bash', { 
            \ 'on_stdout': function('s:OnOutput')
            \ })
```

```
nvim --clean
:so /tmp/bar.vim
```

You should fine yourself in the terminal window in terminal mode. To trigger the window commands, type the following in the terminal:

echo "foobar"

Notice that we are no longer in terminal mode even though we got back to the terminal window.


### Expected behavior

Neovim remains in terminal mode after navigating to the bottom window and back.

### Neovim version (nvim -v)

NVIM v0.8.0-1210-gd367ed9b2

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

no, vim 9.0

### Operating system/version

Debian 11

### Terminal name/version

gnome-terminal

### $TERM environment variable

xterm-256color

### Installation

appimage
Repository: kubernetes
Issue: Allow per-client configuration for rest client backoff manager
Labels: sig/api-machinery,kind/feature,triage/accepted

### What would you like to be added?

Extend the rest client so the user can provide an optional backoff base / duration when creating the RESTClient.


### Why is this needed?

The rest client uses environment variables for configuring the backoff manager for retries on GET requests which error out due to connection reset.  This backoff defaults to 0 if the environment variables are not set (this seems bad).  Also, since the manager depends on environment variables, the defaults are global, so user can't configure them on a per-cluster basis if a process connects to multiple clusters.

https://github.com/kubernetes/client-go/blob/cbe28cf468c43969d2c170e079f556becfc7adb7/rest/client.go#L124
Repository: storybook
Issue: [Feature Request]: remove `express` dependency from `builder-vite`
Labels: maintenance,builder-vite

### Is your feature request related to a problem? Please describe

Vite provides a dev and preview server. Storybook doesn't use it, but instead creates its own server, which adds an unnecessary dependency.

### Describe the solution you'd like

Turn off [`middlewareMode`](https://vitejs.dev/config/server-options.html#server-middlewaremode) in `builder-vite` and use Vite's server instead. `builder-vite` could return the server. The webpack builder could create an express server if needed and return that. Then other middlewares can be added to the returned server. You can add middlewares to Vite using its [`configureServer`](https://vitejs.dev/guide/api-plugin.html#configureserver) hook.

### Describe alternatives you've considered

_No response_

### Are you able to assist to bring the feature to reality?

I can't implement it, but can advise on Vite-related changes

### Additional context

_No response_
Repository: flutter
Issue: Draggable should be compatible with InteractiveViewer
Labels: c: new feature,framework,f: material design,c: proposal,team-design,triaged-design

## Use case

Many applications require draggable objects inside a canvas. This should be possible to accomplish by using Draggable inside InteractiveViewer, but it is not currently possible to do this, because of some gaps in the Draggable and InteractiveViewer implementations.

## Proposal

Add a built in Overlay inside InteractiveViewer. Part of the problem currently is that the Draggable will pick the closest overlay in which to display the feedback widget, but the closest overlay will always be outside of the InteractiveViewer, resulting in the feedback Widget being scaled improperly. By adding an Overlay inside the InteractiveViewer, the scale will be retained properly.

Extend Draggable so that the drag details are correctly computed when inside an InteractiveViewer. Because the scale can be different, the delta and local positions must be adjusted to account for the scale (once the feedback widget is moved to the correct overlay, it will no longer stay under the mouse due to the delta coordinates needing to be scaled). InteractiveViewer uses a Transform widget to adjust it's contents, so Draggable should be adjusted so that it applies looks up and applies Transforms correctly to the feedback Widget, so that it stays in sync with the mouse.

The combination of these two changes should make Draggables useable inside an InteractiveViewer and also allow them to be used in other contexts similar to the InteractiveViewer where items might be scaled.