sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: godot
Issue: godot 3.2 VehicleBody and VehicleWheel engine_force strange behavior
Labels: bug,topic:physics

**Some backstory:**
In godot 3.1 if I apply Engine force it works just about I expect it to work.
In godot 3.2 same projects start works strange. I found some reduce in power of vehicles.
After some investigations I found that engine force applies is not as I apply but actually it is divided by (number_of_wheels/number_of_traction_wheels). I tested only 4 wheels cars. In my case if I RWD car i need twice the engine force so car have acceleration as I want. If I make only 1WD car with total 4 wheels, then I need multiply engine force by 4.
I thought it can work good with new "Pre-Wheel Motion", but it works in same way. I need to apply Engine Force to wheel multiplied by (number_of_wheels/number_of_traction_wheels) to make it work properly.

**How I expect it to work:**
If I set engine_force to VehicleBody and it has at least one VehicleWheel with property use_as_traction=true and in contact with ground then VehicleBody is accelerated with engine_force I set.
OR
If I set engine_force to VehicleWheel with property use_as_traction=true and in contact with ground then this VehicleWheel  is accelerated with engine_force I set.

**How it works:**
If I set engine_force to VehicleBody or VehicleWheel then actual acceleration that is applied is divided by (number_of_wheels/number_of_traction_wheels).
Repository: pytorch
Issue: Comparison ops for Complex Tensors
Labels: triaged,module: complex,module: numpy

This issue is intended to roll-up several conversations about how PyTorch should compare complex values and how functions that logically rely on comparisons, like min, max, sort, and clamp, should work when given complex inputs. See https://github.com/pytorch/pytorch/issues/36374, which discussed complex min and max, and https://github.com/pytorch/pytorch/issues/33568, which discussed complex clamp. The challenge of comparing complex numbers is not limited to PyTorch, either, see https://github.com/numpy/numpy/issues/15630 for NumPy's discussion of complex clip.

Comparing complex numbers is challenging because the complex numbers aren't part of any ordered field. In NumPy, they're typically compared lexicographically: comparing the real part and only comparing the imaginary part if the real parts are equal. C++ and Python, on the other hand, do not support comparison ops on complex numbers.

Let's use this issue to enumerate complex comparison options as well as their pros and cons. 

The current options are:

- No default complex comparison
  - Pros:
    - Consistent with C++ and Python
    - Behavior is always clear since the user must specify the type of comparison
  - Cons:
    - Divergent from NumPy, but a clear error
    - Possibly inconvenient to always specify the comparison
- Lexicographic comparison
  - Pros:
    - Consistent with NumPy
  - Cons:
    - Clamp (clip) behavior seems strange: (3 - 100j) clamped below to (2 + 5j) is unchanged, clamped above to (2 + 5j) becomes (2 + 5j)
    - Some users report wanting to compare complex by absolute value
- Absolute value comparison
  - Pros:
    - Some applications naturally compare complex numbers using their absolute values
  - Cons:
    - Divergent from NumPy, possibly a silent break


cc. @rgommers @dylanbespalko @ezyang @mruberry  
cc @ezyang @anjali411 @dylanbespalko
Repository: godot
Issue: Missing dependencies after renaming a placeholder scene
Labels: bug,topic:editor,confirmed

**Godot version:**

- v3.2.1.stable.official
- v4.0.dev.custom_build.9dc19f761

**OS/device including version:** macOS Catalina 10.15.4

**Issue description:**

Renaming / drag & dropping a scene to another folder may cause missing dependencies if the scene is marked "Load as Placeholder".

* If the main scene is still open, it can not be saved until I remove and readd the placeholder node.
* If the main scene is not open, I won't be able to open the scene again. The only way to fix it seems to be manually changing the `instance_placeholder="res://XXX.tscn"` field in the `tscn` file.

**Steps to reproduce:**

