sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: vscode
Issue: command not working in NotebookCellStatusBarItemProvider
Labels: bug,notebook-statusbar

<!-- ⚠️⚠️ 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. -->

<!-- 🪓 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: Insider
- OS Version: Win10

Steps to Reproduce:

1. create an implentation of vscode.NotebookCellStatusBarItemProvider
2. use a command object instead of command string

working:
```
new vscode.NotebookCellStatusBarItem(
  '$(save)',
  vscode.NotebookCellStatusBarAlignment.Left,
  'httpyac.save',
  'save'
);
```
not working
```
new vscode.NotebookCellStatusBarItem(
   'save not working',
  vscode.NotebookCellStatusBarAlignment.Left,
  {
    command: 'httpyac.save',
    arguments: [cell.document, 0],
    title: 'save'
  },
)
```

![save](https://user-images.githubusercontent.com/13434739/119401445-c68e3400-bcdb-11eb-84dd-460f39fa4478.gif)


Error in DevTools is
```
notificationsAlerts.ts:40 Running the contributed command: '_vscode_delegate_cmd_kp318eyt' failed.
onDidChangeNotification @ notificationsAlerts.ts:40
```
Repository: pytorch
Issue: [deploy] Enable `torch.distributed.rpc` Python bindings in deploy
Labels: oncall: distributed,triaged,module: rpc,module: deploy

`deploy` is compiled with `USE_RPC=1`, which means that code like the following is included and compiled:
https://github.com/pytorch/pytorch/blob/e4be80c1b82a907fd1c799624af5987ba1e843b3/torch/csrc/jit/python/python_sugared_value.cpp#L1125-L1140

However, the attributes accessed above are conditionally defined in Python:
https://github.com/pytorch/pytorch/blob/e4be80c1b82a907fd1c799624af5987ba1e843b3/torch/distributed/rpc/__init__.py#L17-L68

For some reason, `torch.distributed.rpc.is_available()` is `False` in `deploy`, so the bindings accessed by the first code snippet don't exist. This needs to be investigated and addressed in order for `torch.distributed.rpc` to be used in `deploy`.

cc @wconstab @pietern @mrshenli @pritamdamania87 @zhaojuanmao @satgera @gqchen @aazzolini @rohan-varma @jjlilley @osalpekar @jiayisuse @mrzzd @agolynski @SciPioneer @H-Huang @cbalioglu @gcramer23
Repository: electron
Issue: [Feature Request]: Better NSStatusItem NSAttributedString API
Labels: enhancement :sparkles:

### Preflight Checklist

- [X] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/master/CONTRIBUTING.md) for this project.
- [X] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/master/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 feature request that matches the one I want to file, without success.

### Problem Description

