sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: vscode
Issue: word wrap is broken in notebook cells for text/plain output
Labels: bug,notebook-output

<!-- ⚠️⚠️ 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.90.2
- OS Version: MacOS

Steps to Reproduce:

1. turn on `notebook.output.wordWrap`
2. output text with long lines to a notebook cell with MIME type `text/plain`
3. observe that lines are not wrapped

This was broken in https://github.com/microsoft/vscode/pull/211982 — in this code:
```ts
const content = createOutputContent(outputInfo.id, text, outputOptions);
content.classList.add('output-plaintext');
outputElement.classList.toggle('word-wrap', ctx.settings.outputWordWrap);
[...]
outputElement.appendChild(content);
```
the `white-space: pre` in `.output-plaintext` overrides `whitespace: pre-wrap` in `.word-wrap`.
Repository: PowerToys
Issue: PowerToys Run Shell command doesn't save to command history 
Labels: Issue-Bug,Product-PowerToys Run,Needs-Triage

### Microsoft PowerToys version

0.81.1

### Installation method

WinGet

### Running as admin

No

### Area(s) with issue?

PowerToys Run

### Steps to reproduce

Run a command using the Shell plugin in PowerToys Run
In Windows Terminal, CMD or PowerShell click the Up arrow.

### ✔️ Expected Behavior

Pressing the up arrow in Windows Terminal cycles through the command history of that session/tab/shell.

### ❌ Actual Behavior

The initial command ran in PowerToys Run does not get saved to command history meaning you have to retype the command, or copy it from the run box, if you want to run it again due to misspellings, further specifying winget packages, wanting to rerun a command, etc.

### Other Software

Powershell 7.4.3
Windows Terminal 1.20.11381.0
Repository: angular
Issue: Add support for the `picture` element to the image directive 
Labels: feature,area: common,common: image directive

### Which @angular/* package(s) are relevant/related to the feature request?

common

### Description

It would be great if the NgOptimizedDirective (or a related one) would support images declared via the `picture` element. 

### Proposed solution

* Extend the support of the support of the exisiting directive 
* Add a new directive dedicated to the `picture` element. 

### Alternatives considered

none
Repository: vscode
Issue: minimap does not show conflicting changes when the change are empty lines
Labels: bug,editor-minimap


Type: <b>Bug</b>

as seen on the screenshot, minimap does not show the location of the conflicting changes when there's no content there

VS Code version: Code 1.90.1 (611f9bfce64f25108829dd295f54a6894e87339d, 2024-06-11T21:44:54.914Z)
OS version: Darwin arm64 23.1.0
Modes:

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|Apple M2 (8 x 2400)|
|GPU Status|2d_canvas: enabled<br>canvas_oop_rasterization: enabled_on<br>direct_rendering_display_compositor: disabled_off_ok<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>opengl: enabled_on<br>rasterization: enabled<br>raw_draw: disabled_off_ok<br>skia_graphite: disabled_off<br>video_decode: enabled<br>video_encode: enabled<br>webgl: enabled<br>webgl2: enabled<br>webgpu: enabled|
|Load (avg)|5, 5, 5|
|Memory (System)|16.00GB (0.08GB free)|
|Process Argv|. --crash-reporter-id 4fd09492-0b65-45ef-a965-92b30a6581d7|
|Screen Reader|no|
|VM|0%|
</details><details><summary>Extensions (19)</summary>

Extension|Author (truncated)|Version
---|---|---
vscode-sql-formatter|adp|1.4.4
project-manager|ale|12.8.0
gitignore|cod|0.9.0
git-extension-pack|don|0.1.3
githistory|don|0.6.20
gitlens|eam|15.1.0
copilot|Git|1.207.0
copilot-chat|Git|0.16.1
go|gol|0.41.4
rainbow-csv|mec|3.12.0
vscode-docker|ms-|1.29.1
vscode-language-pack-es|MS-|1.90.2024061209
autopep8|ms-|2024.0.0
debugpy|ms-|2024.6.0
python|ms-|2024.8.1
vscode-pylance|ms-|2024.6.1
vsliveshare|ms-|1.0.5932
vscode-xml|red|0.27.1
vscode-open-in-github|ziy|1.3.6


</details><details>
<summary>A/B Experiments</summary>

