sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: create-react-app
Issue: Import of module in a *.d.ts typings file fails compilation
Labels: stale,needs triage,issue: bug report

### Describe the bug

Referencing a typings file that is not under `node_modules` fails with a compilation error. 

### Did you try recovering your dependencies?

Yes

### Which terms did you search for in User Guide?

Absolute path, module resolution, the actual error, and hundreds more!

### Environment

```
Environment Info:

  current version of create-react-app: 4.0.1
  running from /Users/pedramr/repos/create-react-issue/my-app/node_modules/create-react-app

  System:
    OS: macOS 11.1
    CPU: (8) x64 Intel(R) Core(TM) i5-8279U CPU @ 2.40GHz
  Binaries:
    Node: 14.15.1 - /usr/local/bin/node
    Yarn: 1.19.1 - /usr/local/bin/yarn
    npm: 6.14.8 - /usr/local/bin/npm
  Browsers:
    Chrome: Not Found
    Edge: 87.0.664.75
    Firefox: Not Found
    Safari: 14.0.2
  npmPackages:
    react: ^17.0.1 => 17.0.1 
    react-dom: ^17.0.1 => 17.0.1 
    react-scripts: 4.0.1 => 4.0.1 
  npmGlobalPackages:
    create-react-app: Not Found
```

### Steps to reproduce

Here is a repo with the sample: https://github.com/pedramrezaei/create-react-issue. Clone and `npm run build`

If you don't want to use the repo, do this:

