sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: godot
Issue: Impossible to open a TSCN file referencing an external STEX texture / cannot be saved properly
Labels: bug,topic:editor,topic:import

### Godot version

3.4 beta2

### System information

Windows 10 64 bits GLES3

### Issue description

Context: I am writing an importer for the `.vox` format, which contains a scene made of multiple voxel models. My importer generates meshes, but also textures to store information, and it stores them as `.stex` files next to the `.tscn` file (under `.import`). The TSCN then references these textures. `.mesh` files are also referenced in a similar way.

However, it turns out that despite the scene actually containing `StreamTextures` with a correct path, the ResourceSaver is writing this:
```
[ext_resource path="res://.import/haunted_house.vox-db47560e0afa6d5fb679085d1001f6d6.atlas1.stex" type="Texture" id=1]
```
As you can see, the type hint is `Texture`, not `StreamTexture`.
Which is apparently intented:
```cpp
class Texture : public Resource {
	GDCLASS(Texture, Resource);
	OBJ_SAVE_TYPE(Texture); // Saves derived classes with common type so they can be interchanged.
```
The consequence is when `ResourceFormatLoaderStreamTexture` is queried by the ResourceLoader, this check fails, even though this loader does have `stex` in its extensions list:
![image](https://user-images.githubusercontent.com/1311555/127789925-5e57d649-24f7-49fd-bee1-00d4b8d2c993.png)

So trying to open the `.tscn` after import, Godot fails opening the textures.
```
ERROR: No loader found for resource: res://local_tests/vox/haunted_house.vox-db47560e0afa6d5fb679085d1001f6d6.atlas0.stex.
   at: (core\io\resource_loader.cpp:278)
```
Which is mind-blowing because `.stex` are litterally Godot's own format.

I don't know if there is a way to make ResourceSaver somehow write the correct type instead of just "Texture", or if it's a bug somewhere else. This is kinda blocking me at the moment, I'm not sure how I'm supposed to do this.

For now the workaround I've been using is using `ImageTextures` and embed them uncompressed inside the imported materials. https://github.com/Zylann/godot_voxel/blob/166846bde8c00b73bd417dc50a4574d1cc481536/editor/vox/vox_mesh_importer.cpp#L301 

### Steps to reproduce

- Pick a `.stex` file, drag it into a 2D scene (it doesn't appear in the Load menu)
- Save that scene
- Close the scene. 
- Try to reopen it: Godot will tell you dependencies are missing.


### Minimal reproduction project

[StexReference.zip](https://github.com/godotengine/godot/files/6913681/StexReference.zip)
Repository: flutter
Issue: Image.debugGetOpenHandleStackTraces() not supported on the web.
Labels: team,platform-web,P2,c: tech-debt,team: skip-test,team-web,triaged-web

We have several tests that use this debug API to track disposals. We currently have to skip running them on the web. Is there a way we can support this?
Repository: youtube-dl
Issue: Youtube manifest links can't be downloaded.
Labels: question

<!--

######################################################################
  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:
- Look through the README (http://yt-dl.org/readme) and FAQ (http://yt-dl.org/faq) for similar questions
- Search the bugtracker for similar questions: http://yt-dl.org/search-issues
- Finally, put x into all relevant boxes (like this [x])
-->

- [x] I'm asking a question
- [x] I've looked through the README and FAQ for similar questions
- [x] I've searched the bugtracker for similar questions including closed ones


## Question

<!--
Ask your question in an arbitrary form. Please make sure it's worded well enough to be understood, see https://github.com/ytdl-org/youtube-dl#is-the-description-of-the-issue-itself-sufficient.
-->

When I do ,
`youtube-dl -g -f 160 <youtube id>` , it returns a mpd manifest link . If I do `youtube  <manifest link>`
it just download the mpd file, but not the video, even though while downloading `-f 160` it internally  does download from the same manifest link.
This is not the case with other manifest links ( e.g. from Brightcove), if I do `youtube-dl <brightcove dash manifest link> ` 
it does download it. Even though both the times the url is of an mpd file containg segments info. 
Also I tried to put print(fragment_url) in fragment module, and it does print the the fragment url that is to be downloaded. But even they can neither be open in browser or downloaded using youtube-dl, eventhough the same fragment_urls are used to download internally if I just did `-f  160` .

Why so? Is there anyway to download from youtube manifest links?
Repository: pytorch
Issue: `torch.fx.node.normalized_arguments` does not pass `normalize_to_only_use_kwargs`
Labels: module: bootcamp,triaged,module: fx

## Issue description

`torch.fx.node.normalized_arguments` does not pass the `normalize_to_only_use_kwargs` argument to the `normalize_function` call.

## Code example

```
import torch
import torch.fx

class Tracer(torch.fx.Tracer):
    def is_leaf_module(self, m, module_qualified_name):
        return False

mod = torch.nn.Linear(4, 4)
net = Tracer().trace(mod)
node = list(net.nodes)[3]
node.normalized_arguments(mod, normalize_to_only_use_kwargs=True)
# output: ArgsKwargsPair(args=(x, layers_0_weight), kwargs={'bias': layers_0_bias})
```

The expected output can be obtained by the following code:

```
from torch.fx.operator_schemas import normalize_function
normalize_function(node.target, node.args, node.kwargs, normalize_to_only_use_kwargs=True)
# output: ArgsKwargsPair(args=(), kwargs={'input': input_1, 'weight': weight, 'bias': bias})
```


## System Info
PyTorch version: 1.9.0
Is debug build: False
CUDA used to build PyTorch: 10.2
ROCM used to build PyTorch: N/A

OS: [hide enterprise version] (x86_64)
GCC version: (GCC) 4.8.5 20150623 (Red Hat 4.8.5-39)
Clang version: Could not collect
CMake version: version 2.8.12.2
Libc version: glibc-2.17

Python version: 3.8.10 (default, Jun  4 2021, 15:09:15)  [GCC 7.5.0] (64-bit runtime)
Python platform: Linux-3.10.0-[hide enterprise version]-x86_64-with-glibc2.17
Is CUDA available: True
CUDA runtime version: 10.2.89
GPU models and configuration: 
GPU 0: Tesla V100-SXM2-16GB
GPU 1: Tesla V100-SXM2-16GB
GPU 2: Tesla V100-SXM2-16GB
GPU 3: Tesla V100-SXM2-16GB
GPU 4: Tesla V100-SXM2-16GB
GPU 5: Tesla V100-SXM2-16GB
GPU 6: Tesla V100-SXM2-16GB
GPU 7: Tesla V100-SXM2-16GB

Nvidia driver version: 440.95.01
cuDNN version: Could not collect
HIP runtime version: N/A
MIOpen runtime version: N/A

Versions of relevant libraries:
[pip3] numpy==1.20.3
[pip3] torch==1.9.0
[pip3] torchaudio==0.9.0a0+33b2469
[pip3] torchvision==0.10.0
[conda] blas                      1.0                         mkl    defaults
[conda] cudatoolkit               10.2.89              hfd86e86_1    defaults
[conda] mkl                       2021.3.0           h06a4308_520    defaults
[conda] mkl-service               2.4.0            py38h7f8727e_0    defaults
[conda] mkl_fft                   1.3.0            py38h42c9631_2    defaults
[conda] mkl_random                1.2.2            py38h51133e4_0    defaults
[conda] numpy                     1.20.3           py38hf144106_0    defaults
[conda] numpy-base                1.20.3           py38h74d4b33_0    defaults
[conda] pytorch                   1.9.0           py3.8_cuda10.2_cudnn7.6.5_0    pytorch
[conda] torchaudio                0.9.0                      py38    pytorch
[conda] torchvision               0.10.0               py38_cu102    pytorch


cc @ezyang @SherlockNoMad
Repository: pytorch
Issue: [TorchScript] Inconsistency between Python and PyTorch when raising 0 to a negative power
Labels: oncall: jit

```
import torch

@torch.jit.script
def fn(x: int):
    return 0 ** x

print(fn(-2))
```

Outputs:
```
inf
```

While eager Python would throw because zero division
```
>>> 0 ** -2
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ZeroDivisionError: 0.0 cannot be raised to a negative power
```
 
Please revise the `aten::pow` registration here to match Python behavior:
https://github.com/pytorch/pytorch/blob/aa5e3ad70590b3558a1a88373e6d98123c07cf5a/torch/csrc/jit/runtime/register_prim_ops.cpp#L902

cc @gmagogsfm
Repository: flutter
Issue: Proposal to automatically calculate rows to display using autorowsperpage property to  PaginatedDataTable
Labels: c: new feature,framework,f: material design,c: proposal,team-design,triaged-design

Hi!!
The PaginatedDataTable widget should have the option to automatically calculate the rows it can display.
Now that Flutter has support for web and desktop, the logical and correct thing is that the table, if desired, adjust the number of rows to display according to the changes in the height of the window in which it is located, instead of having to specify the user the rows you want to see.
When this option is active it would also be interesting if the mouse wheel can navigate between pages.
It is a very simple mechanism, if, at runtime, the widget (PaginatedDataTable) grows in height and 30 rows can fit in that height, rowsPerPage will be 30, if the end user makes the window in which the PaginatedDataTable is found to have less height and only fit 20 rows, the rowsPerPage property will automatically change to 20, always speaking of runtime.
That is, the developer would set a new autoRowsPerPage property to true, and the rowsPerPage property would no longer have to be manually assigned, it would automatically change based on the height of the widget.
On mobiles there is usually no change in window size, but on desktop (web, windows, linux, mac) the user can dynamically change the height and width of the window. With this new property the widget would automatically adapt to be able to see more or fewer rows according to its visible area at that moment.
Repository: flutter
Issue: Proposal to Navigate PaginatedDataTable programmatically
Labels: c: new feature,framework,f: material design,f: routes,c: proposal,team-design,triaged-design

I am using a `PaginatedDataTable` and would like to go bring back the user to the first page programmatically under certain conditions.
According to [this S.O. answer](https://stackoverflow.com/a/63929140/10758800), using `Keys` is one way to go about the specific problem of going back to the first page. This solution doesn't, however, enable us to navigate to any page of our choice programmatically.

I propose we introduce a new property `controller` of type [`PageController`](https://api.flutter.dev/flutter/widgets/PageController-class.html) to `PaginatedDataTable` for navigation purposes.
Repository: node
Issue: Converting Readable to web stream should always return same instance
Labels: stream,web streams

Calling `Readable.toWeb(stream)` multiple times on the same stream should probably return the same web stream so we can maintain the locked state.
Repository: go
Issue: encoding/json: document and test composing multiple field tag options
Labels: Documentation,NeedsInvestigation

It seems like `encoding/json` allows using multiple field tag options at once, such as `,omitempty` and `,string`:

https://play.golang.org/p/382n_YPRJ_4

This does not appear to be documented or tested in the json package. We should probably do that.

It's also worth thinking if there's any combination of options that would interact in confusing ways. In that case, the docs might need to document what their combined behavior would be, e.g. in what order the options take effect.

One particular example is `,omitempty` and `,string`, which is easy, given that the only way `omitempty` makes sense in that combination is if it applies *before* `string` when encoding.

cc @dsnet
Repository: next.js
Issue: CSS sourceMappingURL is wrong in "productionBrowserSourceMaps: true" mode
Labels: bug

### What version of Next.js are you using?

10.2.3

### What version of Node.js are you using?

12.22.1

### What browser are you using?

Chrome

### What operating system are you using?

Linux

### How are you deploying your application?

next start

### Describe the Bug

When I enabled sourceMaps in prod mode:
```javascript
// next.config.js
module.exports = {
  productionBrowserSourceMaps: true,
}
```
css sourcemaps are broken, because all CSS code is fetch by XHR and inserted to page by `<style>` tag with wring relative `sourceMappingURL` path.

Example:
Page got this css `https://some.app/_next/static/css/02de173fd9311ea5fb00.css` with `/*# sourceMappingURL=02de173fd9311ea5fb00.css.map*/` inside
but next.js add this css code manually to `header` like here
![image](https://user-images.githubusercontent.com/3511307/127835103-83434c2e-e74f-4b6c-9ac3-1560a7bd2762.png)
as a result browser try to get sourcemap here: https://some.app/doc/02de173fd9311ea5fb00.css.map instead of correct path here https://some.app/_next/static/css/02de173fd9311ea5fb00.css.map.

### Expected Behavior

Trying to get sourcemap by correct path: https://some.app/_next/static/css/02de173fd9311ea5fb00.css.map

### To Reproduce

1. Build any project with `css` with `productionBrowserSourceMaps: true` option
2. Start builded project
3. Open page in Chrome with DevTools
Repository: PowerToys
Issue: Is it possible to control where an application launches with a tool like this if the application itself does not offer that control?
Labels: Idea-New PowerToy

### Description of the new feature / enhancement

I use a number of applications that have launchers that bootstrap the main program that mean they always open the window on the primary display regardless of where I previously used it. It would be great if I could force certain programs to be opened on a non-primary display in an extended desktop configuration.

### Scenario when this would be used?

I use a drawing tablet display, and I would like all windows of certain programs to have affinity with that display, but at present I cannot do so because it always defaults to the primary desktop display. A good example of this is GIMP. Even after reposition the main window, it will still create dialogue windows such as the unsaved project warning on closing application on the primary display that is not where my attention is focused at that time.

### Supporting information

_No response_
Repository: node
Issue: ReadableStream internal state
Labels: web streams

While working implementing fetch in undici I've noticed a limitation on how compliant we can be towards the spec.

In order to ["extract" a request body](https://fetch.spec.whatwg.org/#bodyinit-unions) we need to have access to the streams [`[[disturbed]]`](https://streams.spec.whatwg.org/#is-readable-stream-disturbed) state. However, this state is inaccessible through the public API.

Is there a way we could make this accessible behind a public symbol or something? Otherwise fetch can't be fully implemented outside of core as per my understanding of the specification.
Repository: flutter
Issue: MultiDragPointerState not transmit localPosition when handling the move event
Labels: framework,f: material design,f: gestures,has reproducible steps,found in release: 2.2,team-design,triaged-design

I am using ImmediateMultiDragGestureRecognizer widget.But, I find that the MultiDragPointerState doest not  transmit localPosition when hanlding the move event.The bug code as fllows:
![image](https://user-images.githubusercontent.com/10083295/127850432-729a5e81-ce6d-4970-976a-c8bcde13026e.png)
I need use the localPosition，may you help me! Hope for your reply!
Repository: flutter
Issue: [tools] `Warning: Mapping new ns` lines are printed in the logs during gradlew
Labels: platform-android,tool,t: gradle,has reproducible steps,P2,found in release: 2.2,found in release: 2.5,team-android,triaged-android

```console
Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01  
```

Hello. When is running project I get this warning . What is happened here? And how to resolve this issue? thank
Repository: godot
Issue: TabContainer emits tab_changed signal when index of the current tab is changed, not when the current tab is changed
Labels: bug,topic:gui

### Godot version

3.3.2.stable

### System information

Windows 7

### Issue description

As title says.

Example of incorrectly not emitting `tab_changed`: removing current tab if it's not the last one, it results in current tab index not being changed and thus `tab_changed` isn't emitted although the current tab has changed (previous current tab was removed).

Example of incorrectly emitting `tab_changed`: dragging current tab to different "slot", it results in current tab index being changed and thus `tab_changed` is emitted although the current tab hasn't changed (only its index among other tabs was changed).

### Steps to reproduce

1. Create `TabContainer` with `drag_to_rearrange_enabled` set to `true`. Add 2 child `Control`s to it.
2. Connect a method to its `tab_changed` signal.
3. Make current tab be removed when triggered (e.g. by pressing <kbd>Enter</kbd>).
4. Run and drag tabs around, `tab_changed` will be emitted.
5. Trigger removing current tab, `tab_changed` won't be emitted.

### Minimal reproduction project

[TabChangedEmitting.zip](https://github.com/godotengine/godot/files/6916671/TabChangedEmitting.zip)
Repository: TypeScript
Issue: Parameters and readonly tuples
Labels: Bug

# Bug Report

I've encountered a wrong type inference regarding the Parameters generic when the rest operator and the union of readonly tuples are used together.

### 🔎 Search Terms

infer, Parameters, readonly.

### 🕗 Version & Regression Information

I have only tested this on TypeScript 4.3.5.

### ⏯ Playground Link

[Playground link with relevant code](https://www.typescriptlang.org/play?#code/C4TwDgpgBAYgjFAvFAFAOgwQwE4HMDOAXFANoB2ArgLYBGE2ANFPsNgJZm4C6UAPqS3acmlWvS4BKJAD4oANwD2bACYBuAFChIUAAoJkOnJioRg9fAB540jZvDQYAJiSoMaHAWLYImZQrIANiCkonSMzKwc3HxQ3r7+QQKRwlCh4lKIsooqGlrQOs4GRiZm2JZONupAA)

In this example, `P1` is correctly inferred, whereas `P2` is not.

### 💻 Code

<!-- Please post the relevant code sample here as well-->
```ts
type F = (...args: readonly [number, string] | readonly [string, number]) => void;
type P = Parameters<F>;
```

### 🙁 Actual behavior

The type `P` is `never`.

### 🙂 Expected behavior

One would expect `P` to be of type `readonly [number, string] | readonly [string, number]`.
Repository: pytorch
Issue: `c10::optional<T>` operators should delegate to corresponding operators on `T`
Labels: module: cpp,triaged

## 🚀 Feature
`c10::optional<T>` operators should delegate to corresponding operators on `T`. For example, `operator!=` should ultimately call `T::operator!=` rather than `T::operator==` as it currently does.

## Motivation

The lack of this makes our optional class possibly behave unexpectedly on a type `T` that does not have a full suite of comparison operators, e.g. if someone only implements `operator<` to work in `std::set`.

This also reduces distance from the `std::optional` implementation.

## Pitch

Extend tests to test comparison operations and then reimplement operators as needed. There are only a small number that are affected by this (e.g. `operator!=`, `operator>`, etc.).

## Alternatives

The current implementation works, but might behave somewhat unexpectedly in some subtle ways.

## Additional context

This is a small amount of work (< 1 day).


cc @yf225 @glaringlee
Repository: yt-dlp
Issue: [Feature Request] Get more metadata with ffprobe
Labels: enhancement

- [v] I'm reporting a feature request
- [v] I've verified that I'm running yt-dlp version **2021.08.02**
- [v] I've searched the bugtracker for similar feature requests including closed ones

Another idea I had a while ago is to include the duration in the info-json even if it's not revealed by the provider, by ffprobing the file. Preferably with less requests as possible, like when downloading a file (and dumping the info-json to a file before the download completed) there shouldn't be two requests to it.
Repository: ant-design
Issue: tree 与 table 组件的拖拽排序的动画效果不一致
Labels: help wanted,Inactive

- [x] I have searched the [issues](https://github.com/ant-design/ant-design/issues) of this repository and believe that this is not a duplicate.

### What problem does this feature solve?
tree组件拖拽效果非常生硬带有卡顿的感觉，且拖拽过程中不方便看出是否拖拽到对应的列（效果不够明显），拖拽放置的区域太小，难于操作。

现有效果：

![image](https://user-images.githubusercontent.com/8147202/127879818-f8638c06-13b5-4dde-b096-502a361e56fe.png)

![image](https://user-images.githubusercontent.com/8147202/127880227-dea7db5f-23a4-4be5-83fc-8c18bbe3af25.png)


### What does the proposed API look like?
tree API保持不变即可，只是优化动画及提升可操作性

优化后的效果：

![image](https://user-images.githubusercontent.com/8147202/127879105-0f3eb7b5-462a-4a6e-88c6-0ccdbc7aa12f.png)

![image](https://user-images.githubusercontent.com/8147202/127879405-f1cfc565-4bdc-4354-8439-04a735503202.png)


<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: TypeScript
Issue: Inferring rest of array in a conditional results in `unknown[]`
Labels: Bug

# Bug Report

### 🔎 Search Terms

infer conditional array rest unknown

### 🕗 Version & Regression Information

- I was unable to test this on prior versions than 4.1 because it uses template literal types added in 4.1

### ⏯ Playground Link

[Playground link with relevant code](https://www.typescriptlang.org/play?ts=4.3.5#code/C4TwDgpgBAUg9gSwHYB4DKUIA9gSQEwGcpDgAnZAcwG0BdAGigBFMc8iTyqA+KAXgBQASAzZcBYnSgB+KAHI5UAFzDRbCVGqkKSSrRlQABgBIA3mmoAGWgF9Dy1a3EctXXYwB0X5ADMIZKAAlfVkTcytbMyYbM3hkFEDGJm47ByFtKgBuIA)

### 💻 Code

Using code from the #40336 description restricted to strings only:

```ts
type Join<S extends string[], D extends string> =
	S extends [] ? '' :
	S extends [string] ? `${S[0]}` :
	S extends [string, ...infer R] ? `${S[0]}${D}${Join<R, D>}` :
	string;
```

### 🙁 Actual behavior

`R` is inferred as being `unknown[]`.

### 🙂 Expected behavior

`R` should be inferred as being `string[]`.