```
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805:30301674
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
vscrpc:30673769
a9j8j154:30646983
962ge761:30959799
pythongtdpath:30769146
welcomedialogc:30910334
pythonnoceb:30805159
asynctok:30898717
pythonregdiag2:30936856
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
accentitlementst:30995554
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
jchc7451:31067544
chatpanelt:31048053
dsvsc021:30996838
bdiig495:31013172
pythoncenvpt:31062603
a69g1124:31058053
dvdeprecation:31068756
dwnewjupytercf:31046870
legacy_priority:31082724

```

</details>

<!-- generated by issue reporter -->
Repository: angular
Issue: Angular devtools fails to display component information when it injects a number value
Labels: area: devtools,bug

### Is this a bug report or a feature request?

- [X] Bug Report
- [ ] Feature Request

### Please provide the steps to reproduce the issue [Bug Report only]

Create a component that injects a number via an injection token:

```ts
const MY_NUMBER = new InjectionToken<number>('my-number');

@Component({
  selector: 'app-component',
  standalone: true,
  providers: [{ provide: MY_NUMBER, useValue: 42 }]
})
export class AppComponent {
  readonly myNumber = inject(MY_NUMBER);
}
```

Using the chrome debugger shows it coming from `valueToLabel` inside `component-tree.ts`. It's trying to call `<number>.startsWith('_')`:

