sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: material-ui
Issue: Types and Interfaces are ignored in mui/system styled function
Labels: bug 🐛,typescript,package: styled-engine-sc

### Duplicates

- [X] I have searched the existing issues

### Latest version

- [X] I have tested the latest version

### Steps to reproduce 🕹

Link to live example:

Steps:

1. Download this project: 
```sh
curl https://codeload.github.com/mui/material-ui/tar.gz/master | tar -xz --strip=2 material-ui-master/examples/material-cra-styled-components-ts
cd material-cra-styled-components-ts
```
2. 
```
npm install
```
3. Copy the following code:
```ts
import { styled } from '@mui/system';

interface ParagraphProps {
  color: 'green' | 'blue';
}

export const Paragraph = styled('p')<ParagraphProps>(({ color }) => ({
  color: color || '#000',
  fontSize: '18px',
  fontWeight: 'bold',
}));

Paragraph({ color: 'red' });
```


### Current behavior 😯

No errors shown

### Expected behavior 🤔

Last line throws 
```
Type '"red"' is not assignable to type '"green" | "blue"'.ts(2769)
```

### Context 🔦

I am trying to provide an Interface/type around which properties and values a MUI Styled Component should admit to avoid issues during the development process and its maintenance, which is one of the key points within the CSS-in-JS concept.

### Your environment 🌎

<details>
  <summary><code>npx @mui/envinfo</code></summary>

```
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.
```
</details>
Repository: go
Issue: runtime: significant number of bounds checks in growslice
Labels: Performance,NeedsInvestigation,compiler/runtime

While inspecting the `runtime.growslice` code I noticed that it contains a lot of bounds checks. They all come from `runtime.roundupsize`.

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version devel go1.21-8d5065ce6e Tue May 9 11:45:59 2023 +0300 windows/amd64
</pre>

However also happens with `go1.20.4`.

### Does this issue reproduce with the latest release?

Yes and with tip.

### What did you do?

Inspecting `runtime.growslice` and seeing:

```
$ go tool objdump -s runtime.growslice ./somebinary
...
  0x445f0f              488d052a320500          LEAQ type:*+45376(SB), AX
  0x445f16              488d1dfb3c0800          LEAQ runtime.buildVersion.str+720(SB), BX
  0x445f1d              0f1f00                  NOPL 0(AX)
  0x445f20              e87bd0feff              CALL runtime.gopanic(SB)
                        return uintptr(class_to_size[size_to_class128[divRoundUp(size-smallSizeMax, largeSizeDiv)]])
  0x445f25              b944000000              MOVL $0x44, CX
  0x445f2a              e891860100              CALL runtime.panicIndex(SB)
  0x445f2f              b9f9000000              MOVL $0xf9, CX
  0x445f34              e8a7860100              CALL runtime.panicIndexU(SB)
                        return uintptr(class_to_size[size_to_class8[divRoundUp(size, smallSizeDiv)]])
  0x445f39              b944000000              MOVL $0x44, CX
  0x445f3e              6690                    NOPW
  0x445f40              e87b860100              CALL runtime.panicIndex(SB)
  0x445f45              b981000000              MOVL $0x81, CX
  0x445f4a              e891860100              CALL runtime.panicIndexU(SB)
                        return uintptr(class_to_size[size_to_class128[divRoundUp(size-smallSizeMax, largeSizeDiv)]])
...
```

### What did you expect to see?

I'm not sure how much they affect performance, but triggering that many in `roundupsize` does seem a bit concerning.

---

I tried to do the trivial patch with zero-filling the tables to exactly 256 elements https://go-review.googlesource.com/c/go/+/493796, however, I'm not convinced that this is the best way to address this. Either way, I'm willing to take a stab at fixing it.
Repository: vscode
Issue: Invalid caret coordination value after update 1.78.
Labels: bug,editor-core

<!-- ⚠️⚠️ 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. -->
- VS Code Version: 1.78.0
- OS Version: Windows 10



