sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: vscode
Issue: Word Wrap config not respected on lines with >1k characters
Labels: bug,editor-wrapping

Type: <b>Bug</b>

## Steps to reproduce
- paste or type a line with more than 1k characters
- The line is truncated with "show more" button
![image](https://github.com/microsoft/vscode/assets/21984219/f87588dc-f68e-4385-9696-0a6240af7631)

- Save the file
- Close the tab
- reopen the tab
- 🐛 The line is broken into multiple lines
![image](https://github.com/microsoft/vscode/assets/21984219/7f6a646f-211c-4c34-826f-1d09faca5b6e)

## Expected Behavior
The line is loaded truncated

## Additional Context
I am facing this issue when editing JSON files which embed base64 encoded images. The line being broken into multiple lines is taking up a lot of space and makes navigation almost impossible

Also reproducable on https://vscode.dev/ and monaco playground,

## VS-Code info

VS Code version: Code 1.80.1 (74f6148eb9ea00507ec113ec51c489d6ffb4b771, 2023-07-12T17:22:07.651Z)
OS version: Windows_NT x64 10.0.19044

Extensions: none<details>
<summary>A/B Experiments</summary>

```
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscorecescf:30445987
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593cf:30376535
pythonvs932:30410667
vsclangdc:30486549
c4g48928:30535728
dsvsc012:30540252
pynewext54:30695312
azure-dev_surveyonecf:30548226
2e4cg342:30602488
f6dab269:30613381
showlangstatbar:30737416
vsctsb:30748421
03d35959:30757346
ecj1e332:30736112
pythonfmttext:30731395
pythoncmvfstrcf:30756944
fixshowwlkth:30771522
hideindicator:30785051
pythongtdpath:30769146
i26e3531:30792625
pythonnosm12tcf:30779713
pythonidxpt:30784022
pythonnocebcf:30776496
e537b577:30786199
dsvsc013cf:30789518
cmakesidepanelv2:30779593

```

</details>

<!-- generated by issue reporter -->
Repository: opencv
Issue: cv::Videowriter with Lagarith+avi impossible?
Labels: question (invalid tracker)

### System Information

OpenCV version 4.7.0 (c++ libraries)
OS: Windows 11 Professional, 64 bit
Compiler: Visual C++ VC14


### Detailed description

I cannot create a cv::VideoWriter with .AVI container/extension and codec Lagarith (fourcc-code "LAGS").

- Lagarith codec is installed
- Videowriter with container MP4/WMV and Lagarith works as expected
- Videowriter with container AVI and other codecs (DivX, uncompressed RGBA) works as expected
- Just this combination (Lagarith + AVI) is rejected

I am fairly sure that this combination was possible in an earlier openCV version.

### Steps to reproduce

Install lagarith codec from here: https://lags.leetcode.net/codec.html
Try to create a VideoWriter with LAGS and avi container
```
      int ccCode = cv::VideoWriter::fourcc('L', 'A', 'G', 'S');
      //ccCode = 1397178700
      cv::VideoWriter writer = cv::VideoWriter("recordLAGS.avi", ccCode, 30, cv::Size(800,600));
      assert(writer.isOpened());
```
Result: writer is not ready/opened.

### 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
- [ ] 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: VS Code not responding on launching
Labels: linux,under-discussion,keychain

<!-- ⚠️⚠️ 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.80.1
- OS Version: Ubuntu 22.04

Steps to Reproduce:
1. Opening vscode from terminal or from desktop icon

I installed vscode from the snapstore, and while launching vscode, I am always encountering the issue: Visual Studio Code is not responding and this is happening everytime. 
I tried uninstalling, and reinstalling from the official website, ubuntu software store and even installed insiders, but still the same issue was persisting. 

Then after doing some digging, I tried running the command `code --verbose`, and this was the terminal response, with vscode launching with the same issue.

The verbose response didn't fit the character length in this issue comment.
Repository: go
Issue: proposal: crypto/tls: add Config.AdditionalServerNames
Labels: Proposal,Proposal-Crypto

`tls.Config.ServerName` should be `[]string` instead of `string`.

https://cs.opensource.google/go/go/+/refs/tags/go1.20.6:src/crypto/tls/common.go;l=521

Some SMTP servers allow you to provide a unique domain TLS key and use their domain name instead of you creating a subdomain.

For example, look up the domain `yourpc.ie`:

```
dig yourpc.ie MX 

; <<>> DiG 9.10.6 <<>> yourpc.ie MX
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 60768
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;yourpc.ie.			IN	MX

;; ANSWER SECTION:
yourpc.ie.		1800	IN	MX	30 yourpc-ie.mail.protection.outlook.com.
yourpc.ie.		1800	IN	MX	1 spamfilter.yourpc.ie.

;; Query time: 204 msec
;; SERVER: 2001:1998:f00:1::1#53(2001:1998:f00:1::1)
;; WHEN: Thu Jul 20 10:47:01 CDT 2023
;; MSG SIZE  rcvd: 118
```

Read that there are two MX servers, the first being yourpc-ie.mail.protection.outlook.com.

If you connect to yourpc-ie.mail.protection.outlook.com with this TLS config:

```
tlsconfig = &tls.Config {
      ServerName: "yourpc-ie.mail.protection.outlook.com",
      ClientAuth: tls.RequireAndVerifyClientCert,
}
```

This error is returned, `x509: certificate is not valid for any names, but wanted to match spamfilter.yourpc.ie`.
Repository: go
Issue: all: repeatedly running all.bash in an unchanged tree grows the Go build cache without limit
Labels: NeedsInvestigation

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version devel go1.22-890b96f7ab Thu Jul 20 08:03:42 2023 +0000 linux/amd64
</pre>

### Does this issue reproduce with the latest release?
This issue doesn't reproduce when building Go 1.20.6 from a 'git checkout go1.20.6' in the source tree.

### 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='amd64'
GOBIN=''
GOCACHE='/home/cks/.cache/go-build'
GOENV='/home/cks/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMODCACHE='/home/cks/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/home/cks/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/w/620/cks/go'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/w/620/cks/go/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='devel go1.22-890b96f7ab Thu Jul 20 08:03:42 2023 +0000'
GCCGO='gccgo'
GOAMD64='v1'
AR='ar'
CC='gcc'
CXX='g++'
CGO_ENABLED='1'
GOMOD='/w/620/cks/go/src/go.mod'
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 -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build3572262321=/tmp/go-build -gno-record-gcc-switches'
</pre></details>

### What did you do?

```
git clone https://go.googlesource.com/go
cd go/src
./all.bash
du -hs ~/.cache/go-build
./all.bash
du -hs ~/.cache/go-build
[repeat]
```
The first all.bash from source will create about 2.3 GB of Go build cache. Subsequent all.bash runs appear to increase this by about 200 Mbytes each time. If you repeatedly build for long enough (if, for example, you're using this as a little stress test on a new system), this will fill up your $HOME with hundreds of GBytes of ~/.cache/go-build. 'go clean -cache' cleans it all away.
Repository: next.js
Issue: Error when building fresh project (version independent)
Labels: bug

### Verify canary release

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

### Provide environment information

```bash
When I run "npx create-next-app", select the default for everything, like typescript, tailwind, app router, src folder and no customization, then build the project using "next build" I get errors telling me that the static pages like /404 and /500 are having some sort of useContext error. I have not defined these, as it is a completely fresh project and I havent added a single letter to it. I also found that running "npm run build", instead of "next build" works.
```


### 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://imgur.com/a/DfjFoNH

### To Reproduce

SImply create a new project and run "npx create-next-app", then run "next build". You will get the error visible in the screenshot linked above. This error occurs no matter what version I choose, but does not occur if I use "npm run build" instead of "next build".

### Describe the Bug

When building the project I get errors on all of the static pages with some useContext error. I am not using useContext in my project, and I have **not** defined any custom static pages. It occurs straight out of the box without me adding any code.

### Expected Behavior

I expect the fresh project to build perfectly fine, but instead I get 4 errors (the same error for 3 of the pages). 

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

_No response_

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

next build
Repository: deno
Issue: Deno.test should cancel pending ops and close open resources between tests
Labels: testing

Deno.test currently errors out if pending ops are still running or open resources have been leaked. Instead of failing hard and not running further tests in the file, Deno.test should attempt to recover and close ops/resources as needed.

This would allow for easier debugging of complex tests, as the test suites will sometimes fail early with op/resource errors and fail to give information about tests later in the file.
Repository: vscode
Issue: display modified keybindings at the top of the keybindings editor
Labels: feature-request,keybindings-editor

When I go to the keybindings editor, it's usually to change one that I've set or to see which i've set that could be causing issues. It would be nice if we had these at the top of the list 

<img width="1454" alt="Screenshot 2023-07-20 at 10 30 03 AM" src="https://github.com/microsoft/vscode/assets/29464607/0b65e880-3150-483c-945d-61d2e237ad08">
Repository: flutter
Issue: Redesign cocoon data models to track Task historical statuses
Labels: team-infra,P2,triaged-infra

Cocoon `Task` table now tracks only the latest execution status of a task, which misses the historical statuses. We need to redesign the model to track all executions.

More context: https://github.com/flutter/flutter/issues/88197
Repository: godot
Issue: Godot 4.1 closes by itself.
Labels: bug,topic:editor,needs testing,crash

### Godot version

v4.1.stable.official [970459615]

### System information

Godot v4.1.stable - Windows 10.0.19045 - Vulkan (Forward+) - dedicated GeForce MX110 () - Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz (8 Threads)

### Issue description

Godot 4.1 on Windows 10 is having a constant bug where the engine closes by itself when I save a scene or run it. It happens from minute to minute

### Steps to reproduce

none

### Minimal reproduction project

none
Repository: PowerToys
Issue: Fancy Zones causing performance issues
Labels: Issue-Bug,Product-FancyZones,Priority-1,FancyZones-VirtualDesktop

### Microsoft PowerToys version

0.71.0

### Installation method

PowerToys auto-update

### Running as admin

No

### Area(s) with issue?

FancyZones

### Steps to reproduce

Turn on fancy zones and open task view from the start menu or switch back and forth between multiple desktops using "Ctrl + Windows Key + Right" keyboard shortcut

### ✔️ Expected Behavior

Windows should switch task view or other desktops instantly

### ❌ Actual Behavior

windows takes multiple seconds (ie 5 seconds) to switch other desktops

### Other Software

_No response_
Repository: godot
Issue: GDScript: Crash Renaming base class, bugs renaming fields/methods
Labels: bug,topic:gdscript,needs testing,crash

### Godot version

4.1.1.stable, 4.2.dev

### System information

macOS Ventura 13.4.1, Godot 4.1.1.stable / 4.2.dev, Vulkan Forward+

### Issue description

A similar issue has been described here I think but just has been closed: #65405

So basically, if you start writing some game logic by creating multiple scripts, classes and using inheritance then at some point, two bugs will appear and once they appeard they will appear over and over again which forces me to stop using GDScript for now.

1. Renaming, removing or adding new fields, methods, etc. to a super class are not longer recognized in derived classes or other scripts by the editor so the editor will show you several errors but if you run the game it still works fine. The editor will also no longer be able to point to the correct position of fields of the base class if you click on them with Ctrl+Click/Cmd+Click.

2. After 1. happened, if you rename the base class and save or just run the game (which will then save it) then the editor will crash. The issue persists even after restarting the editor. One way to fix it is to close all scripts in the script editor, restart the editor, then freshly open the scripts again. However, it will only take a short while until the issues appear again.

Would be cool if someone knows a workaround?

### Steps to reproduce

I tried very hard to create a MRP but couldn't do it as the issues only seem to happen if your code reaches some "complexity" (my code is not that complex actually). But you don't need much, having 8-10 scripts with some inheritance(more than 1 level) and it is going to happen at some point.

I really hope this is going to be solved soon because it makes it very hard to work with GDScript once you reach a certain amount of scripts.

### Minimal reproduction project

N/A
Repository: PowerToys
Issue: Peek monaco viewer allowed to be themed 
Labels: Idea-Enhancement,Product-Peek

### Description of the new feature / enhancement

When viewing code files, or any other text file, Peek opens it using the Monaco Editor (correct me if I'm wrong on this).

The suggestion: adding a setting to choose a theme for the editor.
Themes could be taken from something like VSCode or similar.

### Scenario when this would be used?

Some people might not be able to read well with the default theme and want a custom one that suits them, and it will look cooler 😄 

### Supporting information

_No response_
Repository: next.js
Issue: Invariant error app not mounted when returning notFound when using a template with child components that use useRouter
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: 16.14.0
      npm: 8.3.1
      Yarn: 1.22.15
      pnpm: 7.1.6
    Relevant Packages:
      next: 13.4.11-canary.0
      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)

App Router

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

https://github.com/marcelblijleven/invariant-not-found

### To Reproduce

- Run the linked repository
- Navigate to http://localhost:3000/products/2, which calls the `notFound()` function
- The error is now visible

<img width="989" alt="image" src="https://github.com/vercel/next.js/assets/2219075/b461c409-2333-41fd-8cab-472985892cc2">


### Describe the Bug

I have a layout which wraps the props.children in a React Context Provider. Inside this provider, which is a client component, I use `useRouter` from `next/navigation` to refresh the page when a 'user signs out'.

Whenever the notFound  function is called, I see a server error: `invariant expected app router to be mounted`.

### Expected Behavior

To have a not found page rendered instead of the error

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

_No response_

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

_No response_
Repository: next.js
Issue: router.refresh() does not update server components data in production 
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: linux
      Arch: x64
      Version: #22 SMP Tue Jan 10 18:39:00 UTC 2023
    Binaries:
      Node: 16.17.0
      npm: 8.15.0
      Yarn: 1.22.19
      pnpm: 7.1.0
    Relevant Packages:
      next: 13.4.11-canary.0
      eslint-config-next: N/A
      react: 18.2.0
      react-dom: 18.2.0
      typescript: 4.9.5
    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/next-52962-w2xxc5

### To Reproduce

1) Open https://codesandbox.io/p/sandbox/next-52962-w2xxc5
2) Make note of the timestamp on the page
3) Click the Refresh button 
4) Observe the timestamp on the page didn't change
5) Reload the page in the browser
6) Make note of the new timestamp on the page that should have been displayed in step 4