![image](https://github.com/angular/angular/assets/55192399/3020b917-d250-40bb-9d1a-850a6912baff)

Link to source: https://github.com/angular/angular/blob/main/devtools/projects/ng-devtools-backend/src/lib/component-tree.ts#L324


### Please provide the expected behavior vs the actual behavior you encountered [Bug Report only]

I'd expect the component details to display normally.

### Please provide a screenshot if possible [Bug Report only]

This fails with `e.startsWith` is not a function:

![image](https://github.com/angular/angular/assets/55192399/e3b8a826-10ec-4fb0-9b91-8684e6379ce9)

The devtools window displays nothing:
![image](https://github.com/angular/angular/assets/55192399/432cc497-a944-4edc-8b94-da82495af5ee)

### Please provide the exception or error you saw [Bug Report only]

```true
TypeError: e.startsWith is not a function
    at Se (component-tree.ts:341:11)
    at fe (component-tree.ts:330:12)
    at Ti (component-tree.ts:304:16)
    at c (component-tree.ts:123:29)
    at kn (component-tree.ts:149:5)
    at client-event-subscribers.ts:148:19
    at n (same-page-message-bus.ts:46:21)
    at _ZoneDelegate.invokeTask (zone.umd.js:443:1)
    at ZoneImpl.runTask (zone.umd.js:195:1)
    at ZoneTask.invokeTask [as invoke] (zone.umd.js:527:1)
```


### Is this a browser-specific issue? If so, please specify the device, browser, and version. [Bug Report only]

_No response_

### Description [Feature Request only]

_No response_

### Proposed solution [Feature Request only]

_No response_

### Alternatives considered [Feature Request only]

_No response_
Repository: go
Issue: x/build/cmd/relui: record & display who initiated a workflow
Labels: Builders,NeedsFix

It would be useful from both an auditing and general informational perspective to know which user created a workflow. We should have this information (via IAP headers).

cc @dmitshur
Repository: flutter
Issue: Get ready for `@docImport`s
Labels: d: api docs,P3,team-framework,triaged-framework

Details:
* https://github.com/dart-lang/sdk/issues/56186
* https://github.com/dart-lang/sdk/issues/50702

Related:
* https://github.com/dart-lang/sdk/issues/55414

Blockers:

- [x] https://github.com/dart-lang/sdk/issues/56088
- [x] https://github.com/dart-lang/sdk/issues/56100
- [x] Problems listed in https://github.com/flutter/flutter/pull/150798#issue-2373602645
- [x] references in docs on enum values (examples in https://github.com/flutter/flutter/pull/151119#issue-2384436349)
- [ ] references to library names (https://github.com/dart-lang/sdk/issues/56528)
- [x] cross-references between packages without dependency (example in https://github.com/flutter/flutter/pull/151189#issue-2387034842)
- [x] https://github.com/dart-lang/sdk/issues/57104
- [x] google3 problems docimporting `flutter_test` from `pkg:flutter`
- [ ] `as` imports do not work (https://github.com/dart-lang/sdk/issues/56527)
- [x] dartdoc and comment_reference disagree: https://github.com/flutter/flutter/pull/151951/files#r1682709050
- [ ] typedefs (https://github.com/dart-lang/sdk/issues/56109)
Repository: flutter
Issue: Revisit disabled `OffscreenCanvas` support for Safari
Labels: platform-web,P2,e: wasm,e: web_skwasm,team-web,triaged-web

In https://github.com/flutter/engine/pull/41135, usage of `OffscreenCanvas` was disabled for Safari due to not yet supporting WebGL.

It seems it [now works](https://bugs.webkit.org/show_bug.cgi?id=254071#c5) in Safari 17+, with the caveat that only on macOS Sonoma and iOS 17+ derivatives. Not earlier versions of the platforms with Safari 17.

If there's no good way to check for this capability now, this issue can serve as a tracking issue until a major version of Safari releases that only supports OS's with the necessary support.
Repository: flutter
Issue: Add callback when a PlatformView is added to native view hierarchy
Labels: a: platform-views,c: proposal,P2,team-ios,triaged-ios

### Use case

The first party [interactive_media_ads](https://pub.dev/packages/interactive_media_ads) plugin uses a PlatformView to display ads. However, ads can't be requested **until** the PlatformView has been added to the native View hierarchy. The [UiKitView](https://api.flutter.dev/flutter/widgets/UiKitView-class.html) contains the [PlatformViewCreatedCallback](https://api.flutter.dev/flutter/services/PlatformViewCreatedCallback.html) which returns when the View is created, but not when it has been added to the View hierarchy.

I was able to workaround this with a delay, so this is not a blocker:

```dart
return UiKitView(
      key: _iosParams.key,
      viewType: 'interactive_media_ads.packages.flutter.dev',
      onPlatformViewCreated: (_) async {
        adDisplayContainer = _iosParams._imaProxy.newIMAAdDisplayContainer(
          adContainer: _controller.view,
          adContainerViewController: _controller,
        );
        // Without this delay, the IMA SDK returns an error:
        // Ads cannot be requested because the ad container is not attached to the view hierarchy.
        await Future.delayed(Duration(seconds: 1));
        params.onContainerAdded(this);
      },
      creationParams:
          // ignore: invalid_use_of_protected_member
          _controller.pigeon_instanceManager.getIdentifier(_controller.view),
      creationParamsCodec: const StandardMessageCodec(),
    );
```

Note that on Android, the view is added to the hierarchy when it is created:  https://github.com/flutter/engine/blob/main/shell/platform/android/io/flutter/plugin/platform/PlatformViewsController.java#L598

I'm not familiar with the PlatformViews on iOS, so I don't know where to quickly check when it is added.

### Proposal

This issue proposes a new callback for `UIKitView` called `onPlatformViewAdded` or change the creation of the PlatformView to not return until the View is added.
Repository: go
Issue: proposal: debug/buildinfo: add build-id to BuildInfo struct
Labels: Proposal

### Proposal Details

Currently a build ID is written to the ELF header (in `.note.go.buildid`) during compilation. This build-id can be read using the tool `go tool buildid {binary}`. It's not possible to read this build-id during runtime, without actually opening the binary again to read the ELF header. The code to do it is also in an [internal package](https://github.com/golang/go/blob/master/src/cmd/internal/buildid/buildid.go).

It could be very useful to have this build-id available during runtime. One of the use-cases for this is error tracking and mapping errors to debug symbols, see the following issue in Sentry: https://github.com/getsentry/sentry-cli/issues/1979

If the build-id is available during runtime through `debug.ReadBuildInfo()`, the Go Sentry SDK could just extract this from the `BuildInfo` struct and send it together with the rest of the error information to that it can be matched to the debug symbols that are uploaded to Sentry.
Repository: ui
Issue: [bug]: Combobox overflow text displaces dropdown icon
Labels: bug

### Describe the bug

The Combobox as set up in the docs do not handle long texts in the button well, it displaces the chevron to the right to the point it disappears and it looks like a normal input instead.

![Screenshot 2024-06-25 161345](https://github.com/shadcn-ui/ui/assets/9698639/13f5ea67-98dc-4a2f-876b-4fe8248a21a7)


### Affected component/components

Combobox, Button

### How to reproduce

1. Copy the Combobox example from the docs.
2. Change the `"Select framework..."` part to a long string, or select an option that has a long string.
3. If the length of the string is bigger than the button length including the Chevron icon, it will displace the icon to the right.
4. With a string long enough the chevron icon will be displaced so far right that it will not be visible, like in the screenshot.

### Codesandbox/StackBlitz link

_No response_

### Logs

_No response_

### System Info

```bash
Browser: Google Chrome Version 126.0.6478.126
Radix UI: @radix-ui/react-popover@1.1.1

Operating System:
──────────────────────────────────────────────────────────────────────────────────────────
Platform         : linux
Distro           : Ubuntu
Release          : 22.04.4 LTS
Codename         : jammy
Kernel           : 5.15.146.1-microsoft-standard-WSL2
Arch             : x64
Hostname         : #########
Codepage         : UTF-8
Build            : 

System:
──────────────────────────────────────────────────────────────────────────────────────────
Manufacturer     : Microsoft
Model            : WSL
Version          : 2
Virtual          : true

CPU:
──────────────────────────────────────────────────────────────────────────────────────────
Manufacturer     : Intel
Brand            : Gen Intel® Core™ i9-13900KF
Family           : 6
Model            : 183
Stepping         : 1
Speed            : 
Cores            : 32
PhysicalCores    : 16
PerformanceCores : 16
EfficiencyCores  : 
Processors       : 1
Socket           : 
```
```


### Before submitting

- [X] I've made research efforts and searched the documentation
- [X] I've searched for existing issues
Repository: vscode
Issue: SCM Graph - high contrast colors
Labels: feature-request,ux,accessibility,scm

Testing #217398

<img width="357" alt="image" src="https://github.com/user-attachments/assets/d151a1b1-ea9d-4681-98ed-5d378e1b3192">

I'm not actually sure... but it feels not.

cc @daviddossett
Repository: vscode
Issue: SCM Graph - high contract line types
Labels: feature-request,accessibility,scm

Testing #217398

I was looking at this state:
<img width="281" alt="image" src="https://github.com/microsoft/vscode/assets/2644648/43225185-bba0-42c7-acd7-9b8deb7d431e">

and I realized that except for the color and the commit message, I don't really know which branch the `sdfg` commit originally came from. The hover doesn't say so.

Can we include the branch somewhere maybe? Also, I'm not sure if this is really needed, but I wanted to mention it. I know there's an accessibility requirement that says color can't be the only difference for things that need to be distinguished between each other... and maybe there's enough information to understand the difference between each branch... but I wonder if the lines could be solid/dotted/dashed (depending on the branch) for accessibility.
Repository: pytorch
Issue: `test_dummy_mha_with_nt_cuda` fails on `sm70`, `sm75`
Labels: module: cuda,triaged,module: nestedtensor,module: sdpa

### 🐛 Describe the bug

Looks like it's dispatching to efficient attention backward and failing one of the shape checks (
```
TORCH_CHECK(
        max_seqlen_k <= key.size(1), "Invalid max_seqlen_k:", max_seqlen_k);
```
)

failing call:
```
    buf0 = aten._efficient_attention_backward.default(reinterpret_tensor(tangents_1, (1, s1, 2, 3), (6*s1, 6, 3, 1), 0), unsqueeze, unsqueeze_1, unsqueeze_2, None, getitem, convert_element_type, convert_element_type_1, s2, s5, getitem_1, 0.0, getitem_2, getitem_3, 0, False)
```

Printing `k.sizes()` here shows: `[1, 6, 2, 3]` when `max_seqlen_k` is `10`.

Doesn't seem to happen on sm80+ as they seem to be able to dispatch to FA instead?
Interestingly fixing the backend on sm80+ with a decorator to run on efficient-attention only gives:
```
W0625 22:21:47.487000 140137837507200 torch/nested/_internal/sdpa.py:293] Memory efficient kernel not used because:
W0625 22:21:47.488000 140137837507200 torch/nested/_internal/sdpa.py:296] Flash attention kernel not used because:
W0625 22:21:47.488000 140137837507200 torch/nested/_internal/sdpa.py:101] For NestedTensor inputs, Flash attention requires q,k,v to have the same last dimension and to be a multiple of 8 and less than or equal to 256. Got Query.size(-1): 3, Key.size(-1): 3, Value.size(-1): 3 instead.
W0625 22:21:47.488000 140137837507200 torch/nested/_internal/sdpa.py:299] Math attention kernel not used because:
/workspace/pytorch/test/test_nestedtensor.py:5317: UserWarning: Mem efficient attention requires last dimension of inputs to be divisible by 4. Got Query.size(-1): 3, Key.size(-1): 3, Value.size(-1): 3 instead. (Triggered internally at /workspace/pytorch/aten/src/ATen/native/transformers/cuda/sdp_utils.cpp:164.)
  attn_output = torch.nn.functional.scaled_dot_product_attention(
/workspace/pytorch/test/test_nestedtensor.py:5317: UserWarning: Flash attention has been runtime disabled. (Triggered internally at /workspace/pytorch/aten/src/ATen/native/transformers/sdp_utils_cpp.h:494.)
  attn_output = torch.nn.functional.scaled_dot_product_attention(
E
```

Simply removing the `max_seqlen_k <= k.size(1)` shape check allows for test to pass but I'm not sure that's correct---is there some special inductor/symbolic tracing accounting for shapes that needs to be done here?

CC @drisspg 

### Versions

Current 2024/06/25 source build

cc @ptrblck @msaroufim @cpuhrsch @jbschlosser @bhosmer @drisspg @soulitzer @davidberard98 @YuqingJ
Repository: TypeScript
Issue: BUG: TS: Functionality `Refactor: move to` constant to existing file: if from that existing file already present `import` to current file, refactor will not reuse that import but instead adds new one
Labels: Bug

<!-- ⚠️⚠️ 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. -->
Version: 1.90.0 (user setup)
Commit: 89de5a8d4d6205e5b11647eb6a74844ca23d2573

Steps to Reproduce:

Functionality `Refactor: move to` constant to existing file: if from that existing file already present `import` to current file, refactor will not reuse that import but instead adds new one

1. Two files:
```ts
// File `a.ts`
import {b} from b.ts;

const test = 2;
```
```ts
// File `b.ts`
export const b = 2;
```
2. Now use `Refactor` constant `test` from file `a.ts` to existing file `b.ts`.

### ER

file `a.ts` should be:
```ts
// File `a.ts`
import {b, test} from b.ts;
```
file `b.ts` should be:
```ts
// File `b.ts`
export const b = 2;
export const test = 2;
```

### AR

file `a.ts` is:
```ts
// File `a.ts`
import {b} from b.ts;
import {test} from b.ts;        // problem here: 2 imports from same file
```
file `b.ts` is:
```ts
// File `b.ts`
export const b = 2;
export const test = 2;
```
Repository: next.js
Issue: Production CSS optimization breaks nesting of at-rules
Labels: bug,Webpack,linear: next

### Link to the code that reproduces this issue

https://codesandbox.io/p/devbox/css-module-compilation-mashing-ghp469

### To Reproduce

1. Build the app
2. Run the app
3. Load the default page
4. Resize the window across the 300px width boundary

### Current vs. Expected behavior

The background color of the centered div is expected to be red at all screen widths, but isn't.

### Provide environment information

```bash
Operating System:
  Platform: linux
  Arch: x64
  Version: #1 SMP PREEMPT_DYNAMIC Sun Aug  6 20:05:33 UTC 2023
  Available memory (MB): 4102
  Available CPU cores: 2
Binaries:
  Node: 20.11.1
  npm: 10.2.4
  Yarn: 1.22.19
  pnpm: 8.15.4
Relevant Packages:
  next: 14.2.4 // Latest available version is detected (14.2.4).
  eslint-config-next: 14.2.1
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.3.3
Next.js Config:
  output: N/A
```


### Which area(s) are affected? (Select all that apply)

Webpack

### Which stage(s) are affected? (Select all that apply)

next build (local)

### Additional context

A CSS module defined as
```
.backgroundMobile {
  @media (max-width: 300px) {
    background-color: red;
  }
}
.backgroundDesktop {
  @media (min-width: 301px) {
    background-color: red;
  }
}
```
gets compiled to a single rule 
```
.page_backgroundDesktop___7nSc, .page_backgroundMobile__9v2l5 {
    @media (min-width: 301px) {
        background-color: red;
    }
}
```

It appears the media query is ignored when determining how to optimize the CSS. CSS nesting is a new feature, but nesting @ rules is part of the spec ([MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_nesting/Nesting_at-rules)). It looks like nextjs uses [`postcss-nested`](https://github.com/vercel/next.js/blob/0d9c89bf812d27871c180af513c69f65e9544641/package.json#L193), which I suspect is where the root issue is, but that package looks to be unmaintained, not updated in over a year, in favor of [`postcss-nesting`](https://www.npmjs.com/package/postcss-nesting), which is intended to implement the draft spec.

#### Workarounds
##### Reorder css nesting
Reordering the nesting as
```
@media (max-width: 300px) {
  .backgroundMobile {
    background-color: red;
  }
}
@media (min-width: 301px) {
  .backgroundDesktop {
    background-color: red;
  }
}
```
appears to compile correctly

##### Add `postcss-nesting` plugin
Adding `"plugins": ["postcss-nesting"]` to `postcss.config.js` causes the css to be compiled correctly.