sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: TypeScript
Issue: preserveSymlinks: Changes to target module are not propagated to symlink modules
Labels: Suggestion,Awaiting More Feedback

**TypeScript Version:**  3.4.0-dev.20190316

<!-- Search terms you tried before logging this (so others can find this issue more easily) -->
**Search Terms:**
- preserveSymlinks, symlink, watch, change

**Description:**

I'm not familiar with how `preserveSymlinks` works internally, but it appears that symlink modules are not notified of changes to their target path.

My scenario is the following: I'm linking from `node_modules/foo` to a package that exists outside my project's root directory. When I update `foo/src/index.ts`, my project is not aware until I restart the TS server.

**Related Issues:** None.
Repository: opencv
Issue: python cv2: suppress stream decoders output messages (f.e. `[h264 @ 0x2f6d280] Invalid NAL unit size (0 > 2133).`)
Labels: feature,category: video,priority: low

Hello,
i'm processing some videos retrieved from the web using the `cv2` python module, and some of those videos generate warning during decoding with 3rd-party codecs, for example:

```
[h264 @ 0x2f6d280] Error splitting the input into NAL units.
[h264 @ 0x2dbbb00] Invalid NAL unit size (0 > 41960).
[h264 @ 0x2dbbb00] Error splitting the input into NAL units.
[h264 @ 0x2c132c0] Invalid NAL unit size (0 > 5375).
[h264 @ 0x2c132c0] Error splitting the input into NAL units.
[h264 @ 0x2c890c0] Invalid NAL unit size (0 > 1582).
[h264 @ 0x2c890c0] Error splitting the input into NAL units.
[h264 @ 0x2b5a7c0] Invalid NAL unit size (0 > 2140).
[h264 @ 0x2b5a7c0] Error splitting the input into NAL units.
[h264 @ 0x2b77040] Invalid NAL unit size (0 > 1752).
[h264 @ 0x2b77040] Error splitting the input into NAL units.
[h264 @ 0x2b93900] Invalid NAL unit size (0 > 14127).
[h264 @ 0x2b93900] Error splitting the input into NAL units.
[h264 @ 0x3046b40] co located POCs unavailable
[h264 @ 0x2f6d280] co located POCs unavailable
[h264 @ 0x2dbbb00] co located POCs unavailable
[h264 @ 0x2c890c0] co located POCs unavailable
[h264 @ 0x2b5a7c0] co located POCs unavailable
[h264 @ 0x2b77040] co located POCs unavailable
```

while they may be interesting to some people, it would be great if there could be a way to silence them, like a `warning=off` when calling `cv2.VideoCapture()` or something

thanks for considering!
Repository: pytorch
Issue: copy.copy not working for ScriptModule
Labels: oncall: jit,triaged,jit-backlog

The following code does not work

```python
import torch
import copy

class M(torch.jit.ScriptModule):

    @torch.jit.script_method
    def forward(self, x):
        return x

m = M()
copy.copy(m)
```

Error message:
```
Traceback (most recent call last):
  File "test.py", line 13, in <module>
    copy.copy(m)
  File "/usr/lib/python3.7/copy.py", line 96, in copy
    rv = reductor(4)
  File "/home/gaoxiang/.virtualenvs/pt/lib/python3.7/site-packages/torch/jit/__init__.py", line 1226, in __getstate__
    "Mixed serialization of script and non-script modules is not supported. " +
_pickle.PickleError: ScriptModules cannot be saved using torch.save. Mixed serialization of script and non-script modules is not supported. For purely script modules use my_script_module.save(<filename>) instead.
```

Related: https://github.com/pytorch/pytorch/issues/17422

cc @suo
Repository: react
Issue: Hooks - unmount and didUpdate
Labels: Type: Discussion

I'm opening this up at Dan's request from a twitter discussion:
https://twitter.com/lichstam/status/1106995545938247682

From Twitter:

I can fill in on this. The first example I would like to point to is a debouncing hook I've created that looks something like this:
  
```javascript
useEffect(() => {
  const debounced = setTimeout(() => setDebounced(steps), 500);
  return () => clearTimeout(debounced);
}, [steps])
```

and then I have another one, that actually performs the request:

```javascript
useEffect(request, [debounced])
```

