sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: TypeScript
Issue: Typescript 4.7 - nodenext wrong errors on imports containing searchParam
Labels: Bug

# Bug Report

<!--
  Please fill in each section completely. Thank you!
-->

### 🔎 Search Terms

searchParam nodenext import needs extensions

### 🕗 Version & Regression Information

- This is the behavior in every version I tried, and I reviewed the FAQ for entries about searchParms in imports

### ⏯ Playground Link

<!--
  A link to a TypeScript Playground "Share" link which shows this behavior

  The TypeScript Workbench can be used for more complex setups, try
  https://www.typescriptlang.org/dev/bug-workbench/

  As a last resort, you can link to a repo, but these will be slower for us to investigate.
-->
[Playground link with relevant code](https://www.typescriptlang.org/play?target=99&moduleResolution=99&module=199#code/JYWwDg9gTgLgBAbzgIQDYQEZwL5wGZQQhwBEAdAPQDGGqwMApmSAFYDOA-DXYwLxmUIAVxgUAdgEMYwAG4MKJANxA)

### 💻 Code


```ts
import { Blob } from "./cblite.mjs?cblite=../out/native/";
/**
Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node12' or 'nodenext'. Consider adding an extension to the import path. .ts(2834)
*/
```

### 🙁 Actual behavior

Errors i should add a extension 

### 🙂 Expected behavior

i added a extension and the parameter should be of type url so all is valid ECMAScript.

this comes because of this implementation which is also Valid ECMAScript

cblite.mjs
```js
const importMeta = import.meta.url;
const pathToNative = new URL(importMeta).searchParams.get("cblite");
export const Blob = {};
```


## Additional Playground bug discovered
when i change the tsconfig in the playground to nodenext and esnext then copy the link it does not preserve that module settings when going to the error tab you need to manual reset that 

```
https://www.typescriptlang.org/play?target=99&moduleResolution=99&module=199#code/JYWwDg9gTgLgBAbzgIQDYQEZwL5wGZQQhwBEAdAPQDGGqwMApmSAFYDOA-DXYwLxmUIAVxgUAdgEMYwAG4MKJANxA
```

it does some how got problems with that searchParams. funny that this is also about searchParams
Repository: pytorch
Issue: aten::_softmax.out doesn't work with non-contiguous Tensors 
Labels: module: nn,triaged

### 🐛 Describe the bug

Repro script:

```python
import torch

from torch.testing import make_tensor

inp = torch.rand(2, 3)

out = make_tensor(inp.shape, dtype=inp.dtype, device=inp.device, noncontiguous=True)
print("BEFORE SOFTMAX: \n", out)
torch._softmax(inp, 0, half_to_float=False, out=out)

print("AFTER SOFTMAX: \n", out)

out_real = torch._softmax(inp, 0, half_to_float=False)

print("EXPECTED OUTPUT: \n", out_real)
``` 

outputs:
```
BEFORE SOFTMAX: 
 tensor([[-0.1820,  4.4953, -8.6387],
        [-2.9375,  8.6783,  7.0183]])
AFTER SOFTMAX: 
 tensor([[ 0.5257,  0.4881,  0.3627],
        [-2.9375,  8.6783,  7.0183]])
EXPECTED OUTPUT: 
 tensor([[0.5257, 0.6373, 0.4881],
        [0.4743, 0.3627, 0.5119]])
 ```

This is clearly wrong because the second row is not updated and there shouldn't be any negative numbers. 
cc: @gmagogsfm @zhxchen17 

### Versions

PyTorch version: 1.12.0a0+gitfab098d
Is debug build: True
CUDA used to build PyTorch: None
ROCM used to build PyTorch: N/A

OS: CentOS Stream 8 (x86_64)
GCC version: (GCC) 8.5.0 20210514 (Red Hat 8.5.0-3)
Clang version: Could not collect
CMake version: version 3.19.6
Libc version: glibc-2.28

Python version: 3.8.10 (default, May 19 2021, 18:05:58)  [GCC 7.3.0] (64-bit runtime)
Python platform: Linux-5.6.13-0_fbk19_hardened_6064_gabfd136bb69a-x86_64-with-glibc2.10
Is CUDA available: False
CUDA runtime version: No CUDA
GPU models and configuration: No CUDA
Nvidia driver version: No CUDA
cuDNN version: No CUDA
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True

Versions of relevant libraries:
[pip3] mypy==0.812
[pip3] mypy-extensions==0.4.3
[pip3] numpy==1.20.2
[pip3] torch==1.12.0a0+gitfab098d
[conda] blas                      1.0                         mkl  
[conda] mkl                       2021.2.0           h06a4308_296  
[conda] mkl-include               2021.2.0           h06a4308_296  
[conda] mkl-service               2.3.0            py38h27cfd23_1  
[conda] mkl_fft                   1.3.0            py38h42c9631_2  
[conda] mkl_random                1.2.1            py38ha9443f7_2  
[conda] mypy                      0.812              pyhd3eb1b0_0  
[conda] mypy_extensions           0.4.3                    py38_0  
[conda] numpy                     1.20.2           py38h2d18471_0  
[conda] numpy-base                1.20.2           py38hfae3a4d_0  
[conda] torch                     1.10.0a0+gitacc9f9a          pypi_0    pypi

cc @albanD @mruberry @jbschlosser @walterddr @kshitij12345
Repository: flutter
Issue: Fuchsia Flutter Runner should not fail silently if the program data path is not provided
Labels: engine,platform-fuchsia,P2,team-engine,triaged-engine

When launching the flutter_jit_runner from a Fuchsia Component Framework
v2 Realm, if the CML does not provide the `data` value under `program`,
the runner fails silently.

Mirroring the solution for the Dart runner for CFv2, the data_path can be
derived from the given URL.

The runner should at least log the error (by converting the DLOG message to LOG), but to be consistent, flutter runner should fallback to the component name-derived data path if it is not provided explicitly
Repository: pytorch
Issue: autogen-58 microbenchmark fails on NNC gpu fusion
Labels: NNC

### 🐛 Describe the bug

autogen-58 (from https://github.com/pytorch/benchmark/pull/801) fails on NNC.

Repro is [here](https://gist.github.com/davidberard98/12fdd498e5284a543f2daa55addc8445). Output is:

```
$ gpui python 58-repro.py
Traceback (most recent call last):
  File "/fsx/users/dberard/benchmark/58-repro.py", line 261, in <module>
    log_extract.run_nnc(ir, inputs, dynamic=False)
  File "/fsx/users/dberard/pytorch/torch/utils/jit/log_extract.py", line 105, in run_nnc
    return run_test(ir, inputs)
  File "/fsx/users/dberard/pytorch/torch/utils/jit/log_extract.py", line 75, in run_test
    graph(*inputs)
RuntimeError: The following operation failed in the TorchScript interpreter.
Traceback of TorchScript (most recent call last):
RuntimeError: CUDA driver error: too many resources requested for launch

srun: error: dev-st-p4d24xlarge-1: task 0: Exited with exit code 1
```

cc @ZolotukhinM @huiguoo 

### Versions

A100 (AWS cluster), master.
Repository: pytorch
Issue: Disable TracerWarnings on NVFuser opinfo tests
Labels: oncall: jit,module: bootcamp,triaged

### 🚀 The feature, motivation and pitch

If you run the nvfuser opinfo tests, you'll see a lot of tracer warnings like this:

```
TracerWarning: Converting a tensor to a Python boolean might cause the trace to be incorrect. We can't record the da
ta flow of Python values, so this value will be treated as a constant in the future. This means that the trace might not generalize to other inputs!
```

(you can repro with `$ PYTORCH_TEST_WITH_SLOW=1 gpui python test/test_jit_cuda_fuser.py -k test_nvfuser_correctness__masked_log_softmax_cuda_f
loat64`, for example)

We can disable these with the [NoWarn](https://github.com/pytorch/pytorch/blob/aa51ee2345022db1f318b4adf460abe461e38bc5/torch/csrc/jit/frontend/tracer.h#L179-L194) guard, but currently it doesn't have python bindings - so you'll have to add python bindings first. You can model this after InsertPointGuard which has both a [c++ implementation](https://github.com/pytorch/pytorch/blob/aa51ee2345022db1f318b4adf460abe461e38bc5/torch/csrc/jit/ir/ir.h#L1444-L1456) and a [python implementation](https://github.com/pytorch/pytorch/blob/aa51ee2345022db1f318b4adf460abe461e38bc5/torch/jit/_ir_utils.py#L4-L18)

### Alternatives

_No response_

### Additional context

_No response_
Repository: neovim
Issue: Failure to set an option from API is sometimes translated but sometimes not
Labels: bug,api,localization

### Neovim version (nvim -v)

v0.8.0-dev+2-g08a144912c

### Vim (not Nvim) behaves the same?

N/A

### Operating system/version

Arch Linux

### Terminal name/version

kitty 0.25.0

### $TERM environment variable

xterm-kitty

### Installation

AUR neovim-git

### How to reproduce the issue

1. Run `nvim --clean` with a locale
2. Run `:call nvim_set_option('statusline', '%$')`
3. The `E539` error message is translated
4. Run `:call nvim_set_option('statusline', '%{')`
5. The `E540` error message is not translated

### Expected behavior

Failure to set an option from API is either always translated or never translated

### Actual behavior

Failure to set an option from API is sometimes translated but sometimes not
Repository: godot
Issue: "invert: Condition "det == 0" is true" when Camera is child of a RigidBody
Labels: bug,topic:core,needs testing,topic:3d

### Godot version

3.4.4-stable_win64

### System information

Windows 10

### Issue description

`state.transform.basis.y = -gravity_direction.normalized()`

For some reason, this line of code causes this error output, but ONLY when there is a Camera as a child of the RigidBody my script is attached to (which is used for my player)
![image](https://user-images.githubusercontent.com/43184048/163656006-322225b5-c1ad-47d0-9511-711a6f0b9ce5.png)

Now, to clarify, `state` comes from the function `_integrate_forces(state):` which is inherited from the RigidBody. `gravity_direction` is a Vector3 variable that starts out blank, and comes from getting a node from the scene based on a variable known as `object name`

Here is the relevant code:
![image](https://user-images.githubusercontent.com/43184048/163656335-07e57f9b-7fcc-403a-ab8b-212a1c6682d1.png)


I've tried different types of cameras, replacing the node, etc, doesn't work. I checked and the scale of the camera is 1,1,1, never 0 like other issues have had.

This error doesn't actually impact the game or cause a crash, it's just there listed.


### Steps to reproduce

Simply run the only scene in the project

### Minimal reproduction project

[Bug Test.zip](https://github.com/godotengine/godot/files/8499047/Bug.Test.zip)
Repository: pytorch
Issue: torch.jit.trace error when custom autograd function used in the model
Labels: oncall: jit

### 🐛 Describe the bug

custom autograd function defined in the model, jit.trace reports error

```
class GradientMultiplyLayer(torch.autograd.Function):
    @staticmethod
    def forward(ctx, input, mask_bw):
        ctx.save_for_backward(mask_bw)
        return input

    @staticmethod
    def backward(ctx, grad_output):
        mask_bw, = ctx.saved_tensors
        return grad_output.mul(mask_bw), None

...
traced_script_module = torch.jit.trace(model, example)
traced_script_module.save("model_for_libtorch.pt")

Could not export Python function call 'GradientMultiplyLayer'. Remove calls to Python functions before export. Did you forget to add @script or @script_method annotation? If this is a nn.ModuleList, , add it to __constants__:
```

I can't solve this problem. thanks for your help

### Versions

Collecting environment information...
PyTorch version: 1.11.0+cu113
Is debug build: False
*CUDA used to build PyTorch: 11.3
*ROCM used to build PyTorch: N/A
OS: Microsoft Windows 10 
GCC version: Could not collect
Clang version: Could not collect
CMake version: Could not collect
Libc version: N/A
Python version: 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 23:03:10) [MSC v.1916 64 bit (AMD64)] (64-bit runtime)
Python platform: Windows-10-10.0.18362-SP0
Is CUDA available: True
CUDA runtime version: 10.2.89
GPU models and configuration: GPU 0: NVIDIA GeForce GTX 1660 Ti
Nvidia driver version: 511.79
cuDNN version: Could not collect
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True
Versions of relevant libraries:
[pip3] numpy==1.19.5
[pip3] torch==1.11.0+cu113
[pip3] torchaudio==0.11.0+cu113
[pip3] torchsummary==1.5.1
[pip3] torchvision==0.12.0+cu113
[conda] Could not collect
Repository: svelte
Issue: [Syntax] `set-layer:name` and `get-layer:name` attributes for the `<style>` tag and CSS `@layer` - pass style to subcomponent
Labels: css

### Describe the problem

Passing CSS styles between components.
Sometimes I have a style in a parent component and can't conveniently pass it to the subordinate components.


### Describe the proposed solution

The `set-layer` and `get-layer` attributes for the `<style>` tag + use of the CSS standard [`@layer`](https://developer.mozilla.org/en-US/docs/Web/CSS/@layer).
The `set-layer` and `get-layer` attributes are analogous to Svelte [`set`/`getContext`](https://svelte.dev/docs#run-time-svelte-setcontext).

Example:
```svelte
<!-- Com.svelte -->
<script>
import SubCom from "./SubCom.svelte";
</script>
<style set-layer:name>
	@layer name {
		.class1 {}
	}
</style>
<div class="class1"></div>
<SubCom/>
```
```svelte
<!-- SubCom.svelte -->
<div class="class1 class2"></div>
<style get-layer:name>
	@layer self, name;
	
	@layer self {
		.class2 {}
	}
</style>
```

### Features
* The use of `@layer`, besides (following the standard) setting the order of styles, has the function of naming the style fragment, so that it can be passed to the subcomponent more easily.
* Both `set-layer` and `get-layer` can be used multiple times when you want to split and pass more style fragments.
* The style passed by `set`/`get-layer` must be available only for those components where these attributes are used. This is not supposed to work like `:global` or have any leakage.
* Layer names shouldn't leak either, they should only be visible to the components where they are used, and not available in an external CSS file for example.

(name `set-layer` and `get-layer` - temporary, something to think of)

**EDIT**: after experimenting I think using `@layer` is a bad idea, or at least problematic. You need to use your own at-rule e.g. `@module` `@fragment` `@expose` - unfortunately this is a non-standard syntax and I'm not happy about it.

### Alternatives considered

This is a new version of that idea - https://github.com/sveltejs/svelte/issues/6422

And the rest that everyone knows about like `:global`, various CSS preprocessors.

I think ideas like "passing classes" is much worse than my proposal.
Passing CSS variables is not that at all.

### Importance

would make my life easier
Repository: pytorch
Issue: AllGather with backward support async_op=True
Labels: oncall: distributed

### 🚀 The feature, motivation and pitch

I has one project which used all gather contrastive loss, but  _AllGather[https://github.com/pytorch/pytorch/blob/master/torch/distributed/nn/functional.py#L276] does not support async_op, so it cannot overlap computation and communication.

### Alternatives

_No response_

### Additional context

_No response_

cc @pietern @mrshenli @pritamdamania87 @zhaojuanmao @satgera @rohan-varma @gqchen @aazzolini @osalpekar @jiayisuse @SciPioneer @H-Huang
Repository: create-react-app
Issue: npx create-react-app not working ,, its demanding to install create-react-app which was said to be uninstalled in the docs
Labels: needs triage,issue: bug report

i tried to create react app using the latest documentation , but after i tried running npm create-react-app and npm init react-app
it was demanding to install create-react-app , which is now no longer supported.
Repository: neovim
Issue: set options to Lua functions directly (luaref, no Vimscript bridge)
Labels: enhancement,lua,options

It is very cool that we can now use a lua functions in mappings, commands, autocmds directly without vimscript bridge. Would it be possible to implement an ability to use lua functions directly in `indentexpr`? I know that there is a `v:lua`, but it is still converted via vimscript, right?

Example options: (omnifunc, tagfunc , indentexpr, foldexpr, operatorfunc
Repository: TypeScript
Issue: TS keeps crashing on monorepo with references
Labels: Needs Investigation

# Bug Report

After 10 minutes working on the project and navigating between packages, typescript either takes a long time to load with high CPU usage or crashes, with the "Typescript failed to load 5 times in 5 minutes" error message.

Whenever I reload VSCode window, it fixes the issue for the next ~5 to 10 minutes.

### 🕗 Version & Regression Information

I started working on a new project with a monorepo architecture, using references in tsconfig and made of ~20 .tsconfig.
I am using ts 4.6.3

### Logs

Here is one tsserver.log after one of these crashes
[tsserver.log](https://github.com/microsoft/TypeScript/files/8499548/tsserver.log)

Thanks in advance for your help,
Kindly,
Repository: flutter
Issue: CPU usage jumps from 0 to 20%+, on iOS/Android platform and release environment with official example
Labels: engine,c: performance,perf: energy,has reproducible steps,P2,found in release: 2.10,found in release: 2.13,team-engine,triaged-engine

# Example code:

```dart
import 'package:flutter/material.dart';

class TestDemo extends StatefulWidget {
  const TestDemo({Key? key}) : super(key: key);

  @override
  State<TestDemo> createState() => _TestDemoState();
}

class _TestDemoState extends State<TestDemo> with TickerProviderStateMixin {
  late final AnimationController _controller = AnimationController(
    duration: const Duration(seconds: 2),
    vsync: this,
  )..repeat(reverse: true);
  late final Animation<double> _animation = CurvedAnimation(
    parent: _controller,
    curve: Curves.fastOutSlowIn,
  );

  @override
  void dispose() {
    _controller.dispose();
    super.dispose();
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('Animation'),
      ),
      body: Column(
        children: [
          _buildAniCircle(),
          _buildAniCircle(),
          _buildAniCircle(),
          const Text('no rebuild'),
          // _buildAniCircle(),
        ],
      ),
    );
  }

  _buildAniCircle() {
    return ScaleTransition(
      scale: _animation,
      child: _buildAni(),
    );
  }

  _buildAni() {
    return const Padding(
      padding: EdgeInsets.all(8.0),
      child: FlutterLogo(size: 150.0),
    );
  }
}
```

# problem

## 3 base animation example screenshot
https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/1412e9ee404b44a5b58de265d0f4e81b~tplv-k3u1fbpfcp-watermark.image

## iOS cpu usage 24%
https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/f8b07a4ad03b48d19a96d741cac87364~tplv-k3u1fbpfcp-watermark.image
Repository: PowerToys
Issue: Remap:ctrl+shift+T not work
Labels: Issue-Bug,Product-Keyboard Shortcut Manager,Priority-2,Status-Reproducible

### Microsoft PowerToys version

0.57.2

### Running as admin

- [X] Yes

### Area(s) with issue?

Keyboard Manager

### Steps to reproduce

I using Powertoys with Chrome.
![Layout1](https://user-images.githubusercontent.com/103833447/163676400-d3d678f4-762e-4211-9b04-e7faa1b1df9d.png)

My button found png file.
example:
numpad6(=crtl+R: reload page) working fine.
But:
numpad4(=ctrl+shiht+T:re-open closed page)
 if i press numpad4 then PowerKeys jammed and ohter remapped numpad keys also stop working.

I,think:
numpad 0-3 and 5-9 remapping is done 2 keys botton combination and those numpads working.

numpad 4 remapping is done 3 keys (ctrl + shift + T) combination and that is problem-> PowerKeys jammed.... 



### ✔️ Expected Behavior

_No response_

### ❌ Actual Behavior

_No response_

### Other Software

Windows 10 home 64 bit ver. 19044.1645
google chrome 100.0.4896.88
Repository: godot
Issue: Rearranging Graph Node crosses connectors
Labels: enhancement,topic:gui

### Godot version

4.0.dev 50bb1846d0f16fae929b2ae99824dbf90be25c92

### System information

Win 11, Vulkan, Nvidia 3000

### Issue description

Create a blend tree graph node graph like the photo and there are crossings which shouldn't exist.

### Steps to reproduce

1. Create graph node in blend tree
1. Rearrange the graph in this structure
2. There will be crossings.

![image](https://user-images.githubusercontent.com/32321/163678010-4a4df465-cda1-4290-bb1b-c29de847a311.png)


### Minimal reproduction project

I don't have one prepared, but poke me if you want one or want to upload one.
Repository: deno
Issue: Add `input` to option bag for `Command`
Labels: feat

Needs #11618 first.
Ref https://github.com/denoland/deno/pull/11618#discussion_r849432157
Repository: godot
Issue: iOS export throws the following error: "JSON text did not start with array or object"
Labels: bug,platform:ios,confirmed,documentation,topic:export

### Godot version

3.4.4

### System information

macOs 12.2 Monterrey, M1

### Issue description

Exporting to iOs doesn't work. Throws the following error:

```
2022-04-16 11:09:07.733 xcodebuild[12148:7643367] Error Domain=NSCocoaErrorDomain Code=3840 "JSON text did not start with array or object and option to allow fragments not set. around line 1, column 0." UserInfo={NSDebugDescription=JSON text did not start with array or object and option to allow fragments not set. around line 1, column 0., NSJSONSerializationErrorIndex=0}
xcodebuild: error: Unable to read project 'app.xcodeproj' from folder '/Users/xxx/projects/apks'.
    Reason: The project ‘appproject’ is damaged and cannot be opened due to a parse error. Examine the project file for invalid edits or unresolved source control conflicts.

Path: /Users/xxx/projects/apks/app.xcodeproj

xcodebuild (.ipa):
error: archive not found at path '/Users/xxx/projects/apks/app.xcarchive'
** EXPORT FAILED **
```

Tried creating a new project and I still get the same error.
Other exports work fine (android, html, macos, etc)


### Steps to reproduce

* Download latest export templates
* Properly fill iOs options requirements (teamid, identifier, icons).
* Hit Export Project.

### Minimal reproduction project

_No response_
Repository: yt-dlp
Issue: [Youtube] --live-from-start support for sequence / range download
Labels: enhancement,core:downloader

### Checklist

- [X] I'm reporting a feature request
- [X] I've looked through the [README](https://github.com/yt-dlp/yt-dlp#readme)
- [X] I've verified that I'm running yt-dlp version **2022.04.08** ([update instructions](https://github.com/yt-dlp/yt-dlp#update)) or later (specify commit)
- [X] I've searched the [bugtracker](https://github.com/yt-dlp/yt-dlp/issues?q=) for similar issues including closed ones. DO NOT post duplicates
- [X] I've read the [guidelines for opening an issue](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#opening-an-issue)

### Description

Hi, 
I try to implement capability of youtube livestream download (--live-from-start), that we can determine from which sequence it starts downloads until live/current live, or range from sequence A to sequence B by changing some parts on `extractor/youtube`
In my case this is working well as expected, and super useful, and I want to know what you guys think.
Maybe if this is good enough I hope I can be push it upstream, or let this be just a feature request :)

commit: https://github.com/mxvin/yt-dlp/commit/ecf8b603c2f6e1356ab13c8912c9d29111ecc0dd

my misplace comment on this feature (maybe related to that actual issue, maybe not): https://github.com/yt-dlp/yt-dlp/issues/2412#issuecomment-1100650248

### Verbose log

_No response_