The only way to get a different font and/or colors are through two APIs, a string option for font, and ANSI color codes for color, which end up being buggy (see #29287 and #29288) and incompatible via these bugs.

### Proposed Solution

Add a new API that lets me set the title via an array of objects with keys:

```ts
type CssCode = string;

type Segment = {
  text: string;
  bold?: boolean;
  fontName?: 'monospaced' | 'monospacedDigit';
  color?: CssCode;
};

class Tray {
  // ... existing methods

  setTitle(segments: (string | Segment)[]): void;
}
```

Something like that would easily map to NSAttributedString.

### Alternatives Considered

None.

### Additional Information

This would keep old setTitle() signature for backwards compatibility. It'd be a separate, new API.
Repository: flutter
Issue: Support providing DateFormat for showDatePicker and showDateRangePicker
Labels: c: new feature,framework,f: material design,f: date/time picker,a: internationalization,c: proposal,P2,team-design,triaged-design

## Use case

When entering a Date in input mode rather than calendar mode, applications are unable to specify a format to parse other than en_US. [This can be seen here.](https://github.com/flutter/flutter/blob/master/packages/flutter/lib/src/material/material_localizations.dart#L711) This results in applications being forced to use the default en_US parsing of the input text even when that is not the DateFormat.

The date_range_form_field package wraps the showDateRangePicker function into a FormField widget. It displays the selected date in a DateFormat specified by the application. However, as stated above, in the showDateRangePicker, the input format will always be en_US, regardless of the DateFormat being used in the date_range_form_field package or elsewhere in the app. In order for date_range_form_field to do the right thing, it needs to have a change in showDateRangePicker. For consistency, showDatePicker should be updated as well.

## Proposal

Add an optional DateFormat parameter to showDatePicker and showDateRangePicker to specify what DateFormat should be displayed and parsed.
Repository: flutter
Issue: Progress Indicator has been updated but the ThemeData object has not in Version 2.2.0
Labels: framework,f: material design,c: proposal,team-design,triaged-design

## Steps to Reproduce

I am currently on the stable channel of Flutter which recently updated to version 2.2.0. With this update, all of my loading progress indicators changed from my accent color to my primary color. I looked into why and found this https://github.com/flutter/flutter/issues/56918

I tried updating my ThemeData, but it seems that those options do not exist yet in this version of Flutter. It seems like the change has only been half done in version 2.2.0, and now I have no easy way to update the color for my progress indicators.

**Expected results:** 
The progress indicators should either use the accent color, or the theme data should have the option to change the progress indicator color.

**Actual results:** 
The progress indicators use the primary color of the theme and there is no easy way to change that.

<details>
  <summary>Logs</summary>

<!-- Finally, paste the output of running `flutter doctor -v` here. -->

```
[✓] Flutter (Channel stable, 2.2.0, on Mac OS X 10.15.7 19H1030 darwin-x64, locale en-US)
    • Flutter version 2.2.0 at /Users/rmargolinross/dev/flutter
    • Framework revision b22742018b (10 days ago), 2021-05-14 19:12:57 -0700
    • Engine revision a9d88a4d18
    • Dart version 2.13.0

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /Users/rmargolinross/Library/Android/sdk
    • Platform android-30, build-tools 30.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.4, Build version 12D4e
    • CocoaPods version 1.10.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)

[✓] VS Code (version 1.56.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.10.2

[✓] Connected device (3 available)
    • sdk gphone x86 (mobile) • emulator-5554                            • android-x86    • Android 10 (API 29) (emulator)
    • iPhone (mobile)         • 07da1517197bd6155d47de15a47759f492e42c8d • ios            • iOS 14.4.2
    • Chrome (web)            • chrome                                   • web-javascript • Google Chrome 90.0.4430.212

• No issues found!
```

</details>
Repository: rust
Issue: Tracking Issue for llvm-tools-preview
Labels: C-tracking-issue

This is a tracking issue for the llvm-tools-preview.

### About tracking issues

Tracking issues are used to record the overall progress of implementation.
They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions.
A tracking issue is however *not* meant for large scale discussion, questions, or bug reports about a feature.
Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.
Discussion comments will get marked as off-topic or deleted.
Repeated discussions on the tracking issue may lead to the tracking issue getting locked.

### Details

llvm-tools-preview is a rustup component that contains some LLVM tools. At the time of this writing, it contains the following:

* llc
* llvm-ar
* llvm-as
* llvm-cov
* llvm-dis
* llvm-nm
* llvm-objcopy
* llvm-objdump
* llvm-profdata
* llvm-readobj
* llvm-size
* llvm-strip
* opt

### Steps

* [ ] Write some documentation (not sure where this should live)

### Unresolved Questions

* What will it take to transition out of `-preview`? 
    * NOTE: The `llvm-tools` component was inadvertently made available. It is likely de facto stable now. See [comment below](https://github.com/rust-lang/rust/issues/85658#issuecomment-1991897200).
* What is the stability story? See [comment below](https://github.com/rust-lang/rust/issues/85658#issuecomment-1991897200).
* Where will this be documented?
* Who is responsible for the component?
* Which directory should the component files live?

### Implementation history

* #49584 Original issue
* #50336 Added tools
* #51922 Renamed to `-preview`
* #51962 Added llvm-strip
* #53740 Added llvm-readobj
* #59351 Added llvm-ar
* #72000 Moved libLLVM.so around
* #77868 Added llvm-dis, llc, opt
* #78947 Added llvm-cov
* #78968 Added llvm-as
Repository: create-react-app
Issue: Option to disable `@babel/plugin-transform-runtime`
Labels: issue: proposal,needs triage

### Is your proposal related to a problem?

Application code uses lots of async generator functions which get transpiled with `@babel/plugin-transform-runtime`.
This degrades application performance a lot.
Modern browsers don't require this transpilation to work with async.

### Describe the solution you'd like

Add a config option to disable `@babel/plugin-transform-runtime` for CRA scripts.

### Describe alternatives you've considered

I know we can use our own CRA scrips or create a separate config but since browsers constantly improve their functions better to have as a simple built-in feature for configuring it.

Thanks for any further advice!
Repository: TypeScript
Issue: URL interface is not part of the Window object
Labels: Bug,Help Wanted,Domain: lib.d.ts

# Bug Report

As the title says, the URL interface (#3753) should be part of the Window object: `window.URL`.
Please look at https://developer.mozilla.org/fr/docs/Web/API/URL .

### 🔎 Search Terms

window url, url, new url, createObjectURL, revokeObjectURL

### 🕗 Version & Regression Information

I'm using TypeScript 4.2.4.

### 🙁 Actual behavior

`window.URL` is not defined.

### 🙂 Expected behavior

`window.URL` should refer to the URL interface you added on the issue #3753:

```
URL: {
    prototype: URL;
    new(url: string, base?: string | URL): URL;
    createObjectURL(object: any): string;
    revokeObjectURL(url: string): void;
};
```
Repository: rust
Issue: [ER] A harder case of missed array bound test elision
Labels: A-LLVM,I-slow,T-compiler

Another common case where LLVM doesn't infer the safety of the array access:

```rust
fn copy_to_front_evens(arr: &mut [u32; 100]) {
    let mut pos = 0; // Tortoise
    for i in 0 .. arr.len() { // Hare
        if arr[i] % 2 == 1 {
            arr[pos] = arr[i];
            pos += 1;
        }
    }
}
```

Compiled with -O it performs a bound test in `arr[pos]`:

```asm
copy_to_front_evens:
	pushq	%rax
	movq	%rdi, %rax
	movl	$1, %ecx
	xorl	%edi, %edi
	jmp	.LBB0_1

.LBB0_7:
	addq	$2, %rcx
	cmpq	$101, %rcx
	je	.LBB0_8

.LBB0_1:
	movl	-4(%rax,%rcx,4), %edx
	testb	$1, %dl
	je	.LBB0_4
	cmpq	$99, %rdi
	ja	.LBB0_9
	movl	%edx, (%rax,%rdi,4)
	addq	$1, %rdi

.LBB0_4:
	movl	(%rax,%rcx,4), %edx
	testb	$1, %dl
	je	.LBB0_7
	cmpq	$99, %rdi
	ja	.LBB0_9
	movl	%edx, (%rax,%rdi,4)
	addq	$1, %rdi
	jmp	.LBB0_7

.LBB0_8:
	popq	%rax
	retq

.LBB0_9:
	leaq	.L__unnamed_1(%rip), %rdx
	movl	$100, %esi
	callq	*core::panicking::panic_bounds_check@GOTPCREL(%rip)
	ud2
```

I don't know if a back-end like LLVM is supposed to infer complex situations as this one. Perhaps this is the job of explicit code annotations of pre/post-conditions, loop (in)variants, etc.
Repository: create-react-app
Issue: Custom path for tsconfig in react native/ react native web mixed projects
Labels: stale

Hi! 👋 
      
Firstly, thanks for your work on this project! 🙂

Today I used [patch-package](https://github.com/ds300/patch-package) to patch `react-scripts@4.0.3` for the project I'm working on.

The problem we had was that we need a custom tsconfig for the react native web project. Could react scripts get a variable to pass the ts config path?

Here is the diff that solved my problem:

```diff
diff --git a/node_modules/react-scripts/config/paths.js b/node_modules/react-scripts/config/paths.js
index 67ba927..f25ae22 100644
--- a/node_modules/react-scripts/config/paths.js
+++ b/node_modules/react-scripts/config/paths.js
@@ -68,7 +68,7 @@ module.exports = {
   appIndexJs: resolveModule(resolveApp, 'src/index'),
   appPackageJson: resolveApp('package.json'),
   appSrc: resolveApp('src'),
-  appTsConfig: resolveApp('tsconfig.json'),
+  appTsConfig: resolveApp('tsconfig-web.json'),
   appJsConfig: resolveApp('jsconfig.json'),
   yarnLockFile: resolveApp('yarn.lock'),
   testsSetup: resolveModule(resolveApp, 'src/setupTests'),
@@ -91,7 +91,7 @@ module.exports = {
   appIndexJs: resolveModule(resolveApp, 'src/index'),
   appPackageJson: resolveApp('package.json'),
   appSrc: resolveApp('src'),
-  appTsConfig: resolveApp('tsconfig.json'),
+  appTsConfig: resolveApp('tsconfig-web.json'),
   appJsConfig: resolveApp('jsconfig.json'),
   yarnLockFile: resolveApp('yarn.lock'),
   testsSetup: resolveModule(resolveApp, 'src/setupTests'),
@@ -127,7 +127,7 @@ if (
     appIndexJs: resolveModule(resolveOwn, `${templatePath}/src/index`),
     appPackageJson: resolveOwn('package.json'),
     appSrc: resolveOwn(`${templatePath}/src`),
-    appTsConfig: resolveOwn(`${templatePath}/tsconfig.json`),
+    appTsConfig: resolveOwn(`${templatePath}/tsconfig-web.json`),
     appJsConfig: resolveOwn(`${templatePath}/jsconfig.json`),
     yarnLockFile: resolveOwn(`${templatePath}/yarn.lock`),
     testsSetup: resolveModule(resolveOwn, `${templatePath}/src/setupTests`),
```

<em>This issue body was [partially generated by patch-package](https://github.com/ds300/patch-package/issues/296).</em>
Repository: godot
Issue: PhysicsDirectSpaceState.intersect_ray returns a different result with Bullet and GodotPhysics
Labels: bug,confirmed,topic:physics

<!-- Please search existing issues for potential duplicates before filing yours:
https://github.com/godotengine/godot/issues?q=is%3Aissue
-->

**Godot version:**
3.3.2.stable


**OS/device including version:**
Linux Mint 20.1(Ubuntu 20.04 LTS)

**Issue description:**
When raycasting from the center of a KinematicBody to another KinematicBody with "get_world().direct_space_state.intersect_ray", I get different results depending on PhysicsEngine.
With "Bullet" I get the second body and with "GodotPhysics" I get the first body.


**Steps to reproduce:**
1.Make 2 KinematicBody objects.
2.Raycast between the 2 bodies.
3.Change "Project settings->Physics->3D->Physics Engine" 

**Minimal reproduction project:**
<!-- A small Godot project which reproduces the issue. Drag and drop a zip archive to upload it. -->
[RaycastBug_v2.zip](https://github.com/godotengine/godot/files/6638276/RaycastBug_v2.zip)

Edit: Removed the exclusion lists issue, since it was because of incorrect setup.
Repository: godot
Issue: Text Glitching
Labels: bug,topic:gui

<!-- Please search existing issues for potential duplicates before filing yours:
https://github.com/godotengine/godot/issues?q=is%3Aissue
-->

**Godot version:**
Godot v3.3.2


**OS/device including version:**
Windows 7, 32-bit
GLES3
OpenGL ES 3.0 Renderer: AMD Radeon HD 5500
OpenGL ES Batching: ON


**Issue description:**
Happening since i use Godot v3.3

When running the game, a text glitching and flickering

**Details**
- Here is A Photo about the bug, as you can see there's no glitch
![Capture bug 1](https://user-images.githubusercontent.com/84776345/119488199-77e8a480-bd84-11eb-8bfb-264d8c12d838.PNG)

- But When running
![Capture bug 1 test](https://user-images.githubusercontent.com/84776345/119488231-820aa300-bd84-11eb-8da1-b9201ca55251.PNG)

- Now I try to swap the Button nodes
![Capture bug 3](https://user-images.githubusercontent.com/84776345/119486455-7322f100-bd82-11eb-8ea8-9e26a8318a10.PNG)

- Now the button 2 that glitching
![Capture bug 3 test](https://user-images.githubusercontent.com/84776345/119486481-7ae29580-bd82-11eb-89a9-7e4c9a11917b.PNG)
("but" for button)

- It seems to occur with label as well
![Capture bug 5](https://user-images.githubusercontent.com/84776345/119486532-8b930b80-bd82-11eb-96aa-2165a2be6e73.PNG)
![Capture bug 5 test](https://user-images.githubusercontent.com/84776345/119486537-8df56580-bd82-11eb-8840-e657774dddfa.PNG)

- It doesn't occur when you write a small text on it
![Capture bug 4 prev   test](https://user-images.githubusercontent.com/84776345/119486640-a9f90700-bd82-11eb-8c2a-64998946122b.PNG)

**Note**
Now you might find in the photo that the text is just glitching, but it's actually flickering too.
I have try to make the label or button to be the parent but it still occur.
I'm not testing it with other node, just button and label.
English is not my first language.

**Steps to reproduce:**
1. Create a parent node
2. Have at least 2 button or label inside the game
3. Write a pretty long text in it
4. Then run the game
5. If it doesn't occur, try to make the text longer or try to move your mouse like crazy near or to button

**Minimal reproduction project:**
[Tower Defense (Player has a job to atomized stuff).zip](https://github.com/godotengine/godot/files/6538727/Tower.Defense.Player.has.a.job.to.atomized.stuff.zip)
Ignore the name please
Repository: rust
Issue: Const generics in closure arguments result in false "closure/generator type that references itself" error
Labels: A-closures,C-bug,A-const-generics,requires-nightly,F-generic_const_exprs,requires-incomplete-features

I tried compiling this code:
```rust
#![feature(const_generics)]
#![feature(const_evaluatable_checked)]

use std::convert::TryInto;

pub const PREFIX_LENGTH: usize = 4;

pub struct Foo<T, const L: usize> {
    template: &'static [u8; L],
    item: T
}

impl<T, const L: usize> Foo<T, L> {
    pub fn new<F>(template: &'static [u8; L], constructor: F) -> Self
        where F: Fn(&[u8; L - PREFIX_LENGTH]) -> T
    {
        Self {
            template: template,

            item: constructor(
                &TryInto::<[u8; L - PREFIX_LENGTH]>::try_into(
                    &template[PREFIX_LENGTH..]
                ).unwrap()
            )
        }
    }

    pub fn get(&self) -> &T {
        &self.item
    }
}

const TEMPLATE: &[u8; 12] = b"ABCD12345678";

fn main() {
    let foo = Foo::new(TEMPLATE,
        |x| x.to_vec()
    );

    println!("{}",
        String::from_utf8(
            foo.get().clone()
        ).unwrap()
    );
}
```
The output is supposed to be `12345678`, but instead the compiler throws an error:
```
error[E0644]: closure/generator type that references itself
  --> src/main.rs:37:9
   |
37 |         |x| x.to_vec()
   |         ^^^^^^^^^^^^^^ cyclic type of infinite size
   |
   = note: closures cannot capture themselves or take themselves as argument;
           this error may be the result of a recent compiler bug-fix,
           see issue #46062 <https://github.com/rust-lang/rust/issues/46062>
           for more information
```
However, the code above doesn't include closures that capture themselves or take themselves as an argument.

The bug is most likely related to const generics, because omitting `- PREFIX_LENGTH` such that the `const_generics` feature is not used fixes the compilation. `new` function in this case is as follows:
```rust
    pub fn new<F>(template: &'static [u8; L], constructor: F) -> Self
        where F: Fn(&[u8; L]) -> T
    {
        Self {
            template: template,

            item: constructor(
                &TryInto::<[u8; L]>::try_into(
                    &template[..]
                ).unwrap()
            )
        }
    }
```

`rustc --version --verbose`:
```
rustc 1.54.0-nightly (126561cb3 2021-05-24)
binary: rustc
commit-hash: 126561cb31e8ebe1e2dd9dfd0d3ca621308dc56f
commit-date: 2021-05-24
host: x86_64-unknown-linux-gnu
release: 1.54.0-nightly
LLVM version: 12.0.1
```
Repository: excalidraw
Issue: Subscript and Superscript Text
Labels: enhancement,discussion

Raised by Fong Chun Chan for Obsidian Excalidraw with the following text:

Chemical formulas contain subscripts and right now there is no way to add a subscript.
An option to specify a subset of the text to be a subscript or superscript

https://github.com/zsviczian/obsidian-excalidraw-plugin/issues/64
Repository: vscode
Issue: [api] Give access to recently opened workspaces: `vscode.getRecentlyOpened`
Labels: feature-request,api,api-proposal

We have `vscode.removeFromRecentlyOpened`as a command but not `vscode.getRecentlyOpened`, only `_workbench.getRecentlyOpened`.

Remote extensions use these commands to find out about workspaces that have been deleted remotely and need to be removed from the recent history.
Repository: flutter
Issue: in_app_purchase : Identifying renewed subscriptions
Labels: d: api docs,p: in_app_purchase,package,team-ecosystem,P2,triaged-ecosystem

Hi, I run an app with an annual subscription, I had expected that once members subscriptions renewed I would have a new purchase come through the `purchaseUpdatedStream`, the app would have then have renewed their premium benefits. This has not happened, I still have only the original subscription transaction coming through with the same `productID` as the initial payment a year back, and the same `date`. There appears to be no way to determine if this subscription has renewed? 

This is affecting Google Play, I've not tested if it is the same on iPhone yet.

Thankfully I only had a handful of members that this has affected so far, but I have hundreds of subscribers that will be renewing over the coming months.

Thanks