And it all works fine, apart from when the component is mounted and unmounted.
In the class model I was able to make sure it never runs the first time and on unmounting I could clear the timeout and, if the state value differs from prop (yes I know, you shouldn't mirror your props but I have to debounce somewhere), I could just perform a last request before I unmount. 
Furthermore, `componentDidUpdate` really made it easy preventing this from running the first time. I'm not quite sure how to approach this with hooks.
Perhaps I'm doing it all wrong but to Patrick's point, the class way was more straight forward.

Another example: I code in RN and use the Animated API a lot. I have cases that translates into something like this:

```javascript
useEffect(() => {
  if (inAddStage) moveAndShowStep(); // Animate with Animated API
}, [inAddStage]);
```

This works well but it does perform an unnecessary initial run which makes me wonder if I've missed the point with hooks (again, to Patrick's point, it seems a bit more complex sometimes). Why isn't there a hook that **doesn't** run the first time btw? Again, with the old lifecycles it was much clearer how to prevent this from happening (using `componentDidUpdate`).

On a last note, I just want to say that I'm very fond of the idea and wholeheartedly support the functional approach and I really like the concept of hooks being "state observers", that react only when the specified attributes change - which basically makes the whole code more declarative.
I've just started using them so I'll probably figure things out along the way but I thought I could give you something since you didn't get any answer :)
Repository: youtube-dl
Issue: Formula1.com
Labels: geo-restricted

