sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: TypeScript
Issue: Member-wise checks give incorrect errors for type assertions
Labels: Suggestion,In Discussion,Needs Investigation,Rescheduled

[Playground Link](https://www.typescriptlang.org/play?#code/PTAEDkHtQUwJzpOA6UhQcgFABsYBdSQDWAhgJ6gC8oA3qAJYAmAXKAIwBMAzADSgBGWYgAsWAIhgAPXHGKjQAX1DEAzjXrNQAOwCuAWz7wFAbgwYQoAKIIky1IBlybHlAB3YsXxUA2rUYsOPfkERUHEpGTl5AF0lVR8NHX1DeU9Ik3NQDMys7OyAP3zcszAAYUhNADd4ZToyggAzUFxSAAcYUAByOJYEgzgjQOEWZWk6TQBzfuTI9sboJtaOrq09XsmUmd0yfjbiUF06YeJCNoMAY2JtZTbNGDpcIUN5tuVtOrq6U7oYTVwsckhKnBBM1VM47kJGg8CPd4KgAJINe4HFwqeg-b64GqaYhYXinMqA-Aw2ASZpwGDKaq1XDQdraTSETSQZyaGbvODDZBFTIAFRabU66m6K3g-QEg1AwzgowmChmyKZ+HxumaxBkAjaNMa-MWQuWiT6cq56UyAHk+AArGCnfBYO7wHF7LZlP6S1qfOrkRnMzSgMmQVpwTEU3jETQMDrioQzBiQClaSD4SQHfCjbULQW+fWrI1AA)

```ts
// No error. ✅
let okay = { id: 123, blah: "extra" } as { id: number };

// Errors. ❌
let waat = [{ id: 123, blah: "extra" }] as { id: number }[];
//                     ~~~~
// Conversion of type '{ id: number; blah: string; }[]' to type '{ id: number; }[]' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
//   Type '{ id: number; blah: string; }' is not comparable to type '{ id: number; }'.
//     Object literal may only specify known properties, and 'blah' does not exist in type '{ id: number; }'.
```

**Expected**: Both of these type assertions should consistently apply the appropriate relationship check, and both should be free of errors.

**Actual**: The first assertion is free of errors, while the second has an excess property error.

Similar example I found over at https://github.com/microsoft/TypeScript/pull/55152/files#r1275497478:

```ts
let okay = { foo: "" } as { id: 123 };
//         ~~~~~~~~~~~~~~~~~~~~~~~~~~
// Conversion of type '{ foo: string; }' to type '{ id: 123; }' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
//   Property 'id' is missing in type '{ foo: string; }' but required in type '{ id: 123; }'.

let waat = [{ foo: "" }] as { id: 123 }[];
//            ~~~
// Conversion of type '{ foo: string; }[]' to type '{ id: 123; }[]' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
//   Type '{ foo: string; }' is not comparable to type '{ id: 123; }'.
//     Object literal may only specify known properties, and 'foo' does not exist in type '{ id: 123; }'.
```
Repository: vscode
Issue: Redundant "notebook" in notebook sticky scroll context menu
Labels: bug,notebook-sticky-scroll

<!-- ⚠️⚠️ 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. -->


<img width="640" alt="image" src="https://github.com/microsoft/vscode/assets/876920/f5ac8eaa-50f8-4ad9-8f5b-abde7544e597">

"Notebook" is probably redundant as I'm already in notebook editor.
Repository: PowerToys
Issue: Add "Default layout for resolution" to FancyZones
Labels: Needs-Triage

### Description of the new feature / enhancement

Currently there is "Default layout for horizontal monitor orientation" (as well as for vertical) but there is no option for a specific resolution.

Ideally, this feature would work exactly the same way but for a specific resolution, auto-switching when the resolution changes.

### Scenario when this would be used?

Scenario 1) I have a 49" ultrawide Samsung G9 Neo screen and I have setup my FancyZones such that I have a 27" sized area at the center and then smaller areas to the sides. If I plug in an extra computer and split the monitor in half, the layout becomes wierd looking because its not made for just having half the screen resolution. In this scenario, I would create two layouts, one for each resolution I want to support, and it would auto-switch to that layout when the monitor changed resolution.

Scenario 2) You have a laptop that you take to work every day. At home, you plug it into the big screen, using the laptop in clamshell mode, and you got your FancyZones setup for that screen. When you unplug it and open it on its own, the layout switches to one appropriate to the laptop screen size. When you plug it at work, which has a different monitor than at home, then it switches to using the resolution of that specific one.

