sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: godot
Issue: Launching the Editor: Unable to Initialize Video Driver
Labels: platform:linuxbsd,topic:rendering,topic:thirdparty,needs testing

**Godot version: 3.3 64-Bit Mono**
<!-- Specify commit hash if using non-official build. -->


**OS/device including version: Ubuntu 20.04.1 LTS, NVIDIA Corporation TU116 [GeForce GTX 1660 SUPER]**
<!-- Specify GPU model, drivers, and the backend (GLES2, GLES3, Vulkan) if graphics-related. -->


**Issue description: After fresh download of Godot 3.3 from the website, opening it produces the following error. Expected editor to open without issue, as 3.2 did. After restart of computer behavior went back to expected behavior.**
<!-- What happened, and what was expected. -->
![image](https://user-images.githubusercontent.com/20662880/115951904-de5f7600-a4eb-11eb-8e09-953381a916a6.png)



**Steps to reproduce: Fresh download of Godot 3.3 and open without restarting.**
Repository: godot
Issue: Incorrect filename on reported script errors
Labels: bug,topic:gdscript,topic:editor

<!-- 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_v3.3-stable_x11.64

**OS/device including version:**
<!-- Specify GPU model, drivers, and the backend (GLES2, GLES3, Vulkan) if graphics-related. -->
Ubuntu 19.04


**Issue description:**
<!-- What happened, and what was expected. -->

Hello,

When launching an exported project (or by directly launching a scene through command line), run-time errors are often incorrectly reported in case of inheritance.

for example, let's say we have a class with a method foo():

```gdscript
class_name ParentClass  # parent_class.gd
extends Node

func foo():
    var a = 1
    print(a/0) # Division By Zero
```

And another class, inheriting from the first one, calling the inherited method foo() upon creation:

```gdscript
extends ParentClass  # child_class.gd

func _ready():
    foo()
```

In a scene with the second/child class instantiated, the error reported is incorrect:

    $ godot scene.tscn
    Godot Engine v3.3.stable.official - https://godotengine.org
    OpenGL ES 3.0 Renderer: Mesa DRI Intel(R) UHD Graphics 620 (Kabylake GT2)
    OpenGL ES Batching: ON
    /usr/lib/x86_64-linux-gnu/libpulse.so.0: undefined symbol: pa_threaded_mainloop_once_unlocked
    /usr/lib/x86_64-linux-gnu/libpulse.so.0: undefined symbol: pa_thread_make_realtime

    SCRIPT ERROR: foo: Division By Zero in operator '/'.
       At: res://child_class.gd:6.


It should be _At: res://parent_class.gd:6_, or at least _At: res://child_class.gd:4_.

When launching the scene within the editor, the stack trace is complete & correct.
With the command line, but with the _--debug_ option, the frames are also complete & correct.

AFAIK the behavior is not new, and it was the same on few previous versions.

**Minimal reproduction project:**
<!-- A small Godot project which reproduces the issue. Drag and drop a zip archive to upload it. -->
[incorrect_error.zip](https://github.com/godotengine/godot/files/6369432/incorrect_error.zip)
Repository: pytorch
Issue: Non-symbolic FX tracer
Labels: triaged,module: fx

## 🚀 Feature
An alternative non-symbolic tracer for fx that wrap around values rather than replace them, so that it's possible to resolve calls to `__iter__` , `__next__` and `__bool__ `. 
This would require the user to pass in representative inputs, similarly to what happens already for torch.jit.trace .

## Motivation
In use cases like quantization where users pass in concrete representative inputs anyway for calibration purposes, it would make sense to take advantage of that to specialize an fx graph against them. It would provide a way to overcome the current limitations around unpacking and conditionals. 

## Alternatives
I can specify `concrete_args` but then it gets too specialized. Example:

```python
class TestModule(nn.Module):

    def __init__(self):
        super().__init__()

    def call_cat(self, *args):
        out = torch.cat(args, dim=1)
        return out

    def forward(self, x):
        x = torch.split(x, 2, dim=1)
        y = self.call_cat(*x)
        return y


model = TestModule()
inp = torch.randn(1, 4, 10, 10)
out = symbolic_trace(model, concrete_args={'x': inp})
print(out)
```
You get as output (on 1.8.1):

```python
TestModule()

def forward(self, ):
    _tensor_constant0 = self._tensor_constant0
    return _tensor_constant0
```

The kind of tracer I'm suggesting would record the fact that `torch.split` returns an iterable of two values. The generated graph then would then work with any input tensor that can be split in half along ` dim=1`.

cc @ezyang
Repository: go
Issue: x/text/language: Match does not work as expected for artificial languages
Labels: NeedsInvestigation


```
golang.org/x/text@v0.3.3 golang.org/x/tools@v0.0.0-20180917221912-90fa682c2a6e
```

The following test failes with `got art-x-klingon; want art-x-elvish`.

```go
func TestMatchArtificialLanguages(t *testing.T) {
	// See https://en.wikipedia.org/wiki/Codes_for_constructed_languages
	klingon, err := language.Parse("art-x-klingon")
	if err != nil {
		t.Fatal(err)
	}
	elvish, err := language.Parse("art-x-elvish")
	if err != nil {
		t.Fatal(err)
	}

	matcher := language.NewMatcher([]language.Tag{klingon, elvish})

	m, _, _ := matcher.Match(elvish)

	if m.String() != "art-x-elvish" {
		t.Errorf("got %s; want art-x-elvish", m.String())
	}
}
```


https://github.com/nicksnyder/go-i18n/issues/252
Repository: storybook
Issue: addon-docs: Allow setting `argTypes` for `subcomponents`
Labels: feature request,block: argstable

**Is your feature request related to a problem? Please describe**
I have a situation where I want to use `subcomponents` but I need to be able to customize some of the values displayed in the generated table. As far as I can tell, I can only apply `argTypes` customization to the main `component`, not the `subcomponent`. 

**Describe the solution you'd like**
A method of setting `argTypes` for subcomponents. I'm not sure what the best config structure would be for this, and am open to suggestions.

**Describe alternatives you've considered**
N/A

**Are you able to assist to bring the feature to reality?**
Yes, with pointers on where the relevant code is.

**Additional context**
N/A
Repository: godot
Issue: dict2inst should ensure type correctness
Labels: bug,topic:gdscript,confirmed

**Godot version:**
3.3.stable


**OS/device including version:**
<!-- Specify GPU model, drivers, and the backend (GLES2, GLES3, Vulkan) if graphics-related. -->
Ubuntu 20.04, GLES3


**Issue description:**
When converting from json parsed dictionary to instance, `dict2inst`, does not keep the correct type. Since JSON always uses float, all int properties are set as float, even if using typed gdscript.

```gdscript
extends Spatial

enum Test {A, B, C}

var i: int = 1

func _ready():
	print_match(i)
	var another = dict2inst(parse_json(to_json(inst2dict(self))))
	print_match(another.i)


func print_match(value):
	match value:
		Test.A:
			print("A")
		Test.B:
			print("B")
		Test.C:
			print("C")
		_:
			print("None")
```

The above code should print "B" even after the parsing, but instead, it fails on second match pass:
```
B
None
```

As a workaround, I made the following function, to fix the deserialized object:
```gdscript
func fix_ints(obj: Object) -> void:
	for prop in obj.get_property_list():
		if prop.type == TYPE_INT:
			obj.set(prop.name, obj.get(prop.name) as int)
```


**Steps to reproduce:**
1. Open the project
2. Run the project
3. See results

**Minimal reproduction project:**
[project.zip](https://github.com/godotengine/godot/files/6370854/project.zip)
Repository: node
Issue: investigate flaky test-child-process-fork-closed-channel-segfault on Raspberry Pi 2
Labels: flaky-test

<!--
Thank you for reporting a flaky test.

Flaky tests are tests that fail occasionally in the Node.js CI, but not
consistently enough to block PRs from landing, or that are failing in CI jobs or
test modes that are not run for every PR.

Please fill in as much of the template below as you're able.

Test: The test that is flaky - e.g. `test-fs-stat-bigint`
Platform: The platform the test is flaky on - e.g. `macos` or `linux`
Console Output: A pasted console output from a failed CI job showing the whole
failure of the test
Build Links: Links to builds affected by the flaky test

If any investigation has been done, please include any information found, such
as how consistently the test fails, whether the failure could be reproduced
locally, when the test started failing, or anything else you think is relevant.
-->

* **Test**: test-child-process-fork-closed-channel-segfault
* **Platform**: pi2-docker
* **Console Output:**
```
00:13:47 not ok 81 parallel/test-child-process-fork-closed-channel-segfault
00:13:47   ---
00:13:47   duration_ms: 4.292
00:13:47   severity: fail
00:13:47   exitcode: 1
00:13:47   stack: |-
00:13:47     /home/iojs/build/workspace/node-test-binary-arm/test/parallel/test-child-process-fork-closed-channel-segfault.js:83
00:13:47                 throw err;
00:13:47                 ^
00:13:47     
00:13:47     Error: write EPIPE
00:13:47         at ChildProcess.target._send (node:internal/child_process:849:20)
00:13:47         at ChildProcess.<anonymous> (node:internal/child_process:670:16)
00:13:47         at ChildProcess.emit (node:events:377:35)
00:13:47         at emit (node:internal/child_process:920:12)
00:13:47         at processTicksAndRejections (node:internal/process/task_queues:84:21) {
00:13:47       errno: -32,
00:13:47       code: 'EPIPE',
00:13:47       syscall: 'write'
00:13:47     }
00:13:47   ...
```
* **Build Links**: https://ci.nodejs.org/job/node-test-binary-arm-12+/10403/RUN_SUBSET=0,label=pi2-docker/console
Repository: rust
Issue: Stray dummy span in trait bound JSON error message
Labels: A-diagnostics,T-compiler,C-bug

I tried this code:

```rust
fn main() {
    bar::Bar::new("1");
}
```

And in a dependency bar:

```rust
pub struct Bar;

impl Bar {
    pub fn new<E>(e: E) -> Self
        where E: std::error::Error
    {
        Bar
    }
}
```

With the JSON error format, this includes the following message:

```javascript
{
  "byte_end": 0,
  "byte_start": 0,
  "column_end": 1,
  "column_start": 1,
  "expansion": null,
  "file_name": "src/main.rs",
  "is_primary": false,
  "label": "required by a bound in this",
  "line_end": 1,
  "line_start": 1,
  "suggested_replacement": null,
  "suggestion_applicability": null,
  "text": []
},
```

This message (`required by a bound in this`) is pointing to a dummy span. I'm guessing that it is trying to point to something in the extern dependency?

I expected to see this happen: I do not expect any JSON messages to include dummy spans.

### Meta
<!--
If you're using the stable version of the compiler, you should also check if the
bug also exists in the beta or nightly versions.
-->

`rustc --version --verbose`:
```
rustc 1.51.0 (2fd73fabe 2021-03-23)
binary: rustc
commit-hash: 2fd73fabe469357a12c2c974c140f67e7cdd76d0
commit-date: 2021-03-23
host: x86_64-apple-darwin
release: 1.51.0
LLVM version: 11.0.1
```
Repository: TypeScript
Issue: Unable to mark JS functions as not being constructors (TS80002)
Labels: Suggestion,Awaiting More Feedback

# Bug Report

TS80002 ("This constructor function may be turned to a class declaration") is a useful tool, but, it often breaks syntax coloring and classification of functions for things like out-of-line event handlers. There seems to be no way to mark a function as "not a constructor" (would the `@function` JSDoc hint maybe serve this purpose?)

### 🔎 Search Terms

jsdoc typescript constructor ts80002

### 🕗 Version & Regression Information

- This behavior was introduced after 3.6.2 at some point, and I reviewed the FAQ for entries about TS80002.

### ⏯ Playground Link

[Playground link with relevant code](https://www.typescriptlang.org/play?ts=4.3.0-dev.20210424&useJavaScript=true#code/PQKhFgCgAIWgBALgCwJYGdoG8ASAVAWQBkBRAGwFMBbCgO0QF8pYEAHAQwCd2rsCB7AK7oKJAG51G0CsxDAoAM0G0AxolT9a0RBXSIAFBQCUULM2gWUGAHQ6AHogDCmnfWgBeaAHIArAAY-LwBuKCZIKAATfhVBGnprdgiI8UkiDFcKTn0vFTJUFQBrLwAabV1EIyCgA)

### 💻 Code

```js
/**
 * @this {HTMLElement}
 * @param {MouseEvent} e
 */
function test(e)
{
    this.textContent = '500';
}

document.addEventListener('click', test);
```

### 🙁 Actual behavior

TypeScript marks the function `test` as a constructor for a type. As a consequence, too, VSCode marks it as a type, and not a function, which is confusing for navigation purposes.

### 🙂 Expected behavior

TypeScript should be able to detect that with a `@this` hint (or `@function` perhaps?) that this isn't a constructor.
Repository: flutter
Issue: Support clangd with the cmake CMAKE_EXPORT_COMPILE_COMMANDS parameter set in the linux plugin/app templates
Labels: c: new feature,tool,platform-linux,c: proposal,a: desktop,P3,a: plugins,team-linux,triaged-linux

## Use case

I'd like to use clangd (via LSP/emacs) to edit the linux GTK applications and plugins, it greatly aids development.

Because `cmake` is run by the `flutter` tool, you can't invoke `cmake` directly to generate this file which the language server needs: https://clangd.llvm.org/installation.html

## Proposal

To basically add run cmake with `-DCMAKE_EXPORT_COMPILE_COMMANDS=1` and copy or symlink the generated `compile_commands.json` into either the `linux` directories so that editors / clangd can pick it up when scanning the code.

My workaround currently is to add `set( CMAKE_EXPORT_COMPILE_COMMANDS ON )` to `linux/CMakeLists.txt` for apps and plugins, and to symlink the file from `build/linux/$arch/debug` to `linux`
Repository: flutter
Issue: SkMaskFilter::MakeBlur() expects a "blur_sigma", but Shadow class passes it a "blur_radius"
Labels: framework,engine,waiting for PR to land (fixed),P2,team-engine,triaged-engine

In the Shadow class, "blur_radius" are converted to "sigma" when creating a Paint object:
```
// (flutter/lib/ui/painting.dart)
 double get blurSigma => convertRadiusToSigma(blurRadius);
```

The "sigma" value will be passed to skia:
```
// (flutter/lib/ui/painting/paint.cc)
paint_.setMaskFilter(SkMaskFilter::MakeBlur(blur_style, sigma)); 
```

But, in Shadow::_encodeShadows() still use "radius" which leads to the native paragraph_txt.cc mistakenly use "radius"(it should pass a "sigma" to skia).

```
// (flutter/lib/ui/painting.dart)
shadowsData.setFloat32(_kBlurOffset + shadowOffset,
          shadow.blurRadius, _kFakeHostEndian);

// (paragraph_txt.cc)
      paint.setMaskFilter(SkMaskFilter::MakeBlur(
          kNormal_SkBlurStyle, text_shadow.blur_radius, false));
```
Repository: pytorch
Issue: [FR] integral discrete distributions should support dtype=int64
Labels: module: distributions,triaged,enhancement

## 🚀 Feature

It makes sense that I can `geometric_distn.sample(dtype=torch.int64)`

cc @fritzo @neerajprad @alicanb @vishwakftw @nikitaved
Repository: react
Issue: Bug: In a specific environment, controlled input triggers onChange twice
Labels: Type: Bug,Component: DOM

## On chrome of windows, controlled input changes the value in onChange, and enter(IME mode) non-letters(#/$/%/...) will trigger onChange twice

<!--
  Please provide a clear and concise description of what the bug is. Include
  screenshots if needed. Please test using the latest version of the relevant
  React packages to make sure your issue has not already been fixed.
-->

- React version: 17.0.2 (16 will also)
- windows 10
- chrome 90.0.4430.85

## Steps To Reproduce
1. The input method is adjusted to Chinese (IME)
2. Enter non-letter special symbols , such as # $ % - =

<!--
  Your bug will get fixed much faster if we can run your code and it doesn't
  have dependencies other than React. Issues without reproduction steps or
  code examples may be immediately closed as not actionable.
-->

Link to code example:
https://codesandbox.io/s/bold-morning-8x46e

<!--
  Please provide a CodeSandbox (https://codesandbox.io/s/new), a link to a
  repository on GitHub, or provide a minimal code example that reproduces the
  problem. You may provide a screenshot of the application if you think it is
  relevant to your bug report. Here are some tips for providing a minimal
  example: https://stackoverflow.com/help/mcve.
-->

## The current behavior
onChange call twice

## The expected behavior
onChange call correct times
Repository: rust
Issue: Rustc unable to see through Vec/RawVec abstraction for `push` (and other cases)
Labels: I-slow

Rustc is often unable to optimize through rawvec's abstractions. Here's a motivating example:

https://rust.godbolt.org/z/7b1MeKcY1

```rust
pub fn foo() -> u8 {
    let mut v = Vec::<u8>::new();
    v.push(1);
    return v[0];
}
```

Produces about 160 lines of assembly.

The equivalent with clang++ under libc++ is able to completely eliminate the abstraction: https://gcc.godbolt.org/z/8MY47shEz

However, in the real world, often such things would be impossible. That said, in cases where it can't completely eliminate the abstraction, it still does one hell of a better job. For example, with libstdc++'s vector, we end up with https://gcc.godbolt.org/z/Y3fGb3TG4 — a tight 10 lines of assembly.

Anyway, I don't think this is a rustc issue, so much as a Vec/RawVec issue. I've been meaning to file a bug about this after digging in more, but maybe some one else can.

---

I think it's notable that a lot of the stuff it doesn't remove are functions marked as #[cold]. My pet hypothesis is that our penchant for using #[cold] over intrinsics::unlikely is biting us, and we'd be better off with neither. That said, I haven't had the time to test this, and could be wrong.
Repository: flutter
Issue: InteractiveViewer boxShadow not displayed correctly
Labels: framework,f: material design,has reproducible steps,P2,found in release: 2.3,team-design,triaged-design

> [√] Flutter (Channel master, 2.2.0-11.0.pre.215, on Microsoft Windows [Version 10.0.19041.928], locale de-DE)
[X] Android toolchain - develop for Android devices
    X Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.

> [√] Chrome - develop for the web
[X] Visual Studio - develop for Windows
    X Visual Studio not installed; this is necessary for Windows development.
      Download at https://visualstudio.microsoft.com/downloads/.
      Please install the "Desktop development with C++" workload, including all of its default components
[√] Android Studio (version 4.1.0)
[√] IntelliJ IDEA Ultimate Edition (version 2021.1)
[√] VS Code (version 1.55.2)
[√] Connected device (3 available)


If one uses the InteractiveViewer widget with a child that has a boxShadow, the shadow wont be rendered correctly if a transformation is performed.

Example: 
`InteractiveViewer(
            boundaryMargin: EdgeInsets.all(double.infinity),
            minScale: 0.7,
            maxScale: 1.0,
            alignPanAxis: true,
            constrained: false,
            panEnabled: true,
            clipBehavior: Clip.none,
            scaleEnabled: true,
            transformationController: TransformationController(),
            child: Center(
              child: Container(
                  height: heightPage,
                  width: widthPage,
                  child: Center(
                      child:  Container(
                              decoration: BoxDecoration(
                            color: Colors.white,
                            boxShadow: [
                              BoxShadow(
                                color: Colors.black,
                                spreadRadius: 20,
                                blurRadius: 200,
                                offset:
                                    Offset(0, 3), 
                              ),
                            ],
                          )))),
            ),
          )`

if the child is moved or touched in general, the shadow will change.  This is somehow connected to the shadow blur and not to the color of the shadow. Tried in Flutter Web in Chrome, Edge in Debug+Profile mode.

Before, when initially build:
![before](https://user-images.githubusercontent.com/20185223/115990062-9579f100-a5c1-11eb-9656-2c8a6fb39f7a.PNG)

After rebuild or touch, much lighter:
![after](https://user-images.githubusercontent.com/20185223/115990061-94e15a80-a5c1-11eb-86ad-2fde290dc57f.PNG)
Repository: excalidraw
Issue: Suggestion: GitHub bot to auto update and render files
Labels: enhancement,discussion

Hi!

I had a suggestion, a github bot, that commits to your project, automatically updating the excalidraw file, if it exists, and then updating a rendered photo. 

So lets say this:

I draw a box with hello in it, I link it up to the project, you give it a branch to go on, and then it adds those files to the branch.

Now lets say I change the text to say how are you

The github bot would automatically update those files on the github repo

Pointless but cool for projects that like to have automated sketch ups, and would be very useful for some of my projects.

Keep up the great work!
Repository: create-react-app
Issue: Proxying WebSocket requests is broken
Labels: needs triage,issue: bug report

### Describe the bug

Setting the `proxy` field in `package.json` proxies normal HTTP requests [and WebSocket requests](https://github.com/facebook/create-react-app/blob/fddce8a9e21bf68f37054586deb0c8636a45f50b/packages/react-dev-utils/WebpackDevServerUtils.js#L442).

For normal requests, [the `Origin` header is patched](https://github.com/facebook/create-react-app/blob/fddce8a9e21bf68f37054586deb0c8636a45f50b/packages/react-dev-utils/WebpackDevServerUtils.js#L431) to equal the target host (added in #1212).

For websocket requests, the `onProxyReq` hook is not executed and thus the original `Origin` is sent to the target server. The target server will likely reject the request because `Host` and `Origin` mismatch ([Gorilla websockts in my case](https://github.com/gorilla/websocket/blob/b65e62901fc1c0d968042419e74789f6af455eb9/server.go#L87)). To also patch `Origin` for websocket requests, the [`onProxyReqWs` hook](https://www.npmjs.com/package/http-proxy#listening-for-proxy-events) has to be specified additionally.

### Steps to reproduce

1. Add a breakpoint or `console.log` in the `onProxyReq` callback mentioned above.
2. `yarn start` any created project with a configured proxy
3. Open a websocket connection
4. See nothing getting logged because only `onProxyReqWs` is called for websocket connections.

### Expected behavior

`Origin` and `Host` are equal for proxied websocket requests (e.g. `http://localhost:8080`).

### Actual behavior

`Origin` is the original header sent by the browser (e.g. `http://localhost:3000`) while `Host` is changed (e.g. `http://localhost:8080`).

--

Note: I'd have sent a patch, but I refuse to sign the CLA.