### Describe the Bug

router.refresh() doesn't appear to be refreshing server components data in production mode (works fine in development)

### Expected Behavior

Calling `revalidateTag` through an API route followed by `router.refresh()` must update the page with up-to-date data.

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

_No response_

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

_No response_
Repository: terminal
Issue: Random NTSTATUS when calling user32.dll!ConsoleControl under WoW64
Labels: Product-Conhost,Area-Server,Issue-Bug,Priority-3

### Windows Terminal version

_No response_

### Windows build number

10.0.19045.3086

### Other Software

_No response_

### Steps to reproduce

Build the following code for 32-bit target and run on 64-bit host
```c++
#include <iostream>
#include <windows.h>

typedef enum _CONSOLECONTROL {
    Reserved1,
    ConsoleNotifyConsoleApplication,
    Reserved2,
    ConsoleSetCaretInfo,
    Reserved3,
    ConsoleSetForeground,
    ConsoleSetWindowOwner,
    ConsoleEndTask,
} CONSOLECONTROL;

typedef struct _CONSOLEENDTASK {
    HANDLE ProcessId;
    HWND hwnd;
    ULONG ConsoleEventCode;
    ULONG ConsoleFlags;
} CONSOLEENDTASK, * PCONSOLEENDTASK;

typedef NTSTATUS(WINAPI* ConsoleControl)(
    _In_ CONSOLECONTROL Command,
    _In_reads_bytes_(ConsoleInformationLength) PVOID ConsoleInformation,
    _In_ DWORD ConsoleInformationLength
    );

int main()
{
    auto user32_dll = ::LoadLibraryExA("user32.dll", nullptr, LOAD_LIBRARY_SEARCH_SYSTEM32);
    auto ConsoleControl = (::ConsoleControl)::GetProcAddress(user32_dll, "ConsoleControl");
    auto count = DWORD{};
    auto rec = INPUT_RECORD{};
    auto task = CONSOLEENDTASK{ .ProcessId = (HANDLE)::GetCurrentProcessId(), .ConsoleEventCode = CTRL_C_EVENT };
    std::cout << "Press any key to generate event. Press Esc to exit.\n";
    while (true)
    {
        ::ReadConsoleInputW(::GetStdHandle(STD_INPUT_HANDLE), &rec, 1, &count);
        if (rec.EventType == KEY_EVENT && rec.Event.KeyEvent.bKeyDown)
        {
            if (rec.Event.KeyEvent.wVirtualKeyCode == VK_ESCAPE) return 0;
            auto status = ConsoleControl(ConsoleEndTask, &task, sizeof(task));
            std::cout << "status: 0x" << std::hex << status << "\n";
        }
    }
}
```