- [X] I've **verified** and **I assure** that I'm running youtube-dl **2019.03.09**
- [X] At least skimmed through the [README](https://github.com/ytdl-org/youtube-dl/blob/master/README.md), **most notably** the [FAQ](https://github.com/ytdl-org/youtube-dl#faq) and [BUGS](https://github.com/ytdl-org/youtube-dl#bugs) sections
- [X] [Searched](https://github.com/ytdl-org/youtube-dl/search?type=Issues) the bugtracker for similar issues including closed ones
- [X] Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser
- [X] Bug report (encountered problems with youtube-dl)
---
```
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-u', 'PRIVATE', '-p', 'PRIVATE', '--verbose', 'http
s://f1tv.formula1.com/en/current-season/australian-grand-prix/2019-australian-gr
and-prix-qualifying']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2019.03.09
[debug] Python version 3.4.4 (CPython) - Windows-7-6.1.7601-SP1
[debug] exe versions: none
[debug] Proxy map: {}
[generic] 2019-australian-grand-prix-qualifying: Requesting header
WARNING: Falling back on generic information extractor.
[generic] 2019-australian-grand-prix-qualifying: Downloading webpage
[generic] 2019-australian-grand-prix-qualifying: Extracting information
ERROR: Unsupported URL: https://f1tv.formula1.com/en/current-season/australian-g
rand-prix/2019-australian-grand-prix-qualifying
Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpy110f8qy\bu
ild\youtube_dl\YoutubeDL.py", line 794, in extract_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpy110f8qy\bu
ild\youtube_dl\extractor\common.py", line 522, in extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpy110f8qy\bu
ild\youtube_dl\extractor\generic.py", line 3320, in _real_extract
youtube_dl.utils.UnsupportedError: Unsupported URL: https://f1tv.formula1.com/en
/current-season/australian-grand-prix/2019-australian-grand-prix-qualifying
```
---
The site formula1.com is in your Supported sites list, but I receive "Unsupported URL" error
Repository: godot
Issue: No button release triggered after drag using "gui_input" signal
Labels: bug,topic:input

**Godot version:**
godot 3.1 master

**OS/device including version:**
N/A

**Issue description:**
When connecting to a control "gui_input" signal, to detect click+drag+release, the left mouse button released (event) at the end of the drag is not triggered.

if I print event as_text()

```
if p_event is InputEventMouseButton:
	print(p_event.as_text())
```

if I click and release I get:
```
InputEventMouseButton : button_index=BUTTON_LEFT, pressed=true, position=(110, 37), button_mask=1, doubleclick=false
InputEventMouseButton : button_index=BUTTON_LEFT, pressed=false, position=(110, 37), button_mask=0, doubleclick=false
```

if I click drag and release I get:
```
InputEventMouseButton : button_index=BUTTON_LEFT, pressed=true, position=(54, 24), button_mask=1, doubleclick=false
```

as you can see there is no release event being trigger.
Repository: youtube-dl
Issue: Please add support for Google Fiber as an MSO
Labels: tv-provider-account-needed

- [x] I've **verified** and **I assure** that I'm running youtube-dl **2019.03.09**

### Before submitting an *issue* make sure you have:
- [x] At least skimmed through the [README](https://github.com/ytdl-org/youtube-dl/blob/master/README.md), **most notably** the [FAQ](https://github.com/ytdl-org/youtube-dl#faq) and [BUGS](https://github.com/ytdl-org/youtube-dl#bugs) sections
- [x] [Searched](https://github.com/ytdl-org/youtube-dl/search?type=Issues) the bugtracker for similar issues including closed ones
- [x] Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser

### What is the purpose of your *issue*?
- [ ] Bug report (encountered problems with youtube-dl)
- [ ] Site support request (request for adding support for a new site)
- [x] Feature request (request for a new functionality)
- [ ] Question
- [ ] Other

---

### Description of your *issue*, suggested solution and other information

Please provide Google Fiber as an MSO; alternately, if someone who has written MSO's before can document the process they've used, I could try my hand at writing the support for it. I've looked at the code and it seems pretty straight-forward, but I'm not sure where one finds the values for `username_field` and `password_field`, given that Google Fiber uses SAML.
Repository: create-react-app
Issue: Question: Source mapping componentStack from error boundary in production
Labels: issue: proposal

Lately, I am trying to use error boundaries to tackle unexpected errors more properly. I am also logging most of the errors to the Sentry service. I am sending the `componentStack` from `componentDidMount` there as well, but since it's minified, it feels fairly useless.

![image](https://user-images.githubusercontent.com/1096340/54487116-1cf8c000-4892-11e9-9d46-29c39850a7f0.png)

I am wondering what are my options if any. Since that output is pretty much just a string, the source mapping does not seem possible at any level.
Repository: go
Issue: cmd/link: "relocation target * not defined" for .syso symbol with LinkMode=external
Labels: NeedsInvestigation,compiler/runtime

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version devel +14c3692502 Sat Mar 16 14:16:39 2019 +0000 linux/amd64
</pre>

(Also tested with go1.12 and go1.12.1).

### Does this issue reproduce with the latest release?

Yes.

### What operating system and processor architecture are you using (`go env`)?

<details><summary><code>go env</code> Output</summary><br><pre>
$ go env
GOARCH="amd64"
GOBIN="/home/pwaller/.local/bin"
GOCACHE="/home/pwaller/.cache/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/pwaller/go"
GOPROXY=""
GORACE=""
GOROOT="/home/pwaller/sdk/go1.12"
GOTMPDIR=""
GOTOOLDIR="/home/pwaller/sdk/go1.12/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/home/pwaller/.local/src/github.com/pwaller/bench-syso-broken/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build380714510=/tmp/go-build -gno-record-gcc-switches"
</pre></details>

### What did you do?

Tried to use the toolchain trick described in ["Use syso file to embed arbitrary self-contained C code"](https://github.com/golang/go/wiki/GcToolchainTricks#use-syso-file-to-embed-arbitrary-self-contained-c-code).

1. Put `code.go`, `code.s` and `code.syso` in a package with the following described below.
2. Run `go build`.

#### `code.syso`

I generated a .syso file in the same directory as the package with the following command: `gcc -x c -c -o code.syso - <<<'void nop1() {}'`. Note, I'm aware of the limitations of syso files with respect to calling convention, I'm just using this as an easy way to get an object file for purposes of demonstrating that linking is not working as I'd expect.

#### `code.go`

```go
package main

// Comment out this line, and the main binary compiles successfully(!?).
import _ "golang.org/x/sys/unix"

func main() {
	nop()
}

func nop()
```

#### `code.s`

```asm
TEXT ·nop(SB),$0-0
  JMP nop1(SB)
```

Then I ran `go build`.

### What did you expect to see?

A successfully compiled binary.

### What did you see instead?

```
# github.com/pwaller/syso-broken
main.nop: relocation target nop1 not defined
```

### Additional notes

* If I remove the otherwise unused import of `golang.org/x/sys/unix`, then the binary compiles.
* I can reproduce with both old-style `GOPATH` or modules.

/cc @ianlancetaylor for the linker.

@gopherbot label needsinvestigation
Repository: rust
Issue: Reevaluate removing `ty::Error`
Labels: C-cleanup,T-compiler

I just found

https://github.com/rust-lang/rust/blob/7cf074a1e655ac07d04d045667278fa1a9970b93/src/librustc/ty/flags.rs#L70-L76

which seems to suggest that it's not the "infects everything" problem of using `Result` in more places, but actually some ages old situation where either the compiler ended up segfaulting during compilation or the compiled crate segfaulted during execution.

cc @nikomatsakis 	your name is mentioned in the comment

Cleaning this up seems to fit into the "technical debt" part of this year's roadmap.

I envision that changing this would result in more uses of `Result<T, ErrorReported>` across the code base and hopefully a reduction of `delay_span_bug`s and `bug!`s that are never reached.
Repository: vscode
Issue: WebView doesn't close on extension (but not window) reload
Labels: feature-request,webview

### Summary
Some actions can cause extensions to be reloaded without the whole window being reloaded. This results in WebViews opened by extensions to remain open. On its own not a problem, except should these use the message API to "talk" to their extension, since it got reloaded/terminated. Expected behavior is to close all WebViews, similar to what happens when the window is reloaded, e.g. using the `Developer: Reload Window` command.

### Steps to reproduce on your own
1. Have an extension launch a WebView
2. Change the "main workspace folder" without triggering a window reload
I discovered this by my extension using `updateWorkspaceFolders` to go from 0 to 1 folders.
Having a multi-folder workspace, rightclicking the first folder, and using `Remove Folder from Workspace` also triggers this effect. So does pressing `Reload` after installing a (new) .vsix for an already installed extension, but that results in an empty WebView?
3. The WebView remains, working, but the extensions reloaded, "breaking" `onDidReceiveMessage`

### With [example extension](https://drive.google.com/file/d/19O86YV-_IWptsLu-894k6fEfvWf-fHmK/view) to easily replicate
*(source code available by opening the file as an archive, or doing step 4 below)*
1. Open a new window (and install the extension if you haven't yet)
2. Run the `ISSUE: Open a test WebView` command
3. Click `Send message` and notice how you get a response from the extension
4. Run the `ISSUE: Add/remove the first workspace folder to trigger the semi-reload` command
If you had folders in your workspace, the first one gets removed. If your workspace is empty, it'll add the extension's folder (with source code) as workspace folder.
5. Click `Send message` and notice how you don't get a response anymore

_____

- VSCode versions tested: 
	- 1.32.3 (user setup) (a3db5be9)
	- 1.33.0-insider (user setup) (5a88160c)
- OS Version: Windows 10 Version 1803 (OS Build 17134.407)

> If the first workspace folder is added, removed or changed, the currently executing extensions (including the one that called this method) will be terminated and restarted so that the (deprecated) rootPath property is updated to point to the first workspace folder.
***From the documentation of vscode.workspace.updateWorkspaceFolders***
Repository: TypeScript
Issue: Inconsistent error reporting for duplicate JSDoc tags
Labels: Bug

<!-- 🚨 STOP 🚨 𝗦𝗧𝗢𝗣 🚨 𝑺𝑻𝑶𝑷 🚨

Half of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker. Even if you think you've found a *bug*, please read the FAQ first, especially the Common "Bugs" That Aren't Bugs section!

Please help us by doing the following steps before logging an issue:
  * Search: https://github.com/Microsoft/TypeScript/search?type=Issues
  * Read the FAQ: https://github.com/Microsoft/TypeScript/wiki/FAQ

Please fill in the *entire* template below.
-->

<!-- Please try to reproduce the issue with `typescript@next`. It may have already been fixed. -->
**TypeScript Version:**  3.4.0-dev.201xxxxx

<!-- Search terms you tried before logging this (so others can find this issue more easily) -->
**Search Terms:**

JSDoc error

**Code**

```ts
// @ts-check

/** @type {number} */
/** @type {string} */
var v; // no error, type is 'number'

/** @type {number}  @type {string} */
var v2; // error on the second '@type' tag
```

**Expected behavior:**

An error on the redundant `@type` tag of `v`.

**Actual behavior:**

No error if the redundant tag is in a different JSDoc comment. The same applies to `@return`.


**Related Issues:** #24996
Repository: three.js
Issue: Editor: better controls for default camera
Labels: Enhancement,Editor

Most modelling programs have quick settings for the default camera, such as:

* jump to specific views such as top, left, bottom, right, 
* reset the view
* switch between perspective and orthographic projection
* fit camera to scene (in clara.io this is called "frame scene")
* fit camera to selection
* create new perspective camera from current view and add it to the scene

It would be useful to add these to the editor as well. Most of these options can go in the same menu that was added in #15998.
See Clara.io for an example of how these can be set up.
Repository: go
Issue: cmd/trace: generate trace graph for custom region selection
Labels: Proposal,Proposal-Accepted,FeatureRequest

I propose that cmd/trace should have an option in the web UI to generate a trace graph for an arbitrary list of user defined regions.

I want/need to see the timing between certain user defined regions and having such an option in the web ui would be very useful. I could just dump them all into the same task but this means recompiling the program and changing code just to change what regions get shown together. Also if the program failed to call `task.End()` for any reason, then the trace graph doesn't get generated at all.
Repository: TypeScript
Issue: Organize imports: add an option to put all absolute paths after node_modules ones
Labels: Suggestion,Awaiting More Feedback

**Feature Request**

Add a configuration option that to sort all the absolute paths (i.e. with `baseUrl = /src` in `jsconfig.json`) after all the node_modules paths.

**Reason**

More and more people use alias to avoid long relative paths. It's a common practice to have first the third-party imports, then the absolute paths, and finally the relative ones.
Repository: godot
Issue: Unable to make CollisionPolygon2D from specific array
Labels: bug,topic:core,confirmed

<!-- Please search existing issues for potential duplicates before filing yours:
https://github.com/godotengine/godot/issues?q=is%3Aissue
-->

**Godot version:3.1
<!-- Specify commit hash if non-official. -->


**OS/device including version:**
<!-- Specify GPU model and drivers if graphics-related. -->


**Issue description:**
<!-- What happened, and what was expected. -->
the follow array can not make a valid CollisionPolygon2D. However, it's a valid array to make a Polygon2D.
	[(0, 805), (60, 773.250732), (120, 688.083008), (180, 576.537048), (240, 474.027863), (300, 413.10141), (360, 413.10141), (420, 474.027863), (480, 576.537048), (540, 688.083008), (600, 773.250732), (660, 805), (660, 805), (720, 773.250732), (780, 688.083008), (840, 576.537048), (900, 474.027863), (960, 413.10141), (1020, 413.10141), (1080, 474.027863), (1140, 576.537048), (1200, 688.083008), (1260, 773.250732), (1320, 805), (1320, 805), (1380, 773.250732), (1440, 688.083008), (1500, 576.537048), (1560, 474.027863), (1620, 413.10141), (1680, 413.10141), (1740, 474.027863), (1800, 576.537048), (1860, 688.083008), (1920, 773.250732), (1980, 805), (1980, 1080), (0, 1080)]

**Steps to reproduce:**
1.add a new StaticBody2D
2.add a CollisionPolygon2D to the StaticBody2D
3.set the polygon to the value as above values.

**Minimal reproduction project:**
<!-- Recommended as it greatly speeds up debugging. Drag and drop a zip archive to upload it. -->
Repository: flutter
Issue: [documentatio] rename Overlay class or provide updated documentation
Labels: framework,d: api docs,c: proposal,P2,team-framework,triaged-framework

Documentation of [`Overlay`](https://docs.flutter.io/flutter/widgets/Overlay-class.html):

> A Stack of entries that can be managed independently.
>
> Overlays let independent child widgets "float" visual elements on top of other widgets by inserting them into the overlay's Stack. The overlay lets each of these widgets manage their participation in the overlay using OverlayEntry objects.
>
> Although you can create an Overlay directly, it's most common to use the overlay created by the Navigator in a WidgetsApp or a MaterialApp. The navigator uses its overlay to manage the visual appearance of its routes.

Definition of the word overlay:

> Something laid as a covering over something else.

I don't see the relationship between these 2 things. If an `Overlay` is basically a `Stack`, where the entries can be managed, it should perhaps be called something like `ManagedStack`. 

Perhaps this name was given because of

> Overlays let independent child widgets "float" visual elements on top of other widgets by inserting them into the overlay's Stack

?

But this doesn't affect the `Overlay` widget itself. It's just an internal property of how its children are arranged. At least from the documentation it's not understandable how this widget is supposed to be an overlay (what does it overlay?). If it's just a managed stack, it can be used anywhere, in front or behind of other widgets.
Repository: flutter
Issue: Add run once after first build layout
Labels: c: new feature,framework,P3,team-framework,triaged-framework

Every time you need to use the context but run once the code you need to use some bool flag or ??= to instantiate only once. Something like didChangeDependencies() running once like initState() does. For example using .of(context) to get the BloC and subscribe to it. 

Also for first after layout there is this package https://pub.dartlang.org/packages/after_layout. 
This should be added by default in flutter.