### Supporting information

In scenario 2, I would probably be useful to additionally also add a feature to associate with a specific monitor, in case you use your laptop open with an extra big monitor in a two monitor setup (1x 25" + laptop) or with two extra big monitors in a three monitor setup (2x 25" + laptop)
Repository: rust
Issue: Consider suggesting local variables for invalid format expressions
Labels: A-diagnostics,T-compiler,A-suggestion-diagnostics,D-papercut

### Code

```Rust
struct Foo { bar: i32 }

fn main() {
    let foo = Foo { bar: 10 };
    let _x = format!("Hello {foo.bar}");
}
```


### Current output

```Shell
error: invalid format string: field access isn't supported
 --> src/main.rs:5:30
  |
5 |     let _x = format!("Hello {foo.bar}");
  |                              ^^^^^^^ not supported in format string
  |
help: consider using a positional formatting argument instead
  |
5 |     let _x = format!("Hello {0}", foo.bar);
  |                              ~  +++++++++
```


### Desired output

```Shell
error: invalid format string: field access isn't supported
 --> src/main.rs:5:30
  |
5 |     let _x = format!("Hello {foo.bar}");
  |                              ^^^^^^^ not supported in format string
  |
help: consider putting the value in a local variable instead
  |
5 |     let name = foo.bar;
6 |     let _x = format!("Hello {name}");
  |                              ++++
```


### Rationale and extra context

Inspired by someone who said "oh cool! I was getting errors when trying to do the `widget.name` expression, didn't know I could assign it to a variable and it would work. I'll fix it".

I think that, since they appear to be *trying* to put the named things into the format, rather than using positional syntax, it would be good to suggest a way that lets them continue to use a name rather than positional.

### Other cases

_No response_

### Anything else?

https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=a2ebc266f27d96c2f20e095495cc606a
Repository: godot
Issue: Constant freezing with large project (Single thread usage?)
Labels: topic:editor,needs testing,topic:import,performance

### Godot version

4.1.1

### System information

Linux 6.1 x86_64

### Issue description

Godot seems to only use a single thread for many operations, including I/O, which makes the entire editor freeze for several seconds every time a save occurs, despite it not needing to save anything more than the script files. This also impacts importing large amounts of assets, it took like 12 hours and my CPU only ever went up to 25% CPU usage (aka only 100% usage on a single thread).

### Steps to reproduce

Create a project, and attempt to import thousands of assets and save even small changes. Should be immediently visible.

### Minimal reproduction project

Create a project, and attempt to import thousands of assets and save even small changes. Should be immediately visible.
Repository: ui
Issue: COMPONENTS/Command: Backspace bug
Labels: bug,component: command

