sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: vscode
Issue: [json] Add support for extensions associating JSON schemas with documents dynamically (via API)
Labels: feature-request,json

<!-- ⚠️⚠️ Do Not Delete This! feature_request_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->

<!-- Describe the feature you'd like. -->

Add support for extensions associating JSON schemas with documents dynamically (via API).

Right now, it is only possible to associate a JSON schema with a text document by:

1. using schemas directly built-in into VSCode, e.g., `package.json`, `.babelrc` , ...

2. explicitly [mapping it in the user settings](https://code.visualstudio.com/docs/languages/json#_mapping-in-the-user-settings)

3. explicitly [mapping it in the workspace](https://code.visualstudio.com/docs/languages/json#_mapping-to-a-schema-in-the-workspace)

4. explicitly [mapping it in an extension via a file-match pattern](https://code.visualstudio.com/docs/languages/json#_file-match-syntax)

But all these associations are static and working only on a folder path and filename matching.

I would like to be able to dynamically/programmatically associate a JSON schema with a document within an extension.

E.g., the extension could first inspect the content of the file and check for specific well-known conditions in order to decide, which JSON schema (or if at all) should be associated with a given text document.

E.g., within our organization we have a lot of different file formats with existing JSON schemas, but we don't have canonical/standardized folders and filenames for the files that would need validation against these JSON schemas, with most of them just ending on `*.json` somewhere in the folder tree.

I could imagine a mechanism like this to associate a JSON schema with a JSON document `doc`:

```
registerJsonSchema(doc, schemaId, schemaSrc)
```

with a unique `schemaId` provided by the extension and `schemaSrc` either be `URL` or a local file reference.

If the same `schemaId` is provided for a `doc` with no `schemaSrc` the JSON schema association is removed again from that document.

Theoretically `schemaSrc` could also be a JSON schema object (similar to a [schema directly defined in the settings](https://code.visualstudio.com/docs/languages/json#_mapping-to-a-schema-defined-in-settings)), which would allow you to dynamically build up a schema by the extension and provide this for validation.

And since a lot of configuration files are not just `JSON` files but also `YAML` files, some bonus points for allowing the association of JSON schemas also to `YAML` files, not just `JSON` files.

Note, that there is also another related feature request: `Support for contentMatch in addition to fileMatch for extension contributes.jsonValidation` https://github.com/microsoft/vscode/issues/229696
Repository: go
Issue: runtime:cpu1: TestGdbAutotmpTypes failures
Labels: NeedsInvestigation,arch-riscv,compiler/runtime

```
#!watchflakes
default <- pkg == "runtime:cpu1" && test == "TestGdbAutotmpTypes"
```

Issue created automatically to collect these failures.

Example ([log](https://ci.chromium.org/b/8735486120996203153)):

    === RUN   TestGdbAutotmpTypes
    === PAUSE TestGdbAutotmpTypes
    === CONT  TestGdbAutotmpTypes
        runtime-gdb_test.go:78: gdb version 15.0


— [watchflakes](https://go.dev/wiki/Watchflakes)
Repository: TypeScript
Issue: undefined is narrowed away incorrectly
Labels: Bug,Help Wanted

### 🔎 Search Terms

narrowing undefined, incorrect type narrowing, incorrect if statement narrowing

### 🕗 Version & Regression Information

- This changed between versions 5.2 and 5.3

### ⏯ Playground Link

https://www.typescriptlang.org/play/?#code/CYUwxgNghgTiAEkoGdnwILwN4CgCQAksugBQCUAXPAC4AWAlmoxgNw4C+OOoSciA9gDtk1eAAco1aiBiCqmAD7wAroNAAzeoJDA261WGr0h8KGLEQAngAVJ02eWz566+CQlSZggPwA6IqRk8AC8ofDqUBDIIEG4eHge9oJs8QD0qfAAet74eHDUyrIpnAl2XinpWTnsQA

### 💻 Code

```ts
declare class A {
	IsA(): this is A;
}

declare const pattern: A | undefined;
function applyPattern() {
	if (pattern?.IsA() === false) {
		pattern;
		// ^?
		return;
	}
	pattern;
	// ^?
}
```


### 🙁 Actual behavior

`pattern` is narrowed down to `A`, removing the undefined

### 🙂 Expected behavior

`pattern` should only be narrowed to `A | undefined`

### Additional information about the issue

_No response_
Repository: pytorch
Issue: [RFC] Flight Precheck: ahead-of-hang collective mismatch detection
Labels: oncall: distributed,triaged

### 🚀 The feature, motivation and pitch

Wondering if we would be interested in making a UX like this:

```
with flight_precheck:
   # user program
```

A couple motivations:

(1) Would allow/encourage users to actively narrow a region for debugging, for example, 1 iteration. So that analysis is simpler.

(2) Would leverage the fact that CPU runs ahead of GPU — when the context is exited, it can do a CPU-based all-gather (or similar) and pre-check, thus analysis made online / ahead of time.

(3) The torch lib would contain the analysis algorithm, mitigating the need for releasing separate software (not easy to maintain if torch lib changes its recording format).

(4) Can mostly reuse today’s FR tracing infra.

Cc: @c-p-i-o 

### Alternatives

_No response_

### Additional context

_No response_

cc @XilunWu @H-Huang @awgu @wanchaol @fegin @fduwjj @wz337 @wconstab @d4l3k @c-p-i-o
Repository: flutter
Issue: sample code for `Custom image providers` throwing error on run
Labels: framework,d: api docs,d: examples,platform-web,P2,team-framework,triaged-framework

### Page URL

https://api.flutter.dev/flutter/widgets/Image-class.html

### Page source

_No response_

### Describe the problem

<img width="967" alt="image" src="https://github.com/user-attachments/assets/4335f8d8-0895-4805-8c92-013b8029f089">

Error message: 
```shell
unsupported library on the web: 'dart:io'
Try removing the import and usage of the library.

Unsupported operation: Platform._version
```



### Expected fix

Need to fix the given sample code to run with out error

### Additional context

_No response_

### I would like to fix this problem.

- [ ] I will try and fix this problem on docs.flutter.dev.
Repository: pytorch
Issue: [RFC] ProcessGroupNCCL uses non-blocking API by default
Labels: oncall: distributed,module: nccl,module: c10d

### 🚀 The feature, motivation and pitch

## Motivation:

- Gives better fault tolerance against hangs in comm init, comm destroy and P2P operations (involves dynamic connection performed by CPU).

- Allow overlap between NCCL init and other stuff users want the main thread to do (e.g., model or data loader init)

Here "non-blocking" refers to whether a NCCL API call would immediately return or block the host CPU (Traditionally, some NCCL APIs such as ncclCommInitRank may block for a little when rendezvous is performed.)

If the user wants the main thread to do other stuff while NCCL is initializing, this mode would also help as it puts NCCL init to the background.

### Alternatives

_No response_

### Additional context

This knob is control by PyTorch here:
https://github.com/pytorch/pytorch/blob/26956980c6953b42e57ad889b87444c4abccec1c/torch/csrc/distributed/c10d/NCCLUtils.cpp#L90-L97

cc @XilunWu @H-Huang @awgu @wanchaol @fegin @fduwjj @wz337 @wconstab @d4l3k @c-p-i-o
Repository: pytorch
Issue: pre-dispatch tracing can't interpose on detach() calls from the autograd engine.
Labels: triaged,oncall: pt2,module: ProxyTensor,module: pt2-dispatcher

This boils down to the fact that our pre-dispatch mode stack is implemented in pure python, while our "normal" mode stack has C++ TLS associated with it.

Say we want to trace out calls to `.backward()` using a "pre-dispatch" proxy mode.

Autograd sometimes detaches saved variables while it executes the backward. It doesn't call `TensorBase::detach()` though - it calls `tensor.getIntrusivePtr()->shallow_copy_and_detach(...)` ([link](https://github.com/pytorch/pytorch/blob/main/torch/csrc/autograd/variable.h#L897))

`TensorImpl::shallow_copy_and_detach_core` has some special logic to figure out when it should dispatch to python, by consulting the C++ TLS about if there are any modes active ([link](https://github.com/pytorch/pytorch/blob/c13c7e11c553b2a848c158c8e2a5e20bbd5d7f1c/c10/core/TensorImpl.cpp#L499)).

Our pre-dispatch mode stack doesn't have any C++ TLS, though, which means that `shallow_copy_and_detach()` won't know to dispatch to any pre-dispatch modes.

cc @ezyang @chauhang @penguinwu @zou3519 @yf225
Repository: pytorch
Issue: [RFC] Investigate multi-thread support of c10d
Labels: oncall: distributed,module: c10d

### 🚀 The feature, motivation and pitch

There are two drivers for this investigation:

- People are starting to use torch.distributed APIs in multi-thread mode. We should investigate which usage is supported and which are not. For the mode not supported, we should document it so that it won't become a support of fait accompli.

- Python 3.13t is coming (Oct 2024). This is the first official version with option to disable GIL. There may be interest in inference, data loading, etc, where torch.distributed should be compatible.

### Alternatives

_No response_

### Additional context

_No response_

cc @XilunWu @H-Huang @awgu @wanchaol @fegin @fduwjj @wz337 @wconstab @d4l3k @c-p-i-o
Repository: pytorch
Issue: [RFC] Use NCCL topology detection for Inductor communication time estimation
Labels: oncall: distributed,triaged,module: nccl,oncall: pt2,module: inductor

### 🚀 The feature, motivation and pitch

Today the bandwidth numbers in Inductor are more or less fixed, regardless of the system the job runs on.

NCCL topology detection identifies whether the system is on NVLink, PCI-e, IB, or TCP sockets, and can provide a bandwidth matrix. A bonus is that the numbers have been sync'ed across all ranks, so that we can avoid different decisions made by compilers on different ranks.

See https://github.com/NVIDIA/nccl/issues/830 for an example of the matrix.

### Alternatives

_No response_

### Additional context

_No response_

cc @XilunWu @H-Huang @awgu @wanchaol @fegin @fduwjj @wz337 @wconstab @d4l3k @c-p-i-o @ezyang @chauhang @penguinwu @voznesenskym @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @yf225 @chenyang78 @kadeng @muchulee8 @ColinPeppler @amjames @desertfire @xuanzhang816
Repository: PowerToys
Issue: *Multiply NumPad missing as an option to rekey from or to
Labels: Issue-Bug,Needs-Triage

### Microsoft PowerToys version

v0.84.1

### Installation method

Microsoft Store

### Running as admin

No

### Area(s) with issue?

Keyboard Manager

### Steps to reproduce

Remapping -subtract key to *multiply key and *multiply key to -subtract key on NumPad  

### ✔️ Expected Behavior

I expect to be able to choose the * (multiply) key from the drop down under Select.  It does not exist in the drop downs for either Select or To Send.

### ❌ Actual Behavior

When selecting - (subtract) in the Select column, I can switch to Send Text in the To Send section and enter an * Asterisk.  
The * (multiply) NumPad key then needs to be remapped, but I can't remap it because the option doesn't appear in the dropdown. 

### Other Software

_No response_
Repository: godot
Issue: SkeletonModification2DCCDIK causes errors when a second instance of itself it instantiated
Labels: bug,topic:animation

### Tested versions

Godot version
v4.3.stable.official [77dcf97d8]

System information
Windows 10, ryzen 5, radeon 3080





### System information

v4.3.stable.official [77dcf97d8], Windows 10, ryzen 5, radeon 3080

### Issue description

When using SkeletonModification2DCCDIK within SkeletonModificationStack2D editor displays huge amount of error messages (before execution).
However this happens only when SkeletonModification2DCCDIK is present (not deleted) **AND** a second instance of the character is loaded.
A single instance of the character works perfectly fine.

![image](https://github.com/user-attachments/assets/02519731-1588-4e4f-aee3-16533b85837b)


### Steps to reproduce

-Create Skeleton2D (based on Poylgon2D)
-Assign SkeletonModificationStack2D and SkeletonModification2DCCDIK
-Load Character scene into a new project
-Duplicate character scene 



![image](https://github.com/user-attachments/assets/2b20371c-6f05-45f8-97cd-6771ac9ba2ea)


### Minimal reproduction project (MRP)

[minimal test.zip](https://github.com/user-attachments/files/17193664/minimal.test.zip)
Repository: pytorch
Issue: [RFC] Allow user to abort group (followed by custom recovery)
Labels: oncall: distributed,module: c10d

### 🚀 The feature, motivation and pitch

Advanced users want to control ProcessGroup abort and recovery, instead of being controlled by watchdog (such as SIGABRT). See https://github.com/pytorch/pytorch/issues/136312 for such ask.

In this situation, an abort group API is necessary because that's the only way to stop a spinning NCCL kernel.

There is a draft `_abort_process_group` implementation in https://github.com/pytorch/pytorch/pull/132291.

Next step is to formalize it, test it and expose as user API.

### Alternatives

_No response_

### Additional context

_No response_

cc @XilunWu @H-Huang @awgu @wanchaol @fegin @fduwjj @wz337 @wconstab @d4l3k @c-p-i-o
Repository: pytorch
Issue: [RFC] Accelerate intra-node communication via NCCL buffer registration
Labels: oncall: distributed,module: nccl

### 🚀 The feature, motivation and pitch

Registering user buffer with NCCL allows for zero copy. 
While `ncclCommRegister` API allowed this for network operations previously, NCCL 2.23 also allows this for intra-node operations. 

This is an investigation task wrt:
- how to integrate this feature in ProcessGroupNCCL;
- how to expose this capability to user;
- how to integrate into Inductor memory planning.

Related to Symmetric Memory, async TP. Cc: @yifuwang 

### Alternatives

_No response_

### Additional context

_No response_

cc @XilunWu @H-Huang @awgu @wanchaol @fegin @fduwjj @wz337 @wconstab @d4l3k @c-p-i-o
Repository: TypeScript
Issue: [Control flow] Array filter with typeguard works differently following array initial value
Labels: Help Wanted,Possible Improvement

### 🔎 Search Terms

filter + typeguard + control flow + strictNullChecks

### 🕗 Version & Regression Information

- This is the behavior in every version I tried, and I reviewed the FAQ for entries about filter + typeguards + control flow + strictNullChecks

### ⏯ Playground Link

https://www.typescriptlang.org/play/?strict=false&noImplicitAny=false&strictFunctionTypes=false&strictPropertyInitialization=false&strictBindCallApply=false&noImplicitThis=false&noImplicitReturns=false&alwaysStrict=false&esModuleInterop=false&declaration=false&target=0&jsx=0&module=0&ts=5.6.2&experimentalDecorators=false&emitDecoratorMetadata=false#code/MYewdgzgLgBATgQwO4C4bTgSzAcwNoC6MAPjAIJyICeAPBtjiTGAK4A2bAfDALwyEBuAFBDQkWADNMbKAFM4sgCZp6uQr3jIAdFJnyAFPuiyADiqhZcTVhwCU50zEwR0Fhr25QqJ2SAmvHHiCYAHJVHBDbGAB6aJgAaQB5ETFoV0scACVkcwz1UgpqOjcrUhsuDTwAIhM2EBMqgmFRcDTwgDFpOQVldIZ1PnDspB0ugyM5Mz7S5nY2ewCTJxdwjxgvHz9F3mCwkoio2ITklvFZjmHc-qICygRaVbK57j48cqaU1thyzr0eq7URD45WGoz+hmMU0e53mDiWzmmjB4nm8vn8kJ2fD2GUiMTiiXinzO5QACmwWBAAMr7S6I-LkO4PfbWZ6VGp1BoAGhhH1OaVJ5Kp+1+3SUAPwQJhZIp1IyoN03Qhk3FLLscOWiLWGzR2yCWPCuKOBKEQA

### 💻 Code

```ts
const raw: string[] | (string | null)[] = [];

const filtered: string[] = raw.filter((step: string | null): step is string => typeof step === 'string') // KO
// Type '(string | null)[]' is not assignable to type 'string[]'.
```

```ts
const raw: string[] |(string | null)[] = ["plop", null];

const filtered: string[] = raw.filter((step: string | null): step is string => typeof step === 'string') // OK no error
```

### 🙁 Actual behavior

There is a strange difference in control flow when you filter nullish values in an array regarding the declaration of that array. This is definitely a edge case. The type `string[] | (string | null)[]` comes from an union type in my case.

### 🙂 Expected behavior

No difference and typeguard should work (regardless the fact it is valid).

### Additional information about the issue

I first thought it was a regression due to #57465 but I tested it on several version. The issue has always been here. I looked into a lot of issues about typeguards and filters but unfortunately, could not find one similar to my issue :cry: 

Thanks anyway for the great job
Repository: godot
Issue: (Funny) Godot icon looking extended in Task Manager
Labels: bug,platform:windows,topic:porting,topic:thirdparty

### Tested versions

- Reproducible in: `master`

### System information

Windows 11 24H2 and 23H2 - `master`

### Issue description

![image](https://github.com/user-attachments/assets/966f264e-4153-4b93-acea-9ffd5458702d)


### Steps to reproduce

- Launch Godot
- Launch Task Manager

### Minimal reproduction project (MRP)

N/A
Repository: flutter
Issue: DD for missing Semantics role
Labels: a: accessibility,P3,design doc,:scroll:,team-accessibility,triaged-accessibility

### Document Link

https://flutter.dev/go/semantics-roles

### What problem are you solving?

Audit the missing semantics roles in flutter
Repository: godot
Issue: Global illumination doesn't update when force drawing a `SubViewport` if main viewport is disabled
Labels: bug,topic:rendering,topic:3d

### Tested versions

- 4.4.dev
- 4.3.1.rc

### System information

Godot v4.4.dev (e3213aaef) - Windows 11 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3070 (NVIDIA; 31.0.15.4633)

### Issue description

SDFGI takes some frames to converge the global illumination (setting `rendering/global_illumination/sdfgi/frames_to_converge`).
However, when force drawing a `SubViewport` like the below example, global illumination doesn't update if the main viewport is disabled.

```gdscript
func _render_subviewport(subviewport: SubViewport, iterations: int = 30,  disable_main = true) -> Image:
	var scene_tree = Engine.get_main_loop() as SceneTree
	var root_viewport = scene_tree.root.get_viewport_rid()
	if disable_main:
		# Disable main viewport so it doesn't redrawn
		RenderingServer.viewport_set_active(root_viewport, false)
	
 	# Render SubViewport
	for i in iterations:
		await RenderingServer.frame_pre_draw
		RenderingServer.viewport_set_update_mode(render.get_viewport_rid(), RenderingServer.VIEWPORT_UPDATE_ONCE)
		RenderingServer.force_draw(true, 1.0 / iterations)
		await RenderingServer.frame_post_draw

	if disable_main:
		# Enable main viewport again
		RenderingServer.viewport_set_active(root_viewport, true)
		await RenderingServer.frame_post_draw # image data doesn't updates correctly without this..

	return subviewport.get_texture().get_image()
```
Left: expected. Right: result of multiple `force_draw()`, lighting didn't iterate and it always looks like the first iteration.

![image](https://github.com/user-attachments/assets/56f4923a-4a75-4fa6-a608-b73dae1a6101)

It only updates correclty when the main viewport is enabled during `force_draw()`.

![image](https://github.com/user-attachments/assets/73c3bf23-9bf0-42b3-a3ac-8eb01a3b417d)

But it slows down rendering since `force_draw()` draws all active viewports although I don't need the main viewport.

### Steps to reproduce

* Open the MRP. It contains the test project of the images above.
* Run the project. The left is a realtime `SubViewport`. The right creates a `SubViewport` dynamically, force draw multiple times and shows a `TextureRect` with the resulting image.
* Toggle "Disable main viewport".
* Rendering only looks correct when the main viewport is enabled.

### Minimal reproduction project (MRP)

[sdfgi-update.zip](https://github.com/user-attachments/files/17194488/sdfgi-update.zip)
Repository: flutter
Issue: [Scribe] Hover icon
Labels: a: text input,c: new feature,platform-android,engine,c: proposal,P1,team-text-input,triaged-text-input

### Use case

Android's Scribe feature supports showing an icon when a stylus hovers over a field that supports Scribe handwriting input. Flutter should support this feature too.

![Screenshot_20240930-111720](https://github.com/user-attachments/assets/71dc95cd-eefe-4d57-8292-2884a77840d5)


### Proposal

The hover cursor can be set in `onResolvePointerIcon` in InputConnection in FlutterView.java. To know where the fields are that support Scribe, we'd likely have to send the rects over from the framework.

### See also

Scribe issue: https://github.com/flutter/flutter/issues/115607
Scribe support added in https://github.com/flutter/flutter/pull/148784 and https://github.com/flutter/engine/pull/52943.
Repository: flutter
Issue: Document dirtying the source tree on CI (including `.gitignore`'d) has caching implications
Labels: engine,P2,c: tech-debt,team-engine,triaged-engine

_Forked from https://github.com/flutter/engine/pull/55475#issuecomment-2383597893:_

> CI does filesystem level caching, so even files that are .gitignored in the source tree may persist between CI runs

It is surprising and, with the exception of the [raw code in another repo](https://flutter.googlesource.com/recipes/+/refs/heads/main/recipe_modules/cache/api.py), undocumented behavior. We should document what the implications of this caching are, what types of errors or undefined behavior it can lead to, and what we expect tools and test authors to do (for example, using cleanup hooks to delete files, but perhaps more than that?)
Repository: PowerToys
Issue: App Hibernation Module
Labels: Needs-Triage

### Description of the new feature / enhancement

Allows the user to "hibernate" an application. It will suspend the process + any subprocesses and hide it from the taskbar. There would then be some sort of UI which shows all of the hibernated apps and allows you to bring them back out of hibernation.

### Scenario when this would be used?

When you have a game open and you want to switch to doing something else without the game using up a load of resources, while still being able to return to it without needing to wait for it to boot up again.

### Supporting information

_No response_
Repository: pytorch
Issue: [user triton] error out with export/AOTI if dynamic shape is specialized at tl.constexpr
Labels: triaged,oncall: pt2,module: dynamic shapes,export-triaged,oncall: export,module: aotinductor,module: user triton

### 🚀 The feature, motivation and pitch

If you're using PT2 with a custom triton kernel, and the custom triton kernel takes a tl.constexpr parameter, then we specialize the dynamic shape (https://github.com/pytorch/pytorch/pull/136512).

But for export/AOTI, that's not going to work: if the input really is dynamic, then you're going to run into issues at runtime. So we should make sure this is handled well, and error out.

### Alternatives

_No response_

### Additional context

_No response_

cc @ezyang @chauhang @penguinwu @bobrenjc93 @avikchaudhuri @gmagogsfm @zhxchen17 @tugsbayasgalan @angelayi @suo @ydwu4 @desertfire @chenyang78 @oulgen @aakhundov