### Expected Behavior

Output
```
Press any key to generate event. Press Esc to exit.
status: 0x0
status: 0x0
status: 0x0
status: 0x0
```

### Actual Behavior

Output
```
Press any key to generate event. Press Esc to exit.
status: 0xb94a7
status: 0xb94ca
status: 0xb94db
status: 0xb94e6
status: 0xb955a
status: 0xb956b
status: 0xb9572
status: 0xb95fc
status: 0xb9603
status: 0xb962b
status: 0xb969b
```
Repository: rust
Issue: Missed optimization (extra branch) using slice::get with enum elements with spare niches
Labels: A-LLVM,I-slow,A-codegen,T-compiler,C-bug,I-heavy,C-optimization

The following code

```rust
#[derive(Clone, Copy)]
pub enum Outer {
    A([u8; 8]),
    B([u8; 8]),
}

pub struct Error(u8);

pub fn test(x: usize) -> Result<Outer, Error> {
    [Outer::A([10; 8]), Outer::B([20; 8])].get(x).copied().ok_or(Error(5))
}
```

[generates the following assembly](https://play.rust-lang.org/?version=stable&mode=release&edition=2021&gist=302550486a12bbbb707995290c39a43f)

```
playground::test:
	movq	%rdi, %rax
	cmpq	$1, %rsi
	ja	.LBB0_2
	leaq	(%rsi,%rsi,8), %rsi
	leaq	.L__unnamed_1(%rip), %rcx
	movzbl	(%rcx,%rsi), %edx
	cmpb	$2, %dl
	jne	.LBB0_3

.LBB0_2:
	movw	$1282, (%rax)
	retq

.LBB0_3:
	addq	%rsi, %rcx
	movq	1(%rcx), %rcx
	movb	%dl, (%rax)
	movq	%rcx, 1(%rax)
	retq

.L__unnamed_1:
	.ascii	"\000\n\n\n\n\n\n\n\n\001\024\024\024\024\024\024\024\024"
```

using stable (1.71.0).

But the second branch is completely superfluous; it's not possible for a load from the array to produce a None value.