sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: vscode
Issue: Hitting tab to indent replaces content with a completion
Labels: typescript,polish,editor-autoindent

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- 🕮 Read our guide about submitting issues: https://github.com/microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions -->
<!-- 🔎 Search existing issues to avoid creating duplicates. -->
<!-- 🧪 Test using the latest Insiders build to see if your issue has already been fixed: https://code.visualstudio.com/insiders/ -->
<!-- 💡 Instead of creating your report here, use 'Report Issue' from the 'Help' menu in VS Code to pre-fill useful information. -->
<!-- 🔧 Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: Yes

<!-- 🪓 If you answered No above, use 'Help: Start Extension Bisect' from Command Palette to try to identify the cause. -->
<!-- 📣 Issues caused by an extension need to be reported directly to the extension publisher. The 'Help > Report Issue' dialog can assist with this. -->
- VS Code Version: 1.61.2 (I've seen this before this version)
- OS Version: MacOS Big Sur

Steps to Reproduce:

1.  Create a typescript file like this:
  ```typescript
if (true)
{
let c = 1;
let d = 1;
}
  ```
2.  Select from just after c to just after d.
3. Hit tab to try to indent

The result is this:
```typescript
if (true)
{
let c = 1;
let do {
	
} while (condition); = 1;
}
```

This seems to trigger completions.  Other example are:

### Select from after c to after e in `let d`
```typescript
if (true)
{
let c = 1;
lengtht d = 1;
}
```

### Select from after c to end of next line
```typescript
if (true)
{
let cc
}
```

Note that this seems to depend on what your recent completions are.  For example, that last one will become `let cconsole` if the last auto-complete you accepted was `console`.
Repository: react
Issue: React 18 - waterfall suspensions re-trigger the Suspense boundary 
Labels: Type: Discussion,React 18

I'm seeing some baffling behavior with React 18 in concurrent mode. The minimal repro is below. The tl;dr is this:

I have a single Suspense boundary at the root of the application. The fallback turns the screen pink (so you know it's there).

## Problem 1

I load some data with a Suspense hook. When the data come back, and render, subsequent Suspensions will happen, since I have a SuspenseImg component which suspends while each image preloads. 

**Expected Behavior**

The fallback should show until the data come in, and all of the subsequent image preloads are done.

**Actual Behavior**

The fallback shows, then the page renders briefly, without data, and then re-suspends while the images preload.

---

## Problem 2

There's a button which loads more data, using startTransition. The data load re-triggers the same suspension, and the new data cause the same suspensions when rendered, via the same SuspenseImg (I force it to suspend even though I'm loading the same 5 images over and over).

**Expected Behavior**

The loading boolean from useTransition should show until the data are returned, and all of the images have pre-loaded

**Actual Behavior**

The loading boolean shows while the data are loading, and then the main fallback shows while the images preload.

---

I'll assume this isn't a bug, and that I instead have misunderstood how this works. I had thought Suspense was supposed to make this stuff fire and forget, with React keeping the appropriate fallback / loading boolean set until the entire state has been set, and everything rendered without anything suspending. But it seems I've misunderstood something? 

---

https://codesandbox.io/s/suspense-debug-pz5mz?file=/src/useQuery.js
Repository: tauri
Issue: More native menu items
Labels: type: feature request,status: upstream

These are more native menu items that would be nice to have in Tauri.

Apple's Menu Bar Menus guidelines: https://developer.apple.com/design/human-interface-guidelines/macos/menus/menu-bar-menus

Edit > Paste and Match Style
Edit > Delete
Edit > Speech > Start Speaking
Edit > Speech > Stop Speaking
Edit > Start Dictation
Edit > Emoji & Symbols

View > Actual Size
View > Zoom In
View > Zoom Out

Window > Bring All to Front

List of open windows: Most macOS apps also have a list of the open windows at the bottom of the Window menu. The guidelines state that you should:
> **List open windows — not panels — as menu items at the bottom of the Window menu.** List the windows in alphabetical order for easy scanning. When people select an open window in the Window menu, it comes to the front of the window stack.
Repository: pytorch
Issue: Feature: Add derivative for channel_shuffle
Labels: feature,module: autograd,module: nn,triaged

When running a program like:

```
self.layer4 = nn.Sequential(
  nn.MaxPool2d(kernel_size=2, stride=2),
  nn.ChannelShuffle(2)
)
```

I get the error message:

```
RuntimeError: derivative for channel_ shuffle is not implemented
```

cc @ezyang @albanD @zou3519 @gqchen @pearu @nikitaved @soulitzer @Lezcano @Varal7 @mruberry @jbschlosser @walterddr @kshitij12345
Repository: flutter
Issue: [camera_web] Support camera image streams on the web
Labels: c: new feature,platform-web,p: camera,package,c: proposal,P3,team-web,triaged-web

Implement image camera streams on the web.

## Use case
It would be useful to add support for the streaming images with the camera plugin on the web. It would allow developers to implement all kinds of use cases, including computer vision, saving images and much more.

## Proposal
Add support for the streaming images with the camera plugin on the web

## Example
Here is an example of how to initialize the image stream of a camera controller:

```
    controller = CameraController(cameras[0], ResolutionPreset.medium);
    controller.initialize().then((_) {
      if (!mounted) {
        return;
      }
      controller.startImageStream((CameraImage availableImage) {
        // Process each image here.
      });
    });
```

## See also
- #26348 for the ticket about the documentation for this image stream API.
Repository: flutter
Issue: TextDirection.rtl in Directionality does not change the overflow
Labels: engine,a: typography,has reproducible steps,P2,found in release: 2.5,found in release: 2.6,team-engine,triaged-engine

## Steps to Reproduce


1. flutter run 

**Expected results:** 
...1111111111111111111111111111111111111

**Actual results:** 
1111111111111111111111111111111111111...

<img src="https://user-images.githubusercontent.com/7422251/138815273-e6bd7dbb-1a30-4f5f-9077-fa30e77b4b1d.png" width ="300">

`Sample Code`

```dart
class SamplePage extends StatefulWidget {

  SamplePage(): super();

  @override
  SamplePageState createState() => SamplePageState();
}

class SamplePageState extends State<SamplePage> with WidgetsBindingObserver {

  @override
  void initState(){
    super.initState();
  }

  Widget build(BuildContext context){
    
    Widget bodyScaffold = Directionality(
      textDirection: TextDirection.rtl, 
      child: Scaffold(
        body: Container(
          padding : EdgeInsets.only(top: 200),
          child: Text( "111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111", overflow: TextOverflow.ellipsis, maxLines: 1,),
        ),
      ),
    );

    return bodyScaffold;
  }
}
```

<details>
  <summary>Logs</summary>


`flutter doctor -v`


```
[√] Flutter (Channel stable, 2.5.3, on Microsoft Windows [Version 10.0.19043.1288], locale ja-JP)
    • Flutter version 2.5.3 at C:\Users\81708\Desktop\develop\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 18116933e7 (10 days ago), 2021-10-15 10:46:35 -0700
    • Engine revision d3ea636dc5
    • Dart version 2.14.4

[√] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at C:\Users\81708\AppData\Local\Android\sdk
    • Platform android-31, build-tools 31.0.0
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java      
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)    
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Android Studio (version 2020.3)
    • 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.10+0-b96-7249189)

[√] VS Code (version 1.61.2)
    • VS Code at C:\Users\81708\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.27.0

[√] Connected device (3 available)
    • sdk gphone x86 (mobile) • emulator-5554 • android-x86    • Android 11 (API 30) (emulator)
    • Chrome (web)            • chrome        • web-javascript • Google Chrome 95.0.4638.54
    • Edge (web)              • edge          • web-javascript • Microsoft Edge 95.0.1020.30

• No issues found!
```

</details>
Repository: pytorch
Issue: pytorch_linux_xenial_py3_6_gcc5_4_test may timeout during test_multiprocessing_spawn
Labels: high priority,module: multiprocessing,module: tests,triaged

See https://app.circleci.com/pipelines/github/pytorch/pytorch/399542/workflows/c47c4bad-012c-47af-9665-c87f72eddb12/jobs/16566928. Relevant snippet:

```
Oct 25 20:00:00 Running test_multiprocessing_spawn ... [2021-10-25 20:00:00.832874]
Oct 25 20:00:00 Executing ['/opt/conda/bin/python', 'test_multiprocessing_spawn.py', '-v', '--import-slow-tests', '--import-disabled-tests'] ... [2021-10-25 20:00:00.832938]
Oct 25 20:00:01 Test results will be stored in test-reports/python-unittest/test_multiprocessing_spawn
Oct 25 20:00:01 
Oct 25 20:00:01 Running tests...
Oct 25 20:00:01 ----------------------------------------------------------------------
Oct 25 20:00:01   test_exception_all (__main__.ForkTest) ... ok (0.067s)
Oct 25 20:00:01   test_exception_single (__main__.ForkTest) ... ok (0.016s)
Oct 25 20:00:01   test_first_argument_index (__main__.ForkTest) ... ok (0.008s)

Too long with no output (exceeded 1h30m0s): context deadline exceeded
```

cc @ezyang @gchanan @zou3519 @bdhirsh @jbschlosser @pietern @mrshenli @pritamdamania87 @zhaojuanmao @satgera @rohan-varma @gqchen @aazzolini @osalpekar @jiayisuse @SciPioneer @H-Huang @VitalyFedyunin @mruberry
Repository: TypeScript
Issue: support "star projections" in generics
Labels: Suggestion,Awaiting More Feedback

# Suggestion

<!--
  Please fill in each section completely. Thank you!
-->

## 🔍 Search Terms
star projection
<!--
  💡 Did you know? TypeScript has over 2,000 open suggestions!
  🔎 Please search thoroughly before logging new feature requests as most common ideas already have a proposal in progress.
  The "Common Feature Requests" section of the FAQ lists many popular requests: https://github.com/Microsoft/TypeScript/wiki/FAQ#common-feature-requests

  Replace the text below:
-->

## ✅ Viability Checklist

<!--
   Suggestions that don't meet all these criteria are very, very unlikely to be accepted.
   We always recommend reviewing the TypeScript design goals before investing time writing
   a proposal for ideas outside the scope of the project.
-->
My suggestion meets these guidelines:

* [X] This wouldn't be a breaking change in existing TypeScript/JavaScript code
* [X] This wouldn't change the runtime behavior of existing JavaScript code
* [X] This could be implemented without emitting different JS based on the types of the expressions
* [X] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
* [X] This feature would agree with the rest of [TypeScript's Design Goals](https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals).


## ⭐ Suggestion
in kotlin, you can omit a generic from a type annotation when you don't care what its value is:
```kotlin
class Foo<T: Number>

fun foo(value: Foo<*>) {}
```

more info: https://typealias.com/guides/star-projections-and-how-they-work/

in typescript, to do the same thing you need to use `any`, which is gross:
```ts
type Foo<T extends number> = T

declare function foo(value: Foo<any>): void
```
or simply duplicate the bound, which isn't convenient:
```ts
type Foo<T extends number | string | boolean> = T

declare function foo(value: Foo<number | string | boolean>): void
```

## 📃 Motivating Example

<!--
  If you were announcing this feature in a blog post, what's a short explanation that shows
  a developer why this feature improves the language?
-->
it's especially useful for types that have multiple bounded generics
```ts
type ThingWithLotsOfGenerics<Type1 extends Base1, Type2 extends Base2, Type3 extends Base3> = {}

declare function foo(value: ThingWithLotsOfGenerics<*, *, *>): void
```
Repository: rust
Issue: staticlib + sancov + full LTO fails with 1.56
Labels: A-LLVM,P-medium,T-compiler,regression-from-stable-to-stable,C-bug,A-LTO

### Code

For a reduced-ish testcase, create a lib with the following Cargo.toml:
```
[package]
name = "testcase"
version = "0.1.0"

[lib]
crate-type = ["staticlib"]
path = "lib.rs"

[dependencies]
wast = { version = "38.0.1" }

profile.release]
lto = true
```

and `lib.rs`:
```
extern crate wast;
```

The following command fails:
```
$ RUSTFLAGS="-Cpasses=sancov -Cllvm-args=-sanitizer-coverage-level=4 -Cembed-bitcode=yes" cargo build  --release
   Compiling leb128 v0.2.5
   Compiling wast v38.0.1
   Compiling testcase v0.1.0 (/tmp/testcase)
warning: Linking COMDATs named '_ZN4core3ptr66drop_in_place$LT$alloc..vec..Vec$LT$wast..ast..func..Local$GT$$GT$17h37651afa29ff204cE': nodeduplicate has been violated!

error: failed to load bc of "wast-c09551a471674a65.wast.553280a2-cgu.1.rcgu.o": 
```

This worked fine up to 1.55. This fails with 1.56. Values of `-sanitizer-coverage-level` between 1 and 4 fail.

It also fails with nightly (but `-Cpasses=sancov` needs to be replaced with `-Cpasses=sancov-module`), and the error message is slightly different:
```
warning: Linking COMDATs named '_ZN4core3ptr79drop_in_place$LT$core..option..Option$LT$wast..ast..types..FunctionType$GT$$GT$17he370b2da7c4642faE': GlobalVariable required for data dependent selection!

error: failed to load bc of "wast-262865a11263ff3e.wast.a15963cd-cgu.1.rcgu.o": 
```

Disabling LTO or using thin LTO makes it work.
Repository: angular
Issue: Accessing @ViewChild and @ViewChildren of a template declared in a different component than the one where it is host
Labels: feature,area: core,core: queries,core: content projection,feature: insufficient votes

### Which @angular/* package(s) are relevant/releated to the feature request?

common, core

### Description

We can't access template's view children from the component that host the template via `ngTemplateOutlet` if the template is not declared inside this same component.

For example:

- A child component takes a `TemplateRef` as a `@Input()` and insert this template through `ngTemplateOutlet`. 
- A parent component inject the template.
- The child component can't access views inside the template.

<h5>child.component.html</h5>

```
<ng-container #fromParent [ngTemplateOutlet]="template"></ng-container>
```

<h5>child.component.ts</h5>

```
@Component({
  selector: 'app-child',
  templateUrl: './child.component.html',
  styleUrls: ['./child.component.css'],
})
export class ChildComponent implements AfterViewInit {
  @Input() template: TemplateRef<unknown>;
  @ViewChildren(HelloComponent) hello = new QueryList<HelloComponent>();

  ngAfterViewInit() {
    console.log('Has hello', this.hello.length > 0);
  }
}
```

<h5>parent.component.html</h5>

```
<ng-template #tmp> <hello name="{{ name }}"></hello> </ng-template>
<app-child [template]="tmp"> </app-child>
```

The log in child component returns `false`.

I already made a `StackOverflow` post at https://stackoverflow.com/q/69709254/3520621.

Their is a `StackBlitz` available for reproductivity at https://stackblitz.com/edit/angular-eopzyw?file=src/app/app.component.ts.


### Proposed solution

I'm not sure of what could be a proper solution but as Ritesh Waghela mentioned in the `StackOverflow`  post, the template content has the same `host id`  as the parent component and not the same as the child component.

Maybe the template content should in this case be attached to the child and not the parent ? But I'm not sure if this won't break any actual behaviour.

![image](https://user-images.githubusercontent.com/9304680/138823410-4ed8b10b-79ba-430f-a863-28f8148874a5.png)

In this example the `ngcontent host id` shoulld have been `lhp-c2` instead of `lhp-c0`.

### Alternatives considered

In case the template should be use only once, using the power of [Content-Projection](https://angular.io/guide/content-projection) should do the trick but in my real-life context the template should be reusable. The `child-component` must be able to set a  `ngTemplateOutletContext`.

Anyway, I'm open to any proposition of an alternative way to access the template's views from child component by keeping the dynamic and reusable power of `ng-template`.

Thanks.
Repository: flutter
Issue: [cross_file] Image provider for cross file
Labels: c: new feature,package,c: proposal,team-ecosystem,P3,p: cross_file,triaged-ecosystem

## Use case

Quite a few of the official Flutter plugins use [cross_file](https://pub.dev/packages/cross_file) in order to read files in a platform independent way. For example [camera](https://pub.dev/packages/camera) or [image_picker](https://pub.dev/packages/image_picker).  Therefor it would be great if the `cross_file` package would include a `XFileImage` similar to [FileImage](https://api.flutter.dev/flutter/painting/FileImage-class.html) in order to make it easy to show an image contained in an XFile directly.


## Proposal
I would like something  like the following pseudo code:

```dart
// get an XFile with an image
final XFile? image = await _picker.pickImage(source: ImageSource.gallery);

// show XFile in Image widget
Image(
  image: XFileImage(image),
)
```
Repository: electron
Issue: [Feature Request]: Thumbnail icon click event in window
Labels: enhancement :sparkles:

### 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 feature request that matches the one I want to file, without success.

### Problem Description

I have created the window app with one browser window. That browser window is setAlwaysTop: true. 
At this time, When I click the thumbnail icon, I would like to minimize the window. But this is not working. 

### Proposed Solution

When I click the thumbnail icon, I would like to minimize the window. But this is not working.

### Alternatives Considered

Not any alternative way to implement this. I thought the thumbar buttons are solution for this. But this is no solution. So I need your help.

### Additional Information

_No response_
Repository: PowerToys
Issue: FanzyZones Keep window size when snapping
Labels: Idea-Enhancement,Product-FancyZones

### Description of the new feature / enhancement

I would like the option to not change the window size to be adjusted to a snapping zone but instead snap the window "as is" to the center of the zone or top left.

### Scenario when this would be used?

I use the built in remote desktop client in Windows and usually on a 4k monitor using multiple 1920x1080 sessions. I want the window to keep the initial size and still be able to use fancy zones.

### Supporting information

_No response_
Repository: godot
Issue: [4.0] basic project won't start.
Labels: bug,platform:linuxbsd,topic:rendering,topic:thirdparty,needs testing

### Godot version

v4.0.dev.20211015.official [f113dc986]

### System information

Debian 11

### Issue description

A basic project won't start:

```
(base) vale@debianace:~/Downloads/godot_normal/Godot_v4.0-dev.20211015_linux.64$ ./Godot_v4.0-dev.20211015_linux.64 
Godot Engine v4.0.dev.20211015.official.f113dc986 - https://godotengine.org
Can't open bumblebee display.
ERROR: GENERAL - Message Id Number: 0 | Message Id Name: Loader Message
	loader_scanned_icd_add: ICD libnv_vulkan_wrapper.so.1 doesn't support interface version compatible with loader, skip this ICD.
	Objects - 1
		Object[0] - VK_OBJECT_TYPE_INSTANCE, Handle 154681200
   at: _debug_messenger_callback (drivers/vulkan/vulkan_context.cpp:157)
MESA-INTEL: warning: Ivy Bridge Vulkan support is incomplete
Vulkan API 1.2.162 - Using Vulkan Device #0: Intel - Intel(R) HD Graphics 4000 (IVB GT2)
 
Editing project: /home/vale/godot/Godot4 (::home::vale::godot::Godot4)
Godot Engine v4.0.dev.20211015.official.f113dc986 - https://godotengine.org
Can't open bumblebee display.
ERROR: GENERAL - Message Id Number: 0 | Message Id Name: Loader Message
	loader_scanned_icd_add: ICD libnv_vulkan_wrapper.so.1 doesn't support interface version compatible with loader, skip this ICD.
	Objects - 1
		Object[0] - VK_OBJECT_TYPE_INSTANCE, Handle 139801952
   at: _debug_messenger_callback (drivers/vulkan/vulkan_context.cpp:157)
MESA-INTEL: warning: Ivy Bridge Vulkan support is incomplete
Vulkan API 1.2.162 - Using Vulkan Device #0: Intel - Intel(R) HD Graphics 4000 (IVB GT2)
(base) vale@debianace:~/Downloads/godot_normal/Godot_v4.0-dev.20211015_linux.64$  
Running: /home/vale/Downloads/godot_normal/Godot_v4.0-dev.20211015_linux.64/Godot_v4.0-dev.20211015_linux.64 --path /home/vale/godot/Godot4 --remote-debug tcp://127.0.0.1:6007 --allow_focus_steal_pid 19582 --position 448,240
Godot Engine v4.0.dev.20211015.official.f113dc986 - https://godotengine.org
(base) vale@debianace:~/Downloads/godot_normal/Godot_v4.0-dev.20211015_linux.64$ Running: /home/vale/Downloads/godot_normal/Godot_v4.0-dev.20211015_linux.64/Godot_v4.0-dev.20211015_linux.64 --path /home/vale/godot/Godot4 --remote-debug tcp://127.0.0.1:6007 --allow_focus_steal_pid 19582 --position 448,240
Godot Engine v4.0.dev.20211015.official.f113dc986 - https://godotengine.org
ERROR: Condition "!material" is true.
   at: material_set_shader (servers/rendering/renderer_rd/renderer_storage_rd.cpp:1547)



```
I guess I need to wait for alpha1 to keep testing? :)
### Steps to reproduce

run minimal project attached

### Minimal reproduction project

[Godot4.zip](https://github.com/godotengine/godot/files/7417421/Godot4.zip)