1. Create a new 2D scene, save as 'Sprite.tscn'
2. Create a new 2D scene, save as 'Main.tscn'
3. Instance Sprite in Main
4. Right click the Sprite node, and check 'Load as Placeholder'
6. Two cases:
    1. Close the Main scene
        * Rename 'Sprite.tscn' to 'Other.tscn' in FileSystem dock
        * Try to open 'Main.tscn'
        * Alert: Missing 'Main.tscn' or its dependencies.
    2. Keep the Main scene open
        * Rename 'Sprite.tscn' to 'Other.tscn' in FileSystem dock
        * Try to save 'Main.tscn'
        * Alert: Couldn't save scene. Likely dependencies (instances or inheritance) couldn't be satisfied.

**Minimal reproduction project:** N/A
Repository: rust
Issue: no associated item found for struct in the current scope while it exists
Labels: A-associated-items,T-lang,T-compiler,C-bug

The following code ([playground](https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=e1b64e86edb39ace6b60a2cd4628a71b)):

```rust
trait Trait {
    type Associated;

    fn instance() -> Self::Associated;
}

struct Associated;
struct Struct;

impl Trait for Struct {
    type Associated = Associated;

    fn instance() -> Self::Associated {
        Self::Associated
    }
}
```

Fails with this error:

```
error[E0599]: no associated item named `Associated` found for struct `Struct` in the current scope
  --> src/lib.rs:14:15
   |
8  | struct Struct;
   | -------------- associated item `Associated` not found for this
...
14 |         Self::Associated
   |               ^^^^^^^^^^ associated item not found in `Struct`
```

However, if we alter `instance()` slightly to either of these, the code compiles successfully:

```rust
    fn instance() -> Self::Associated {
        Self::Associated {} // {} even though we have `struct S;`, not `struct S {}`
    }
```

```rust
    fn instance() -> Self::Associated {
        Associated // outer scope struct definition
    }
```

---

It is worth mentioning that explicitly using `as Trait` does **not** solve the issue, and fails with a different error:

```rust
    fn instance() -> Self::Associated {
        <Self as Trait>::Associated
    }
```

Error:
```
error[E0575]: expected method or associated constant, found associated type `Trait::Associated`
  --> src/lib.rs:14:9
   |
14 |         <Self as Trait>::Associated
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: can't use a type alias as a constructor
```

Adding `{}`:

```rust
    fn instance() -> Self::Associated {
        <Self as Trait>::Associated {}
    }
```

Fails with:
```
error: expected one of `.`, `::`, `;`, `?`, `}`, or an operator, found `{`
  --> src/lib.rs:14:37
   |
14 |         <Self as Trait>::Associated {}
   |                                     ^ expected one of `.`, `::`, `;`, `?`, `}`, or an operator
```
Repository: rust
Issue: Support positional vectored IO for unix files
Labels: T-libs-api,C-feature-request

Next to the existing `write_vectored` and `read_vectored` APIs, it would be great to have `write_vectored_at` and `read_vectored_at` methods for `File`s on UNIX systems, corresponding to the `pwritev` and `preadv` syscalls. This would be an easy way to add means for high performance file IO using the standard library `File` type.

