sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: godot
Issue: EditorPlugin.make_visible() is called multiple times when selecting a node handled by the plugin
Labels: bug,topic:editor,topic:plugin

Godot 3.2.2
Windows 10 64 bits

I made a plugin which can handle `Spatial`, and I noticed that when I select an object (here a `Spatial` node), Godot calls `make_visible()` multiple times: once `make_visible(true)`, then `make_visible(false)`, then `make_visible(true)` again.
This is wasting calls to a function that potentially does heavy lifting, especially knowing that `make_visible()` is currently the only way to cleanup heavy resources when the user is assumed to have deselected all objects handled by the plugin.

Repro: 
[PluginMakeVisibleTwice.zip](https://github.com/godotengine/godot/files/4880408/PluginMakeVisibleTwice.zip)
Open project, open `main.tscn`, select the `Spatial` node. Notice 3 prints in the console.
If you select the `Node`, only 1 print occurs which is correct. But if you select the `Spatial` again it's getting 3 prints again which is not expected.

Could be related to https://github.com/godotengine/godot/issues/6459#issuecomment-653980413, but not directly because I found this *while* I was making an actual repro for that linked comment.
Repository: godot
Issue: EditorPlugin.make_visible() is called multiple times when already visible and selecting another object the plugin handles
Labels: bug,topic:editor,confirmed,topic:plugin

Godot 3.2.2
Windows 10 64 bits

As a continuation of https://github.com/godotengine/godot/issues/6459#issuecomment-653980413

I made a plugin which can edit a specific object with a graph editor. Selecting that object shows it (throught `make_visible`), and clicking on a `GraphNode` may allow to inspect properties of a sub-object using the inspector, similar to how `VisualScript` works. I made it so my plugin handles both object types, so my expectation was that it would not be made invisible when I select back and forth between these objects.

The problem is, when I use `inspect()`, Godot calls `make_visible()` on my plugin *4 times in a row*, with alternating visibilities. Not only this is a waste as I cleanup my UI when my plugin is hidden, but even if I don't cleanup anything, hiding the `GraphEdit` breaks its input management, causing nodes to stick to the mouse, box selections to never end or to never be shown. It's basically unusable.
I would have expected `make_visible()` to not be called *at all*, because I edited another sub-object my plugin also handles.

Repro:
[PluginInspectMakeVisible.zip](https://github.com/godotengine/godot/files/4880478/PluginInspectMakeVisible.zip)
Here I chose `Sprite` and `GraphNode` for the sake of testing, in reality my objects are different.
- Open main.tscn
- Select `Sprite`: the graph editor should open in the bottom panel, with 2 sample graphnodes in it
- Select one of the graphnodes: observe the node sticks to the mouse unexpectedly.
- Observe in the console that 7 `make_visible` prints happened:
3 prints due to https://github.com/godotengine/godot/issues/40165
```
Called make_visible True (1)
Called make_visible False (2)
Called make_visible True (3)
```
4 additional prints from the present issue, due to selecting the second handled object:
```
Called make_visible False (4)
Called make_visible True (5)
Called make_visible False (6)
Called make_visible True (7)
```
I expected just one in total, `make_visible(true)`.
Repository: pytorch
Issue: out= resizing (and restriding) behavior is confusing
Labels: module: bc-breaking,triaged,module: numpy,module: safe resize,topic: bc breaking

Today in PyTorch we may resize and restride tensors provided to as arguments to `out`. For example:

```
a = torch.tensor([1, 2, 3])
b = torch.tensor([4, 5, 6])
out = torch.empty(2)
torch.add(a, b, out=out)
: tensor([5., 7., 9.])
```

Here a tensor of two elements is provided as the out argument, but the tensor returned has three elements. 

This behavior is silent and (anecdotally) a frequent cause of user confusion. 

I would like to propose we deprecate the current behavior and implement the following:

- Tensors with no elements passed to the out argument are treated as references, and PyTorch may allocate storage to hold the results of the operation and assign it to the given tensor
- Tensors with more than zero elements cannot be resized or restrided

The first behavior is a common pattern internally in PyTorch, and is useful when dealing with operators like masked_select where the size of the output is difficult to determine without running the operation. The second behavior is inconsistent with NumPy, which supports broadcasting to out tensors:

```
a = np.array([1])
b = np.array([2])
out = np.empty(3)
np.add(a, b, out=out)
: array([3., 3., 3.])
```

The NumPy behavior may be confusing, however. Also, throwing a runtime error instead of supporting NumPy behavior is an acceptable inconsistency, and it gives PyTorch the option to implement NumPy-like behavior in the future without it being a BC-breaking change. 

@ngimel @VitalyFedyunin @ezyang @albanD 

cc @mruberry @rgommers @ezyang @gchanan @SsnL
Repository: svelte
Issue: Support for "High Order Component" / Wrapper / Forwarding
Labels: feature request,temp-stale

**Is your feature request related to a problem? Please describe.**

I want to build a "transparent" lazy-loading component. This component should load a target component asynchronously, and when ready, delegate everything to this target.

This lazy-component should be generic: it should work for every target component. Moreover, I don't want the consumer of the component to know there is this wrapper, it should be "transparent" for it.

Today, it doesn't seem to be possible to build such "wrapper" because : 
- There is no API to forwards slots to the delegate ;
- There is no API to forwards events to the delegate ;
- There is no API to forwards "bind" from the parent to the delegate ;

There is various issues about this : 
#2837 about forwardings events ;
#1824 and #4295 about forwardings slots ;
I found nothing about "binding" forwardings.
#4647 is about a loadable component, closed because "svelte-loadable" can implements this issue. however, it's false because it doesn't supports slots or events.



**Describe the solution you'd like**

An official way/api to "wrapper" transparently another component.

**Describe alternatives you've considered**

I am able to prototype such wrapper with internals API, however I am not able to forwards binding from parent to child : 

```html
<svelte:component this={cpn} {...slotsProps} {...$$restProps} bind:this={instance}/>

<script>
    import { get_current_component } from 'svelte/internal';
    
    export let provider;
    
    const slotsProps = {"$$slots":$$props.$$slots, "$$scope":$$props.$$scope};
    const self = get_current_component();
    
    let cpn;
    let instance;
        
    provider().then(result => cpn = result);
    
    $: if (instance) {
        for (let [type, listeners] of Object.entries(self.$$.callbacks)) {
            instance.$on(type, (e) => {
                listeners.forEach(l => l(e));
            });
        }
    }
</script>
```

**How important is this feature to you?**

I can't today implements this kind of component. I'd like to "wrap" heavyweight components without updating or adding loading logic to every consumer.
Repository: go
Issue: x/pkgsite: include experiments in the cache key
Labels: NeedsInvestigation,pkgsite

The active experiments should be part of the cache key, so a cached page is only displayed if the experiments are the same.
Repository: TypeScript
Issue: Auto-completions from global type definitions don't work without initial text
Labels: Bug,Domain: Completion Lists

*TS Template added by @mjbvz*

**TypeScript Version**: 3.9.6

**Search Terms**
- untitled
- suggest / suggestions

---

I'm not sure if this is the right place to open the issue (I also don't know where the TS language server is on github), so if it isn't, move the issue to the right place please :)

Steps to Reproduce:

1. Open a new untitled file
2. Set the syntax to javascript
3. Paste the following code:
   ```js
   /**
    * @type {import('webpack').Configuration}
    */
   module.exports = {
   
   };
   ```
4. Ctrl+click the word `Configuration` to jump to the type definitions file, and make sure it is the one that comes with VSCode (on Windows it's `%LOCALAPPDATA%\Microsoft\TypeScript\3.9\node_modules\@types\webpack\index.d.ts`).
5. Go back to the untitled file, and place the cursor inside the braces of the exports object
6. Trigger autocompletion popup using <kbd>Ctrl</kbd>+<kbd>Space</kbd>
7. Only snippets and words from the current file are suggested, instead of members from the type definition.
8. Close the popup using <kbd>Escape</kbd>
9. Type <kbd>m</kbd>
10. The completions for `mode` and `module` appear, from the type definition.

If you repeat this with a saved file inside a folder with `@types/webpack` installed in `node_modules`, the autocompletion will show all the members as expected.

- VS Code Version: Code - Insiders 1.47.0-insider (376d9d9d785ccca128fdbb16f001446d0ad64d32, 2020-07-03T10:27:06.804Z)
- OS Version: Windows_NT x64 10.0.18363

Does this issue occur when all extensions are disabled?: Yes
Repository: opencv
Issue: setMouseCallback() causes "error: (-27:Null pointer) NULL window handler" in Python / on PyPi version 4.3.0.36
Labels: category: python bindings,category: highgui-gui,incomplete

##### System information (version)

- OpenCV => 4.3.0.36
- Operating System / Platform => Ubuntu 18.04 64 Bit
- Compiler => Unknown (installed from PyPi on Python 3.6.8)

##### Detailed description

This is a bug triggered on `cv2.setMouseCallback` and seemingly the QT backend, which reports the following error when running the code below:

`cv2.error: OpenCV(4.3.0) /io/opencv/modules/highgui/src/window_QT.cpp:717: error: (-27:Null pointer) NULL window handler in function 'cvSetMouseCallback'`

When running the sample code below, this error occurs *sometimes* when running the code, while other times the code runs just fine. I also tried adding a `time.sleep(1.0)`, or `cv2.imshow("image", arr)`, between the `cv2.namedWindow` and `cv2.setMouseCallback` calls, but it doesn't seem to change the symptoms.

I believe that this is a specific problem with the PyPi version of OpenCV `4.3.0.36`. When I installed `4.2.0.34` instead, the symptom does not occur.

##### Steps to reproduce

```bash
cd ~
/usr/bin/python3 -m venv cvtest
source cvtest/bin/activate
pip install --upgrade pip
pip install opencv-python==4.3.0.36
```

```python
# Code from official docs: https://docs.opencv.org/master/db/d5b/tutorial_py_mouse_handling.html
import numpy as np
import cv2 as cv
# mouse callback function
def draw_circle(event,x,y,flags,param):
    if event == cv.EVENT_LBUTTONDBLCLK:
        cv.circle(img,(x,y),100,(255,0,0),-1)
# Create a black image, a window and bind the function to window
img = np.zeros((512,512,3), np.uint8)
cv.namedWindow('image')
cv.setMouseCallback('image',draw_circle)
while(1):
    cv.imshow('image',img)
    if cv.waitKey(20) & 0xFF == 27:
        break
cv.destroyAllWindows()
```

##### Issue submission checklist

 - [x] I report the issue, it's not a question
 - [x] I checked the problem with documentation, FAQ, open issues,
       answers.opencv.org, Stack Overflow, etc and have not found solution
 - [x] I updated to latest OpenCV version and the issue is still there
 - [x] There is reproducer code and related data files: videos, images, onnx, etc
Repository: youtube-dl
Issue: Apple iTunes Podcasts support request
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 2020.06.16.1. 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 **2020.06.16.1**
- [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.
-->
Individual podcasts:
https://podcasts.apple.com/us/podcast/207-whitney-webb-returns/id1135137367?i=1000482637777
https://podcasts.apple.com/us/podcast/1502-russell-peters/id360084272?i=1000482401298
https://podcasts.apple.com/us/podcast/s03-episode-09-some-time-when-everything-has-changed/id917918570?i=1000423902129

Directory:
https://podcasts.apple.com/us/podcast/serial/id917918570

## Description

<!--
Provide any additional information.
If work on your issue requires account credentials please provide them or explain how one can obtain them.
-->

WRITE DESCRIPTION HERE
I would like to be able to download podcasts that are listed in Apple's Podcasts directory. You can play them from their website by clicking the play button. However, `youtube-dl` cannot download them.
Repository: TypeScript
Issue: IntelliSense Import Stops Working After One Import
Labels: Needs Investigation,Rescheduled

*TS Template added by @mjbvz*

**TypeScript Version**: 3.9.5

**Search Terms**
- npm link
- linux
- auto import

---

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->
<!-- Also please test using the latest insiders build to make sure your issue has not already been fixed: https://code.visualstudio.com/insiders/ -->

<!-- Use Help > Report Issue to prefill these. -->
- VSCode Version: 1.46.1
- OS Version:  Linux x64 5.3.0-61-generic snap

Steps to Reproduce:

I created a stripped down repo: [https://github.com/shcca/vscode](https://github.com/shcca/vscode)

1. `npm install`
2. `cd packages/cli`
3. `npm link ../core`
4. *packages/core/test.ts* and enter/save:
```typescript
export const helloWorld1 = () => {}
```
5. *packages/cli/deploy.ts* and add at the top:
```typescript
import { helloWorld1 } from 'core'
```
6. *packages/cli/deploy.ts*, within the handler function, add/save:
```typescript
helloWorld1()
```
7. *packages/core/test.ts*, add/save:
```typescript
export const helloWorld2 = () => {}
```
8. *packages/core/deploy.ts*, under *helloWorld1()*, enter *helloWorld2()*.

IntelliSense doesn't pick up on helloWorld2(). The only way to get it work is to restart VSCode, but then helloWorld3() wouldn't work. This is something that broke recently because I've been working in this project structure for a while with no issues.

<!-- Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: Yes
Repository: pytorch
Issue: Human-readable names and operations for TorchScript model graphs
Labels: triage review,oncall: jit,TSUsability,TSRootCause:PoorIRVisibility

<mirroring an internal FB Task on GH for consolidation of issue tracking>

For visualization and debugging purposes, we'd like to be able to parse the graph of a TorchScript model and display it in an easy-to-understand format in TensorBoard.
  
For regular models, we trace the model, inline the graph, and parse it, resulting in the visualization shown in the image attached to this task.
  
Having similar functionality for TorchScript models would be very valuable and would allow our tool to work for every kind of PyTorch model. Some potential ways to accomplish this would be through callstacks or scope-names, but we are open to new solutions as well.


cc @suo @gmagogsfm
Repository: flutter
Issue: Draggable's feedback cannot access InheritedWidgets because it doesn't share the same BuildContext as Draggable
Labels: framework,f: material design,has reproducible steps,a: null-safety,P2,found in release: 3.3,found in release: 3.7,team-design,triaged-design

Here is a code example of the problem:

https://dartpad.dev/9b23c8bdfbe53e41bbeba2f055f88eff

If you replace the line with `Text("blah")` with `DataMessage()` then `Draggable` works. The problem is a widget that uses a `InheritedWidget.dependOnInheritedWidgetOfExactType` will return null for the `feedback` case. Nowhere in the documentation says this should be the case.

I expected `InheritedWidget.dependOnInheritedWidgetOfExactType` to not return `null` as I thought it was part of the widget tree. Is this not the case?
Repository: flutter
Issue: flutter video player udp protocol not working
Labels: c: new feature,p: video_player,package,team-ecosystem,P3,triaged-ecosystem

I have a `udp` stream like this `udp://192.168.54.23:2500` 
but `flutter video player` not accepting the `udp stream`. it only accepts `tcp stream`. 
How do i play this `udp` video stream in player ?

__`flutter doctor -v output`__
```dart
[√] Flutter (Channel stable, v1.17.5, on Microsoft Windows [Version 10.0.18363.900], locale en-US)
    • Flutter version 1.17.5 at C:\flutter
    • Framework revision 8af6b2f038 (6 days ago), 2020-06-30 12:53:55 -0700
    • Engine revision ee76268252
    • Dart version 2.8.4


[√] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    • Android SDK at C:\Users\premi\AppData\Local\Android\Sdk
    • Platform android-29, build-tools 29.0.3
    • ANDROID_HOME = C:\Users\premi\AppData\Local\Android\Sdk
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    • All Android licenses accepted.

[√] Android Studio (version 4.0)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin version 47.1.2
    • Dart plugin version 193.7361
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[√] Connected device (1 available)
    • E • G350RT058157000F • android-arm64 • Android 8.1.0 (API 27)

• No issues found!
```
Repository: TypeScript
Issue: tsserver should implement the Language Server Protocol 
Labels: Suggestion,Committed,Domain: TSServer

## Search Terms

language server protocol

## Suggestion

> As the language server protocol ( https://github.com/Microsoft/language-server-protocol ) is getting more and more popularity and clients ( https://github.com/Microsoft/language-server-protocol/wiki/Protocol-Implementations ), it would be very useful to have the tsserver implement this protocol.

This is a duplicate of issue #11274, which the OP closed because at that time, there existed two reasonable-looking LSP implementations for TypeScript.

But the times have changed. The Theia IDE now uses a VS Code extension for its TypeScript needs, and in the last eighteen months, Sourcegraph's server has received exactly one update by a sentient person.

There continue to be requests for LSP support within #11724 despite its Closed status. The OP has expressed no interest in revisiting the issue.

## Use Cases

It would be useful to programmers who use TypeScript but don't use VS Code.

## Checklist

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, etc.)
* [x] This feature would agree with the rest of [TypeScript's Design Goals](https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals).
Repository: youtube-dl
Issue: Request for option to prevent archiving of generic identifiers like "default, init, manifest, master"
Labels: 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 2020.06.16.1. If it's not, see https://yt-dl.org/update on how to update. Issues with outdated version will be REJECTED.
- Search the bugtracker for similar feature 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 feature request
- [x] I've verified that I'm running youtube-dl version **2020.06.16.1**
- [x] I've searched the bugtracker for similar feature requests including closed ones


## Description

<!--
Provide an explanation of your issue in an arbitrary form. Please make sure the description is worded well enough to be understood, see https://github.com/ytdl-org/youtube-dl#is-the-description-of-the-issue-itself-sufficient. Provide any additional information, suggested solution and as much context and examples as possible.
-->

For those of us that use youtube-dl to download from sites that don't have extractors (and also use the `--download-archive`), we frequently hit situations were "generic master" or similar is archived.  This makes recurring site or even different site downloads cumbersome because we frequently will have to edit the archive file to remove pseudo duplicates.

Personally, I see this as a default built-in ignore since ideally, only unique names should be added to the archive.  Problematic archived generic names I've encountered:

    generic default
    generic master
    generic init
    generic manifest

Thank you for your consideration!