sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: vscode
Issue: Cannot read properties of null (reading 'getFoldingState')
Labels: error-telemetry

```javascript
TypeError: Cannot read properties of null (reading 'getFoldingState')
at get foldingState in src/vs/workbench/contrib/notebook/browser/viewModel/markupCellViewModel.ts:75:31
at W.n in src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.ts:200:94
at W.renderElement in src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.ts:169:9
at N.renderElement in src/vs/base/browser/ui/tree/abstractTree.ts:418:17
at _.renderElement in src/vs/base/browser/ui/list/listWidget.ts:1249:13
at S.Z in src/vs/base/browser/ui/list/listView.ts:940:13
at S.U in src/vs/base/browser/ui/list/listView.ts:675:10
at S.splice in src/vs/base/browser/ui/list/listView.ts:576:16
at <anonymous> in src/vs/base/browser/ui/list/splice.ts:17:35
at Array.forEach (<anonymous>)
at t.splice in src/vs/base/browser/ui/list/splice.ts:17:20
at <anonymous> in src/vs/base/browser/ui/list/listWidget.ts:1585:57
at fn in src/vs/base/common/event.ts:1703:13
at J.splice in src/vs/base/browser/ui/list/listWidget.ts:1585:22
at J.splice in src/vs/base/browser/ui/tree/abstractTree.ts:2389:9
at g.t in src/vs/base/browser/ui/tree/indexTreeModel.ts:308:14
at g.splice in src/vs/base/browser/ui/tree/indexTreeModel.ts:160:9
at I.l in src/vs/base/browser/ui/tree/objectTreeModel.ts:122:14
at I.setChildren in src/vs/base/browser/ui/tree/objectTreeModel.ts:71:8
at te.m in src/vs/base/browser/ui/tree/dataTree.ts:155:14
at te.updateChildren in src/vs/base/browser/ui/tree/dataTree.ts:110:8
at u.q [as value] in src/vs/workbench/contrib/outline/browser/outlinePane.ts:290:10
at o.B in src/vs/base/common/event.ts:1230:13
at o.C in src/vs/base/common/event.ts:1241:9
at o.fire in src/vs/base/common/event.ts:1265:9
at u.value in src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.ts:666:23
at o.B in src/vs/base/common/event.ts:1230:13
at o.C in src/vs/base/common/event.ts:1241:9
at o.fire in src/vs/base/common/event.ts:1265:9
at g.recomputeActive in src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineDataSource.ts:211:22
at Y.I in src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.ts:722:72
at <anonymous> in src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.ts:724:52
at task in src/vs/base/common/async.ts:364:13
```
[Go to Errors Site](https://errors.code.visualstudio.com/card?ch=eaa41d57266683296de7d118f574d0c2652e1fc4&bH=7271832a-05e8-e463-cbab-275d6fb66431)
Repository: vscode
Issue: Model is disposed!
Labels: error-telemetry

```javascript
Error: Model is disposed!
at U.ib in src/vs/editor/common/model/textModel.ts:421:10
at U.getLineCount in src/vs/editor/common/model/textModel.ts:806:8
at <anonymous> in src/vs/workbench/contrib/output/common/outputChannelModel.ts:238:27
```
[Go to Errors Site](https://errors.code.visualstudio.com/card?ch=eaa41d57266683296de7d118f574d0c2652e1fc4&bH=71d77f58-9b8f-dd09-5b91-c8afd6bf5ab0)
Repository: vscode
Issue: InstantiationService has been disposed
Labels: error-telemetry

```javascript
Error: InstantiationService has been disposed
at g.m in src/vs/platform/instantiation/common/instantiationService.ts:69:10
at g.createInstance in src/vs/platform/instantiation/common/instantiationService.ts:119:8
at new Z in src/vs/editor/browser/view.ts:131:54
at x.ac in src/vs/editor/browser/widget/codeEditor/codeEditorWidget.ts:1856:16
at x.$b in src/vs/editor/browser/widget/codeEditor/codeEditorWidget.ts:1758:36
at x.setModel in src/vs/editor/browser/widget/codeEditor/codeEditorWidget.ts:495:9
at <anonymous> in src/vs/workbench/contrib/notebook/browser/view/cellParts/markupCell.ts:384:18
```
[Go to Errors Site](https://errors.code.visualstudio.com/card?ch=eaa41d57266683296de7d118f574d0c2652e1fc4&bH=e9dc9211-9b48-734a-d613-68da52681138)
Repository: vscode
Issue: Cannot read properties of undefined (reading 'contentMatches')
Labels: error-telemetry

```javascript
TypeError: Cannot read properties of undefined (reading 'contentMatches')
at g.w in src/vs/workbench/contrib/notebook/browser/contrib/find/findModel.ts:275:31
at <anonymous> in src/vs/workbench/contrib/notebook/browser/contrib/find/findModel.ts:263:9
```
[Go to Errors Site](https://errors.code.visualstudio.com/card?ch=eaa41d57266683296de7d118f574d0c2652e1fc4&bH=a9a50a9e-32a0-eccd-cd4e-a1bd577cce25)
Repository: vscode
Issue: Illegal value for lineNumber
Labels: error-telemetry

```javascript
Error: Illegal value for lineNumber
at U.getLineContent in src/vs/editor/common/model/textModel.ts:813:10
at c._computeFn in src/vs/editor/contrib/inlineCompletions/browser/ghostTextWidget.ts:86:36
at c.t in src/vs/base/common/observableInternal/derived.ts:284:22
at c.get in src/vs/base/common/observableInternal/derived.ts:261:10
at c.reportChanges in src/vs/base/common/observableInternal/base.ts:189:8
at c.get in src/vs/base/common/observableInternal/derived.ts:246:9
at c.reportChanges in src/vs/base/common/observableInternal/base.ts:189:8
at p.endUpdate in src/vs/base/common/observableInternal/autorun.ts:229:9
at c.endUpdate in src/vs/base/common/observableInternal/derived.ts:341:7
at c.endUpdate in src/vs/base/common/observableInternal/derived.ts:341:7
at c.endUpdate in src/vs/base/common/observableInternal/derived.ts:341:7
at c.endUpdate in src/vs/base/common/observableInternal/derived.ts:341:7
at d.finish in src/vs/base/common/observableInternal/base.ts:372:13
at f.g in src/vs/editor/browser/observableCodeEditor.ts:66:6
at u.value in src/vs/editor/browser/observableCodeEditor.ts:74:53
at o.B in src/vs/base/common/event.ts:1230:13
at o.fire in src/vs/base/common/event.ts:1261:9
at x.jc in src/vs/editor/browser/widget/codeEditor/codeEditorWidget.ts:1943:22
at x.setModel in src/vs/editor/browser/widget/codeEditor/codeEditorWidget.ts:506:9
at <anonymous> in src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCell.ts:210:30
```
[Go to Errors Site](https://errors.code.visualstudio.com/card?ch=eaa41d57266683296de7d118f574d0c2652e1fc4&bH=d2af2b27-eca1-4944-e3a4-6be21e6b9d0e)
Repository: vscode
Issue: ListError [NotebookCellList] Invalid index 14
Labels: error-telemetry

```javascript
Error: ListError [NotebookCellList] Invalid index 14
at w.getCellViewScrollTop in src/vs/workbench/contrib/notebook/browser/view/notebookCellList.ts:759:10
at Pe.createMarkupPreview in src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.ts:2737:30
at Object.Se [as callback] in src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.ts:1214:10
at <anonymous> in src/vs/base/common/platform.ts:233:17
```
[Go to Errors Site](https://errors.code.visualstudio.com/card?ch=eaa41d57266683296de7d118f574d0c2652e1fc4&bH=3e58aaab-9964-bc5d-5a87-6da8aa6f6e99)
Repository: deno
Issue: Feat: shareable presets for formatting and linting
Labels: feat

## Need

The direct integration of formatting and linting into the deno cli is one of its strengths. With the monorepo support these configurations can also be shared with multiple subprojects within the same repository. There is, however, no way to share something like a company style guide for fmt or linting between multiple repositories right now without manual copy and paste of the sections within `deno.json`. With 20+ repositories this is simply not feasible.

## Feature ideas

- As a developer I want to be able to be able to specify my linting and formatting configuration for deno in a way that is shareable between deno projects. Maybe published via JSR and extended/referenced in the concrete `deno.json`.
- As a developer I want deno to pick its formatting defaults from a pre existing [`.editorconfig`](https://editorconfig.org/), if present - like [prettier is doing](https://prettier.io/docs/en/configuration.html#editorconfig). Since editorconfig should be a project- and IDE-independent config file, it can easily be synced via something like [Repo File Sync Action](https://github.com/marketplace/actions/repo-file-sync-action).


On a side note, are there any plans to extend the linting rules or make them extendable by the community? Something like [no-floating-promises](https://typescript-eslint.io/rules/no-floating-promises/) would be really nice.
Repository: godot
Issue: Release build has tree_exiting error that doesn't occur in debug build/editor (Windows, MinGW/GCC LTO regression)
Labels: bug,platform:windows,topic:buildsystem,confirmed,regression

### Tested versions

Reproducible in 4.3rc3, 4.3rc2

### System information

Windows 10

### Issue description

I have a project that plays in editor with no errors, exported debug builds play fine too, but exported release builds have a new major error: a type of object that is meant to be destroyed will not be removed and give this error:
```
ERROR: Attempt to disconnect a nonexistent connection from '@AnimatableBody2D@557:<AnimatableBody2D#149350782344>'. Signal: 'tree_exiting', callable: ''.
   at: (core/object/object.cpp:1462) 
```
There isn't any code that connects to these objects tree_exiting signal.
I've tried Windows and Web builds and it happens in both.
It's worth noting the project was originally created in 4.2.1, it never had these errors in editor but no builds were tested until bringing it to 4.3, so I have no idea if this error is specific to 4.3 or can happen in older versions. When I attempt to open it back up in 4.2.1 any builds are broken and the log tells me it can't open scenes made in 4.3.

![image](https://github.com/user-attachments/assets/2d3d1c37-b9b9-4e66-97c6-2d08e81f6828)



### Steps to reproduce

Export a Windows 64bit build with debug enabled and it will play correctly, clicking on tiles will make them disappear.
Then export a Windows 64bit build with debug disabled and launch with the console, the tiles will not disappear and multiple identical errors fill the log.

### Minimal reproduction project (MRP)

[broken-export.zip](https://github.com/user-attachments/files/16609515/broken-export.zip)
Repository: vscode
Issue: ignore comment change while diff
Labels: feature-request,diff-editor

e.g: in `c`

```diff
- var a = READ(0x4000_0100); // reg timer_0
+ var a = READ(0x4000_0100); // reg timer_1
```
add support to ignore the change of comment like above
Repository: angular
Issue: Custom `injector` for templates breaks `@Host` inject flag
Labels: area: core,core: di

### Which @angular/* package(s) are the source of the bug?

core

### Is this a regression?

No

### Description

When passing custom injector while creating a view, either with `ngTemplateOutlet` or manually with `ViewContainerRef`, if some injection had `@Host` flag inside that template it breaks and leaks outside.

### Please provide a link to a minimal reproduction of the bug

https://stackblitz.com/edit/stackblitz-starters-krtzpp

### Please provide the exception or error you saw

I have a component that implements `ControlValueAccessor`. Inside its template I use `[(ngModel)]`. It all worked fine until I tried to use that component in a template and instantiate that template with custom injector. I started to get exception that `ngModel` cannot be used with reactive forms, however source code for `NgModel` shows it uses `@Host` decorator to inject parent only if it's the same host. So it shouldn't have reached outside my `ControlValueAccessor` component and see that it is used with reactive forms. I've attached a minimal reproduction on StackBlitz to see the issue.

### Please provide the environment you discovered this bug in (run `ng version`)

```true
Angular 16+
```


### Anything else?

_No response_
Repository: ollama
Issue: AMD Multiple GPU support
Labels: bug,windows,amd

### Hi,

I think the current AMD ROCm doesn’t work well with multiple video cards. I have an XTX 7900 (24GB) and an XT 7900 (20GB). My processor also has a small integrated GPU, but that shouldn’t be a problem.

When I try to load the model llama3.1:70b (39GB):

1. It doesn’t crash, but it has an infinite load time (at least 10 minutes, maybe more).
2. My PC gets stuck; I can’t move my mouse or do anything else, including exiting the loading process with Ctrl+C.
3. It uses (not very actively) only one GPU
4. The CPU is also loaded in the server process (only a few cores), and the only way to exit this mode is to shut down with the power button.

here my [server.log](https://github.com/user-attachments/files/16610677/server.log)

I can try anything you want, just tell me what to do (recompile llama.cpp or something else).

### OS

Windows

### GPU

AMD

### CPU

AMD

### Ollama version

0.3.6
Repository: electron
Issue: [Bug]: set WebContentsView on the top of another View, webkit-app-region: no-drag doesn't works on Electron 30 and later
Labels: platform/windows,platform/macOS,bug :beetle:,status/confirmed,has-repro-gist,component/draggable-regions,component/WebContentsView,30-x-y,31-x-y,32-x-y

### Preflight Checklist

- [X] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/main/CONTRIBUTING.md) for this project.
- [X] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/main/CODE_OF_CONDUCT.md) that this project adheres to.
- [X] I have searched the [issue tracker](https://www.github.com/electron/electron/issues) for a bug report that matches the one I want to file, without success.

### Electron Version

30+

### What operating system(s) are you using?

Windows, macOS

### Operating System Version

Windows 10, macOS 13.6

### What arch are you using?

x64

### Last Known Working Electron version

_No response_

### Expected Behavior

<img width="652" alt="image" src="https://github.com/user-attachments/assets/a92bc4c7-bbe8-4b05-aa89-0e6f97cd2eca">


After designating the red area of the BrowserWindow as a draggable region with webkit-app-region:drag, when a WebContentView is added to the BrowserWindow.contentView, the blue area also becomes draggable. 

This happens even if the blue area has been set as a non-draggable region with no-drag, indicating that it's still influenced by the draggable settings of the BrowserWindow.

### Actual Behavior

When a BrowserWindow or another WebContentView adds a childView, the drag response is done according to the webkit-app-region behavior of the top childView.

### Testcase Gist URL

https://gist.github.com/ksky521/091af6d9782583141564278002b6d235

### Additional Information

_No response_
Repository: rust
Issue: Recommend *var for comparison when Deref<Target = str>
Labels: A-diagnostics,T-compiler

### Code

```Rust
use std::boxed::Box;
use std::ops::Deref;

#[derive(Debug, Eq, PartialEq)]
pub enum CowStr<'a> {
    /// An owned, immutable string.
    Boxed(Box<str>),
    /// A borrowed string.
    Borrowed(&'a str),
}

impl<'a> Deref for CowStr<'a> {
    type Target = str;

    fn deref(&self) -> &str {
        match self {
            CowStr::Boxed(ref b) => b,
            CowStr::Borrowed(b) => b,
        }
    }
}

fn main() {
    let a = CowStr::Borrowed("foo");
    if a == "foo" {
        println!("OK");
    }
}
```


### Current output

```Shell
error[E0308]: mismatched types
  --> src/main.rs:25:13
   |
25 |     if a == "foo" {
   |             ^^^^^ expected `CowStr<'_>`, found `&str`
   |
help: try wrapping the expression in `CowStr::Borrowed`
   |
25 |     if a == CowStr::Borrowed("foo") {
   |             +++++++++++++++++     +

For more information about this error, try `rustc --explain E0308`.
error: could not compile `testrust` (bin "testrust") due to 1 previous error
```


### Desired output

```Shell
error[E0277]: can't compare `CowStr<'_>` with `str`
  --> src/main.rs:25:11
   |
25 |     if a == "foo" {
   |           ^^ no implementation for `CowStr<'_> == str`
   |
   = help: the trait `PartialEq<str>` is not implemented for `CowStr<'_>`
   = help: both types can be dereferenced to `str`
help: consider dereferencing both sides of the expression
   |
25 -     if a == "foo" {
25 +     if *a == *"foo" {
   |

For more information about this error, try `rustc --explain E0277`.
error: could not compile `testrust` (bin "testrust") due to 1 previous error
```


### Rationale and extra context

Deref both sides is easier and shorter. It should be recommended when both types deref to a type that implements PartialEq.

### Other cases

```Rust
`if &a == "foo"` already recommends deref on both sides, but not `a == "foo"`. However, assert_eq doesn't recommend deref in both cases.
```


### Rust Version

```Shell
rustc 1.82.0-nightly (41dd149fd 2024-08-11)
binary: rustc
commit-hash: 41dd149fd6a6a06795fc6b9f54cb49af2f61775f
commit-date: 2024-08-11
host: x86_64-unknown-linux-gnu
release: 1.82.0-nightly
LLVM version: 19.1.0
```


### Anything else?

_No response_
Repository: rust
Issue: MIR building generates mistyped assignments for opaques in dead code
Labels: T-compiler,A-MIR,C-bug

```rust
enum Never {}
fn foo() -> impl Sized {
    let ret = 'block: {
        break 'block foo();
    };
    let _: Never = ret;
    ret
}
```
results in the following MIR:
```
// MIR for `foo` after built

| User Type Annotations
| 0: user_ty: Canonical { value: Ty(Never), max_universe: U0, variables: [], defining_opaque_types: [DefId(0:6 ~ main[7eb4]::foo::{opaque#0})] }, span: src/main.rs:6:12: 6:17, inferred_ty: Never
| 1: user_ty: Canonical { value: Ty(Never), max_universe: U0, variables: [], defining_opaque_types: [DefId(0:6 ~ main[7eb4]::foo::{opaque#0})] }, span: src/main.rs:6:12: 6:17, inferred_ty: Never
|
fn foo() -> impl Sized {
    let mut _0: impl Sized;
    let _1: impl Sized;
    scope 1 {
        debug ret => _1;
        scope 2 {
        }
    }

    bb0: {
        StorageLive(_1);
        _1 = foo() -> [return: bb1, unwind: bb6];
    }

    bb1: {
        goto -> bb3;
    }

    bb2: {
        _1 = const ();
        goto -> bb4;
    }

    bb3: {
        goto -> bb4;
    }

    bb4: {
        FakeRead(ForLet(None), _1);
        PlaceMention(_1);
        AscribeUserType((_1 as Never), +, UserTypeProjection { base: UserType(1), projs: [] });
        _0 = move _1;
        StorageDead(_1);
        return;
    }

    bb5: {
        FakeRead(ForMatchedPlace(None), _1);
        unreachable;
    }

    bb6 (cleanup): {
        resume;
    }
}
```
notice the `_1 = const ();` which assigns unit to `impl Sized` even though its type is `Never`.

This should result in a type error and therefore an ICE, but apparently we never even get to test that as the block is entirely dead code :thinking: cc @oli-obk 

https://github.com/rust-lang/rust/blob/fbce03b195c02e425fbb12276b8f02349048a75f/compiler/rustc_mir_build/src/build/block.rs#L342-L354
Repository: deno
Issue: Implement `PerformanceObserver.observe` from `node:perf_hooks`
Labels: bug,node compat

There has been recently an update in the `grammardown` npm package that makes `ecmarkup` not work anymore in Deno (I was trying in https://github.com/tc39/ecma262/):
```
deno run -A npm:ecmarkup --verbose spec.html --multipage out
error: Uncaught Error: Not implemented: PerformanceObserver.observe
    at notImplemented (ext:deno_node/_utils.ts:6:9)
    at PerformanceObserver.observe (node:perf_hooks:5:5)
    at reset (file:///home/nic/Documents/dev/github.com/tc39/ecma262/node_modules/.deno/grammarkdown@3.3.2/node_modules/grammarkdown/dist/performance.js:128:18)
    at Object.<anonymous> (file:///home/nic/Documents/dev/github.com/tc39/ecma262/node_modules/.deno/grammarkdown@3.3.2/node_modules/grammarkdown/dist/performance.js:88:1)
    at Object.<anonymous> (file:///home/nic/Documents/dev/github.com/tc39/ecma262/node_modules/.deno/grammarkdown@3.3.2/node_modules/grammarkdown/dist/performance.js:141:4)
    at Module._compile (node:module:659:34)
    at Object.Module._extensions..js (node:module:673:10)
    at Module.load (node:module:597:32)
    at Function.Module._load (node:module:484:12)
    at Module.require (node:module:609:19)
```

I saw that there is already https://github.com/denoland/deno/issues/11260 open, but that one looks to be about the global web API that has the same name.
Repository: deno
Issue: Support semver ranges in `deno upgrade --version=`
Labels: cli,suggestion

Due to https://github.com/denoland/deno/issues/25034 I need to downgrade to Deno 1.41. I would like to use the _latest_ 1.41.x version, since that's probably better than using 1.41.0.

The only way to do so is by checking on https://github.com/denoland/deno/releases what the latest patch was, and then run `deno upgrade --version=1.41.3`. It'd be great if I could run either `deno upgrade --version=1.41` or `deno upgrade --version=~1.41.0`, without having to first manually figure out which exact version I want.

This need would probably be more common once you release a new major version, since some projects might need Deno 1 to run and I'd want to install whatever the latest 1.x.y version was.
Repository: tauri
Issue: [feat] Plugins should be able to self disclaim metadata
Labels: type: feature request

### Describe the problem

#10596 made me remember this idea we've had. Right now we hard code all the information about plugins in the cli but it'd be better if we could store it on the plugin side instead. Useful for example if a mobile only plugin adds support for desktop at a later date.

### Describe the solution you'd like

Maybeeee a `metadata` config in the plugin's Cargo.toml file.

### Alternatives considered

Simply not doing this because http requests are always a point of failure (most often because of firewalls/proxies)

### Additional context

_No response_
Repository: next.js
Issue: Next.js App Directory: Link Component Crashes on First Load with Storyblok Integration
Labels: bug,Navigation

### Link to the code that reproduces this issue

https://stackblitz.com/edit/stackblitz-starters-xkmmhr

### To Reproduce

1. Start the project (npm run dev)
2. Click on Go to test (next link)

### Current vs. Expected behavior

When using the Next.js app directory with Storyblok, the `Link` component crashes on the first load if it navigates to another page. This issue occurs only on the initial load; reloading the page fixes the issue, and it does not reoccur until the dev server is restarted. In contrast, using a normal `a` tag works without any issues.

**Steps to Reproduce:**

1. Visit the [StackBlitz project](https://stackblitz.com/edit/stackblitz-starters-xkmmhr)
2. Click on Go to test (next link)

**Expected Behavior:**

The `Link` component should navigate to the target page without crashing on the first load.

**Additional Information:**

- The issue does not occur when using a normal `a` tag.
- The problem is resolved after a page reload and does not reappear until the dev server is restarted.
- This does not happen on the `next@13.5.6` or even on `14.0.3` [You can test here](https://stackblitz.com/edit/stackblitz-starters-wqhnoi).

### Provide environment information

```bash
Operating System:
  Platform: linux
  Arch: x64
  Version: Ubuntu 20.04.0 LTS Wed Aug 14 2024 16:27:09 GMT+0530 (India Standard Time)
  Available memory (MB): NaN
  Available CPU cores: 8
Binaries:
  Node: 18.20.3
  npm: 10.2.3
  Yarn: 1.22.19
  pnpm: 8.15.6
Relevant Packages:
  next: 14.2.5 // Latest available version is detected (14.2.5).
  eslint-config-next: 13.5.1
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.2.2
Next.js Config:
  output: N/A
```


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

Developer Experience, Navigation

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

next dev (local)

### Additional context

_No response_