Once items are filtered from the [Command menu](https://ui.shadcn.com/docs/components/command), they do not reappear until the Command menu's input field is completely cleared

https://github.com/shadcn-ui/ui/assets/5913254/9e739f1e-2941-4618-a86d-ce412401b2ba
Repository: next.js
Issue: The scrollRestoration configuration doesn't work
Labels: bug

### Verify canary release

- [X] I verified that the issue exists in the latest Next.js canary release

### Provide environment information

```bash
Operating System:
      Platform: darwin
      Arch: arm64
      Version: Darwin Kernel Version 22.5.0: Thu Jun  8 22:22:20 PDT 2023; root:xnu-8796.121.3~7/RELEASE_ARM64_T6000
    Binaries:
      Node: 19.2.0
      npm: 8.19.3
      Yarn: 1.22.19
      pnpm: 8.6.5
    Relevant Packages:
      next: 13.4.10-canary.6
      eslint-config-next: 13.4.10
      react: 18.2.0
      react-dom: 18.2.0
      typescript: 5.1.6
    Next.js Config:
      output: N/A
```


### Which area(s) of Next.js are affected? (leave empty if unsure)

_No response_

### Link to the code that reproduces this issue or a replay of the bug

https://codesandbox.io/p/sandbox/scrollrestoration-p7fyfy

### To Reproduce

1. scrollRestoration config true
```
const nextConfig = {
  experimental: {
      scrollRestoration: true,
   }
}
```

2. Browser console
<img width="227" alt="image" src="https://github.com/vercel/next.js/assets/785918/15b7efa7-58d5-4169-81da-7e8dcd0ed8b3">

3. scrollRestoration config false
```
const nextConfig = {
  experimental: {
    scrollRestoration: false,
  }
}
```
4. Browser console
<img width="227" alt="image" src="https://github.com/vercel/next.js/assets/785918/cffe3e48-9765-4122-8383-2228f7a40df6">
 



### Describe the Bug

The scrollRestoration configuration doesn't work, no value takes effect.

### Expected Behavior

It is expected that the value will be changed to 'manual' or 'auto', depending on the value set in the configuration

### Which browser are you using? (if relevant)

Brave 1.56.11 / Chrome 115.0.5790.114

### How are you deploying your application? (if relevant)

_No response_
Repository: go
Issue: cmd/go: in go 1.21 module, go mod tidy and 'go list -m -u all' disagree over which go.sum lines are needed 
Labels: NeedsInvestigation,GoCommand

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version go1.21rc3 darwin/arm64
</pre>

### Does this issue reproduce with the latest release?

No(-ish).

I first ran into this in a module whose 'go' line is 1.21, so the latest release today (1.20.6) isn't applicable.

If I change the 'go' line to 1.20, then 'go mod tidy' no longer deletes as many go.sum lines, and the issue doesn't reproduce.

### What operating system and processor architecture are you using (`go env`)?

<details><summary><code>go env</code> Output</summary><br><pre>
$ go env
GO111MODULE=''
GOARCH='arm64'
GOBIN=''
GOCACHE='/Users/gopher/Library/Caches/go-build'
GOENV='/Users/gopher/Library/Application Support/go/env'
GOEXE=''
GOEXPERIMENT='loopvar'
GOFLAGS=''
GOHOSTARCH='arm64'
GOHOSTOS='darwin'
GOINSECURE=''
GOMODCACHE='/Users/gopher/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='darwin'
GOPATH='/Users/gopher/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/usr/local/go'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/usr/local/go/pkg/tool/darwin_arm64'
GOVCS=''
GOVERSION='go1.21rc3'
GCCGO='gccgo'
AR='ar'
CC='clang'
CXX='clang++'
CGO_ENABLED='1'
GOMOD='/dev/null'
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 -arch arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -ffile-prefix-map=/var/folders/_0/h0671fcn4rgb5pn9c745dx2h0000gn/T/go-build1549452710=/tmp/go-build -gno-record-gcc-switches -fno-common'
</pre></details>

### What did you do?

I ran `go mod tidy` in a medium sized local module whose go.mod has 'go 1.21' (primarily to help test this language version and its semantics, not because I need it; this go.mod file isn't public).

Then I ran `go list -m -u all`.

Edit: It turned out trivial to trigger the issue with a very minified top-level go.mod file. Here's a complete reproducer:

```
$ cd $(mktemp -d)
$ go mod init issue61605.test
$ echo 'package p; import _ "golang.org/x/build/maintner/reclog"' > p.go
$ go get golang.org/x/build@v0.0.0-20230726111318-84c18c56e0b0
$ go mod tidy
$ go list -m -u all
```

### What did you expect to see?

The usual list of modules and available updates, and exit code 0.

### What did you see instead?

```
$ go list -m -u all
go: updates to go.sum needed, disabled by -mod=readonly
$ echo $?
1
```

Running the go list command with -mod=mod re-adds the go.sum lines and makes the command work.

Or setting go to 1.20 instead of 1.21 and re-running go mod tidy also works around the issue.
Repository: react
Issue: [DevTools Bug]: shows "This page doesn't appear to be using React" for every react website on Firefox 115.0.2
Labels: Type: Bug,Status: Unconfirmed,Resolution: Needs More Information,Component: Developer Tools

### Website or app

all of them and also localhost. https://react.dev/ for example

### Repro steps

1. open any website made with React
2. Click on the extension icon

OS:
Windows 10

Browser:
Firefox 115.0.2 (64-bit)

DevTools:
4.27.8



### How often does this bug happen?

Every time

### DevTools package (automated)

_No response_

### DevTools version (automated)

_No response_

### Error message (automated)

_No response_

### Error call stack (automated)

_No response_

### Error component stack (automated)

_No response_

### GitHub query string (automated)

_No response_
Repository: stable-diffusion-webui
Issue: [Bug]: could not create work tree dir 'stable-diffusion-webui': No such file or directory
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?

I have Arch Linux.

I followed the instructions in the README but gives me the following error:
```
❯ bash <(wget -qO- https://raw.githubusercontent.com/AUTOMATIC1111/stable-diffusion-webui/master/webui.sh)

################################################################
Install script for stable-diffusion + Web UI
Tested on Debian 11 (Bullseye)
################################################################

################################################################
Running on raffaele user
################################################################

################################################################
Clone stable-diffusion-webui
################################################################
fatal: could not create work tree dir 'stable-diffusion-webui': No such file or directory
/dev/fd/63: line 191: cd: stable-diffusion-webui/: No such file or directory
ERROR: Can't cd to /dev/fd/stable-diffusion-webui/, aborting...
```

### Steps to reproduce the problem

Just run:
```
❯ bash <(wget -qO- https://raw.githubusercontent.com/AUTOMATIC1111/stable-diffusion-webui/master/webui.sh)
```

### What should have happened?

Should have installed the software

### Version or Commit where the problem happens

68f336bd994bed5442ad95bad6b6ad5564a5409a

### What Python version are you running on ?

None

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

Linux

### What device are you running WebUI on?

_No response_

### Cross attention optimization

Automatic

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

_No response_

### Command Line Arguments

```Shell
None
```


### List of extensions

No

### Console logs

```Shell
See above
```


### Additional information

_No response_
Repository: awesome-mac
Issue: 🎉 Add Meld
Labels: addition

### 🪩 Provide a link to the proposed addition

https://github.com/GNOME/meld

### 😳 Explain why it should be added

Great diff tool. Can be installed with `brew install meld`. You can start it from spotlight or from commandline. Can diff directories and files, and do 3 way diffs for merges.

### 📖 Additional context

_No response_

### 🧨 Issue Checklist

- [X] I have checked for other similar issues
- [X] I have explained why this change is important
- [X] I have added necessary documentation (if appropriate)
Repository: pytorch
Issue: [feature request] Better argument checks and error messaging for `tensor.repeat`
Labels: module: error checking,triaged,actionable,release notes: python_frontend

### 🐛 Describe the bug

```python
erb_indices = [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 5, 5, 7, 7, 8, 10, 12, 13, 15, 18, 20, 24, 28, 31, 37, 42, 50, 56, 67]

torch.tensor(erb_indices).reciprocal().repeat(erb_indices)
# RuntimeError: Storage size calculation overflowed with sizes=[2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 5, 5, 7, 7, 8, 10, 12, 13, 15, 18, 20, 24, 28, 31, 37, 42, 50, 56, 2144]
```

It would be good if the error is more clear.

also, strangely `torch.repeat` does not exist as a module function as opposed to `torch.repeat_interleave`: `AttributeError: module 'torch' has no attribute 'repeat'`

Btw, I also noticed that shape checks for torch.hstack are much more permissive compared to torch.stack. This might be okay for compat with NumPy (or maybe there should even be a `strict` mode that would enable stricter checks; or that pytorch should be stricter for consistency sake between torch.stack and torch.hstack which appear similar enough), but I suggest that this should be mentioned in docs.

### Versions

'2.0.0+cpu'

cc @malfet @svekars @carljparker
Repository: PowerToys
Issue: Automatic update application without user intervention 
Labels: Area-Setup/Install

### Description of the new feature / enhancement

Expected behaviour is that powertoys will update automatically in the background when it needs an update without notifying the user that an update is available.
This feature can notify the user after an update was installed.

### Scenario when this would be used?

Just to reduce the amount of time needed to maintain the software as a user.

### Supporting information

_No response_
Repository: flutter
Issue: [flutter cli] flutter clean should support a --directory option like flutter pub get does
Labels: c: new feature,tool,c: proposal,P3,team-tool,triaged-tool

### Is there an existing issue for this?

- [X] I have searched the [existing issues](https://github.com/flutter/flutter/issues)
- [X] I have read the [guide to filing a bug](https://flutter.dev/docs/resources/bug-reports)

### Use case

I'm doing a setup script for other devs in my teams to help them setup/build/rebuild some nested flutter projects in local. For that I'm using a SH script as follows :
```sh
#!/bin/sh

flutter clean
cd ./some/dir/ || exit
flutter clean

cd ../.. || exit
flutter pub get --directory=.
flutter pub get --directory=./some/dir
dart run build_runner build --delete-conflicting-outputs
```
Could you please implement a --directory option directly in flutter clean to improve consistency between flutter cli commands ?

### Proposal

```sh
#!/bin/sh

flutter clean --directory=./some/dir  # working directory for the flutter clean command
```
Repository: pytorch
Issue: Libtorch report C10 error when compiling on my own project
Labels: needs reproduction,module: binaries,module: cpp,triaged

### 🐛 Describe the bug

Hi, guys

Some errors occur when i compiled Libtorch with other third party, such as onnx. The errors are as following:

I don't know if it's about the torch flags, D_GLIBCXX_USE_CXX11_ABI is 1 or 0.
`-- TORCH_CXX_FLAGS: -D_GLIBCXX_USE_CXX11_ABI=1`

### Error logs

```
`/home/xxx/code/dev/nn_tools/third_party/libtorch/include/c10/util/Exception.h:220:83: error: exception handling disabled, use ‘-fexceptions’ to enable
  220 |   throw ::c10::err_type({__func__, __FILE__, static_cast<uint32_t>(__LINE__)}, msg)

/home/xxx/code/dev/nn_tools/third_party/libtorch/include/c10/core/DispatchKeySet.h:147:38: error: ‘findFirstSet’ is not a member of ‘llvm’
  147 |       uint64_t firstKeyIndex = llvm::findFirstSet(masked_data);

/home/xxx/code/dev/nn_tools/third_party/libtorch/include/ATen/core/ivalue_inl.h:555:14: error: ‘e’ was not declared in this scope; did you mean ‘llvm::numbers::e’?
  555 |       return e.what();
      |              ^
      |              llvm::numbers::e`
```
As the log says, if i add `add_compile_options(-fexceptions)`,  it will report other c10::detail::torchInternalAssertFail errors:

```
quantizationCalibration.cpp:(.text._ZN3c1020intrusive_ptr_targetD2Ev[_ZN3c1020intrusive_ptr_targetD5Ev]+0xdd): undefined reference to `c10::detail::torchInternalAssertFail(char const*, char const*, unsigned int, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/bin/ld: quantizationCalibration.cpp:(.text._ZN3c1020intrusive_ptr_targetD2Ev[_ZN3c1020intrusive_ptr_targetD5Ev]+0x137): undefined reference to `c10::detail::torchInternalAssertFail(char const*, char const*, unsigned int, char const*, char const*)'
/usr/bin/ld: lib/libMLIRTop.a(quantizationCalibration.cpp.o): in function `c10::intrusive_ptr<c10::TensorImpl, c10::UndefinedTensorImpl>::reset_()':
quantizationCalibration.cpp:(.text._ZN3c1013intrusive_ptrINS_10TensorImplENS_19UndefinedTensorImplEE6reset_Ev[_ZN3c1013intrusive_ptrINS_10TensorImplENS_19UndefinedTensorImplEE6reset_Ev]+0xa): undefined reference to `c10::UndefinedTensorImpl::_singleton'
/usr/bin/ld: lib/libMLIRTop.a(quantizationCalibration.cpp.o): in function `std::_MakeUniq<torch::autograd::AutogradMeta>::__single_object std::make_unique<torch::autograd::AutogradMeta, c10::TensorImpl*, bool&>(c10::TensorImpl*&&, bool&)':
```

I have test Libtorch standalone, it can compile and run correctly. So why it report above errors when i compile on my own project?

Thanks in advance.

### Minified repro

_No response_

### Versions

The Libtorch version is 2.0.1, CPU and GPU version



cc @seemethere @malfet @jbschlosser @ezyang @msaroufim @wconstab @bdhirsh @anijain2305
Repository: PowerToys
Issue: [PowerToys Run] On startup show most used applications
Labels: Idea-Enhancement,Product-PowerToys Run,Needs-Triage

### Description of the new feature / enhancement

Currently on startup of PowerToys Run, and empty list is shown.

I would like an option which enables this feature. The feature shows top 5 (the number can be based on `Number of results shown before scrolling` value ) most used applications.

Current:
![image](https://github.com/microsoft/PowerToys/assets/6773030/90a6fbdb-d443-4b64-ab3d-0749a2d78562)

Want to have:
![image](https://github.com/microsoft/PowerToys/assets/6773030/28f282a8-0800-4bf4-85c1-714ad22b7678)



### Scenario when this would be used?

PowerToys Run is an extremely useful and versatile tool. This feature allows to skip one possible extra step in executing applications/services that I want.

### Supporting information

_No response_