As far as I understand, the equivalent does not exist on Windows, so this would probably have to live in the [unix `FileExt` trait](https://doc.rust-lang.org/std/os/unix/fs/trait.FileExt.html#tymethod.write_at).

If this is deemed desirable, I'd be happy to send a PR for this.
Repository: bitcoin
Issue: scripts: check for .text.startup sections
Labels: Scripts and tools

From #18553:

[theuni](https://github.com/bitcoin/bitcoin/pull/18553#issuecomment-611717976)
> Sidenote: we could potentially add a check for illegal instructions in the .text.startup section in one of our python binary checking tools. Though we'd have to create a per-arch blacklist/whitelist to define "illegal".

[laanwj](https://github.com/bitcoin/bitcoin/pull/18553#issuecomment-611733956)
> My idea was to forbid .text.startup sections completely in all 'special' compilation units, e.g. those compiled with non-default instruction sets. I think that's easier to implement a check for than instruction white/blacklists.
Repository: rust
Issue: Adding a `Send` bound generates `the parameter type `S` must be valid for any other region`
Labels: A-lifetimes,T-compiler,C-bug

I'm using `cargo 1.43.0-nightly (bda50510d 2020-03-02)` / `rustc 1.43.0-nightly (c20d7eecb 2020-03-11)`.

With this code (simplified from [this crate](https://github.com/Ekleog/yuubind/tree/7dbebd924fe73e7de905c24a46564f631b7e46c1), edition 2018 with as only dependency `futures = "0.3.4"`):
```rust
use futures::{prelude::*, Future, Stream};
use std::{
    pin::Pin,
    task::{Context, Poll},
};

pub struct Foo {}

impl Foo {
    pub fn foo<'a, S>(
        &'a mut self,
        reader: &'a mut StreamWrapperOuter<S>,
    ) -> Pin<Box<dyn 'a + Send + Future<Output = ()>>>
    where
        S: 'a + Unpin + Send + Stream<Item = Vec<()>>,
    {
        Box::pin(async move {
            let _res = reader.concat().await;
            unimplemented!()
        })
    }
}

pub struct StreamWrapperOuter<'a, S>
where
    S: Unpin + Stream<Item = Vec<()>>,
{
    _source: &'a mut StreamWrapperInner<S>,
}

impl<'a, S> Stream for StreamWrapperOuter<'a, S>
where
    S: Unpin + Stream<Item = Vec<()>>,
{
    type Item = Vec<()>;

    fn poll_next(self: Pin<&mut Self>, _ctx: &mut Context) -> Poll<Option<Self::Item>> {
        unimplemented!()
    }
}

struct StreamWrapperInner<S: Stream> {
    _stream: S,
}

impl<S: Stream> Stream for StreamWrapperInner<S> {
    type Item = S::Item;

    fn poll_next(self: Pin<&mut Self>, _ctx: &mut Context) -> Poll<Option<S::Item>> {
        unimplemented!()
    }
}
```

I get the following error:
```rust
error[E0311]: the parameter type `S` may not live long enough
  --> src/lib.rs:17:9
   |
17 | /         Box::pin(async move {
18 | |             let _res = reader.concat().await;
19 | |             unimplemented!()
20 | |         })
   | |__________^
   |
   = help: consider adding an explicit lifetime bound for `S`
   = note: the parameter type `S` must be valid for any other region...
note: ...so that the type `StreamWrapperInner<S>` will meet its required lifetime bounds
  --> src/lib.rs:17:9
   |
17 | /         Box::pin(async move {
18 | |             let _res = reader.concat().await;
19 | |             unimplemented!()
20 | |         })
   | |__________^

error: aborting due to previous error
```

However, removing the `Send` bounds on both the return type of `Foo::foo` and its `S` type parameter, it compiles perfectly.

I'm pretty surprised with the fact that adding a `Send` bound apparently changes the lifetime; and the fact that `S` “must be valid for any other region” would make me guess it's a stray `for<'r>` like has already happened with async/await. What do you think about this?
Repository: youtube-dl
Issue: clickfunnels
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.03.24. 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.03.24**
- [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.
-->

- URL : https://hkowableyoutubedl.clickfunnels.com/membership-area1586699963857
(url can be with custom domain too, like for the script you made for Teachable course)

you need to log in.
I have created a membership clickfunnels that will work for 14 days.
login : hkowable+youtubedl@gmail.com
password: youtubedl2020

## Description

video can be hosted on youtube, vimeo, wistia or thought direct custom video file link.
Thanks you and have a good day :)
Repository: PowerToys
Issue: [Shortcut Guide] dynamics add shortcut to swap keyboards when multiple are there
Labels: Idea-Enhancement,Product-Shortcut Guide

If a user has multiple keyboard layouts installed, we can detect this. If this happens, it would be a nice reminder about that shortcut. 

Since this isn’t relevant if you don’t have it, it should be dynamic.
Repository: TypeScript
Issue: [Feature Request] Ability to auto-generate a type file for local JS module
Labels: Suggestion,Awaiting More Feedback

I'm facing the current issue when importing a JS file into a TS project

![image](https://user-images.githubusercontent.com/14075632/79074032-e7ffac80-7ce1-11ea-83a2-d11a552d828b.png)

The solution is to create a @types/cognitoAuth/index.d.ts file for the types, or convert the file to typescript.

It would be great if in vscode we could use the code action feature ( CTRL + . ) to either generate an empty types file with boilerplate, or try convert file to TS?
Repository: flutter
Issue: [web] Web application not working on Legacy Edge and IE
Labels: engine,dependency: dart,platform-web,a: production,found in release: 1.17,browser: firefox,P2,team-web,triaged-web


## Steps to Reproduce

1. Run `fluter build web --relase` and run it using python
1. Open the browser with edge or Firefox
1. A blank grey screen is shown (example here https://drive.getbigger.io)

The output flutter doctor is the following

```
flutter doctor -v
[✓] Flutter (Channel beta, v1.17.0, on Mac OS X 10.15.1 19B88, locale fr-FR)
    • Flutter version 1.17.0 at 
    • Framework revision d3ed9ec945 (6 days ago), 2020-04-06 14:07:34 -0700
    • Engine revision c9506cb8e9
    • Dart version 2.8.0 (build 2.8.0-dev.18.0 eea9717938)

 
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    • Android SDK 
    • Platform android-29, build-tools 29.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.3.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.3.1, Build version 11C504
    • CocoaPods version 1.9.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 3.6)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 44.0.2
    • Dart plugin version 192.7761
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)

[✓] VS Code (version 1.44.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.9.1

 
[✓] Connected device (3 available)            
    • iPhone 11 Pro Max • 3086AEFA-A07A-4A91-B5D0-93D8D059A96E • ios            • com.apple.CoreSimulator.SimRuntime.iOS-13-3 (simulator)
    • Chrome            • chrome                               • web-javascript • Google Chrome 80.0.3987.163
    • Web Server        • web-server                           • web-javascript • Flutter Tools

• No issues found!
```
Repository: godot
Issue: Output spammed when using DLL
Labels: bug,topic:editor,topic:gdextension

**Godot version:** 3.2

**Issue description:** The output window from the Godot editor gets spammed with this message:
![image](https://user-images.githubusercontent.com/31199346/79078484-b2a19180-7cd6-11ea-9acb-70889d763d91.png)

> Condition "!script_data" is true.

I know my DLL is linking properly to my Player scene because the code gets executed and everything works when you start the game. But you get this message in the output log every time you tab out and tab in of the editor (or click outside and then click anywhere in the editor) when the Player scene is opened in the editor. The name of the Player class in my c++ code is the same as the ressource_name and class_name of the native script. Here's how the DLL linking looks like in my Player scene: 

![image](https://user-images.githubusercontent.com/31199346/79078664-cf8a9480-7cd7-11ea-824b-3c128b8e3cae.png)

**Minimal reproduction project:**
[Project.zip](https://github.com/godotengine/godot/files/4466972/Project.zip)
Repository: flutter
Issue: Remove AndroidX specific failure message, always show Gradle errors
Labels: platform-android,tool,t: gradle,P2,team-android,triaged-android

I've seen several cases in the last few minutes of triage where the AndroidX message was shown despite the error being unrelated (keystore issue and ??). We should remove this error filtering and ensure that the raw gradle output is always shown
Repository: nvm
Issue: cdvm & carriage return in .nvmrc
Labels: OS: windows

cdnvm does not like a .nvrmc file created in windows for example ( od -c )
0000000    l   t   s   /   *  \r  \n                                    

This can be fixed by replacing
        nvm_version=$(<"$nvm_path"/.nvmrc)
with
        nvm_version=$(cat "$nvm_path"/.nvmrc | tr -d '\r')

Here I'm doing an echo $nvm_version | od -c before cdnvm
```
0000000    l   t   s   /   *  \r  \n                                    
0000007
 at  illegal primary in regular expression *
 input record number 16, file 
 source line number 4
` to browse available versions.te --lts=*
```

P.S. This is what is dropping the error - line 2651 nvm.sh ( nvm -> install )
`      VERSION="$(NVM_VERSION_ONLY=true NVM_LTS="${LTS-}" nvm_remote_version "${provided_version}")"`
Repository: rust
Issue: Interactions in `type_alias_impl_trait` and `associated_type_defaults`
Labels: T-lang,C-feature-request,needs-rfc,F-type_alias_impl_trait,requires-nightly,F-associated_type_defaults

A question about impl Trait in trait type aliases: has any thought been given about how they should handle defaults?

I'm trying to do something like this, without success:
```rust
#![feature(type_alias_impl_trait, associated_type_defaults)]

use std::fmt::Debug;

struct Foo {
}

trait Bar {
    type T: Debug = impl Debug;
    fn bar() -> Self::T {
        ()
    }
}

impl Bar for Foo {
    type T = impl Debug;
    fn bar() -> Self::T {
        ()
    }
}
```
[(playground link)](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=0094ea01075cc106ff3c0be8780c39b1)

I'd guess this just hasn't been RFC'd yes, but does someone know if thought on the topic have already started?

_Originally posted by @Ekleog in https://github.com/rust-lang/rust/issues/63063#issuecomment-612619080_
Repository: pytorch
Issue: Wrong results for multiplication of non-finite complex numbers with real numbers
Labels: triaged,module: complex,module: numpy

## 🐛 Bug
## To Reproduce
```
import torch
import math
a=torch.tensor([complex(math.inf, 0)])
print(a, a*1.)
#prints tensor([(inf+0.0000j)], dtype=torch.complex64) tensor([(inf+nanj)], dtype=torch.complex64)
```

## Expected behavior
expected answer is inf+0j

This is caused by pytorch first promoting 1. to 1.+0j, causing the unexpected multiplication result. Note, this behavior is consistent with python and numpy, but inconsistent with c++ std::complex (which would produce inf+0j for this computation). 

cc @ezyang @anjali411 @dylanbespalko
Repository: ant-design
Issue: 表格中search组件里的clearFilters，对onchange导出的extra.currentDataSource不起效
Labels: Inactive

- [ ] I have searched the [issues](https://github.com/ant-design/ant-design/issues) of this repository and believe that this is not a duplicate.

### Reproduction link
[![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/zidingyishaixuancaidan-ant-design-demo-vsvud)

### Steps to reproduce
1.点击搜索icon，搜索字段
2.重置
3.导出的extra.currentDataSource未改变，绑定了dataSource结果重置不正常

### What is expected?
正常重置

### What is actually happening?
显示数据未更变

| Environment | Info |
|---|---|
| antd | 4.1.0 |
| React | 16.8.3 |
| System | windows10 |
| Browser | chrome |


<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: flutter
Issue: ImageCache should optionally store undecoded images (pre-codec decoding)
Labels: c: new feature,framework,a: images,c: proposal,P3,team-framework,triaged-framework

## Use case

In a current-day app, it is typical to process and display high-megapixel images. Some smartphones come with cameras whose resolution is 48 MP or even 92 MP, and >100 is coming soon. The uncompressed byte sizes of each such image are 48 MiB and 92 MiB respectively.

## Proposal

Short term, I propose significantly raising the default value of ImageCache.maximumSizeBytes and/or documenting the fact that this is counted against the number of pixel in the image (rather than the byte size of the uncompressed image).

Eventually, I would suggest (optionally) caching the compressed images instead of the uncompressed ones - the memory / CPU trade-off seems to make much more sense, since repeatedly decoding compressed images is a walk in the park for modern smartphones and certainly avoiding this doesn't justify a tenfold or so increase in RAM usage.
Repository: ant-design
Issue: Modal background scroll iOS
Labels: help wanted,Inactive,📱Mobile Device

- [ ] I have searched the [issues](https://github.com/ant-design/ant-design/issues) of this repository and believe that this is not a duplicate.

### Reproduction link
[https://ant.design/components/modal/#header](https://ant.design/components/modal/#header)

### Steps to reproduce
1. Go to https://ant.design/components/modal/#header
2. Scroll a little bit to hide browser header
3. Open modal
4. Scroll at the background

### What is expected?
Scroll at background should be disabled

### What is actually happening?
Scroll is not disabled

| Environment | Info |
|---|---|
| antd | 4.1.3 |
| React | 16.8.6 |
| System | iOS 13.3.1 |
| Browser | Chrome 77.0.3865.103 |


<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->