![BUG_2](https://user-images.githubusercontent.com/2268848/237050902-5c2c398c-78aa-4d31-8b68-c71ea0295a07.gif)

I'm currently recording IAccessible caret value using Autohotkey :
oleacc\AccessibleObjectFromWindow 

Steps to Reproduce:

1.  Typing English (TEST)
2.  Click language swap button (IME).  in my case, English -> Korea
3.  Typing Korean (테스트)
4. Click language swap button.  Korean -> English
5. Typing (T)
6.  Vscode return incorrect X caret value.
Repository: terminal
Issue: Paste is annoyingly asynchronous wrt typeahead
Labels: Issue-Bug,Area-TerminalControl,Needs-Attention,Product-Terminal,Priority-3

### Windows Terminal version

1.17.1023

### Windows build number

10.0.19045.2846

### Other Software

git version 2.40.0.windows.1

### Steps to reproduce

Run Git Bash in Windows Terminal, while other processes are causing CPU and paging load.

Copy some text to the Clipboard from another application. (For example, copy a Git commit ID.)

In Git Bash, type some characters, press Shift+Insert to paste, and type more characters. (For example, type `git cherry-pick ` initially, and press Enter at the end.)

### Expected Behavior

Pasted text should appear in the correct place between the first and second sequence of characters.

### Actual Behavior

Pasted text occasionally appears after the second sequence of characters.  As if Shift+Insert starts an asynchronous paste operation that completes at some later time and injects its result into the terminal input at that time.
Repository: flutter
Issue: `The relevant error-causing widget` is incorrect when error is thrown in `initState`, `didUpdateWidget`, etc
Labels: framework,a: quality,a: error message,has reproducible steps,P3,found in release: 3.7,found in release: 3.11,team-framework,triaged-framework

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

### Steps to reproduce

Follow exactly same steps as https://github.com/flutter/flutter/issues/126310, using same code, see same outputs etc.

### Expected results

In all 3 cases, i.e. initState, didUpdateWidget, build, the error-causing widget is surely the `_MyWidget`, since it is that widget which throws.

### Actual results

As can be seen from the logs there, the `build` scenario is correct. However, `initState` and `didUpdateWidget` are both incorrect. They think `Container` is the error-causing widget, but we know it is `_MyWidget`.

### Code sample

<details><summary>Code sample</summary>

```dart
[Paste your code here]
```

</details>


### Screenshots or Video

<details>
<summary>Screenshots / Video demonstration</summary>

[Upload media here]

</details>


### Logs

<details><summary>Logs</summary>

```console
[Paste your logs here]
```

</details>


### Flutter Doctor output

<details><summary>Doctor output</summary>

```console
[Paste your output here]
```

</details>
Repository: flutter
Issue: [Linux] when entering Chinese using Sogou/fcitx, the candidate list is not below TextField
Labels: a: text input,framework,engine,a: internationalization,platform-linux,a: desktop,P2,team-linux,triaged-linux

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

### Steps to reproduce

1.Use Chinese input method and switch to Chinese mode
2.Type some character in TextField Widget

### Expected results

The input interface follows the cursor

### Actual results

Always in the lower left corner of the application

### Code sample

<details><summary>Code sample</summary>

```dart
TextField()
```

</details>


### Screenshots or Video

<details>
<summary>Screenshots / Video demonstration</summary>
![WechatIMG48](https://github.com/flutter/flutter/assets/19525360/c08fd542-044a-4337-b189-bb8f69292939)
</details>


### Logs

<details><summary>Logs</summary>

```console
[Paste your logs here]
```

</details>


### Flutter Doctor output

<details><summary>Doctor output</summary>

```console
[Paste your output here]
```

</details>
Repository: TypeScript
Issue: Valid JS code reported by TS as illegal code: Keywords cannot contain escape characters
Labels: Bug,Help Wanted

# Bug Report
### 🔎 Search Terms
\u{63}onstructor()
valid javascript code returns error
Keywords cannot contain escape characters
escape characters

### 🕗 Version & Regression Information

<!-- When did you start seeing this bug occur?

"Bugs" that have existed in TS for a long time are very likely to be FAQs; refer to
  https://github.com/Microsoft/TypeScript/wiki/FAQ#common-bugs-that-arent-bugs

If possible, please try testing the nightly version of TS to see if it's already been fixed.
For npm: `typescript@next`
This is also the 'Nightly' version in the playground: http://www.typescriptlang.org/play/?ts=Nightly

Note: The TypeScript Playground can be used to try older versions of TypeScript.

Please keep and fill in the line that best applies:
-->
- This is the behavior in every version I tried.

### ⏯ Playground Link

<!--
  A link to a TypeScript Playground "Share" link which shows this behavior

  The TypeScript Workbench can be used for more complex setups, try
  https://www.typescriptlang.org/dev/bug-workbench/

  As a last resort, you can link to a repo, but these will be slower for us to investigate.
-->
[Playground link with relevant code](https://www.typescriptlang.org/play?ts=5.0.4#code/MYGwhgzhAEDC0G8BQ1oB0CuCBsBmAvgPYB2EALgE4bBmEUAUAlIvqgPRvQCmAjhgJYA3MCC7Ey0WgC5owEuSo06TFknxA)

### 💻 Code
```
class C {
  \u{63}onstructor() {}  // equivalent to: constructor() {}
}
```

### 🙁 Actual behavior
**Errors in code**
Keywords cannot contain escape characters.

### 🙂 Expected behavior

No errors as it is valid javascript code.
Repository: material-ui
Issue: OutlinedInput without label has break in outline due to legend in fieldset
Labels: bug 🐛,component: text field,package: material-ui

### Duplicates

- [X] I have searched the existing issues

### Latest version

- [X] I have tested the latest version

### Steps to reproduce 🕹

https://codesandbox.io/s/sad-fermi-o14mu1?file=/src/App.tsx

Basically create a TextField (variant outlined) or OutlinedInput without label and zoom in (better visible when focused)


### Current behavior 😯

![image](https://github.com/mui/material-ui/assets/41996969/48635254-567d-466e-af8f-3ebfa24fe099)
Visible break in outlined due to legend

### Expected behavior 🤔

![image](https://github.com/mui/material-ui/assets/41996969/21f4a527-c637-4e65-815f-1085b61e619f)
No label => No legend => No break in outline

### Context 🔦

I upgraded from MUI v4. MUI v4 did not have this issue as the legend had a fixed width of `0.01px` set.

### Your environment 🌎

<details>
  <summary><code>npx @mui/envinfo</code></summary>

```
  System:
    OS: Linux 6.1 Arch Linux
  Binaries:
    Node: 19.9.0 - /usr/bin/node
    Yarn: Not Found
    npm: 8.19.2 - /usr/bin/npm
  Browsers:
    Chrome: Not Found
    Firefox: 112.0.2 <-- used
```
</details>
Repository: flutter
Issue: Add checks to enforce build-phase code cannot touch layout-phase data, otherwise it can (1) cause exceptions and (2) get outdated and wrong layout information
Labels: c: new feature,framework,c: proposal,P3,team-framework,triaged-framework

### 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 encountered the bug https://github.com/flutter/flutter/issues/126312 in production environment. Though I found it and submitted a PR to fix it, it would be great if this could be caught earlier given Flutter's abundant testing.

The main cause of that bug is that, inside `didUpdateWidget` (a build-phase thing), it wants to access `getTransformTo` (a layout-phase thing). In that particular bug, it creates a crash because an ancestor RenderBox is never laid out. However, even if that is not the case, it can still cause problem, because the ancestor can be laid out but has out-of-date information, i.e. the layout information from last frame.

As a hindsight, can we catch the bug using Flutter's existing abundant testing suite? Indeed, IMHO "triggering getTransformTo from didUpdateWidget" should already be in the test suite (though not checked), since that looks like a standard and important test branch. On the other hand, "triggering getTransformTo from didUpdateWidget + *one ancestor touches its layout-phase information (`size` field) from getTransformTo* + *that ancestor is not laid out due to GlobalKey reparenting*" is much less likely, though still happens in production environment.

### Proposal

Therefore, I am proposing that, is it possible we somehow add checks to enforce build-phase code cannot touch layout-phase data?

There are many potentials:

1. when `getTransformTo` (or even better, `applyPaintTransform`) is called, we add assertion that we are *not* in the build phase
2. when `getTransformTo`/`applyPaintTransform` is called, we assert those render boxes are not dirty (I guess currently we have something like this)
3. we may add checks for even more functions, not only applyPaintTransform

---

Minor update (remark):

One possible fix may be to use a `LayoutBuilder`, such that the `build` phase of this widget is ensured to be executed after layout phase of the other content if that is layouted in prior. (Just a thought, may not be possible)
Repository: vscode
Issue: Syntax highlight colors are dull in Windows (less saturated than in Linux-Ubuntu)
Labels: electron

<!-- ⚠️⚠️ 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. -->
- VS Code Version: 1.78.0
- OS Version: Windows 11 22621.1635

Steps to Reproduce:
1. Compare VS Code on Windows and on Linux (Ubuntu)

Description:
For a long time I have been thought that I have a bad monitor.

That is why colors in VS Code have been so dull.

But now I have compared Ubuntu and Windows colors and I understand that this is a problem of VS Code on Windows.

Comparing on the attached screenshot.

Theme and font settings (family, size, weight) are the same

Is there a way to fix it and make VS Code colors more saturated on Windows?
![GQui2](https://github.com/microsoft/vscode/assets/5147554/60b60265-22df-4409-9653-c8d9e19d7d6e)
Repository: storybook
Issue: [Bug]: Error: Couldn't find story matching 'about'.
Labels: bug,help wanted,core,sev:S4

### Describe the bug

If you are on one of the `/settings/` pages and reload, this error is displayed in the console:

```
Error: Couldn't find story matching 'about'.
- Are you sure a story with that id exists?
- Please check your stories field of your main.js config.
- Also check the browser console and terminal for error messages.
    at PreviewWeb.selectSpecifiedStory (runtime.js:89:63)
    at Object.nextFn (runtime.js:85:5556)
    at runtime.js:4:78253
    at Array.forEach (<anonymous>)
    at SynchronousPromise4._runResolutions (runtime.js:4:78194)
    at SynchronousPromise4.then (runtime.js:4:75736)
    at PreviewWeb.initializeWithStoryIndex (runtime.js:85:5445)
    at runtime.js:80:606
```

The page is still loaded so this is not a blocker.

### To Reproduce

1. Open https://githubda5akq-h1s0--6006--9c984a48.local-credentialless.webcontainer.io/?path=/settings/about
2. Open dev tools
3. Refresh the page
4. See the error

The related project: https://stackblitz.com/edit/github-da5akq


### System

_No response_

### Additional context

I think the error comes from here:
https://github.com/storybookjs/storybook/blob/506c050f417a43daa992a6bc7405ecf8659cfdef/code/lib/preview-api/src/modules/preview-web/PreviewWithSelection.tsx#L152-L160
Repository: go
Issue: x/tools/gopls: Find All References on named parameters should show the return values
Labels: FeatureRequest,gopls,Tools

**Is your feature request related to a problem? Please describe.**
When using `Find All References`, I expect to find all references where a variable is used or assigned.
If I am using a named return parameters, then the final return is not included in the references.

```
x := func() (other string) {
	defer func() {
		fmt.Println("I got: " + other)
	}()

	other = "abc"
	return "def"
}

xx := x()
fmt.Println(xx)
```

Searching the variable `other` in the code above will not give me the final `def` usage.
![image](https://user-images.githubusercontent.com/808649/234654017-b40bf8e0-02e7-4156-a81a-b06d838aba06.png)


**Describe the solution you'd like**
Show me the return line in the References.
Repository: go
Issue: cmd/go: misleading error message when build cache runs out of disk space
Labels: NeedsInvestigation,GoCommand

Running `make.bash` on linux/amd64 using current go source produced weird error messages:
```
$ GOOS=plan9 GOARCH=arm GOARM=7 ./make.bash
Building Go cmd/dist using /tmp/go. (go1.19rc2 linux/amd64)
Building Go toolchain1 using /tmp/go.
Building Go bootstrap cmd/go (go_bootstrap) using Go toolchain1.
Building Go toolchain2 using go_bootstrap and Go toolchain1.
Building Go toolchain3 using go_bootstrap and Go toolchain2.
Building commands for host, linux/amd64.
/usr/local/go/src/runtime/cgocall.go:90:2: package runtime/internal/sys is not in GOROOT (/usr/local/go/src/runtime/internal/sys)
/usr/local/go/src/cmd/api/api.go:15:2: package go/build is not in GOROOT (/usr/local/go/src/go/build)
/usr/local/go/src/internal/testenv/testenv.go:19:2: package internal/platform is not in GOROOT (/usr/local/go/src/internal/platform)
/usr/local/go/src/testing/benchmark.go:11:2: package internal/sysinfo is not in GOROOT (/usr/local/go/src/internal/sysinfo)
package cmd/cgo is not in GOROOT (/usr/local/go/src/cmd/cgo)
package cmd/dist is not in GOROOT (/usr/local/go/src/cmd/dist)
/usr/local/go/src/cmd/go/internal/base/base.go:19:2: package cmd/go/internal/cfg is not in GOROOT (/usr/local/go/src/cmd/go/internal/cfg)
go tool dist: FAILED: /usr/local/go/pkg/tool/linux_amd64/go_bootstrap install cmd: exit status 1
```
Eventually I realised the disk partition containing `~/.cache/go-build` was full, and after `go clean -cache` I was able to re-run the build successfully.

It appears something in the build cache maintenance code might not be reporting write errors. The error being reported is very wide of the mark.
Repository: PowerToys
Issue: Add capability to browser links in Markdown (.md) files in preview
Labels: Idea-Enhancement,Product-File Explorer,Needs-Triage

### Description of the new feature / enhancement

Through the File Explorer add-ons power tools, we can preview markdown files but when we click on a link, that should redirect to another markdown file by example, it doesn`t work

### Scenario when this would be used?

When we see markdown preview files in File Explorer

### Supporting information

_No response_
Repository: excalidraw
Issue: Text does not appear correctly in MD file
Labels: More information needed / cannot reproduce

I select an image, copy it in SVG format and paste it into MD
![image](https://github.com/excalidraw/excalidraw/assets/84927447/7d18f44e-31f1-400b-989e-264eeb8b8694)

And got this

![image](https://github.com/excalidraw/excalidraw/assets/84927447/ce66ca28-0cb2-4431-b627-5f9631d44d8a)

How can i fix this?
Repository: node
Issue: fetch cache behaviour unclear
Labels: doc,fetch

### Affected URL(s)

https://nodejs.org/dist/latest-v18.x/docs/api/globals.html#fetch

### Description of the problem

The docs say that `global.fetch` is a Browser-compatible implementation of the [fetch()](https://developer.mozilla.org/en-US/docs/Web/API/fetch) function, but it's unclear what that means with respect to caching.

Calling `fetch('https://example.com')` twice doesn't result in any caching, despite a `cache-control` response header existing. Similarly calling `fetch('https://example.com', {cache: 'force-cache'})` makes two separate requests as well.

Is there a plan to implement caching, or a recommended way for end-users to provide caching? Is the `cache` property on `RequestInit` supposed to do something?
Repository: flutter
Issue: Implement JS fallback for Skwasm
Labels: engine,platform-web,c: proposal,P2,e: wasm,e: web_skwasm,team-web,triaged-web

For browsers that do not have WasmGC support, we need the user to be able to compile to dart2js and still use the Skwasm renderer. Some tasks that will be needed for this:
* Either get `@Native` support in dart2js from the dart team, or write our own JS interop versions of all the Skwasm APIs
* Add support in the flutter tool for compiling to both wasm and JS at the same time and to generate the proper bootstrapping code for dart2js
* Implement fallback logic in flutter.js to choose the dart2js or dart2wasm bundle depending on browser support
Repository: pytorch
Issue: Extending compatibility of LibTorch
Labels: module: cpp,feature,triaged,needs design

### 🚀 The feature, motivation and pitch

I am noticing that the current C-API is limited to modern C++ standards. I am working on a code that assumes a pure C90 standard, and am not able to compile it with LibTorch functionality since the C-API is too modern. 

Would it be possible to LibTorch functional with historical pure C standards? 

### Alternatives

_No response_

### Additional context

_No response_

cc @jbschlosser