1. Create a new typescript app: `npx create-react-app my-app --template typescript`
2. Create `index.d.ts` with the content [here](https://github.com/pedramrezaei/create-react-issue/blob/main/my-app/src/types/TheType/index.d.ts) and place it under `src\types\TheType\`
3. Add `"baseUrl": "src"` to `tsconfig.json` under `compilerOptions`
4. Add `"typeRoots": ["node_modules/@types", "src/types"],` to `tsconfig.json`
5. In `index.tsx`, add this import: `import TheType from 'types/TheType'` and make this call `TheType.getContext();`

### Expected behavior

It should compile fine.

### Actual behavior

```
Failed to compile.

./src/index.tsx
Cannot find module: 'types/TheType'. Make sure this package is installed.
```

### Reproducible demo

See above

Adding @rovansteen who seems to have done some work in this area.
Repository: PowerToys
Issue: Provide mouse pointer support for Left Handed users / custom pointer
Labels: Idea-Enhancement,Product-Mouse Utilities

## 📝 Provide a description of the new feature
Per a discussion on [Twitter](https://twitter.com/ClintRutkas/status/1347665196895010817), I propose adding an extension that allows the user to enable alternate Windows mouse pointer design and behavior (move the hot spot) so that for persons who use the mouse with their left hand, the arrow (or similar) points towards the right hand side of the display.

_What is the expected behavior of the proposed feature?  What is the scenario this would be used?_
If enabled, the Windows mouse pointer (arrow, hand etc...) would point to the right instead of the left
![image](https://user-images.githubusercontent.com/12723166/104070205-3808a100-526b-11eb-87c7-f10e3db7d2cb.png)

This would potentially enable greater end user comfort and usability. 

---

If you'd like to see this feature implemented, add a 👍 reaction to this post.
Repository: flutter
Issue: OpenContainer widget disables all Hero animations on second route
Labels: framework,a: animation,f: routes,package,p: animations,team-ecosystem,has reproducible steps,P2,found in release: 3.3,found in release: 3.7,triaged-ecosystem

<!-- Thank you for using Flutter!

     If you are looking for support, please check out our documentation
     or consider asking a question on Stack Overflow:
      * https://flutter.dev/
      * https://api.flutter.dev/
      * https://stackoverflow.com/questions/tagged/flutter?sort=frequent

     If you have found a bug or if our documentation doesn't have an answer
     to what you're looking for, then fill out the template below. Please read
     our guide to filing a bug first: https://flutter.dev/docs/resources/bug-reports
-->

## Steps to Reproduce

<!-- You must include full steps to reproduce so that we can reproduce the problem. -->


1. Wrap `FirstCard()` widget on the `FirstScreen()` in `OpenContainer` widget from 'animations' package, to make it open `SecondScreen()` screen on tap
2. On the `SecondScreen()` place a `SecondCard()` widget wrapped in `Hero`, which will do `Navigator.push(ThirdScreen())` on tap
3. On the `ThirdScreen()` use the `ThirdCard()` widget wrapped in `Hero` with the same tag as on previous screen

**Expected results:** <!-- what did you want to see? -->
`SecondCard()` widget is nicely animated to `ThirdCard()` on pushing the `ThirdScreen()` to Navigator (default hero transition is occuring)

**Actual results:** <!-- what did you see? -->
Hero transition between cards is not happening, only the default route transition

<details>
  <summary>Logs</summary>

<!--
      Run your application with `flutter run --verbose` and attach all the
      log output below between the lines with the backticks. If there is an
      exception, please see if the error message includes enough information
      to explain how to solve the issue.
-->

```
```

<!--
     Run `flutter analyze` and attach any output of that command below.
     If there are any analysis errors, try resolving them before filing this issue.
-->

```
```

<!-- Finally, paste the output of running `flutter doctor -v` here. -->

```
```

</details>
Repository: flutter
Issue: State restoration for webview_flutter
Labels: c: new feature,p: webview,package,c: proposal,team-ecosystem,P3,triaged-ecosystem

## Use case
- State restoration is awesome! It reallys simplifies application logic in providing an unsurprising user experience.
- It'd be great if `WebView` widgets supported state restoration as well

## Proposal
- Add `WebView` support for `RestorationMixin` (I think?)
- Include scroll offsets, navigation history, and probably a handful of other kinds of web state too
Repository: godot
Issue: The properties move_lock_x, move_lock_y, and move_lock_z of the Kinematic body 3D node are not available in Visual Script
Labels: bug,topic:visualscript

<!-- Please search existing issues for potential duplicates before filing yours:
https://github.com/godotengine/godot/issues?q=is%3Aissue
-->

**Godot version:**
<!-- Specify commit hash if using non-official build. -->

- Godot 3.2.4 beta 5


**OS/device including version:**
<!-- Specify GPU model, drivers, and the backend (GLES2, GLES3, Vulkan) if graphics-related. -->

- Windows 10 Home 64-bit, Version 20H2, OS build 19042.685
- Intel® UHD Graphics 620, Version 27.20.100.9126


**Issue description:**
<!-- What happened, and what was expected. -->
According to the [official docs](https://docs.godotengine.org/en/stable/classes/class_kinematicbody.html), **move_lock_x, move_lock_y, and move_lock_z** should be available as the KinematicBody's properties. However, it's not available in Visual Script as shown in the screenshot below:

![Screenshot 2021-01-08 205435](https://user-images.githubusercontent.com/1403194/104076818-f7bb0b80-51f5-11eb-824e-2547abe2adb9.jpg)

I expected them to be available in Visual Script.


**Steps to reproduce:**

1. Add the Visual Script's **set node**.
2. Click at the property box inside the inspector tab where the user can find the property to be set. However, under the KinematicBody's property, only the _collision/safe_margin_ property is avialble.


**Minimal reproduction project:**
<!-- A small Godot project which reproduces the issue. Drag and drop a zip archive to upload it. -->
Repository: pytorch
Issue: Way to solve GPU Host Thread Contention?
Labels: oncall: distributed,triaged


Hello. Sorry to bother you guys. It seems that sometimes there might be CPU Thread Contention between workers on a single node for distributed training. The CPU may use a lot of its host threads to keep one GPU busy, then launch kernels on another GPU, which would result in an overall delay since all workers need to do the synchronization in each batch. In TensorFlow, we can use TF_GPU_THREAD_MODE to keep threads for a GPU private. I wonder if there are any similar solutions in PyTorch. Many thanks!

cc @pietern @mrshenli @pritamdamania87 @zhaojuanmao @satgera @rohan-varma @gqchen @aazzolini @osalpekar @jiayisuse @agolynski @SciPioneer @H-Huang @mrzzd
Repository: godot
Issue: The methods get_axis_lock and set_axis_lock of the Kinematic body 3D node are not available in Visual Script
Labels: bug,confirmed,topic:visualscript

<!-- Please search existing issues for potential duplicates before filing yours:
https://github.com/godotengine/godot/issues?q=is%3Aissue
-->

**Godot version:**
<!-- Specify commit hash if using non-official build. -->

- Godot 3.2.4 beta 5


**OS/device including version:**
<!-- Specify GPU model, drivers, and the backend (GLES2, GLES3, Vulkan) if graphics-related. -->

- Windows 10 Home 64-bit, Version 20H2, OS build 19042.685
- Intel® UHD Graphics 620, Version 27.20.100.9126


**Issue description:**
<!-- What happened, and what was expected. -->
According to the [official docs](https://docs.godotengine.org/en/stable/classes/class_kinematicbody.html), **get_axis_lock and set_axis_lock** should be available as the KinematicBody's methods. However, it's not available in Visual Script as shown in the screenshots below:

![Screenshot 2021-01-08 212920](https://user-images.githubusercontent.com/1403194/104077509-c5f77400-51f8-11eb-87bb-0ad20cf99f06.jpg)

![Screenshot 2021-01-08 213015](https://user-images.githubusercontent.com/1403194/104077520-cbed5500-51f8-11eb-84cd-df798e019fe8.jpg)


**Steps to reproduce:**

1. Add the Visual Script's **call node**.
2. In the inspector tab, set call mode to Instance.
3. Set base type to KinematicBody.
4. In the function search box, the get_axis_lock and set_axis_lock methods can't be found.


**Minimal reproduction project:**
<!-- A small Godot project which reproduces the issue. Drag and drop a zip archive to upload it. -->
Repository: TypeScript
Issue: Mixin classes with private/protected constructors are subclassable
Labels: Bug

# Bug Report

### 🔎 Search Terms

mixin, private constructor

### 🕗 Version & Regression Information

This is the behavior in every version I tried, and I reviewed the FAQ for entries about Classes.
Versions tried:
- 3.7.4
- 4.1.3
- Nightly



### ⏯ Playground Link

[Playground link with relevant code](https://www.typescriptlang.org/play?ts=4.2.0-dev.20210108#code/GYVwdgxgLglg9mABABQE4FMBu6xQMogBGEANgIYDOFMYA5gLIwAeNAPACoBCl6i6TUHABMKiMOgDuACgB0csqloUAXIjJgAngG0AugEpEAXgB8azcancK6VVx4GA3gChEiDFBCokpSqIByCATE5FRkhCS8-IJgIohWvM6urgAOqDCYZIKIEAgUUKgg0HCosvKKKmba+oiJSa4UIMnoJXoA3C5JAL4d3d1OPlRxPDUdOWB5BUUtNb1O-SH+gUQDFGER7AAWqHAgtBsAogI41Ah8RzGi8SMpaRlZYxOFUMVSjh31jc2v7a6z-blQRABMBBFZrdCbba7DaMFhIQwoDDYXCghY0BjMGiWeztJziCRApbBXzgyE7PaHaInMDfPGSQkg5YLUlbckwzE0tpAA)

### 💻 Code

```ts
function PreventSubclassingMixin<TBase extends new(...args: any[]) => any>(Base: TBase) {
  return class NonSubclassable extends Base {
    private constructor(...args: any[]) {
      super();
    }
  }
}

class Base {
  constructor() {}
}

class NonSubclassableThroughExtension extends Base {
  private constructor() {
    super();
  }
}

const NonSubclassableThroughMixin = PreventSubclassingMixin(Base);

new NonSubclassableThroughExtension(); // Constructor of class 'NonSubclassableThroughExtension' is private and only accessible within the class declaration.(2673)
new NonSubclassableThroughMixin(); // Doesn't throw an error
```

### 🙁 Actual behavior

`NonSubclassableThroughExtension` correctly throw an error — I've extended a superclass `Base`, which has a publicly accessible constructor, and provided a private constructor in the derived class. I can't access the derived class' constructor anymore:

```ts
new NonSubclassableThroughExtension(); // Constructor of class 'NonSubclassableThroughExtension' is private and only accessible within the class declaration.(2673)
```

The `PreventSubclassingMixin` supposedly works the same — it creates a class expression that extends the `Base` class with a public constructor and defines a private constructor, and returns it. The returned derived mixin class is supposedly identical to the example above. However, if I apply the mixin to the `Base`: `const NonSubclassableThroughMixin = PreventSubclassingMixin(Base)`, and try to initialize it, Typescript won't throw any error.

### 🙂 Expected behavior

`new NonSubclassableThroughMixin()` should throw a `Constructor of class 'NonSubclassableThroughExtension' is private and only accessible within the class declaration.(2673)`.
Repository: vscode
Issue: Git - Add "Git: Switch to…" as an alias for "Git: Checkout to…"
Labels: help wanted,feature-request,git

<!-- ⚠️⚠️ 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. -->

Related (but not duplicate): #110221

In the command palette (the one accessible via <kbd>F1</kbd> if I got the name wrong), there is a "Git: Checkout to…" option. As `git switch` is a newer command in git, most people don't use it yet. However, some do! Having "Git: Switch to…" would be an improvement for those of us that use `git switch` on a regular basis.
Repository: rust
Issue: Attempting to reuse lifetime in inner function should give E0401, not E0261
Labels: A-diagnostics,A-lifetimes,T-compiler

Errornous code:

```rust,edition=2018
fn lifetime_outer<'a>(_: &'a ()) {
    fn inner(_: &'a ()) {}
}
```

Current error message:

```
error[E0261]: use of undeclared lifetime name `'a`
 --> src/lib.rs:2:18
  |
2 |     fn inner(_: &'a ()) {}
  |             -    ^^ undeclared lifetime
  |             |
  |             help: consider introducing lifetime `'a` here: `<'a>`
  |
  = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` 
```

This is wrong. The lifetime `'a` is declared, but in the parent function and items defined in function bodies cannot use generic parameters from their parents. Which we have an error for, [E0401](https://doc.rust-lang.org/nightly/error-index.html#E0401).

As such, this error message should be:

```
error[E0401]: can't use generic parameters from outer function
 --> src/lib.rs:2:18
  |
1 | fn lifetime_outer<'a>(_: &'a ()) {
  |                   -- generic parameter from outer function
2 |     fn inner(_: &'a ()) {}
  |        -----     ^^ use of generic parameter from outer function
  |        |
  |        help: try using a local generic parameter instead: `inner<'a>`
  |
  = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` 
```

<!-- TRIAGEBOT_START -->

<!-- TRIAGEBOT_ASSIGN_START -->

<!-- TRIAGEBOT_ASSIGN_DATA_START$${"user":"PatchMixolydic"}$$TRIAGEBOT_ASSIGN_DATA_END -->

<!-- TRIAGEBOT_ASSIGN_END -->
<!-- TRIAGEBOT_END -->
Repository: youtube-dl
Issue: Support request for stream.meet.google.com
Labels: site-support-request

<!--

######################################################################
  WARNING!
  IGNORING THE FOLLOWING TEMPLATE WILL RESULT IN ISSUE CLOSED AS INCOMPLETE
######################################################################

-->


## Checklist

<!--
Carefully read and work through this check list in order to prevent the most common mistakes and misuse of youtube-dl:
- First of, make sure you are using the latest version of youtube-dl. Run `youtube-dl --version` and ensure your version is 2021.01.08. If it's not, see https://yt-dl.org/update on how to update. Issues with outdated version will be REJECTED.
- Make sure that all provided video/audio/playlist URLs (if any) are alive and playable in a browser.
- Make sure that site you are requesting is not dedicated to copyright infringement, see https://yt-dl.org/copyright-infringement. youtube-dl does not support such sites. In order for site support request to be accepted all provided example URLs should not violate any copyrights.
- Search the bugtracker for similar site support requests: http://yt-dl.org/search-issues. DO NOT post duplicates.
- Finally, put x into all relevant boxes (like this [x])
-->

- [x] I'm reporting a new site support request
- [x] I've verified that I'm running youtube-dl version **2021.01.08**
- [x] I've checked that all provided URLs are alive and playable in a browser
- [x] I've checked that none of provided URLs violate any copyrights
- [x] I've searched the bugtracker for similar site support requests including closed ones


## Example URLs

<!--
Provide all kinds of example URLs support for which should be included. Replace following example URLs by yours.
-->

- Single video: https://stream.meet.google.com/stream/87210a1c-77c2-4026-942b-2d44e4702f2f
- Single video: https://stream.meet.google.com/stream/94162b96-cca9-4244-b21f-ce010abac6a7

## Description

<!--
Provide any additional information.
If work on your issue requires account credentials please provide them or explain how one can obtain them.
-->

This is a feature of google meet avaliable to G Suite Enterprise for Education, Enterprise Standard and Enterprise Plus users where it is possible to livestream a conference (more info https://support.google.com/meet/answer/9308630). It requires authentication but that works fine just with cookies. It embeds a "www.youtube-nocookie.com" frame, that viewed alone doesn't work and straight up crashes. The problem is that it's very hard to find one working, beacuse even though a simple "stream.meet.google.com" search gives plenty of results, most of them are not live and/or are not avaliable for external organisations.
Repository: go
Issue: proposal: text/template: safe navigation with ?.
Labels: Proposal

It would be beautiful if the package `text/template` (used by e.g. Helm) could support optional chaining. Similar to JavaScript in latest standard ECMAScript 2020. See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining

It would basically look like this:

```
spec:
  type: {{ .Values.service?.type | default "ClusterIP" }}
```

If service is not defined, it would short-circuit to undefined/false and thus default to "ClusterIP".

This could be used in other cases, such as:

```
spec:
  {{- if .Values.global?.internalIPFamily }}
  ipFamily: {{ .Values.global.internalIPFamily }}
  {{- end }}
```

It solves a few things in e.g. Helm that uses `text/template` for templating:
1. `default` not working when parent values does not exist in a chain, giving errors, see https://github.com/helm/helm/issues/8026.
2. It would be able to get rid of the, in my opinion, not great best practice for nested or flat values for e.g. Helm (which I assume is applicable to other `text/template` usages as well), see https://helm.sh/docs/chart_best_practices/values/#flat-or-nested-values. Optional chaining would instead still make the code more readable (one-liner) not caring about value depth. It would also in my opinion make it easier to read YAML files with the nested structure, clearly separating levels, than to use camelCase.

As I know very little about Go and the packge `text/template`, feel free to add more precise info on how this translates to what needs to be done in `text/template`.
Repository: go
Issue: gollvm: missing kernel headers, broken build script for libffi on x86_64 Void Linux
Labels: NeedsInvestigation

Hello again.
I tried to build gollvm on another musl based Linux distro (additionally to Alpine).
https://www.reddit.com/r/voidlinux/comments/koyhl8/cant_compile_gollvm_on_void_linux/ - reported to the maintainers of Void Linux.
https://gist.github.com/advancedwebdeveloper/28e6c970c2c5301a1666435439312246 - here is the log.

libffi related stuff looks like this:

> /home/oceanfish81/workarea/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/ffi.go:18:26: error: use of undefined type '__ffi_type'

You can check my compressed build folder
https://drive.google.com/file/d/1EwHPzIcrKFRTWPXEXJRz7yf-PfNRuQnE/view?usp=sharing
Repository: youtube-dl
Issue: SampleFocus support
Labels: site-support-request


## Checklist

<!--
Carefully read and work through this check list in order to prevent the most common mistakes and misuse of youtube-dl:
- First of, make sure you are using the latest version of youtube-dl. Run `youtube-dl --version` and ensure your version is 2021.01.08. If it's not, see https://yt-dl.org/update on how to update. Issues with outdated version will be REJECTED.
- Make sure that all provided video/audio/playlist URLs (if any) are alive and playable in a browser.
- Make sure that site you are requesting is not dedicated to copyright infringement, see https://yt-dl.org/copyright-infringement. youtube-dl does not support such sites. In order for site support request to be accepted all provided example URLs should not violate any copyrights.
- Search the bugtracker for similar site support requests: http://yt-dl.org/search-issues. DO NOT post duplicates.
- Finally, put x into all relevant boxes (like this [x])
-->

- [x] I'm reporting a new site support request
- [x] I've verified that I'm running youtube-dl version **2021.01.08**
- [x] I've checked that all provided URLs are alive and playable in a browser
- [x] I've checked that none of provided URLs violate any copyrights
- [x] I've searched the bugtracker for similar site support requests including closed ones


## Example URLs

- Single sample: https://samplefocus.com/samples/dababy-style-bass-808
- Search query: https://samplefocus.com/tag/bass


## Description

If you have ever used DevTools, you'll be able to get the MP3s within 3 minutes. (play the sample and look at the Network tab) Getting WAVs is impossible without finding a vulnerability.