id
int64 393k
2.82B
| repo
stringclasses 68
values | title
stringlengths 1
936
| body
stringlengths 0
256k
β | labels
stringlengths 2
508
| priority
stringclasses 3
values | severity
stringclasses 3
values |
---|---|---|---|---|---|---|
527,035,386 | TypeScript | RangeError: Maximum call stack size exceeded (with await nested promises) | <!--
Please try to reproduce the issue with the latest published version. It may have already been fixed.
For npm: `typescript@next`
This is also the 'Nightly' version in the playground: http://www.typescriptlang.org/play/?ts=Nightly
-->
**TypeScript Version:** 3.8.0-dev.20191122
**Code**
- source code
```ts
interface PromiseAction extends Promise<Action> {}
type Action = {type: string} | PromiseAction;
const createFooAction = async (): Promise<Action> => {type: "foo"};
```
- tsconfig.json
```json
{
"compilerOptions": {
"target": "es2017",
"allowSyntheticDefaultImports": true,
"module": "commonjs",
"moduleResolution": "node",
"noImplicitAny": true,
"noImplicitReturns": true,
"noImplicitThis": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"strictNullChecks": true,
},
"include": ["src/**/*"]
}
```
**Expected behavior:**
succeed type check or raise some error
**Actual behavior:**
tsc crashes with `RangeError: Maximum call stack size exceeded`
```
$ npm run check
> @ check /Users/okamoto-k/sandbox
> tsc --noEmit
/Users/okamoto-k/sandbox/node_modules/typescript/lib/tsc.js:78686
throw e;
^
RangeError: Maximum call stack size exceeded
at getPromisedTypeOfPromise (/Users/okamoto-k/sandbox/node_modules/typescript/lib/tsc.js:49700:42)
at getAwaitedType (/Users/okamoto-k/sandbox/node_modules/typescript/lib/tsc.js:49758:32)
at getAwaitedType (/Users/okamoto-k/sandbox/node_modules/typescript/lib/tsc.js:49751:46)
at getAwaitedType (/Users/okamoto-k/sandbox/node_modules/typescript/lib/tsc.js:49767:35)
at getAwaitedType (/Users/okamoto-k/sandbox/node_modules/typescript/lib/tsc.js:49751:46)
at getAwaitedType (/Users/okamoto-k/sandbox/node_modules/typescript/lib/tsc.js:49767:35)
at getAwaitedType (/Users/okamoto-k/sandbox/node_modules/typescript/lib/tsc.js:49751:46)
at getAwaitedType (/Users/okamoto-k/sandbox/node_modules/typescript/lib/tsc.js:49767:35)
at getAwaitedType (/Users/okamoto-k/sandbox/node_modules/typescript/lib/tsc.js:49751:46)
at getAwaitedType (/Users/okamoto-k/sandbox/node_modules/typescript/lib/tsc.js:49767:35)
```
**Playground Link:** <!-- A link to a TypeScript Playground "Share" link which demonstrates this behavior -->
http://www.typescriptlang.org/play/#code/JYOwLgpgTgZghgYwgAgApQPYFtgGcICCCYwGIyEAHpCACa5qY74A8RJZAfMgN4C+AKDABPAA4p2pcgF5eI8QC5kuMFFABzPsgA+jbHkLEpAbgEIyK5AigQ4kAGIYMkssllxcwkAmQAKAJRK6PqsLiDc0tw8yPIQSgBEME7xyHymQA
**Related Issues:**
I couldn't find it.
| Bug,Crash | low | Critical |
527,047,011 | rust | Missing braces in macro_rules rule cause unrelated parser error | The following piece of code errors with a parser error at the `!`, because it doesn't expect an expression. I wonder if we could improve the diagnostics here by rewinding to the `=>` and reparsing with an expression parser.
```rust
macro_rules! foo {
() => panic!(),
}
```
([Playground](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=7baac6ef007d7a0269060160d8fe097d))
Errors:
```
Compiling playground v0.0.1 (/playground)
error: no rules expected the token `!`
--> src/lib.rs:2:16
|
2 | () => panic!(),
| ^ no rules expected this token in macro call
error: aborting due to previous error
error: could not compile `playground`.
To learn more, run the command again with --verbose.
``` | A-diagnostics,A-macros,T-compiler,D-terse | low | Critical |
527,055,646 | rust | Provide UnixPath and WindowsPath (ditto PathBuf) on all platforms | Some applications need to manipulate Windows or UNIX paths on different platforms, for a variety of reasons: constructing portable file formats, parsing files from other platforms, handling archive formats, working with certain network protocols, and so on.
We already have the code in the standard library to manipulate both Windows paths and UNIX paths.
I would propose that we either always support both (as `UnixPath`/`UnixPathBuf` and `WindowsPath`/`WindowsPathBuf`) and alias one of those to `Path`/`PathBuf`, or that we at least extract that code and upload it verbatim as a standard crate in the ecosystem that specifically documents itself as containing the exact code from the corresponding version of the Rust standard library.
I personally think this seems useful enough to include in std, but either solution would potentially work.
cc @sunshowers who mentioned needing this. | T-libs-api,C-feature-request,A-io | medium | Major |
527,057,131 | rust | rustdoc --test mis-reports origins of #[deny(warnings)] | Here's an example I stumbled onto with a copy of `rand 0.5.6`:
```
RUSTFLAGS="--cap-lints warn" cargo test --doc --verbose
...
test src/prng/chacha.rs - prng::chacha::ChaChaRng::new_unseeded (line 115) ... ok
test src/prelude.rs - prelude (line 17) ... ok
test src/rngs/jitter.rs - rngs::jitter::JitterRng (line 72) ... FAILED
test src/lib.rs - sample (line 1020) ... ok
test src/rngs/adapter/read.rs - rngs::adapter::read::ReadRng (line 35) ... ok
test src/rngs/jitter.rs - rngs::jitter::JitterRng::new_with_timer (line 318) ... ok
...
failures:
---- src/rngs/jitter.rs - rngs::jitter::JitterRng (line 72) stdout ----
error: trait objects without an explicit `dyn` are deprecated
--> src/rngs/jitter.rs:79:33
|
10 | fn try_main() -> Result<(), Box<Error>> {
| ^^^^^ help: use `dyn`: `dyn Error`
|
note: lint level defined here
--> src/rngs/jitter.rs:71:9
|
2 | #![deny(warnings)]
| ^^^^^^^^
= note: `#[deny(bare_trait_objects)]` implied by `#[deny(warnings)]`
error: aborting due to previous error
Couldn't compile the test.
failures:
src/rngs/jitter.rs - rngs::jitter::JitterRng (line 72)
```
Note there is a lot wrong here:
1. The line numbers on the "source listing" don't correspond at all to the context line given ( 2 vs 71 )
2. The lines cited don't at all correspond with any of the files mentioned.
```
cat -n src/rngs/jitter.rs | grep -C3 "^\s*71\s"
68 /// https://github.com/usnistgov/SP800-90B_EntropyAssessment).
69 ///
70 /// Use the following code using [`timer_stats`] to collect the data:
71 ///
72 /// ```no_run
73 /// use rand::jitter::JitterRng;
74 /// #
```
```
cat -n src/rngs/jitter.rs | grep -C3 "^\s*2\s"
1 // Copyright 2017 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // https://rust-lang.org/COPYRIGHT.
4 //
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
```
No, instead, this rule is inserted somewhere else entirely:
```
grep -C3 "deny" -nr src/
src/lib.rs-226- html_favicon_url = "https://www.rust-lang.org/favicon.ico",
src/lib.rs-227- html_root_url = "https://docs.rs/rand/0.5.6")]
src/lib.rs-228-
src/lib.rs:229:#![deny(missing_docs)]
src/lib.rs:230:#![deny(missing_debug_implementations)]
src/lib.rs:231:#![doc(test(attr(allow(unused_variables), deny(warnings))))]
src/lib.rs-232-
src/lib.rs-233-#![cfg_attr(not(feature="std"), no_std)]
src/lib.rs-234-#![cfg_attr(all(feature="alloc", not(feature="std")), feature(alloc))]
```
Obviously macros are to blame here, but as it stands, this makes this reported error source entirely useless, not only is it getting the line _and_ the file wrong, it cites a literal string that doesn't even exist as-stated in the source code, presenting it under the guise of being literal source code.
I'm probably gonna also have to file another bug about that whole "`--cap-lints warn` does absolutely nothing" deal it has going on there. | T-rustdoc,A-lints,A-diagnostics,C-bug,A-doctests | low | Critical |
527,065,336 | vscode | Option to widen the command palette | <!-- Please search existing issues to avoid creating duplicates. -->
<!-- Describe the feature you'd like. -->
I have a number of files that are quite deep in the file structure and some of them share names at least partially. It's a common occurrence that I will search for a file, get several options, and be unable to discern which of the results are the exact one I'm looking for.
I want to be able to
a) Make the width of the command palette increase automatically to include the full path
b) Manually set a px width for the command palette
PS. If there is a way to do either of these already, I have been unable to find it, and would appreciate being told how. | feature-request,quick-pick | high | Critical |
527,113,765 | godot | Wireframe mode does not work when using PRIMITIVE_TRIANGLE_FAN | **Godot version:**
Both 3.1.1 and 3.2 beta1.99
**OS/device including version:**
window GLES3
**Issue description:**
The mesh I created with the triangle fan cannot be shown as a wireframe.
But Mesh.PRIMITIVE_TRIANGLES does not have this problem.
And GLE2 doesn't work either.
**Steps to reproduce:**
var arrs = Array()
arrs.resize(Mesh.ARRAY_MAX)
var vertexs = PoolVector3Array([
Vector3(0, 5, 0),
Vector3(1, 5, 0),
Vector3(1, 5, 1)
])
arrs[Mesh.ARRAY_VERTEX] = vertexs
var mesh = ArrayMesh.new()
mesh.add_surface_from_arrays(Mesh.PRIMITIVE_TRIANGLE_FAN, arrs)
**Minimal reproduction project:**
| topic:rendering,documentation,topic:3d | low | Minor |
527,153,517 | rust | Using std::borrow::Borrow has sneaky consequences | Consider the following playground that compiles fine:
https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=d735c0950cb1b25e8ff19e6a5c9d0445
```
use std::sync::Mutex;
use std::cell::RefCell;
//use std::borrow::Borrow;
struct A {
child: Mutex<RefCell<i32>>,
}
impl A {
fn is_good(&self) -> bool {
let cell = self.child.lock().unwrap();
let opt_target = cell.borrow();
*opt_target > 1
}
}
```
Uncommenting the `use std::borrow::Borrow;` breaks it quite badly:
```
error[E0369]: binary operation `>` cannot be applied to type `std::sync::MutexGuard<'_, std::cell::RefCell<i32>>`
--> src/lib.rs:13:21
|
13 | *opt_target > 1
| ----------- ^ - {integer}
| |
| std::sync::MutexGuard<'_, std::cell::RefCell<i32>>
|
= note: an implementation of `std::cmp::PartialOrd` might be missing for `std::sync::MutexGuard<'_, std::cell::RefCell<i32>>`
```
This problem does not appear when there is no `RefCell` inside the `Mutex`.
This creates confusion when the same function works in a module and not in another.
Especially when Borrow is not implemented directly by `Mutex` or `MutexGuard` it is quite hard to understand what happens here, I guess it is due to a blanket implementation since `RefCell<i32>` is `Sized`.
My main issue in this situation is that I spent a lot of time facing this compilation issue in a module whereas the same kind of code worked in multiple other modules. I had to comment/remove every other struct/impls/use in the module until I found the culprit.
Maybe the error message could be improved to hint at traits in scope that could alter the expected behavior ?
The issue appeared on stable and nightly (rustc 1.41.0-nightly (53712f863 2019-11-21)). | E-hard,C-enhancement,A-diagnostics,T-compiler,C-bug | low | Critical |
527,174,975 | TypeScript | Provide a clear and explicit TypeScript pkg.types alternative, such as pkg.typescriptTypes | <!-- π¨ STOP π¨ π¦π§π’π£ π¨ πΊπ»πΆπ· π¨
Half of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker.
Please help us by doing the following steps before logging an issue:
* Search: https://github.com/Microsoft/TypeScript/search?type=Issues
* Read the FAQ, especially the "Common Feature Requests" section: https://github.com/Microsoft/TypeScript/wiki/FAQ
-->
## Search Terms
package.types, package.json types, types, typings, ts-types
## Suggestion
It would be great if TS provided an additional alias for `package.json`'s `types`/`typings` fields.
This new alias should make it clear it refers to TypeScript types, so that projects that provide more than one type system can avoid ambiguity.
A possible solution would be a new `ts-types` field.
## Use Cases
<!--
What do you want to use this for?
What shortcomings exist with current approaches?
-->
See "Suggestion"
## Examples
```json
{
"name": "my-library",
"ts-types": "ts-types/index.d.ts"
}
```
## 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).
| Suggestion,Awaiting More Feedback | low | Critical |
527,237,998 | kubernetes | Improve Kubernetes events to be CloudEvents 1.0 compatible | As of today, Kubernetes already provides extension points by emitting events by different SIGs - This is great!
However, there are a few hurdles:
- The **event contract is specific to Kubernetes** which makes it harder to integrate with
- **Events do not have a unique subjects** which consumers can use to subscribe to and have to figure it out themselves
- There is **poor documentation** on what event is being emitted when
**What would you like to be added**: Now that [CloudEvents](https://cloudevents.io/) has reached the 1.0 milestone it would be good if Kubernetes could start emitting events in that format.
As part of that transition, I would *love* to use this change to build a centralized list with all the events and their subjects to make it easier to consume htem.
**Why is this needed**: Emitting events according to the CloudEvent specification would make it easier for external tools and vendors to plug in and extend Kubernetes where they have to.
/cc @clemensv | sig/api-machinery,kind/feature,sig/instrumentation,lifecycle/frozen | high | Critical |
527,246,879 | rust | Error in `async` function/block produces errors for valid unrelated expressions | Code ([Playground](https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=34a89f69431d02a03b71942261e2fdc8))
```rust
use futures::{future::ready, join};
async fn _incorrect_error() {
join! { ready(0) };
// Produces cannot infer type for `{integer}` for expression above
0.await;
}
fn main() {}
```
produces following errors:
<details><summary>Errors</summary>
<p>
```
error[E0277]: the trait bound `{integer}: core::future::future::Future` is not satisfied
--> src/main.rs:6:5
|
6 | 0.await;
| ^^^^^^^ the trait `core::future::future::Future` is not implemented for `{integer}`
|
= help: the following implementations were found:
<&mut F as core::future::future::Future>
<futures_channel::oneshot::Receiver<T> as core::future::future::Future>
<futures_task::future_obj::FutureObj<'_, T> as core::future::future::Future>
<futures_task::future_obj::LocalFutureObj<'_, T> as core::future::future::Future>
and 84 others
error[E0698]: type inside `async fn` body must be known in this context
--> src/main.rs:4:5
|
4 | join! { ready(0) };
| ^^^^^^^^^^^^^^^^^^^ cannot infer type for `{integer}`
|
note: the type is part of the `async fn` body because of this `await`
--> src/main.rs:4:5
|
4 | join! { ready(0) };
| ^^^^^^^^^^^^^^^^^^^
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
error[E0698]: type inside `async fn` body must be known in this context
--> src/main.rs:4:5
|
4 | join! { ready(0) };
| ^^^^^^^^^^^^^^^^^^^ cannot infer type for `{integer}`
|
note: the type is part of the `async fn` body because of this `await`
--> src/main.rs:4:5
|
4 | join! { ready(0) };
| ^^^^^^^^^^^^^^^^^^^
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
error[E0698]: type inside `async fn` body must be known in this context
--> src/main.rs:4:5
|
4 | join! { ready(0) };
| ^^^^^^^^^^^^^^^^^^^ cannot infer type for `{integer}`
|
note: the type is part of the `async fn` body because of this `await`
--> src/main.rs:4:5
|
4 | join! { ready(0) };
| ^^^^^^^^^^^^^^^^^^^
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
error[E0698]: type inside `async fn` body must be known in this context
--> src/main.rs:6:5
|
6 | 0.await;
| ^ cannot infer type for `{integer}`
|
note: the type is part of the `async fn` body because of this `await`
--> src/main.rs:6:5
|
6 | 0.await;
| ^^^^^^^
error[E0698]: type inside `async fn` body must be known in this context
--> src/main.rs:6:5
|
6 | 0.await;
| ^^^^^^^ cannot infer type for `{integer}`
|
note: the type is part of the `async fn` body because of this `await`
--> src/main.rs:6:5
|
6 | 0.await;
| ^^^^^^^
```
</p>
</details>
However, if we remove line
```rust
0.await;
```
, it will become valid. Error on this line affects unrelated
```rust
join! { ready(0) };
```
and produces `cannot infer type for {integer}` error for valid expression. This behaviour could seem not so bad, but imagine large `async` function with many lines (you can simply copy-paste first line several times and look to the output).
| A-diagnostics,T-compiler,A-inference,C-bug,A-async-await,AsyncAwait-Triaged | low | Critical |
527,289,117 | react | What will suspense look like for the streaming case? | <!--
Note: if the issue is about documentation or the website, please file it at:
https://github.com/reactjs/reactjs.org/issues/new
-->
**Do you want to request a *feature* or report a *bug*?**
A discussion, at the request of @gaearon.
### Questions
I'm very curious what the public API will be for Suspense in streaming cases. The work I do or have pretty much always done in React involves dealing with streams of data, generally coming over a web socket. What will it look like? Will it be easy for users to implement/use? Is a promise/thenable an appropriate type for dealing with this even internally, given that the first value may never show up?
### Desire
The ability to leverage suspense to "suspend" until the first of many values arrives from a stream of data coming from any source. For the sake of conversation, we'll say a web socket.
### Constraints
- The first value may never arrive
- The source may close without error, having never provided a value
- There must be an ergonomic teardown mechanism, for example how developers can currently teardown in the returned function of `useEffect` or in `componentWillUnmount`.
- There may be more than one value returned by the streaming source
### Optional constraints
- The first N values form the source may be synchronous (followed by asynchronous values)
### Scenario
A simple app with two routes, one where the app needs to open a web socket connection and collect streaming data, and the other where the socket connection should be closed. The values from the web socket may take long enough that the developer will want to move to that routed component right away and show some spinner with suspense until the first bit of data arrives. If the user navigates to the first route, then leaves before the first value arrives, what happens?
My concern is, that if, even internally, the mechanism is a promise or thenable, there is a chance leaks will be created in the event that the source of that first value is torn down before the first value arrives. The only way, with a thenable or promise, to avoid that chance would be to make sure that the teardown mechanism was somehow tied to the thenable, so that the thenable to be rejected (or resolved) with a known value, such that it will be "settled". | Type: Discussion,Component: Suspense | low | Critical |
527,307,250 | go | cmd/cover: inconsistent NumStmt when //line clauses are used with Go 1.13.4 | This seems to be the same as https://github.com/golang/go/issues/27350 but still happens even after running `go fmt` which was the recommended fix in that issue (and also in a release that includes https://github.com/golang/go/commit/d6899463029d8ab0d73c992ccf6639f095435b84 which was intended to mitigate it).
Removing all `//line ` comments from the file allows it to pass.
### What version of Go are you using (`go version`)?
<pre>
$ go version
go version go1.13.4 linux/amd64
</pre>
### 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
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/jesse/.cache/go-build"
GOENV="/home/jesse/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/jesse/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/home/jesse/go/src/github.com/timberio/go-datemath/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-build279863626=/tmp/go-build -gno-record-gcc-switches"
</pre></details>
### What did you do?
<!--
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
-->
Using this repo, which uses `goyacc` to generate `datemath.y.go`, https://github.com/timberio/go-datemath
```
$ go test -coverprofile=c.out && go tool cover -html=c.out
PASS
coverage: 71.4% of statements
ok github.com/timberio/go-datemath 0.003s
cover: inconsistent NumStmt: changed from 2 to 1
```
I see the same issue using the example in the `goyacc` directory:
https://github.com/golang/tools/tree/master/cmd/goyacc/testdata/expr
When adding a dummy test file:
```
$ cat expr_test.go
package main
import "testing"
func TestFoo(t *testing.T) {
}
```
and then running:
```
$ go generate && go fmt && go test -coverprofile=c.out && go tool cover -html=c.out
PASS
coverage: 0.0% of statements
ok golang.org/x/tools/cmd/goyacc/testdata/expr 0.003s
cover: inconsistent NumStmt: changed from 1 to 2
```
### What did you expect to see?
The coverage pulled up in the browser.
### What did you see instead?
```
PASS
coverage: 71.4% of statements
ok github.com/timberio/go-datemath 0.006s
cover: inconsistent NumStmt: changed from 2 to 1
``` | help wanted,NeedsInvestigation,compiler/runtime | low | Critical |
527,310,935 | PowerToys | Fancy Zones: Windows should remember their last virtual desktop location after reboot | # Summary of the new feature/enhancement
When Windows reboots, it does not remember which virtual desktop it was last placed on. This forces the user to re-sort all the windows into the desired virtual desktop after reboot. Fancy Zones could keep track of which virtual desktop each window was last on and automatically move it to the correct virtual desktop when it is launched again.
| Idea-Enhancement,Product-FancyZones,FancyZones-VirtualDesktop | low | Major |
527,344,690 | TypeScript | Option to copy custom types to outDir | <!-- π¨ STOP π¨ π¦π§π’π£ π¨ πΊπ»πΆπ· π¨
Half of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker.
Please help us by doing the following steps before logging an issue:
* Search: https://github.com/Microsoft/TypeScript/search?type=Issues
* Read the FAQ, especially the "Common Feature Requests" section: https://github.com/Microsoft/TypeScript/wiki/FAQ
-->
## Search Terms
declaration files, .d.ts, ergonomics, distributable package, library, compiler option
## Suggestion
I would like `tsc` to include an option that enables copying `.d.ts` files from my project's source tree into the configured `outDir`.
## Use Cases
I maintain a distributable library that is often used as a dependency of other packages. As often as I can, I depend on `@type/*` packages and the core type libraries to express the types in the platforms that my library supports.
However, there are cases where these sources do not reflect the ground truth of my supported platforms (for example, old browsers w/ proprietary APIs, or experimental/unstable/nascent web platform features). In these cases, it isn't suitable to upstream my custom types to another package, and even if it was, the latency involved in waiting for upstream contributions to be accepted and published is not a good reason to block a release of my library.
In cases like these, I tend to express the types in `.d.ts` files in my source tree. However, per https://github.com/Microsoft/TypeScript/issues/5112, `tsc` does not copy these files to my configured `outDir` as a matter of principle. This means that I have to complicate my build with an additional copy step in order to produce a comprehensive, publishable artifact. Meanwhile, it seems like `tsc` could make my life a lot simpler by copying over these files on my behalf.
## Examples
This could manifest in a lot of ways, but a strawperson would be to add a compiler flag. Call it `--include-custom-type-declarations` (or any suitable name).
If `tsc` is invoked with this flag set to true, then `tsc` will include all `.d.ts` declarations in the source tree among the artifacts generated in the `outDir`.
## 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).
| Suggestion,Awaiting More Feedback | low | Critical |
527,351,614 | go | x/build/env/linux: add bleeding edge kernel builder | In https://github.com/golang/go/issues/35777#issuecomment-557642410 ("runtime: memory corruption on Linux 5.3.x from async preemption") @zikaeroh says:
> I feel like there should be some builder which is at the latest Linux kernel, whatever that may be.
This is that tracking bug.
/cc @cagedmantis @dmitshur @toothrot @bcmills | Builders,NeedsInvestigation,new-builder | low | Critical |
527,352,418 | go | x/build: add a builder that runs long tests with a gccgo toolchain | From the list at [build.golang.org](https://build.golang.org/), there don't seem to be any builders running a gccgo toolchain. It would be useful to have one to make sure we don't regress on gccgo support.
For quick reference: [gccgo setup instructions](https://golang.org/doc/install/gccgo) | Builders,NeedsInvestigation,new-builder | low | Major |
527,354,768 | terminal | Apply C Build Insights to Solution to attempt to improve build time | @bitcrazed found this and sent e-mail about it.
https://devblogs.microsoft.com/cppblog/introducing-c-build-insights/
It looks like a good idea for the eventually pile. Putting it here so we don't lose it. | Help Wanted,Area-Performance,Area-Build,Product-Meta,Issue-Task | low | Minor |
527,359,018 | godot | "Make Sub-Resources Unique" does not make MeshInstance Mesh Material Unique | **Godot version:**
3.2 Beta 2 (also affects 3.1.1)
**OS/device including version:**
ArchLinux Kernel 5.3.11-arch1-1
**Issue description:**
Selecting "Make Sub-Resources Unique" on MeshInstance, does not make the sub-resource Mesh material unique. Even making the Mesh itself Unique will not make an attached Material Unique. You have to go to the Mesh Material and select "Make Unique" on the Material itself, then it becomes unique.

**Steps to reproduce:**
1. Create 3D Scene
2. Create new MeshInstance and create a new Mesh (I used simple cube)
3. Assign new Spatial Material to the newly created Mesh.
4. Duplicate the MeshInstance created in Step 2
5. Select new MeshInstance and click "Make Sub-Resources Unique" in Object Properties Menu.
6. Change properties of the Spatial Material assigned to the Mesh and notice both MeshInstances materials will change. (ie. they are not unique).
**Minimal reproduction project:**
[minimal_project.zip](https://github.com/godotengine/godot/files/3880926/minimal_project.zip) | bug,topic:editor | low | Major |
527,418,006 | PowerToys | Dev docs need to be improved | The documentation is spread around the repo and doesn't cover all the basics.
| Issue-Docs | low | Major |
527,437,230 | flutter | The tool should only have one way to build assets | Currently there is a method for building assets in an ad-hoc manner for debugging sessions and in assemble for real builds. These should share some common logic so they don't go out of sync. | team,tool,P3,team-tool,triaged-tool | low | Critical |
527,455,570 | create-react-app | IE 11 Cannot modify non-writable property... | I've followed the steps to support ie11 but keep just getting the error `Cannot modify non-writable property length`.
I've tried babel polyfill, core-js and react app polyfill and none of them are working for me.
I've reinstalled all deps and cleared caches.
Can be seen at https://www.finedonlocalhistorysociety.co.uk/
My repo is here https://github.com/dahliacreative/flhs
| issue: needs investigation,issue: bug report | low | Critical |
527,456,751 | vscode | Disable overview ruler entirely | Can you add an option to disable overview ruler entirely?
It's located underneath the right scrollbar, and I find it distracting, as there's symbols changing all the time.
Version: 1.40.1
Commit: 8795a9889db74563ddd43eb0a897a2384129a619
Date: 2019-11-15T10:46:02.883Z
Electron: 6.1.2
Chrome: 76.0.3809.146
Node.js: 12.4.0
V8: 7.6.303.31-electron.0
OS: Linux x64 4.15.0-70-generic
I've consulted the link below, no effect:
https://stackoverflow.com/questions/59002585/how-can-i-remove-symbols-on-right-scrollbar-of-vscode | feature-request,editor-scrollbar | medium | Critical |
527,470,999 | vscode | Change Start Debugging Extension Host on Running Extensions to not require a restart | Issue Type: <b>Bug</b>
Currently if you click on _Start Debugging Extension Host_ from the _Running Extensions_ tab it will ask you to restart. This IMO defeats the main purpose of this feature, as the only times I want to do this, is when I am seeing an extension issue that I can't easily reproduce and when to debug it when it is happening.
Related -- it would be great to not attempt to attach in the same vscode instance and instead open a new vscode window to attach from.
VS Code version: Code - Insiders 1.41.0-insider (599c076d91be1374cf51004cec610f3bcaf4c9cd, 2019-11-22T07:25:24.031Z)
OS version: Windows_NT x64 10.0.19028
<details>
<summary>System Info</summary>
|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz (8 x 4008)|
|GPU Status|2d_canvas: enabled<br>flash_3d: enabled<br>flash_stage3d: enabled<br>flash_stage3d_baseline: enabled<br>gpu_compositing: enabled<br>metal: disabled_off<br>multiple_raster_threads: enabled_on<br>oop_rasterization: disabled_off<br>protected_video_decode: unavailable_off<br>rasterization: enabled<br>skia_renderer: disabled_off<br>surface_control: disabled_off<br>surface_synchronization: enabled_on<br>video_decode: enabled<br>viz_display_compositor: enabled_on<br>viz_hit_test_surface_layer: disabled_off<br>webgl: enabled<br>webgl2: enabled|
|Load (avg)|undefined|
|Memory (System)|31.93GB (16.39GB free)|
|Process Argv||
|Screen Reader|no|
|VM|0%|
</details>
<!-- generated by issue reporter --> | help wanted,feature-request,extensions-development | low | Critical |
527,494,443 | godot | [Bullet] KinematicBody3D: is_on_floor() can become false when moving against a wall | **Godot version:**
This issue happens in both 3.1 and in a version compiled from source (at commit 083d088de3fe7cd5d825cebebc46ce32fc87b4b0)
**OS/device including version:**
OSX Mojave 10.14.6
**Issue description:**
When a KinematicBody3D is on the ground and against a wall and running toward that wall, is_on_floor() can turn false, even though the KinematicBody3D is on the ground the whole time.
I've noticed that this issue is related to the speed of the motion (both horizontal and vertical/gravity). If both horizontal and vertical speeds are low then is_on_floor() can even be false *always* whenever running against a wall.
I did some digging into this: it seems that when vertical speed is low (for example, from one timestep of gravitational acceleration) then only one collision is reported by move_and_slide() - this collision is in the direction of the wall, not of the floor. Therefore, move_and_slide() only sees the collision with the wall direction and sets on_floor to false. However, the character still isn't falling through the floor, so the character's vertical velocity is still getting corrected; but I think both collisions are being corrected with only one motion, instead of one motion for each collision plane.
**Steps to reproduce:**
(1) Open "Godot FPS Tutorial Part 1" project.
(2) Add "print(is_on_floor())" at line 123 (right after the move_and_slide() function) to the Player's script.
(3) Run the program.
(4) Run forward directly into a wall and keep holding forward. If you check the Output, is_on_floor()'s output is flickering between true and false.
Optional step: change line 98 (the gravity update) to smaller constant velocity like "vel.y = -1.0". If you run against the wall, now is_on_floor() will always return false.
**Minimal reproduction project:**
Godot FPS Tutorial Part 1 project:
https://docs.godotengine.org/en/3.1/_downloads/d9b603ee9d6444df6b385863612e0f3f/Godot_FPS_Part_1.zip | bug,confirmed,topic:physics | medium | Major |
527,497,838 | pytorch | TorchScript Performance: 150x gap between TorchScript and Native Python | ## π Bug
There's a 150x gap in performance for TorchScript ops versus straight Python / C++.
Looping over 100K numbers takes 2+ seconds instead of 18ms or better.
Please see the benchmarks here: https://github.com/divyekapoor/ml-op-benchmarks
## To Reproduce
https://github.com/divyekapoor/ml-op-benchmarks
Steps to reproduce the behavior:
1. Clone the repo
1. make torchbench
See related TensorFlow issue for context:
https://github.com/tensorflow/tensorflow/issues/34500
## Expected behavior
FizzBuzz Iteration Counts | 100000 | Β | Β | Β
-- | -- | -- | -- | --
Β | Raw Latency (ms) | Per Run Latency (usec) | Python Multiplier | C++ Multiplier
PyTorch Python | 4007 | 40.07 | 222.61 | 23851
PyTorch TorchScript Python (from Loaded TorchScript) | 2830 | 28.3 | **157.22** | 16845
PyTorch TorchScript C++ (Native) | 255 | 2.55 | **14.17** | 1518
PyTorch TorchScript C++ (Native + ATen Tensors) | 252 | 2.52 | **14.00** | 1500
Raw Python | 18 | 0.18 | 1.00 | 107
Raw C++ | 0.168 | 0.00168 | 0.01 | 1
Performance similar to raw Python is the expected behavior.
## Environment
Please copy and paste the output from our
[environment collection script](https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py)
(or fill out the checklist below manually).
You can get the script and run it with:
```
wget https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py
# For security purposes, please check the contents of collect_env.py before running it.
python collect_env.py
```
```
$ python3 /tmp/collect_env.py
Collecting environment information...
PyTorch version: 1.3.0.post2
Is debug build: No
CUDA used to build PyTorch: None
OS: Mac OSX 10.14.6
GCC version: Could not collect
CMake version: version 3.15.5
Python version: 3.7
Is CUDA available: No
CUDA runtime version: No CUDA
GPU models and configuration: No CUDA
Nvidia driver version: No CUDA
cuDNN version: No CUDA
Versions of relevant libraries:
[pip3] numpy==1.17.4
[pip3] torch==1.3.0.post2
[conda] Could not collect
```
- PyTorch Version (e.g., 1.0): 1.3
- OS (e.g., Linux): Mac OS X
- How you installed PyTorch (`conda`, `pip`, source): pip
- Build command you used (if compiling from source): NA
- Python version: 3.7
- CUDA/cuDNN version: NA
- GPU models and configuration: NA
- Any other relevant information: See performance tables and github repo.
## Additional context
Code:
```python
class TorchFizzBuzz(torch.nn.Module):
def __init__(self):
super(TorchFizzBuzz, self).__init__()
self.fizz = torch.tensor(0, requires_grad=False)
self.buzz = torch.tensor(0, requires_grad=False)
self.fizzbuzz = torch.tensor(0, requires_grad=False)
def forward(self, n: torch.Tensor):
i = torch.tensor(0, dtype=torch.int32, requires_grad=False)
self.fizz = torch.zeros(1)
self.buzz = torch.zeros(1)
self.fizzbuzz = torch.zeros(1)
while i < n:
if i % 6 == 0:
self.fizzbuzz += 1
elif i % 3 == 0:
self.buzz += 1
elif i % 2 == 0:
self.fizz += 1
i += 1
return torch.stack([self.fizz, self.buzz, self.fizzbuzz])
```
cc @suo | triage review,oncall: jit,triaged | low | Critical |
527,500,630 | vscode | Git - Explorer .gitignore integration considers git repo outside of workspace folder |
Issue Type: <b>Bug</b>
I cloned xterm into vscode's node_modules and opened that folder, all files in the explorer are faded out despite being in an "inner" git repo.
<img width="660" alt="Screen Shot 2019-11-22 at 7 02 43 PM" src="https://user-images.githubusercontent.com/2193314/69472093-d0d41880-0d5a-11ea-8580-ae47273cef3f.png">
VS Code version: Code - Insiders 1.41.0-insider (599c076d91be1374cf51004cec610f3bcaf4c9cd, 2019-11-22T07:19:06.796Z)
OS version: Darwin x64 18.7.0
<details>
<summary>System Info</summary>
|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz (12 x 2200)|
|GPU Status|2d_canvas: enabled<br>flash_3d: enabled<br>flash_stage3d: enabled<br>flash_stage3d_baseline: enabled<br>gpu_compositing: enabled<br>metal: disabled_off<br>multiple_raster_threads: enabled_on<br>oop_rasterization: disabled_off<br>protected_video_decode: unavailable_off<br>rasterization: enabled<br>skia_renderer: disabled_off<br>surface_control: disabled_off<br>surface_synchronization: enabled_on<br>video_decode: enabled<br>viz_display_compositor: enabled_on<br>viz_hit_test_surface_layer: disabled_off<br>webgl: enabled<br>webgl2: enabled|
|Load (avg)|4, 3, 2|
|Memory (System)|16.00GB (0.20GB free)|
|Process Argv|-psn_0_11799360|
|Screen Reader|no|
|VM|0%|
</details><details><summary>Extensions (15)</summary>
Extension|Author (truncated)|Version
---|---|---
vscode-svgviewer|css|2.0.0
EditorConfig|Edi|0.14.2
vscode-pull-request-github-insiders|Git|2019.11.2342
vscode-azureappservice|ms-|0.16.1
vscode-docker|ms-|0.8.2
vscode-language-pack-ja|MS-|1.40.2
remote-containers|ms-|0.85.0
remote-ssh-edit-nightly|ms-|2019.11.21120
remote-ssh-nightly|ms-|2019.11.21120
azure-account|ms-|0.8.7
vscode-typescript-tslint-plugin|ms-|1.2.3
debugger-for-chrome|msj|4.12.1
material-icon-theme|PKi|3.9.1
sort-lines|Tyr|1.9.0
vscode-todo-highlight|way|1.0.4
(2 theme extensions excluded)
</details>
<!-- generated by issue reporter --> | bug,git,file-decorations | low | Critical |
527,530,967 | flutter | Floating cursor on iOS doesn't move on initial drag | In iOS, the users can move cursor fast by long-press and drag space key (floating cursor).
I have found strange behaviors of floating cursor in TextField:
1. As soon as floating cursor starts, the cursor freezes up for a while.
2. When stop dragging (=press-up) during the freeze, the cursor gets stuck in the position.
Below is the sample of case-2.
(I used Japanese keyboard in this movie but it occurred when I used English keyboard.)

## Steps to Reproduce
1. Use TextField and build ios
2. Long press and drag space key
3. Stop dragging immediately (case-2)
**Target Platform: iOS**
**Target OS version/browser: iOS13.2.3, iPhone 11**
**Devices: Both physical devices and emulators**
## Logs
Flutter doctor
```
β― flutter doctor -v
[β] Flutter (Channel stable, v1.9.1+hotfix.6, on Mac OS X 10.14.6 18G1012, locale ja-JP)
β’ Flutter version 1.9.1+hotfix.6 at /Users/masaokb/flutter
β’ Framework revision 68587a0916 (2 months ago), 2019-09-13 19:46:58 -0700
β’ Engine revision b863200c37
β’ Dart version 2.5.0
[β] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
β’ Android SDK at /Users/masaokb/Library/Android/sdk
β’ Android NDK location not configured (optional; useful for native profiling support)
β’ Platform android-29, build-tools 28.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_202-release-1483-b49-5587405)
β’ All Android licenses accepted.
[β] Xcode - develop for iOS and macOS (Xcode 11.2.1)
β’ Xcode at /Applications/Xcode.app/Contents/Developer
β’ Xcode 11.2.1, Build version 11B500
β’ CocoaPods version 1.8.1
[β] Android Studio (version 3.5)
β’ Android Studio at /Applications/Android Studio.app/Contents
β’ Flutter plugin version 41.1.2
β’ Dart plugin version 191.8593
β’ Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
[β] VS Code (version 1.40.1)
β’ VS Code at /Applications/Visual Studio Code.app/Contents
β’ Flutter extension version 3.6.0
[β] Connected device (1 available)
β’ okb β’ 00008030-001E583E1E60802E β’ ios β’ iOS 13.2.3
β’ No issues found!
```
| a: text input,framework,f: material design,a: internationalization,a: fidelity,customer: crowd,has reproducible steps,P2,found in release: 3.3,found in release: 3.5,team-text-input,triaged-text-input | low | Major |
527,554,206 | youtube-dl | Automatic rate limiting - using a headless video player | <!--
######################################################################
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 2019.11.22. 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 **2019.11.22**
- [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.
-->
Nowadays providers check the throughput and ban an account when videos are downloaded to quick. Also videos have a different bitrate or even the bitrate changes through the video. Setting `limit-rate` to a specific rate is difficult and to not get banned setting it way too low.
Providers can produce videos with changing bitrates to detect downloaders with a fixed `--limit-rate`.
Make youtube-dl capable of automatic rate-limiting (throttling) by piping the downloaded video into a video player (headless) who takes care of the bitrate, to emulate an interactive user.
This allows to download at the highest possible rate. | request | low | Critical |
527,554,391 | go | x/sys/unix: add support for FAN_REPORT_FID | Linux kernels 5.1+ have added new API (FAN_REPORT_FID) for fanotify. Would be nice to have this in 'golang.org/x/sys'. | help wanted,NeedsFix | low | Minor |
527,563,438 | flutter | webview_flutter fullscreen for youtube not working |
[INFO:CONSOLE(849)] "Uncaught (in promise) TypeError: fullscreen error", source: https://m.youtube.com/yts/jsbin/mobile-c3-vflW8m0pe/mobile-c3.js (849)
"FULLSCREEN FOR YOUTUBE.COM NOT WORKING" | platform-android,customer: crowd,p: webview,package,has reproducible steps,P2,found in release: 2.5,team-android,triaged-android | low | Critical |
527,571,882 | rust | Unhelpful type error for too general trait implementation | Hello,
When calling trait method with a too-generic type, the error message does not mention the missing trait bound.
Consider this example
```
trait Foo<CTX> {
fn foo(&self, ctx: &CTX);
}
trait Context {}
struct A;
impl Context for A {}
struct B;
impl Foo<A> for B {
fn foo(&self, ctx: &A) {
println!("Foo for B")
}
}
struct C { b: B }
impl<CTX: Context> Foo<CTX> for C {
fn foo(&self, ctx: &CTX) {
self.b.foo(ctx);
println!("Foo for C")
}
}
```
I get this error message
```
error[E0308]: mismatched types
--> src/lib.rs:20:20
|
20 | self.b.foo(ctx);
| ^^^ expected struct `A`, found type parameter
|
= note: expected type `&A`
found type `&CTX`
= help: type parameters must be constrained to match other types
```
For derive macros, finding which field is responsible for the error is not obvious.
I would have expected something like
```
type `B` does not implement trait `Foo<CTX>`
``` | C-enhancement,A-diagnostics,T-compiler | low | Critical |
527,580,864 | youtube-dl | Can I get titles of playlists in users playlist list? | <!--
######################################################################
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])
-->
- [y ] I'm asking a question
- [y ] I've looked through the README and FAQ for similar questions
- [y ] 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.
-->
WRITE QUESTION HERE
I've looked all over web and can't find a command that gives me the playlist title with the url.
https://www.youtube.com/user/me/playlists -J --flat-playlist
.\youtube-dl https://www.youtube.com/user/yorkchris10/playlists -J --flat-playlist
{"title": "me", "extractor_key": "YoutubePlaylists", "_type": "playlist", "extractor": "youtube:playlists", "webpage_url": "https://www.youtube.com/user/yorkchris10/playlists", "id": "yorkchris10", "webpage_url_basename": "playlists", "entries": [{"ie_key": "YoutubePlaylist", "url": "https://www.youtube.com/playlist?list=PLAGvOYt0XoUjAik-sYcdk39Ma-FyrWmrk", "_type": "url"}, {"ie_key": "YoutubePlaylist", "url": "https://www.youtube.com/playlist?list=PLAGvOYt0XoUjXr9vmXHSFVc36N8w0Kqdi", "_type": "url"}, {"ie_key": "YoutubePlaylist", "url": "https://www.youtube.com/playlist?list=PLAGvOYt0XoUisoDL79ZBbKK-azxCLX37J", "_type": "url"},
...
| question | low | Critical |
527,585,944 | pytorch | Refactor (a bit) `torch.hub(.load)` | ## π Feature
Refactor (a bit) `torch.hub(.load)` to allow an easier use of alternative ways to fetch/load models.
## Motivation
Published models often show `torch.hub.load` as the easiest way to get started with a model.
For example at https://github.com/pytorch/fairseq/tree/master/examples/roberta:
```python
import torch
roberta = torch.hub.load('pytorch/fairseq', 'roberta.large')
```
Whenever behind a firewall or a fussy proxy environment (unfortunately a number of corporate environment), fetching the model from github as done by that function will not always work.
It would be very convenient for such situations to have the steps better isolated into functions and with this make the ability to swap, say, the "download compressed tarball from github" step, from a custom one (say, something like "copy the compressed tarball from github"). Beside making such use-cases easier to handle, and prevent many to presumably implement essentially the same solution after reading the source for `torch.hub` and reimplement a variant of `torch.hub.load`, this may also make the creation of alternative hubs, fetching or caching strategies, etc... easier.
While searching for possible earlier reports for this, I found the following issue to be related (although much more ambitious): https://github.com/pytorch/pytorch/issues/27610
## Pitch
A minimum viable refactoring answering the issue could consider the atomic steps:
a. resolve github account name to local directory and ensure it exists
b. resolve github account name + model name to URL
c. fetch packed model file from URL into local name
d. unpack model
e. cleanup packed model
and make a function like `torch.hub.load` merely a sequence of these and allow a user to specify alternatives.
I have not considered all patterns, but one might be through the use of callbacks:
```python
torch.hub.load(...,
func_localdir= _setup_hubdir(),
func_hubname_to_url=...,
...)
```
## Alternatives
Let users all write might essentially be similar code. Not individually a major undertaking, but if this is truly a not-so-uncommon use-case if might be good to make it part of the API.
## Additional context
NA.
cc @ailzhang | triaged,enhancement,module: hub | low | Minor |
527,588,654 | TypeScript | Feature Request: Readonly<T> should remove mutable methods | ## Search Terms
readonly, as const, Readonly<T>,
## Suggestion
Readonly<T> to work the way Readonly<T[]> does without having to create something like ReadonlyArray<T>, ReadonlySet<T>, etc...
I would love it if the `Readonly<T>` mapped type could exclude any method marked as `readonly` or maybe `as cosnt` or something similar.
## Use Cases
At the moment I have to do this:
```typescript
class Vector2 {
public constructor(
public x: number,
public x: number,
) {}
public add(other: ReadonlyVector2): Vector2 {
return this.clone().addInPlace(other);
}
public addInPlace(other: ReadonlyVector2): this {
this.x += other.x;
this.y += other.y;
return this;
}
public clone(): Vector2 {
return new Vector2(this.x, this.y);
}
}
interface ReadonlyVector2 {
readonly x: number;
readonly y: number;
add(other: ReadonlyVector2): Vector2;
clone(): Vector2;
}
```
This gets very boring with a lot of types, also it's error prone. I could forget to add something to the interface, or worse I could accidentally add something that is mutable.
I can currently do `method(this: Readonly<this>) {...}`, which is helpful, but doesn't stop me calling mutable methods on the type.
Inside a marked method you would be unable to mutate the state of member variables and you would unable to call other unmarked methods.
This would also allow you to remove the special case of `Readonly<T[]>`. The mutable methods of arrays could be marked with whatever syntax is decided and then `Readonly<T[]>` would just work like any other `Readonly<T>`. Currently I don't bother using `Readonly<T>` since it doesn't really help with anything except C style POD types.
## Examples
```typescript
class Vector2 {
public constructor(
public x: number,
public x: number,
) {}
public readonly add(other: Readonly<Vector2>): Vector2 {
return this.clone().addInPlace(other);
}
public addInPlace(other: Readonly<Vector2>): this {
this.x += other.x;
this.y += other.y;
return this;
}
public const clone(): Vector2 {
return new Vector2(this.x, this.y);
}
}
```
## 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).
| Suggestion,Awaiting More Feedback | low | Critical |
527,607,745 | godot | The 3D camera FOV isn't always set correctly when using camera replication | **Godot version:** Git https://github.com/godotengine/godot/commit/ebdd2bc474f6bb3ff124755196fa116c4fd91385
**OS/device including version:** Fedora 31
**Issue description:**
Depending on when you change the editor camera FOV, it may not always apply to the running project when editor camera replication is enabled.
This is not limited to FOV; the same bug occurs with the camera's near and far plane values.
**Steps to reproduce:**
1. Run a project that has a Camera node and enable camera replication at the top of the 3D viewport.
2. Change the camera FOV using the **View > Settings** menu at the top of the 3D viewport. Notice how the FOV also changes in the running project.
3. Disable camera replication and enable it again.
4. Notice how the default camera FOV was restored (instead of using the current editor camera FOV).
**Minimal reproduction project:** Any 3D project can do, but you can use this one for testing purposes: [test_dithering.zip](https://github.com/godotengine/godot/files/3882914/test_dithering.zip)
| bug,topic:editor,confirmed,topic:3d | low | Critical |
527,622,450 | PowerToys | [Shortcut Guide] Add shortcut taskbar for Task View / Cortana / Widget | # Summary of the enhancement
This issue details two small update suggestions to the Shortcut Guide PowerToy.
The first update would move the "Open Task view" tip to just above the taskbar, where the number-key tips currently appear.
The second update would add a "C - Open Cortana" tip above the Cortana button on the taskbar, in the same row as the number-key tips.
These suggestions are illustrated below:

In addition, I am aware that users can customize the taskbar by removing one or both of these buttons. In that case, the tips should probably be moved back to the standard location (in the middle of the screen). | Idea-Enhancement,Product-Shortcut Guide,Area-Quality | low | Minor |
527,651,664 | youtube-dl | Add support for Win32 long paths | <!--
######################################################################
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 2019.11.22. 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 **2019.11.22**
- [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.
-->
Windows 10 allows users to enable Win32 long paths either from the Local Group Policy Editor or Registry Editor. However, youtube-dl does not honor this setting and fails to download files that are longer than 260 characters. Is it possible for youtube-dl to honor the Win32 long paths setting if enabled?
| request | low | Critical |
527,659,702 | pytorch | Add Google Colab as an option on the 'Get Started' page. | ## π Feature
Along with all the instructions for local installation on https://pytorch.org/get-started/locally/ it would be great to also add a few lines about Google Colab notebooks.
## Motivation
Colab notebooks already set up with all required libraries pre-installed. It saves time, and users don't have to deal with errors while building or installing. All the work already done. Also, it would be a great place to start because the already existing Colab notebooks can be imported without any hassle.
## Pitch
NA
## Alternatives
NA
## Additional context
NA | module: docs,triaged,enhancement | low | Critical |
527,671,657 | godot | AtlasTexture does not work with some Objects and Resources | **Godot version:**
3.1.1
**OS/device including version:**
Windows 10
**Issue description:**
Using the AtlasTexture on some Objects and Ressources does not use the selected region but the whole image. I found this to be the case with AnimatedTexture and CPUParticles2D, but I am prety shure, this is are not the only two cases.
**Steps to reproduce:**
- Create a AnimatedTexture or CPUParticles2D
- Use a AtlasTexture as the Texture
- The whole AtlasTexture is used instead of the selected Region
Note: The AtlasTexture is shown correctly in the Editor
**Minimal reproduction project:**
| bug,discussion,topic:core,topic:rendering,confirmed,documentation | medium | Major |
527,683,466 | pytorch | Docs missing link to torch.__config__ | ## π Documentation
The docs page currently contains a link to "torch.__config__" in the left sidebar under Python API.
This link leads to a dead end (https://pytorch.org/docs/stable/__config__.html).
The link or the sidebar should be updated.
Thanks!
-Dan | module: docs,triaged | low | Minor |
527,702,664 | go | x/crypto/bcrypt: base64 decode - incorrect padding calculation | ### What version of Go are you using (`go version`)?
<pre>
$ go version
go version go1.13.4 darwin/amd64
</pre>
### 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
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/bparadise/Library/Caches/go-build"
GOENV="/Users/bparadise/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/bparadise/dev/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/bparadise/dev/go/src/github.com/demisto/server/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 -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/dw/42b9g2ds6_552shlyt5kym0jqhh9d5/T/go-build594486857=/tmp/go-build -gno-record-gcc-switches -fno-common"
</pre></details>
### What did you do?
Test bcrypt base64 decoding function with inputs of different lengths, generated using the corresponding encoding function from the same file
### What did you expect to see?
Successful decoding of all valid base64-encoded inputs
### What did you see instead?
Decoding errors
## Additional Details
### Description
When calculating padding `=`s, the calculation returns 4 when it should return 0.
This edge case is never encountered in bcrypt, since the inputs are always the same length (which is not divisible by 4).
### Reference
This is the existing code (https://github.com/golang/crypto/blob/ac88ee75c92c889b97e05591e9a39b6480c538b3/bcrypt/base64.go#L24)
```
numOfEquals := 4 - (len(src) % 4)
```
### Suggested fix
```
numOfEquals := (4 - (len(src) % 4)) % 4
``` | NeedsInvestigation | low | Critical |
527,707,820 | terminal | ED3 in the alt buffer should erase the main scrollback buffer | # Environment
Windows build number: Version 10.0.18362.356
Also tested with a recent build from source: 171f00c2656731e5ba0185dbbf337389fb7030bd
# Steps to reproduce
1. Start a WSL bash shell in conhost.
2. Do a long directory listing so you get some content in the backscroll buffer.
3. Execute this command: `printf "\e[?1049h\e[3J\e[?1049l"`
That command switches to the alternate buffer (private mode 1049), executes the `ED` escape sequence with parameter 3 (i.e. erase the scrollback buffer), and then switches back to the main buffer.
# Expected behavior
The alternate screen buffer doesn't have a scrollback, so the `ED3` sequence should erase the main scrollback buffer. Then when you switch back to the main screen, there should be no scrollback any more.
This is how the command is implemented in XTerm, and most of the other terminal emulators I've tested.
# Actual behavior
The main scrollback buffer isn't erased.
This is probably somewhat related to issue #3545. I think the alt screen technically has its own scrollback (even though it's zero length), and it's that empty buffer that is being "erased" when `ED3` is executed. It might be better if the alt screen shared the same buffer as the main screen. | Product-Conhost,Area-VT,Issue-Bug,Priority-2 | low | Major |
527,719,640 | tauri | Actually use security framework | **Describe the solution you'd like**
It'd be nice to actually apply the security framework when building.
**Describe alternatives you've considered**
Ignoring security problems won't help.
| help wanted,good first issue | low | Major |
527,720,767 | storybook | UI: some elements have too low color contrast | See https://dequeuniversity.com/rules/axe/3.4/color-contrast?application=axeAPI
## [Links](https://monorepo-bqv356ia7.now.sh/official-storybook/?path=/story/basics-link--styled-links)
### Primary

> Element has insufficient color contrast of 2.62 (foreground color: #1ea7fd, background color: #ffffff, font size: 12.0pt (16px), font weight: normal). Expected contrast ratio of 4.5:1
Suggestion: change primary link color to #027ac5

### Secondary

> Element has insufficient color contrast of 2.84 (foreground color: #999999, background color: #ffffff, font size: 12.0pt (16px), font weight: normal). Expected contrast ratio of 4.5:1
Same for [subheadings](https://monorepo-bqv356ia7.now.sh/official-storybook/?path=/story/ui-sidebar-sidebarsubheading--simple)

Suggestion: change secondary link and subheadings color to #6f6f6f. Change subheadings font-weight to 700 for compensation


## [Selected sidebar item](https://monorepo-bqv356ia7.now.sh/official-storybook/?path=/story/ui-sidebar-sidebaritem--story-selected)

> Element has insufficient color contrast of 2.62 (foreground color: #ffffff, background color: #1ea7fd, font size: 9.8pt (13px), font weight: bold). Expected contrast ratio of 4.5:1
Suggestion 1: change background to #027ac5

Suggestion 2: change test color to #333333, change background to #81cefe

## [JSX highlighting](https://monorepo-bqv356ia7.now.sh/official-storybook/?path=/story/basics-syntaxhighlighter--jsx)

> Element has insufficient color contrast of 3.63 (foreground color: #2b91af, background color: #ffffff, font size: 12.0pt (16px), font weight: normal). Expected contrast ratio of 4.5:1
> Element has insufficient color contrast of 3.99 (foreground color: #ff0000, background color: #ffffff, font size: 12.0pt (16px), font weight: normal). Expected contrast ratio of 4.5:1
Suggestion: change tag highlight color to #26809c, change attribute highlight color to #eb0000

## [Button](https://monorepo-bqv356ia7.now.sh/official-storybook/?path=/story/basics-button--all-buttons)
### Primary

> Element has insufficient color contrast of 3.23 (foreground color: #ffffff, background color: #ff4785, font size: 9.8pt (13px), font weight: bold). Expected contrast ratio of 4.5:1
Suggestion 1: change background to #eb004e

Suggestion2: change color to #333333, change background to #ff80aa

### Secondary
See Selected sidebar item
### Outline primary

> Element has insufficient color contrast of 3.23 (foreground color: #ff4785, background color: #ffffff, font size: 9.8pt (13px), font weight: bold). Expected contrast ratio of 4.5:1
Suggestion: change text color to #eb004e

### Outline secondary
See Link / Secondatry
## [Bagde](https://monorepo-bqv356ia7.now.sh/official-storybook/?path=/story/basics-badge--all-badges)

> Element has insufficient color contrast of 2.14 (foreground color: #66bf3c, background color: #e1ffd4, font size: 8.3pt (11px), font weight: bold). Expected contrast ratio of 4.5:1
> Element has insufficient color contrast of 2.72 (foreground color: #ff4400, background color: #feded2, font size: 8.3pt (11px), font weight: bold). Expected contrast ratio of 4.5:1
Suggestion: change text colors to #427c27 and #bd3200

| accessibility | low | Major |
527,728,551 | rust | Decide the precise rules for operand of &raw [const|mut] | #66671 implements a check on the operand of `&raw [const|mut]` to ensure that it's not a temporary. It's similar to the check used for the left-hand operand of `=`, but it only allows field and index projections when they are based on a place expression, or it there is at least one deref adjustment involved.
It's possible that we want to restrict this to "at least one deref adjustment from a reference" or some other variant that limits the use of this with overloaded deref coercions.
```rust
// The following are all currently OK
Struct A { f: (i32, u32) }
let x: A = ...;
&raw const x;
&raw const x.f;
&raw const x.f.0;
let y = &x;
&raw const y;
&raw const *y;
&raw const (*y).f;
&raw const y.f; // Same as above
&raw const (*y).f.0;
&raw const y.f.0; // Same as above
// There's no distinction between `&T` and `Rc<T>`
use std::rc::Rc;
use std::ops::Deref;
let z = std::rc::Rc::new(x);
&raw const z;
&raw const *(z.deref());
&raw const *z; // Same as above
&raw const (*z).f;
&raw const z.f; // Same as above
&raw const (*z).f.0;
&raw const z.f.0; // Same as above
// The following are not allowed:
&raw const A { ... };
&raw const A { ... }.f;
&raw const A { ... }.f.0;
// These are allowed:
const X: &A = ...;
&raw const *X;
&raw const X.f;
&raw const X.f.0;
// These are allowed, because they can't easily be distinguished from the above. They all result in immediately dangling pointers.
&raw const *(&A { ... });
&raw const (&A { ... }).f;
&raw const (&A { ... }).f.0;
// These are also allowed, and seem even more dubious.
&raw const *Rc::new(A { ... });
&raw const Rc::new(A { ... }).f;
&raw const Rc::new(A { ... }).f.0;
```
cc #64490
cc @Centril @RalfJung @oli-obk
| T-lang,F-raw_ref_op | low | Minor |
527,728,713 | pytorch | Exponentiated gradient descent | ## π Feature
I am interested in contributing an [exponentiated gradient descent optimizer](https://ttic.uchicago.edu/~tewari/lectures/lecture4.pdf) to pytorch.
## Motivation
Optimizing variables / parameters with a simplex constraint on the parameters.
## Pitch
Contribute a new optimizer
## Alternatives
Projected gradient descent.
cc @vincentqb | feature,module: optimizer,triaged | low | Minor |
527,729,280 | rust | std::future: Document that each Future (Stream, etc) must only be used by one task at a time | See https://github.com/snapview/tokio-tungstenite/pull/68#issuecomment-557907777 for context.
I couldn't find anything in the docs about this (maybe I just missed it), but current futures executors / async runtimes only allow remembering one waker per future/etc. So if you use the same in multiple tasks, one of the tasks would potentially never be woken up.
Allowing only one makes sense for performance reasons, so seems like a good idea.
This should be documented somewhere to make this constraint clear. | C-enhancement,T-libs-api,A-docs,A-async-await,AsyncAwait-Triaged | low | Major |
527,729,564 | pytorch | [docs] Missing docs for Storage.from_buffer | https://pytorch.org/docs/master/storage.html#torch.FloatStorage.from_buffer
This method is useful when ingesting byte streams/arrays from external programs like sox or ffmpeg. | module: docs,triaged | low | Major |
527,734,214 | flutter | FlutterPluginRegistry may leak onViewDestroyListeners | Based on the latest dev build (1.12.11), code like this:
``` kotlin
@JvmStatic
fun registerWith(registrar: Registrar) {
val plugin = MyPlugin(registrar.context(), registrar.messenger())
val methodChannel = MethodChannel(registrar.messenger(), "$NAMESPACE/methods")
methodChannel.setMethodCallHandler(plugin)
registrar.addViewDestroyListener {
plugin.onViewDestroyed()
false
}
}
```
May lead to a ever-growing `FlutterPluginRegistry.mViewDestroyListeners` array.
https://github.com/flutter/engine/blob/647a8524b0d722a4a2ce976adb5ed9c981e61b82/shell/platform/android/io/flutter/app/FlutterPluginRegistry.java#L46
When the view is destroyed, would it not suffice to just clear the list of view destroy listeners in https://github.com/flutter/engine/blob/647a8524b0d722a4a2ce976adb5ed9c981e61b82/shell/platform/android/io/flutter/app/FlutterPluginRegistry.java#L239 ?
This can be easily reproduced by switching the "Don't keep activities" setting on in the Android developer settings.

PS: On a side note, it seems now necessary to also unregister the message handler, else that will leak as well:
``` kotlin
registrar.addViewDestroyListener {
registrar.messenger().setMessageHandler("$NAMESPACE/methods", null) // required?
methodChannel.setMethodCallHandler(null)
plugin.onViewDestroyed()
false
}
```
```
% flutter doctor -v
[β] Flutter (Channel dev, v1.12.11, on Mac OS X 10.15.1 19B88, locale en-US)
β’ Flutter version 1.12.11 at /Users/ened/dev/flutter
β’ Framework revision f40dbf8ca0 (2 days ago), 2019-11-23 01:02:54 -0500
β’ Engine revision d1cac77d5a
β’ Dart version 2.7.0
[β] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
β’ Android SDK at /usr/local/share/android-sdk
β’ Android NDK location not configured (optional; useful for native profiling support)
β’ Platform android-29, build-tools 29.0.2
β’ ANDROID_HOME = /usr/local/share/android-sdk
β’ Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
β’ Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
β’ All Android licenses accepted.
[β] Xcode - develop for iOS and macOS (Xcode 11.2)
β’ Xcode at /Applications/Xcode.app/Contents/Developer
β’ Xcode 11.2, Build version 11B52
β’ CocoaPods version 1.8.4
[β] Android Studio (version 3.5)
β’ Android Studio at /Applications/Android Studio.app/Contents
β’ Flutter plugin version 41.1.2
β’ Dart plugin version 191.8593
β’ Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
[β] VS Code (version 1.39.2)
β’ VS Code at /Applications/Visual Studio Code.app/Contents
β’ Flutter extension version 3.6.0
[β] Connected device (1 available)
β’ Pixel 2 β’ HT83G1A03545 β’ android-arm64 β’ Android 10 (API 29)
β’ No issues found!
``` | platform-android,engine,c: performance,perf: memory,P3,team-android,triaged-android | low | Major |
527,737,748 | pytorch | Increasing memory usage on CPU | ## π Bug
I am trying to run a small neural network on the CPU and am finding that the memory used by my script increases without limit. Since my script does not do much besides call the network, the problem appears to be a memory leak within pytorch.
The problem does not occur if I run the model on the gpu.
## To Reproduce
I am attaching a Dockerfile that builds my environment and a script (test.py) that reproduces the issue.
[Dockerfile](https://gist.github.com/varun-intel/e36716c839c9ad5ced4dc08cd274d8e1)
[test.py](https://gist.github.com/varun-intel/08fe43f05533ad2613d97f19c9473d01)
The output of the script is:
[output](https://gist.github.com/varun-intel/22456b07e7229215570d54875c841fe5)
The memory usage continues to increase until the script crashes with an out of memory error.
## Expected behavior
The memory should increase until it reaches a reasonable steady state.
## Environment
Collecting environment information...
PyTorch version: 1.3.1
Is debug build: No
CUDA used to build PyTorch: 10.1.243
OS: Ubuntu 18.04.3 LTS
GCC version: (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0
CMake version: version 3.10.2
Python version: 3.5
Is CUDA available: Yes
CUDA runtime version: 10.0.130
GPU models and configuration: GPU 0: TITAN Xp
Nvidia driver version: 430.26
cuDNN version: /usr/lib/x86_64-linux-gnu/libcudnn.so.7.6.3
Versions of relevant libraries:
[pip3] numpy==1.13.3
[conda] Could not collect
cc @VitalyFedyunin @ngimel @mruberry | module: performance,module: cpu,module: memory usage,triaged | low | Critical |
527,750,065 | rust | E0119 can overwrite E0277 leading to confusing error message | Code:
```rust
trait Trait {}
struct Unsized {
tail: [()],
marker: (),
}
impl<T: Sized> Trait for T {}
impl Trait for Unsized {}
```
error:
```
error[E0119]: conflicting implementations of trait `Trait` for type `Unsized`:
--> src/lib.rs:10:1
|
9 | impl<T: Sized> Trait for T {}
| -------------------------- first implementation here
10 | impl Trait for Unsized {}
| ^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `Unsized`
```
Without `impl Trait for Unsized`:
```
error[E0277]: the size for values of type `[()]` cannot be known at compilation time
--> src/lib.rs:4:5
|
4 | tail: [()],
| ^^^^^^^^^^ doesn't have a size known at compile-time
|
= help: the trait `std::marker::Sized` is not implemented for `[()]`
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
= note: only the last field of a struct may have a dynamically sized type
```
The better behavior would be to
- Make sure that the E0277 is emitted even in the case of other errors.
- When finding an E0277 struct definition, treat it as if it were `?Sized` through the rest of the pipeline. | A-diagnostics,A-DSTs,T-compiler,C-bug | low | Critical |
527,780,079 | godot | Previously opened script's horizontal scrollbars are shifted after application restart | **Godot version:**
v3.2.beta.custom_build.28613ab8c
**OS/device including version:**
Windows 10
**Issue description:**
Godot remembers for each script position of a text cursor. And after restart tries to set position of the horizontal scrollbar so that the text cursor is located at the beginning of the editor space.
Scrollbar should always be at position 0 (or as it was before)

| bug,topic:editor,confirmed,usability | medium | Critical |
527,816,874 | flutter | Unclear message when flutter tool tries to run web specific code in the tester | ## Steps to Reproduce
1. import `dart:html`
2. run flutter test
## Logs
```
Testing started at 10:54 ...
D:\flutter\bin\flutter.bat --no-color test --machine test\flutter_markdown_test.dart
Compiler message:
lib/src/_functions_web.dart:5:8: Error: Not found: 'dart:html'
import 'dart:html'; // ignore: avoid_web_libraries_in_flutter
^
lib/src/_functions_web.dart:34:34: Error: Getter not found: 'window'.
String dirname = p.dirname(window.location.href);
^^^^^^
lib/src/_functions_web.dart:46:32: Error: Getter not found: 'window'.
final String userAgent = window.navigator.userAgent;
^^^^^^
dart:async/stream_controller.dart 597:43 _StreamController.addError
dart:async/stream_controller.dart 864:13 _StreamSinkWrapper.addError
package:stream_channel/src/guarantee_channel.dart 144:14 _GuaranteeSink._addError
package:stream_channel/src/guarantee_channel.dart 135:5 _GuaranteeSink.addError
package:flutter_tools/src/test/flutter_platform.dart 463:27 FlutterPlatform._startTest
===== asynchronous gap ===========================
dart:async/zone.dart 1055:19 _CustomZone.registerUnaryCallback
dart:async-patch/async_patch.dart 73:23 _asyncThenWrapperHelper
package:flutter_tools/src/test/flutter_platform.dart FlutterPlatform._startTest
package:flutter_tools/src/test/flutter_platform.dart 368:36 FlutterPlatform.loadChannel
package:flutter_tools/src/test/flutter_platform.dart 321:46 FlutterPlatform.load
package:test_core/src/runner/loader.dart 224:36 Loader.loadFile.<fn>
===== asynchronous gap ===========================
dart:async/zone.dart 1055:19 _CustomZone.registerUnaryCallback
dart:async-patch/async_patch.dart 73:23 _asyncThenWrapperHelper
package:test_core/src/runner/loader.dart Loader.loadFile.<fn>
package:test_core/src/runner/load_suite.dart 98:31 new LoadSuite.<fn>.<fn>
package:test_api/src/utils.dart 241:5 invoke
package:test_core/src/runner/load_suite.dart 97:7 new LoadSuite.<fn>
package:test_api/src/backend/invoker.dart 392:25 Invoker._onRun.<fn>.<fn>.<fn>.<fn>
dart:async/future.dart 176:37 new Future.<fn>
package:stack_trace/src/stack_zone_specification.dart 209:15 StackZoneSpecification._run
package:stack_trace/src/stack_zone_specification.dart 119:48 StackZoneSpecification._registerCallback.<fn>
dart:async/zone.dart 1122:38 _rootRun
dart:async/zone.dart 1023:19 _CustomZone.run
dart:async/zone.dart 925:7 _CustomZone.runGuarded
dart:async/zone.dart 965:23 _CustomZone.bindCallbackGuarded.<fn>
package:stack_trace/src/stack_zone_specification.dart 209:15 StackZoneSpecification._run
package:stack_trace/src/stack_zone_specification.dart 119:48 StackZoneSpecification._registerCallback.<fn>
dart:async/zone.dart 1126:13 _rootRun
dart:async/zone.dart 1023:19 _CustomZone.run
dart:async/zone.dart 949:23 _CustomZone.bindCallback.<fn>
dart:async-patch/timer_patch.dart 23:15 Timer._createTimer.<fn>
dart:isolate-patch/timer_impl.dart 384:19 _Timer._runTimers
dart:isolate-patch/timer_impl.dart 418:5 _Timer._handleMessage
dart:isolate-patch/isolate_patch.dart 174:12 _RawReceivePortImpl._handleMessage
===== asynchronous gap ===========================
dart:async/zone.dart 1047:19 _CustomZone.registerCallback
dart:async/zone.dart 964:22 _CustomZone.bindCallbackGuarded
dart:async/timer.dart 54:45 new Timer
dart:async/timer.dart 91:9 Timer.run
dart:async/future.dart 174:11 new Future
package:test_api/src/backend/invoker.dart 391:21 Invoker._onRun.<fn>.<fn>.<fn>
dart:async/zone.dart 1126:13 _rootRun
dart:async/zone.dart 1023:19 _CustomZone.run
dart:async/zone.dart 1518:10 _runZoned
dart:async/zone.dart 1465:12 runZoned
package:test_api/src/backend/invoker.dart 378:9 Invoker._onRun.<fn>.<fn>
dart:async/zone.dart 1126:13 _rootRun
dart:async/zone.dart 1023:19 _CustomZone.run
dart:async/zone.dart 1518:10 _runZoned
dart:async/zone.dart 1465:12 runZoned
package:test_api/src/backend/invoker.dart 144:7 Invoker.guard
package:test_api/src/backend/invoker.dart 428:15 Invoker._guardIfGuarded
package:test_api/src/backend/invoker.dart 377:7 Invoker._onRun.<fn>
package:stack_trace/src/chain.dart 101:24 Chain.capture.<fn>
dart:async/zone.dart 1126:13 _rootRun
dart:async/zone.dart 1023:19 _CustomZone.run
dart:async/zone.dart 1518:10 _runZoned
dart:async/zone.dart 1465:12 runZoned
package:stack_trace/src/chain.dart 99:12 Chain.capture
package:test_api/src/backend/invoker.dart 376:11 Invoker._onRun
package:test_api/src/backend/live_test_controller.dart 185:5 LiveTestController._run
package:test_api/src/backend/live_test_controller.dart 40:37 _LiveTest.run
dart:async/future.dart 202:37 new Future.microtask.<fn>
dart:async/zone.dart 1122:38 _rootRun
dart:async/zone.dart 1023:19 _CustomZone.run
dart:async/zone.dart 925:7 _CustomZone.runGuarded
dart:async/zone.dart 965:23 _CustomZone.bindCallbackGuarded.<fn>
dart:async/zone.dart 1126:13 _rootRun
dart:async/zone.dart 1023:19 _CustomZone.run
dart:async/zone.dart 925:7 _CustomZone.runGuarded
dart:async/zone.dart 965:23 _CustomZone.bindCallbackGuarded.<fn>
dart:async/schedule_microtask.dart 43:21 _microtaskLoop
dart:async/schedule_microtask.dart 52:5 _startMicrotaskLoop
dart:isolate-patch/isolate_patch.dart 118:13 _runPendingImmediateCallback
dart:isolate-patch/isolate_patch.dart 175:5 _RawReceivePortImpl._handleMessage
Failed to load "D:\flutter-projects\flutter_markdown\test\flutter_markdown_test.dart":
Compilation failed
Test: D:\flutter-projects\flutter_markdown\test\flutter_markdown_test.dart
Shell: D:\flutter\bin\cache\artifacts\engine\windows-x64\flutter_tester.exe
```
### flutter doctor -v
```
[β] Flutter (Channel master, v1.12.11-pre.9, on Microsoft Windows [Version 10.0.19030.1], locale zh-CN)
β’ Flutter version 1.12.11-pre.9 at D:\flutter
β’ Framework revision f87cbe05b9 (2 days ago), 2019-11-23 03:09:54 -0500
β’ Engine revision 591144dfef
β’ Dart version 2.7.0
[β] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
β’ Android SDK at D:\Android\Sdk
β’ Android NDK location not configured (optional; useful for native profiling support)
β’ Platform android-29, build-tools 29.0.2
β’ Java binary at: D:\Android\Android Studio\jre\bin\java
β’ Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
β’ All Android licenses accepted.
[β] Chrome - develop for the web
β’ Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
[β] Android Studio (version 3.5)
β’ Android Studio at D:\Android\Android Studio
β’ Flutter plugin version 41.1.2
β’ Dart plugin version 191.8593
β’ Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
[β] VS Code (version 1.40.1)
β’ VS Code at C:\Users\Yaerin\AppData\Local\Programs\Microsoft VS Code
β’ Flutter extension version 3.6.0
[β] Connected device (2 available)
β’ Chrome β’ chrome β’ web-javascript β’ Google Chrome 78.0.3904.108
β’ Web Server β’ web-server β’ web-javascript β’ Flutter Tools
β’ No issues found!
```
| a: tests,tool,d: api docs,platform-web,P3,team-web,triaged-web | low | Critical |
527,940,860 | rust | libcore crate docs are out of date regarding panic handling | https://github.com/rust-lang/rust/blob/c9bacb70f0b19d324a548bd7942692ab18d159a4/src/libcore/lib.rs#L20-L39
These docs discuss `rust_begin_panic` and `rust_eh_personality`, which seems outdated. Instead they should probably document the `#[panic_handler]` attribute or link to [the corresponding Nomicon chapter](https://doc.rust-lang.org/nomicon/panic-handler.html). | C-enhancement,T-libs-api,A-docs | low | Minor |
527,946,947 | flutter | Annoying event log messages | Annoying log messages have started to appear constantly on Android Studio regarding missing files of plugins on the `Event Log` window.
## Logs
```
25/11/2019
9:41 Load Settings
Cannot load settings from file 'C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\firebase_messaging-5.1.8\android\firebase_messaging.iml': File C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\firebase_messaging-5.1.8\android\firebase_messaging.iml does not exist
Please correct the file content
9:41 Load Settings
Cannot load settings from file 'C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\sqflite-1.1.7+2\android\sqflite.iml': File C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\sqflite-1.1.7+2\android\sqflite.iml does not exist
Please correct the file content
9:43 Load Settings
Cannot load settings from file 'C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\firebase_messaging-5.1.8\android\firebase_messaging.iml': File C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\firebase_messaging-5.1.8\android\firebase_messaging.iml does not exist
Please correct the file content
9:43 Load Settings
Cannot load settings from file 'C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\sqflite-1.1.7+2\android\sqflite.iml': File C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\sqflite-1.1.7+2\android\sqflite.iml does not exist
Please correct the file content
9:56 Load Settings
Cannot load settings from file 'C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\firebase_analytics-5.0.6\android\firebase_analytics.iml': File C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\firebase_analytics-5.0.6\android\firebase_analytics.iml does not exist
Please correct the file content
9:56 Load Settings
Cannot load settings from file 'C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\flutter_wallet-0.0.2\android\flutter_wallet.iml': File C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\flutter_wallet-0.0.2\android\flutter_wallet.iml does not exist
Please correct the file content
9:56 Load Settings
Cannot load settings from file 'C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\google_maps_flutter-0.5.21+12\android\google_maps_flutter.iml': File C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\google_maps_flutter-0.5.21+12\android\google_maps_flutter.iml does not exist
Please correct the file content
9:56 Load Settings
Cannot load settings from file 'C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\open_file-2.1.1\android\open_file.iml': File C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\open_file-2.1.1\android\open_file.iml does not exist
Please correct the file content
9:56 Load Settings
Cannot load settings from file 'C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\path_provider-1.4.4\android\path_provider.iml': File C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\path_provider-1.4.4\android\path_provider.iml does not exist
Please correct the file content
9:56 Load Settings
Cannot load settings from file 'C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\permission_handler-4.0.0\android\permission_handler.iml': File C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\permission_handler-4.0.0\android\permission_handler.iml does not exist
Please correct the file content
9:56 Load Settings
Cannot load settings from file 'C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\share-0.6.3+1\android\share.iml': File C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\share-0.6.3+1\android\share.iml does not exist
Please correct the file content
9:56 Load Settings
Cannot load settings from file 'C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\shared_preferences-0.5.4+5\android\shared_preferences.iml': File C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\shared_preferences-0.5.4+5\android\shared_preferences.iml does not exist
Please correct the file content
9:56 Load Settings
Cannot load settings from file 'C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\sqflite-1.1.7+2\android\sqflite.iml': File C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\sqflite-1.1.7+2\android\sqflite.iml does not exist
Please correct the file content
9:56 Load Settings
Cannot load settings from file 'C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\uni_links-0.2.0\android\uni_links.iml': File C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\uni_links-0.2.0\android\uni_links.iml does not exist
Please correct the file content
9:56 Load Settings
Cannot load settings from file 'C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\url_launcher-5.2.5\android\url_launcher.iml': File C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\url_launcher-5.2.5\android\url_launcher.iml does not exist
Please correct the file content
9:56 Load Settings
Cannot load settings from file 'C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\firebase_analytics-5.0.6\android\firebase_analytics.iml': File C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\firebase_analytics-5.0.6\android\firebase_analytics.iml does not exist
Please correct the file content
9:56 Load Settings
Cannot load settings from file 'C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\flutter_wallet-0.0.2\android\flutter_wallet.iml': File C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\flutter_wallet-0.0.2\android\flutter_wallet.iml does not exist
Please correct the file content
9:56 Load Settings
Cannot load settings from file 'C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\google_maps_flutter-0.5.21+12\android\google_maps_flutter.iml': File C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\google_maps_flutter-0.5.21+12\android\google_maps_flutter.iml does not exist
Please correct the file content
9:56 Load Settings
Cannot load settings from file 'C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\open_file-2.1.1\android\open_file.iml': File C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\open_file-2.1.1\android\open_file.iml does not exist
Please correct the file content
9:56 Load Settings
Cannot load settings from file 'C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\path_provider-1.4.4\android\path_provider.iml': File C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\path_provider-1.4.4\android\path_provider.iml does not exist
Please correct the file content
9:56 Load Settings
Cannot load settings from file 'C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\permission_handler-4.0.0\android\permission_handler.iml': File C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\permission_handler-4.0.0\android\permission_handler.iml does not exist
Please correct the file content
9:56 Load Settings
Cannot load settings from file 'C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\share-0.6.3+1\android\share.iml': File C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\share-0.6.3+1\android\share.iml does not exist
Please correct the file content
9:56 Load Settings
Cannot load settings from file 'C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\shared_preferences-0.5.4+5\android\shared_preferences.iml': File C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\shared_preferences-0.5.4+5\android\shared_preferences.iml does not exist
Please correct the file content
9:56 Load Settings
Cannot load settings from file 'C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\sqflite-1.1.7+2\android\sqflite.iml': File C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\sqflite-1.1.7+2\android\sqflite.iml does not exist
Please correct the file content
9:56 Load Settings
Cannot load settings from file 'C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\uni_links-0.2.0\android\uni_links.iml': File C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\uni_links-0.2.0\android\uni_links.iml does not exist
Please correct the file content
9:56 Load Settings
Cannot load settings from file 'C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\url_launcher-5.2.5\android\url_launcher.iml': File C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\url_launcher-5.2.5\android\url_launcher.iml does not exist
Please correct the file content
10:00 Load Settings
Cannot load settings from file 'C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\firebase_analytics-5.0.6\android\firebase_analytics.iml': File C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\firebase_analytics-5.0.6\android\firebase_analytics.iml does not exist
Please correct the file content
10:00 Load Settings
Cannot load settings from file 'C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\flutter_wallet-0.0.2\android\flutter_wallet.iml': File C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\flutter_wallet-0.0.2\android\flutter_wallet.iml does not exist
Please correct the file content
10:00 Load Settings
Cannot load settings from file 'C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\google_maps_flutter-0.5.21+12\android\google_maps_flutter.iml': File C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\google_maps_flutter-0.5.21+12\android\google_maps_flutter.iml does not exist
Please correct the file content
10:00 Load Settings
Cannot load settings from file 'C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\open_file-2.1.1\android\open_file.iml': File C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\open_file-2.1.1\android\open_file.iml does not exist
Please correct the file content
10:00 Load Settings
Cannot load settings from file 'C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\path_provider-1.4.4\android\path_provider.iml': File C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\path_provider-1.4.4\android\path_provider.iml does not exist
Please correct the file content
10:00 Load Settings
Cannot load settings from file 'C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\permission_handler-4.0.0\android\permission_handler.iml': File C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\permission_handler-4.0.0\android\permission_handler.iml does not exist
Please correct the file content
10:00 Load Settings
Cannot load settings from file 'C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\share-0.6.3+1\android\share.iml': File C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\share-0.6.3+1\android\share.iml does not exist
Please correct the file content
10:00 Load Settings
Cannot load settings from file 'C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\shared_preferences-0.5.4+5\android\shared_preferences.iml': File C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\shared_preferences-0.5.4+5\android\shared_preferences.iml does not exist
Please correct the file content
10:00 Load Settings
Cannot load settings from file 'C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\sqflite-1.1.7+2\android\sqflite.iml': File C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\sqflite-1.1.7+2\android\sqflite.iml does not exist
Please correct the file content
10:00 Load Settings
Cannot load settings from file 'C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\uni_links-0.2.0\android\uni_links.iml': File C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\uni_links-0.2.0\android\uni_links.iml does not exist
Please correct the file content
10:00 Load Settings
Cannot load settings from file 'C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\url_launcher-5.2.5\android\url_launcher.iml': File C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\url_launcher-5.2.5\android\url_launcher.iml does not exist
Please correct the file content
10:04 Load Settings
Cannot load settings from file 'C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\firebase_analytics-5.0.6\android\firebase_analytics.iml': File C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\firebase_analytics-5.0.6\android\firebase_analytics.iml does not exist
Please correct the file content
10:04 Load Settings
Cannot load settings from file 'C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\flutter_wallet-0.0.2\android\flutter_wallet.iml': File C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\flutter_wallet-0.0.2\android\flutter_wallet.iml does not exist
Please correct the file content
10:04 Load Settings
Cannot load settings from file 'C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\google_maps_flutter-0.5.21+12\android\google_maps_flutter.iml': File C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\google_maps_flutter-0.5.21+12\android\google_maps_flutter.iml does not exist
Please correct the file content
10:04 Load Settings
Cannot load settings from file 'C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\open_file-2.1.1\android\open_file.iml': File C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\open_file-2.1.1\android\open_file.iml does not exist
Please correct the file content
10:04 Load Settings
Cannot load settings from file 'C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\path_provider-1.4.4\android\path_provider.iml': File C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\path_provider-1.4.4\android\path_provider.iml does not exist
Please correct the file content
10:04 Load Settings
Cannot load settings from file 'C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\permission_handler-4.0.0\android\permission_handler.iml': File C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\permission_handler-4.0.0\android\permission_handler.iml does not exist
Please correct the file content
10:04 Load Settings
Cannot load settings from file 'C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\share-0.6.3+1\android\share.iml': File C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\share-0.6.3+1\android\share.iml does not exist
Please correct the file content
10:04 Load Settings
Cannot load settings from file 'C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\shared_preferences-0.5.4+5\android\shared_preferences.iml': File C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\shared_preferences-0.5.4+5\android\shared_preferences.iml does not exist
Please correct the file content
10:04 Load Settings
Cannot load settings from file 'C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\sqflite-1.1.7+2\android\sqflite.iml': File C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\sqflite-1.1.7+2\android\sqflite.iml does not exist
Please correct the file content
10:04 Load Settings
Cannot load settings from file 'C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\uni_links-0.2.0\android\uni_links.iml': File C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\uni_links-0.2.0\android\uni_links.iml does not exist
Please correct the file content
10:04 Load Settings
Cannot load settings from file 'C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\url_launcher-5.2.5\android\url_launcher.iml': File C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\url_launcher-5.2.5\android\url_launcher.iml does not exist
Please correct the file content
10:05 Load Settings
Cannot load settings from file 'C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\firebase_analytics-5.0.6\android\firebase_analytics.iml': File C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\firebase_analytics-5.0.6\android\firebase_analytics.iml does not exist
Please correct the file content
10:05 Load Settings
Cannot load settings from file 'C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\flutter_wallet-0.0.2\android\flutter_wallet.iml': File C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\flutter_wallet-0.0.2\android\flutter_wallet.iml does not exist
Please correct the file content
10:05 Load Settings
Cannot load settings from file 'C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\google_maps_flutter-0.5.21+12\android\google_maps_flutter.iml': File C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\google_maps_flutter-0.5.21+12\android\google_maps_flutter.iml does not exist
Please correct the file content
10:05 Load Settings
Cannot load settings from file 'C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\open_file-2.1.1\android\open_file.iml': File C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\open_file-2.1.1\android\open_file.iml does not exist
Please correct the file content
10:05 Load Settings
Cannot load settings from file 'C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\path_provider-1.4.4\android\path_provider.iml': File C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\path_provider-1.4.4\android\path_provider.iml does not exist
Please correct the file content
10:05 Load Settings
Cannot load settings from file 'C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\permission_handler-4.0.0\android\permission_handler.iml': File C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\permission_handler-4.0.0\android\permission_handler.iml does not exist
Please correct the file content
10:05 Load Settings
Cannot load settings from file 'C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\share-0.6.3+1\android\share.iml': File C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\share-0.6.3+1\android\share.iml does not exist
Please correct the file content
10:05 Load Settings
Cannot load settings from file 'C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\shared_preferences-0.5.4+5\android\shared_preferences.iml': File C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\shared_preferences-0.5.4+5\android\shared_preferences.iml does not exist
Please correct the file content
10:05 Load Settings
Cannot load settings from file 'C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\sqflite-1.1.7+2\android\sqflite.iml': File C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\sqflite-1.1.7+2\android\sqflite.iml does not exist
Please correct the file content
10:05 Load Settings
Cannot load settings from file 'C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\uni_links-0.2.0\android\uni_links.iml': File C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\uni_links-0.2.0\android\uni_links.iml does not exist
Please correct the file content
10:05 Load Settings
Cannot load settings from file 'C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\url_launcher-5.2.5\android\url_launcher.iml': File C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\url_launcher-5.2.5\android\url_launcher.iml does not exist
Please correct the file content
10:07 Load Settings
Cannot load settings from file 'C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\firebase_analytics-5.0.6\android\firebase_analytics.iml': File C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\firebase_analytics-5.0.6\android\firebase_analytics.iml does not exist
Please correct the file content
10:07 Load Settings
Cannot load settings from file 'C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\flutter_wallet-0.0.2\android\flutter_wallet.iml': File C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\flutter_wallet-0.0.2\android\flutter_wallet.iml does not exist
Please correct the file content
10:07 Load Settings
Cannot load settings from file 'C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\google_maps_flutter-0.5.21+12\android\google_maps_flutter.iml': File C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\google_maps_flutter-0.5.21+12\android\google_maps_flutter.iml does not exist
Please correct the file content
10:07 Load Settings
Cannot load settings from file 'C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\open_file-2.1.1\android\open_file.iml': File C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\open_file-2.1.1\android\open_file.iml does not exist
Please correct the file content
10:07 Load Settings
Cannot load settings from file 'C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\path_provider-1.4.4\android\path_provider.iml': File C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\path_provider-1.4.4\android\path_provider.iml does not exist
Please correct the file content
10:07 Load Settings
Cannot load settings from file 'C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\permission_handler-4.0.0\android\permission_handler.iml': File C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\permission_handler-4.0.0\android\permission_handler.iml does not exist
Please correct the file content
10:07 Load Settings
Cannot load settings from file 'C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\share-0.6.3+1\android\share.iml': File C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\share-0.6.3+1\android\share.iml does not exist
Please correct the file content
10:07 Load Settings
Cannot load settings from file 'C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\shared_preferences-0.5.4+5\android\shared_preferences.iml': File C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\shared_preferences-0.5.4+5\android\shared_preferences.iml does not exist
Please correct the file content
10:07 Load Settings
Cannot load settings from file 'C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\sqflite-1.1.7+2\android\sqflite.iml': File C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\sqflite-1.1.7+2\android\sqflite.iml does not exist
Please correct the file content
10:07 Load Settings
Cannot load settings from file 'C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\uni_links-0.2.0\android\uni_links.iml': File C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\uni_links-0.2.0\android\uni_links.iml does not exist
Please correct the file content
10:07 Load Settings
Cannot load settings from file 'C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\url_launcher-5.2.5\android\url_launcher.iml': File C:\Users\Cristian\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\url_launcher-5.2.5\android\url_launcher.iml does not exist
Please correct the file content
```
## Flutter doctor
```
[β] Flutter (Channel master, v1.12.12-pre.4, on Microsoft Windows [VersiΓΒ³n 10.0.18363.476], locale es-ES)
β’ Flutter version 1.12.12-pre.4 at C:\src\flutter
β’ Framework revision bae92c32e5 (3 hours ago), 2019-11-24 22:29:28 -0800
β’ Engine revision b6b54fd606
β’ Dart version 2.7.0
[β] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
β’ Android SDK at C:\Users\Cristian\AppData\Local\Android\sdk
β’ Android NDK location not configured (optional; useful for native profiling support)
β’ Platform android-29, build-tools 29.0.2
β’ Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
β’ Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
β’ All Android licenses accepted.
[β] Android Studio (version 3.5)
β’ Android Studio at C:\Program Files\Android\Android Studio
β’ Flutter plugin version 41.1.2
β’ Dart plugin version 191.8593
β’ Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
[β] Connected device (1 available)
β’ ONEPLUS A5000 β’ f2eb43ee β’ android-arm64 β’ Android 9 (API 28)
β’ No issues found!
```
| c: regression,platform-android,tool,platform-windows,P3,team-android,triaged-android | medium | Major |
527,974,248 | pytorch | Conv2d: Inconsistent results on Raspberry Pi 3B | ## π Bug
The problem is the result after a convolution layer. With some kernel sizes like (3, 3), only the first channel have expected values, the other have random values.
I try with Pyotrch 1.4.0 which I build and unofficial wheel of Pytorch 1.3.0 on Raspberry pi 3B and 3B+
## To Reproduce
Steps to reproduce the behavior:
1. Create a zero tensor
2. Create a Conv2d with a kernel size of 3 and 3 output channels
3. Apply the layer to the tensor
```
import torch
import torch.nn as nn
tensor = torch.zeros([1, 1, 10, 14]).float()
conv1 = nn.Conv2d(in_channels=1, out_channels=3, kernel_size=3)
print(conv1(tensor))
```
## Expected behavior
I expect to get tensor the same value on each channels, the offset.
Then the first channel have this value, the second and third have theses values : 2.9514e+29, 3.1036e+27, 2.0706e-19 for examples.
## Environment
PyTorch version: 1.4.0a0+e05e90c
Is debug build: No
CUDA used to build PyTorch: None
OS: Raspbian GNU/Linux 10 (buster)
GCC version: (Raspbian 8.3.0-6+rpi1) 8.3.0
CMake version: version 3.13.4
Python version: 3.7
Is CUDA available: No
CUDA runtime version: No CUDA
GPU models and configuration: No CUDA
Nvidia driver version: No CUDA
cuDNN version: No CUDA
Versions of relevant libraries:
[pip3] numpy==1.17.4
[pip3] torch==1.4.0a0+e05e90c
## Additional context
I try with a kernel size of 4, the result is consistent but if I set the weight parameters, the output get the same problem.
| module: convolution,triaged | low | Critical |
528,049,073 | pytorch | Unexpected difference torch.multiprocessing.manager.queue and torch.multiprocessing.queue | It seems that torch.multiprocessing.Manager.Queue doesn't support multiprocessor sharing of cuda tensors.
Running the repro below throws the exception:
> RuntimeError: Attempted to send CUDA tensor received from another process; this is not currently supported. Consider cloning before sending.
```
import torch
import torch.multiprocessing as mp
def produce(in_Q, out_Q):
while True:
t = in_Q.get()
v = torch.tensor(t, device='cuda')
out_Q.put(v)
def consume(out_Q):
res = out_Q.get()
return res
def main():
if False: #-----------Change this to True for the expected behavior queue --------------------
qsrc = mp
else:
manager = mp.Manager()
qsrc = manager
in_Q = qsrc.Queue(10)
out_Q = qsrc.Queue(10)
consumer = mp.Process(target=consume, args=[out_Q])
consumer.start()
producer = mp.Process(target=produce, args=(in_Q, out_Q))
producer.start()
in_Q.put(1)
consumer.join()
print('done.')
if __name__ == "__main__":
main()
```
cc @ngimel | module: multiprocessing,module: cuda,triaged | low | Critical |
528,054,736 | opencv | Set CAP_PROP_ZOOM not working (python & directshow) | ### System information (version)
- OpenCV => 4.1.2 (Python 3.7)
- Operating System / Platform => Windows 10 64 Bit
- Hardware => Surface Book Pro
##### Detailed description
Using the directshow framework of OpenCV's Video-Module, it seems to be impossible to set the zoom-value like so:
`self.vidcap.set(cv2.CAP_PROP_ZOOM, zoomValue)`
This always returns 'false' no matter what values are put in.
Opening the settings dialog with
`self.vidcap.set(cv2.CAP_PROP_SETTINGS, True)`
it is possible to zoom, by using the slider. Using the slider and afterwards obtaining the zoom value with `self.vidcap.get(cv2.CAP_PROP_ZOOM)` reports the correct values, which were set with the slider in the settings dialog.
##### Steps to reproduce
```
import cv2
self.vidcap = cv2.VideoCapture()
self.vidcap.open(deviceID + cv2.CAP_DSHOW)
self.vidcap.set(cv2.CAP_PROP_SETTINGS, True)
self.vidcap.set(cv2.CAP_PROP_ZOOM, 10.0) # <-- this always returns false and does nothing
```
| bug,priority: low,category: videoio(camera),platform: win32 | low | Minor |
528,062,650 | TypeScript | Enum used as object key is not exported in declaration | **TypeScript Version:** 3.8.0-dev.20191125 (@next), but was present in 3.4 already
**Search Terms:**
- typescript ts4023
- Exported variable has or is using name from external module but cannot be named
- typescript enum declaration
**Code**
Selectors.ts
```ts
import {State} from './Store';
export const pageUiSelector = (state: State) => state.ui;
```
Store.ts
```ts
export enum Pages {
dashboard = 'dashboard',
}
export interface State {
ui: {
[Pages.dashboard]: {
selectedRow: number | null;
};
};
}
```
tsconfig.json
```json
{
"compilerOptions": {
"baseUrl": ".",
"declaration": true,
"module": "commonjs",
"rootDir": ".",
"strict": true,
"target": "es2017"
}
}
```
**Expected behavior:**
No error.
**Actual behavior:**
This error is thrown:
> Selectors.ts:2:14 - error TS4023: Exported variable 'pageUiSelector' has or is using name 'Pages' from external module "xxx/Store" but cannot be named.
**Details:**
This error only occurs when exporting the given selector and when using `--declaration`. The probable cause is that the enum values used as object key is not properly detected and added to the exported files.
If the enum is not used as object key, but as object value, the error does not occur.
If the content of Store.ts is moved to Selectors.ts, the error does not occur.
This code works as expected in the ts-loader via webpack, however `tsc` and PhpStorm report this as error. | Bug,Domain: Declaration Emit | low | Critical |
528,098,329 | flutter | Navigation gestures should ignore Stylus and Apple Pencil | In iOS it is standard for the UI to ignore Apple Pencil input in navigation gestures, like swiping back, or in some cases (drawable canvases) scrolling.
I assume this would be potentially dependent on #38135 | c: new feature,framework,f: cupertino,f: routes,f: gestures,c: proposal,P3,team-design,triaged-design | low | Minor |
528,103,437 | pytorch | There is no support for `weight_decay`/`momentum` in SGD for sparse tensors. | ## π Feature
I don't see why there is no support for `weight_decay` and `momentum` in SGD. There is a PR on this feature (#1305), but it has been never merged with no explanation. It looks like really easy patch to be implemented. Or maybe there is no possible way to provide the exact same semantics with sparse tensors because of all the constraints on `coalesced` sparse tensors for some ops?
Why not defining it in the separate class like in `SparseAdam`?
cc @vincentqb | module: sparse,triaged,enhancement | low | Major |
528,108,632 | rust | Coercion from non-capturing closure to fn ptr fails when return type is `!` | Usually, non-capturing closures can be coerced to `fn` ptrs. But somehow that seems to fail when the return type is `!`:
```rust
fn magic<R, F: FnOnce() -> R>(f: F) -> F { f }
fn main() {
let f1 = magic(|| {}) as fn() -> (); // works fine
let f2 = magic(|| loop {}) as fn() -> !; // errors
}
```
The error is
```
error[E0605]: non-primitive cast: `[closure@src/main.rs:5:21: 5:31]` as `fn() -> !`
--> src/main.rs:5:14
|
5 | let f2 = magic(|| loop {}) as fn() -> !;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: an `as` expression can only be used to convert between primitive types. Consider using the `From` trait
```
This fails even on nightly, where `!` should be stable as a type.
Curiously, this works:
```rust
let f2: fn() -> ! = || loop {};
```
Cc @Centril | A-closures,T-compiler,C-bug,A-coercions | low | Critical |
528,129,072 | pytorch | last updated timestamp | ## π Documentation
<!-- A clear and concise description of what content in https://pytorch.org/docs is an issue. If this has to do with the general https://pytorch.org website, please file an issue at https://github.com/pytorch/pytorch.github.io/issues/new/choose instead. If this has to do with https://pytorch.org/tutorials, please file an issue at https://github.com/pytorch/tutorials/issues/new -->
Is it possible to provide a timestamp to when a tutorial was last updated in the docs, this could also be applied to modules in docs, like
```
nn.Flatten
last updated - time
``` | module: docs,triaged,enhancement | low | Minor |
528,130,642 | pytorch | affine_grid CUDA / cuDNN support for Half removed in 1.3.x | ## π Bug
PR https://github.com/pytorch/pytorch/pull/24929 refactored the `affine_grid` code to remove all cuDNN dispatch. This had the side effect of dropping support for `Half` / `float16` in the CUDA / cuDNN case. The cuDNN code supported Half, but the native torch implementation does not. Users may see:
```
RuntimeError: "linspace_cuda" not implemented for 'Half'
```
Because `linspace_cuda` does not include dispatch support for `Half` / `float16` (https://github.com/pytorch/pytorch/blob/v1.3.1/aten/src/ATen/native/cuda/RangeFactories.cu#L55)
The old cuDNN routine is still exposed (as `torch.cudnn_affine_grid_generator()`), so can be used directly with Half, but Half support is not available via the `affine_grid()` routine.
## To Reproduce
```
import torch
import torch.nn.functional as F
theta = torch.randn(32, 2, 3, device='cuda', dtype=torch.float16)
size = (32, 8, 32, 32)
output = torch.cudnn_affine_grid_generator(theta, *size) # works
output = F.affine_grid(theta, size) # fails
```
```
$ python foo
...
File "foo", line 8, in <module>
output = F.affine_grid(theta, size) # fails
File "/.../python3.6/site-packages/torch/nn/functional.py", line 2785, in affine_grid
return torch.affine_grid_generator(theta, size, align_corners)
RuntimeError: "linspace_cuda" not implemented for 'Half'
```
## Expected behavior
Would be nice to re-instate support for Half in the CUDA flavor of `affine_grid()`.
## Environment
- PyTorch Version (e.g., 1.0): 1.3.1
- OS (e.g., Linux): Linux
- How you installed PyTorch (`conda`, `pip`, source): local-built conda package
- Build command you used (if compiling from source): ...
- Python version: Python 3.6.9 :: Anaconda, Inc.
- CUDA/cuDNN version: 10.1.243 / 7.6.3
- GPU models and configuration: NVIDIA Tesla V100 / 16GB
- Any other relevant information:
cc @ngimel | module: cudnn,module: cuda,triaged | low | Critical |
528,131,566 | PowerToys | USB bootable creation | # Summary of the new feature/enhancement
<!-- A clear and concise description of what the problem is that the new feature would solve.
Describe why and how a user would use this new functionality (if applicable). -->
add two new abilities to Windows to allow users to easily create bootable USB media
# Proposed technical implementation details (optional)
<!-- A clear and concise description of what you want to happen. -->
1) context menu on .iso image files to "create USB media"
2) context menu on USB media to "Write image to drive"
Both options would open the same program window, with 1) above pre-populating the selection field with the iso image; 2) above requiring manual selection of the image to write to the drive.
Options could include "make bootable", "(u)EFI or BIOS", "MBR or GPT" (if the drive is applicable) and possibly a "Create DOS bootable" to bring back this functionality - this is often needed for server admins (and even PC enthusiasts) to create BIOS & Firmware update media, and would be very helpful. This would use MS-DOS 6.22, or users could specify any other DOS which they have legally obtained. Additionally, a "Create Linux bootable" would also be useful, and could even tie-in with WSL, and could be used to create an Ubuntu LTS network install media (which would download and write Ubuntu's mini.iso image to the disc in a one-click operation) For that matter, adding in the ability to download/write Hyper-V Server 2016/19 could be useful as well. | Idea-New PowerToy | low | Major |
528,137,920 | godot | AudioStreamMicrophone is broken on iOS hardware | **Godot version:**
v3.1.1.stable.official
**OS/device including version:**
iOS 13.1
**Issue description:**
The audio input (Microphone) on iOS hardware does not work. It works on the simulator.
There are three separate issues causing this:
1. no microphone permission string in info.plist in XCode export by default (already reported in issue #30307)
2. the incorrect AVAudioSession.AudioSessionCategory is set at startup in app_delegate.mm. It works when changed to AVAudioSessionCategoryPlayAndRecord, ie:
```[[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryPlayAndRecord error:nil]; ```
Maybe this should be configurable from the Godot export settings, or inferred from the sound bus usage?
3. a "-50" error from AudioUnitRender in audio_driver_coreaudio.cpp whenever microphone input is enabled. This is because bufferList.mBuffers[0].mDataByteSize is too small, since there is a mismatch between the capture buffer format and the audio device.
**Steps to reproduce:**
1. Download minimal reproduction project below
2. Disable mute on the bus panel in Godot to ensure audio input and output occurs simultaneously.
3. Export to iOS build
4. Install .ipa on iOS hardware, and the app will fail to start or record.
5. Open XCode and install on simulator - observe that audio recording works properly.
**Minimal reproduction project:**
This project will trigger it on iOS hardware (but works fine on the simulator). You may need to unmute audio on the "Record" bus, so that audio is input and output simultaneously:
https://github.com/godotengine/godot-demo-projects/tree/master/audio/mic_record
| bug,platform:ios,topic:porting,confirmed,topic:audio | low | Critical |
528,155,875 | pytorch | Codegen refactoring master task | This is the master task for all known codegen issues. The current state of our codegen is hard to maintain, it has a fair amount of bugs, hacks and hard coded logic which is not documented anywhere and requires a lot of domain knowledge.
Known Issues:
- [ ] TensorOptions. Logic around TensorOptions manipulations is probably the hardest and the most confusing part of the whole codegen. In order to add a new entry to TensorOptions, one would have to make a big set of changes in pretty much every code gen script. It has to be refactored and cleaned up.
- [ ] Some of the generated python bindings are wrong. As an example, take a look at `THPVariable_empty_like` or`THPVariable_randn_like` in python_torch_functions.cpp. For one of the overloads, `requires_grad` will be ignored due to wrong arg index.
```
>>> a = torch.ones(2, 3, requires_grad=True)
>>> print(torch.rand_like(a).requires_grad)
False
```
- [ ] All factory methods in native_functions.yaml should have the same schema with regards to Tensor Options. [issue](https://github.com/pytorch/pytorch/issues/30763)
- [ ] **Add `requires_grad` to native_functions.yaml and potentially to TensorOptions object**
Ideally, `requires_grad` has to be added to all function in native_functions.yaml that have TensorOptions in it. Its not the case right now so there are many places in code gen that add `requires_grad` on a fly which adds significant complexity to overall logic. [Related Issue](https://github.com/pytorch/pytorch/issues/30761)
- [ ] **Fix processing default values from native_functions.yaml**
As an example, take a look at `tril_indices` / `triu_indices`, both have special logic around code gen to respect the default value.
- [ ] Look into how TensorOptions behaves when dtype is not set and the call to .dtype() is made. you get the current default dtype, which is questionable. This causes hack around `arange` in pybind layer (python_torch_functions.cpp)
- [ ] Move all code gen scripts and related utility scrips to one place.
- [ ] Add high level documentation which will describe what is being used as an input, what scripts are producing what and why. Without knowledge transfer or prior experience it takes a while to figure it all out.
- [ ] Bad overload order for zeros_like. [Issue](https://github.com/pytorch/pytorch/issues/19685)
-----------------
Once this [stack](https://github.com/pytorch/pytorch/pull/30983) lands, all these issues will make sense:
- [ ] Calling `.is_pinned()` from C++ code causes exception in case of CUDA tensor.
See basic.cpp
- [ ] **Use only optional version of tensor options when getting them from TensorOptions object**
There is a huge difference in behavior between calling `TensorOptions.dtype()` and `TensorOptions.dtype_opt()`. Thats true for all tensor options. Ideally we want to use only `.*_opt()` calls but due to legacy reasons we cant do that right away. This should be cleaned up.
- [ ] **Remove special code template for `.to` from function_wrapper.py**
When calling to `.to` we expect unset `requires_grad`. There is special template that checks for that. We should come up with a better solution.
- [ ] We should be able to calculate backend without creating a TO object. see TensorFactories.cu
- [ ] **All schemas in native_functions.yaml that have TensorOptions should be have optional ScalarType, Layout, Device and pin memory**
There are several functions that dont follow this rule which causes several hacks in the code base. This is closely related to issue: _Use only optional version of tensor options when getting them from TensorOptions object_ which is described above.
- [ ] **Overload TensorOptions `merge_in()` to accept uncollapsed TensorOptions**
As we are moving away from TensorOptions object we should introduce overload for `merge_in()` which will work with optional dtype, layout, device and pin_memory options.
-----------------
TODO:
- Check if hard coded pieces can be removed from codegen templates.
- Clean up dead code from codeine scripts | triaged | low | Critical |
528,179,084 | material-ui | [Autocomplete] Automatic tokenization with delimiter | I am currently working with the freesolo Autocomplete and my particular use case requires tags to be created when commas or spaces follow the input text. Autocomplete currently creates tags on the Enter event, but I don't think there is anything built into Autocomplete yet that supports tag creation on any other event. I'm wondering if I'm missing anything, or if I'm not, how could I approach this problem?
Currently, I'm attempting to use the `onInputChange` attribute in Autocomplete to capture the string coming in. I check that string for commas and spaces, and on a successful find of one of those characters I manually fire off the Enter event using some native JS code. This works in some cases, but not in all cases and accounting for all cases is becoming tedious. This approach seems like it's prone to a lot of issues, and I'm not convinced it's the best way to go about implementing tag creation on different events. Looking for some thoughts. Thanks | new feature,waiting for π,component: autocomplete | medium | Critical |
528,255,263 | rust | Rustdoc unexpectedly de-aliases type aliases in some situations | Here's a relatively minimal example that demonstrates the problem:
```rust
pub type Color1 = (u8, u8, u8, u8);
pub struct Color2 {
r: u8,
g: u8,
b: u8,
a: u8,
}
impl Color2 {
pub fn new_with_alpha(r: u8, g: u8, b: u8, a: u8) -> Self {
Self { r, g, b, a }
}
}
impl From<Color2> for Color1 {
fn from(c: Color2) -> Self {
(c.r, c.g, c.b, c.a)
}
}
impl From<Color1> for Color2 {
fn from((r, g, b, a): Color1) -> Self {
Self::new_with_alpha(r, g, b, a)
}
}
```
If you run `cargo doc` on this, you'll get this:

As you can see, it says `From<(u8, u8, u8, u8)> for Color2`, despite saying `Color1` everywhere else, including on the `fn from(...)` in the `From` implementation. I expected to get `Color1` in the `From<...>` too. | T-rustdoc,C-bug | low | Minor |
528,269,697 | flutter | Android Cursor Pointer is off center | ## Steps to Reproduce
Steps to reproduce
1. create new project flutter create -i swift -a kotlin cursor_pointer
2. add a text field
<details>
<summary>code sample</summary>
```import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
// This is the theme of your application.
//
// Try running your application with "flutter run". You'll see the
// application has a blue toolbar. Then, without quitting the app, try
// changing the primarySwatch below to Colors.green and then invoke
// "hot reload" (press "r" in the console where you ran "flutter run",
// or simply save your changes to "hot reload" in a Flutter IDE).
// Notice that the counter didn't reset back to zero; the application
// is not restarted.
primarySwatch: Colors.blue,
),
home: MyHomePage(title: 'Flutter Demo Home Page'),
);
}
}
class MyHomePage extends StatefulWidget {
MyHomePage({Key key, this.title}) : super(key: key);
// This widget is the home page of your application. It is stateful, meaning
// that it has a State object (defined below) that contains fields that affect
// how it looks.
// This class is the configuration for the state. It holds the values (in this
// case the title) provided by the parent (in this case the App widget) and
// used by the build method of the State. Fields in a Widget subclass are
// always marked "final".
final String title;
@override
_MyHomePageState createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
int _counter = 0;
void _incrementCounter() {
setState(() {
// This call to setState tells the Flutter framework that something has
// changed in this State, which causes it to rerun the build method below
// so that the display can reflect the updated values. If we changed
// _counter without calling setState(), then the build method would not be
// called again, and so nothing would appear to happen.
_counter++;
});
}
@override
Widget build(BuildContext context) {
// This method is rerun every time setState is called, for instance as done
// by the _incrementCounter method above.
//
// The Flutter framework has been optimized to make rerunning build methods
// fast, so that you can just rebuild anything that needs updating rather
// than having to individually change instances of widgets.
return Scaffold(
appBar: AppBar(
// Here we take the value from the MyHomePage object that was created by
// the App.build method, and use it to set our appbar title.
title: Text(widget.title),
),
body: Center(
// Center is a layout widget. It takes a single child and positions it
// in the middle of the parent.
child: Column(
// Column is also a layout widget. It takes a list of children and
// arranges them vertically. By default, it sizes itself to fit its
// children horizontally, and tries to be as tall as its parent.
//
// Invoke "debug painting" (press "p" in the console, choose the
// "Toggle Debug Paint" action from the Flutter Inspector in Android
// Studio, or the "Toggle Debug Paint" command in Visual Studio Code)
// to see the wireframe for each widget.
//
// Column has various properties to control how it sizes itself and
// how it positions its children. Here we use mainAxisAlignment to
// center the children vertically; the main axis here is the vertical
// axis because Columns are vertical (the cross axis would be
// horizontal).
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Text(
'You have pushed the button this many times:',
),
Text(
'$_counter',
style: Theme.of(context).textTheme.display1,
),
TextField(),
],
),
),
floatingActionButton: FloatingActionButton(
onPressed: _incrementCounter,
tooltip: 'Increment',
child: Icon(Icons.add),
), // This trailing comma makes auto-formatting nicer for build methods.
);
}
}
```
</details>

Occurs on all android devices
<details>
<summary>logs</summary>
```
jasons-mbp:cursor_pointer jasonzheng$ flutter run --verbose
[ +22 ms] executing: [/Volumes/Data/Sources/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +42 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[ ] e70236e36ce1d32067dc68eb55519ec3e14b6b01
[ ] executing: [/Volumes/Data/Sources/flutter/] git describe --match v*.*.* --first-parent --long --tags
[ +19 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags
[ ] v1.10.7-0-ge70236e36
[ +7 ms] executing: [/Volumes/Data/Sources/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[ +13 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[ ] origin/beta
[ ] executing: [/Volumes/Data/Sources/flutter/] git ls-remote --get-url origin
[ +11 ms] Exit code 0 from: git ls-remote --get-url origin
[ ] https://github.com/flutter/flutter.git
[ +62 ms] executing: [/Volumes/Data/Sources/flutter/] git rev-parse --abbrev-ref HEAD
[ +12 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ ] beta
[ +14 ms] executing: sw_vers -productName
[ +27 ms] Exit code 0 from: sw_vers -productName
[ ] Mac OS X
[ ] executing: sw_vers -productVersion
[ +23 ms] Exit code 0 from: sw_vers -productVersion
[ ] 10.14.6
[ ] executing: sw_vers -buildVersion
[ +26 ms] Exit code 0 from: sw_vers -buildVersion
[ ] 18G103
[ +37 ms] executing: /usr/bin/xcode-select --print-path
[ +17 ms] Exit code 0 from: /usr/bin/xcode-select --print-path
[ ] /Applications/Xcode.app/Contents/Developer
[ +1 ms] executing: /usr/bin/xcodebuild -version
[ +125 ms] Exit code 0 from: /usr/bin/xcodebuild -version
[ +3 ms] Xcode 11.2.1
Build version 11B500
[ +63 ms] executing: /Users/jasonzheng/Library/Android/sdk/platform-tools/adb devices -l
[ +8 ms] Exit code 0 from: /Users/jasonzheng/Library/Android/sdk/platform-tools/adb devices -l
[ ] List of devices attached
emulator-5554 device product:sdk_gphone_x86 model:Android_SDK_built_for_x86 device:generic_x86 transport_id:5
[ +19 ms] executing: /Volumes/Data/Sources/flutter/bin/cache/artifacts/libimobiledevice/idevice_id -h
[ +51 ms] /usr/bin/xcrun simctl list --json devices
[ +150 ms] More than one device connected; please specify a device with the '-d <deviceId>' flag, or use '-d all' to act on all
devices.
[ +5 ms] /Users/jasonzheng/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell getprop
[ +38 ms] ro.hardware = ranchu
[ +5 ms] Android SDK built for x86 β’ emulator-5554 β’ android-x86 β’ Android 9 (API 28) (emulator)
[ +1 ms] iPhone 8 β’ 80FF753B-2016-49AD-B175-4663153BAB6D β’ ios β’
com.apple.CoreSimulator.SimRuntime.iOS-13-2
(simulator)
[ +18 ms] "flutter run" took 650ms.
#0 throwToolExit (package:flutter_tools/src/base/common.dart:28:3)
#1 RunCommand.validateCommand (package:flutter_tools/src/commands/run.dart:276:7)
<asynchronous suspension>
#2 FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:528:11)
<asynchronous suspension>
#3 FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:457:33)
<asynchronous suspension>
#4 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:157:29)
<asynchronous suspension>
#5 _rootRun (dart:async/zone.dart:1124:13)
#6 _CustomZone.run (dart:async/zone.dart:1021:19)
#7 _runZoned (dart:async/zone.dart:1516:10)
#8 runZoned (dart:async/zone.dart:1463:12)
#9 AppContext.run (package:flutter_tools/src/base/context.dart:156:18)
<asynchronous suspension>
#10 FlutterCommand.run (package:flutter_tools/src/runner/flutter_command.dart:446:20)
#11 CommandRunner.runCommand (package:args/command_runner.dart:197:27)
<asynchronous suspension>
#12 FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:416:21)
<asynchronous suspension>
#13 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:157:29)
<asynchronous suspension>
#14 _rootRun (dart:async/zone.dart:1124:13)
#15 _CustomZone.run (dart:async/zone.dart:1021:19)
#16 _runZoned (dart:async/zone.dart:1516:10)
#17 runZoned (dart:async/zone.dart:1463:12)
#18 AppContext.run (package:flutter_tools/src/base/context.dart:156:18)
<asynchronous suspension>
#19 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:367:19)
<asynchronous suspension>
#20 CommandRunner.run.<anonymous closure> (package:args/command_runner.dart:112:25)
#21 new Future.sync (dart:async/future.dart:224:31)
#22 CommandRunner.run (package:args/command_runner.dart:112:14)
#23 FlutterCommandRunner.run (package:flutter_tools/src/runner/flutter_command_runner.dart:251:18)
#24 run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:63:22)
<asynchronous suspension>
#25 _rootRun (dart:async/zone.dart:1124:13)
#26 _CustomZone.run (dart:async/zone.dart:1021:19)
#27 _runZoned (dart:async/zone.dart:1516:10)
#28 runZoned (dart:async/zone.dart:1500:12)
#29 run.<anonymous closure> (package:flutter_tools/runner.dart:61:18)
<asynchronous suspension>
#30 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:157:29)
<asynchronous suspension>
#31 _rootRun (dart:async/zone.dart:1124:13)
#32 _CustomZone.run (dart:async/zone.dart:1021:19)
#33 _runZoned (dart:async/zone.dart:1516:10)
#34 runZoned (dart:async/zone.dart:1463:12)
#35 AppContext.run (package:flutter_tools/src/base/context.dart:156:18)
<asynchronous suspension>
#36 runInContext (package:flutter_tools/src/context_runner.dart:63:24)
<asynchronous suspension>
#37 run (package:flutter_tools/runner.dart:50:10)
#38 main (package:flutter_tools/executable.dart:65:9)
<asynchronous suspension>
#39 main (file:///Volumes/Data/Sources/flutter/packages/flutter_tools/bin/flutter_tools.dart:8:3)
#40 _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:303:32)
#41 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:172:12)
jasons-mbp:cursor_pointer jasonzheng$ flutter analyze
Analyzing cursor_pointer...
No issues found! (ran in 2.8s)
```
</details>
```
Jasons-MacBook-Pro:flutter jasonzheng$ flutter doctor -v
[β] Flutter (Channel beta, v1.11.0, on Mac OS X 10.14.6 18G103, locale en-US)
β’ Flutter version 1.11.0 at /Volumes/Data/Sources/flutter
β’ Framework revision 856a90e67c (2 weeks ago), 2019-11-08 18:00:01 -0800
β’ Engine revision af04338413
β’ Dart version 2.7.0
[β] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
β’ Android SDK at /Users/jasonzheng/Library/Android/sdk
β’ Android NDK location not configured (optional; useful for native profiling
support)
β’ Platform android-28, build-tools 28.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_152-release-1343-b01)
β’ All Android licenses accepted.
[β] Xcode - develop for iOS and macOS (Xcode 11.2.1)
β’ Xcode at /Applications/Xcode.app/Contents/Developer
β’ Xcode 11.2.1, Build version 11B500
β’ CocoaPods version 1.8.4
[β] Android Studio (version 3.4)
β’ Android Studio at /Applications/Android Studio.app/Contents
β’ Flutter plugin version 35.2.1
β’ Dart plugin version 183.6270
β’ Java version OpenJDK Runtime Environment (build
1.8.0_152-release-1343-b01)
[β] VS Code (version 1.40.1)
β’ VS Code at /Applications/Visual Studio Code.app/Contents
β’ Flutter extension version 3.6.0
[β] Connected device (2 available)
β’ Android SDK built for x86 β’ emulator-5554 β’
android-x86 β’ Android 9 (API 28) (emulator)
β’ iPhone 8 β’ 80FF753B-2016-49AD-B175-4663153BAB6D β’ ios
β’ com.apple.CoreSimulator.SimRuntime.iOS-13-2 (simulator)
β’ No issues found!
``` | a: text input,platform-android,framework,f: material design,a: quality,has reproducible steps,P2,found in release: 3.3,found in release: 3.7,team-android,triaged-android | low | Critical |
528,276,119 | godot | Remote mode problem with dock "Inspector" | **Godot version:**
3.2 beta 1 mono - v3.5.beta1.official [b9b23d222]
**OS/device including version:**
Win10 home 64
**Issue description:**
The "Inspector" dock shows nothing (although there is a node selected) when the game is run with the "Remote" mode enabled by default.

**Steps to reproduce:**
Run the project (deselect all nodes before executing) and observe the "Inspector" dock, you will see that nothing appears even if there is a node selected, then the information of that selected node should be displayed in the "Inspector" dock.
In this GIF you can see that the information of the "stalfos" node does not appear in the "Inspector" dock (despite the fact that the node is selected) and for it to appear I have to select another node and select the "Stalfos" node again .

**Minimal reproduction project:**
[testRemote.zip](https://github.com/godotengine/godot/files/3888199/testRemote.zip)
| bug,topic:editor,confirmed,usability | low | Minor |
528,293,097 | pytorch | nn.functional should maintain API parity with nn where possible | ## π Feature
`nn.functional` should provide a functional alternative to every stateful component in `nn` that supports it.
Some, like `Tanh() -> tanh` were deprecated in `nn.functional` because they're now the same as those in `torch`.
## Motivation
People usually import modules and submodules that are used often under short intuitive names.
One such name I've often encountered is `nn.functional as F`, in the same vein as importing `nn`.
The current plan to move some math functions permanently away from `nn.functional` somewhat awkwardly splits the API.
1. Every operation that has a `Module` has its name in `nn` (to my knowledge).
2. Almost every operation `Module`(s) in `nn` that can be exposed cleanly in a functional manner has a name in `nn.functional`. But some don't.
## Pitch
Move all 'mathy' functions with class counterparts from `torch` to `nn.functional` and expose aliases to the basic/fundamental ones in `torch`.
Here we get into ugly territory; I don't know how exactly I'd argue for some methods currently under `torch`, but `tanh`, `sigmoid` and co definitely belong in `functional`.
## Alternatives
Flip the implementation/re-exporting tale with the impls in `torch` and the re-exports in `nn.functional`.
## Additional context
E.g.
https://github.com/pytorch/pytorch/issues/6245 : Deprecate torch.nn.functional.tanh?
| module: nn,triaged,enhancement | low | Minor |
528,349,795 | pytorch | More detailed information about TensorType in error messages | ## π Feature
More detailed information about TensorType, including TensorType specifiers as shape, strides, req_grad etc. in error messages
## Motivation
Reported issue https://discuss.pytorch.org/t/incomprehensible-behaviour/61710
Error message is misleading:
```
terminate called after throwing an instance of 'c10::Error'
what(): forward() Expected a value of type 'Dict[str, Tensor]' for argument 'features' but instead found type 'Dict[str, Tensor]'.
Position: 1
Declaration: forward(__torch__.WrapRPN self, Dict(str, Tensor) features) -> (int) (checkArg at ../aten/src/ATen/core/function_schema_inl.h:194)
```
## Pitch
Steps to reproduce original issue:
```
class WrapRPN(nn.Module):
def __init__(self):
super().__init__()
def forward(self, features):
# type: (Dict[str, Tensor]) -> int
return 0
```
```
#include <torch/script.h>
int main() {
torch::jit::script::Module module = torch::jit::load("dict_str_tensor.pt");
torch::Tensor tensor = torch::rand({2, 3});
at::IValue ivalue{tensor};
c10::impl::GenericDict dict{c10::StringType::get(),ivalue.type()};
dict.insert("key", ivalue);
module.forward({dict});
}
```
ValueType of `c10::impl::GenericDict` is from the first specified element as `ivalue.type()`
It fails on type check in` function_schema_inl.h` !value.type()->isSubtypeOf(argument.type())
as `DictType::isSubtypeOf` requires equal KeyType and ValueType, while `TensorType`s are different.
In argument's `TensorType` there is no device, sizes, strides, requires_grad... while size and requires grad is set in value's `TensorType`.
The error message is a bit misleading.
## Alternatives
## Additional context
| triaged,enhancement | low | Critical |
528,356,305 | pytorch | [jit] Module references aren't preserved | Results in eager vs script are different
```python
class Layer(nn.Module):
def __init__(self):
super().__init__()
self.data = torch.empty(0, dtype=torch.float)
def forward(self, x):
self.data = x
class Model(nn.Module):
def __init__(self):
super().__init__()
self.layers = nn.ModuleList([Layer()])
self.registry = nn.ModuleDict({'layer0': self.layers[0]})
def forward(self, x):
for layer in self.layers:
layer(x)
output = {}
for name, layer in self.registry.items():
output[name] = layer.data
return output
model = Model()
script = torch.jit.script(model)
with torch.no_grad():
data = torch.randn(1, dtype=torch.float)
print(model(data))
print(script(data))
```
cc @suo | oncall: jit,triaged | low | Minor |
528,395,604 | rust | std::fs::copy failed with OS error 1 on Linux when copying over CIFS from local FS | I am using the following versions:
- mount.cifs version: 6.9
- `uname -r`: 5.3.0-23-generic
- Ubuntu 19.10
- Rust `nightly-2019-11-17-x86_64-unknown-linux-gnu`
I was unable to perform a file copy with `std::fs::copy` when copying to a Windows shared folder mounted on Linux with the following options:
`rw,nounix,iocharset=utf8,file_mode=0777,dir_mode=0777`
I got OS error 1, which shouldn't happen since everyone has full permissions to the mounted NAS.
Interestingly, I was able to copy the files using `cp -r` without issue. I worked around this by writing something close to the following (all same except for error handling that I stripped out):
```rust
for file in WalkDir::new(&source)
.into_iter()
.map(|file| file.unwrap())
.filter(|file| file.file_type().is_file())
{
let outpath = dest_dir_name.join(file.file_name());
std::io::copy(&mut File::open(&file.path()), &mut File::create(&outpath).unwrap()).unwrap();
}
```
It seemed strange to me that I get a permission denied despite that if I manually write the code to create and write the files using walkdir then it works completely file. I believe this is a bug in the code of std::fs::copy since the expected behavior is that it should work like `cp` (which just copies it as expected).
I still have access to this setup, so I can test things if need be. Let me know if I can give more information to track down the bug. | O-linux,T-libs-api,C-bug | low | Critical |
528,401,439 | node | readdir(p, { withFileTypes: true }) seemingly returns wrong type | <!--
Thank you for reporting a possible bug in Node.js.
Please fill in as much of the template below as you can.
Version: output of `node -v`
Platform: output of `uname -a` (UNIX), or version and 32 or 64-bit (Windows)
Subsystem: if known, please specify the affected core module name
If possible, please provide code that demonstrates the problem, keeping it as
simple and free of external dependencies as you can.
-->
* **Version**: v13.1.0
* **Platform**: Darwin White-Star.local 18.7.0 Darwin Kernel Version 18.7.0: Sat Oct 12 00:02:19 PDT 2019; root:xnu-4903.278.12~1/RELEASE_X86_64 x86_64
* **Subsystem**: fs
<!-- Please provide more details below this comment. -->
When listing a directory with `readdir` and `withFileTypes`, at least the promisified version of `fs.readdir` returns the wrong type for entities that are symbolic links to directories:
```javascript
const { basename, join } = require('path');
const { readdir, lstat, stat, symlink, unlink } = require('fs').promises;
const LINK_NAME = basename(__filename) + '-link';
const LINK_PATH = join(__dirname, LINK_NAME);
const inspectEntity = (label, entity) => {
console.log(label, (entity.isDirectory() ? 'dir' : '') +
(entity.isFile() ? 'file' : '') +
(entity.isSymbolicLink() ? 'symlink' : ''));
};
(async function main() {
try {
await symlink(__dirname, LINK_PATH, 'dir');
for (const entity of await readdir(__dirname, { withFileTypes: true })) {
if (entity.name === LINK_NAME) inspectEntity('readdir', entity);
}
inspectEntity('lstat', await lstat(LINK_PATH));
inspectEntity('stat', await stat(LINK_PATH));
await unlink(LINK_PATH);
} catch (x) {
console.error(x.stack);
}
})();
```
Running the above script yields the following on my machine:
```
readdir file
lstat symlink
stat dir
```
Since the file system entity in question is a symbolic link to a directory, I would expect the code to either report a symlink or a directory, depending on whether the implementation of `readdir` uses `stat` or `lstat` under the covers. But in *neither* case would I expect a file to be reported. Yet that's exactly what's happening on my machine. Am I missing something or is this a genuine bug?
Additional testing with a second machine suggests that this may be related to **remote file system** usage. When running the test locally on a local disk, `readdir` reports a symlink (yay!). That stands in contrast to my original testing was performed on a remotely mounted file system.
As an aside, after reading a number of old issues before filing this issue, I am guessing that `readdir` uses `stat` not `lstat` under the covers. It would seem more consistent with the rest of the API. Yet the documentation has no disclaimer on `dirent.isSymbolicLink()` as it has on `stats.isSymbolicLink()`. Either way, being more upfront about `readdir`'s behavior `{withFileTypes: true}` would go a long way towards a better developer experience. I'm happy to submit a PR for thatβonce I understand what's going on above.
Even with better documentation though, some developers will be disappointed when whatever `readdir` uses does not meet their use case. So I am also wondering whether configurability of `stat`/`lstat` for `readdir` `withFileTypes: true` would be desirable in the long term. If that suggestion falls under the heading "long-term costs of exposing things from core," I apologize. I'm gonna practice writing code *without* using `withFileTypes` for certain tonight. π | fs,macos | low | Critical |
528,404,482 | vscode | Git - Git should be able to automatically track new files | <!-- Please search existing issues to avoid creating duplicates. -->
<!-- Describe the feature you'd like. -->
I can make changes to a file in VS Code and Git will track those changes (even though they are not immediately staged, I can stage them easily when committing by using `git commit -a`). Same thing goes for files that I delete. However, new files that I create are a different story; Git does not track them and thus they are not staged when I use `git commit -a`. I have used IDEs before that give the option to automatically run `git add` on a file when I create it. I would like to have the same option in VS Code. | feature-request,git | high | Critical |
528,411,678 | flutter | Canvas painting shifted when canvas is composited under a mouse tracker | ## Steps to Reproduce
1. Checkout this exact commit: https://github.com/yjbanov/algrafx/blob/891c4419cf1a74c4ae978d4e9f7696526a0a1512
2. Uncomment this one line: https://github.com/yjbanov/algrafx/blob/891c4419cf1a74c4ae978d4e9f7696526a0a1512/lib/graph.dart#L220
3. Observe broken mouse behavior.
It seems the mouse positions are reported correctly, and it's more likely that the canvas is placed in a wrong location (or contents inside the canvas are).
## Logs
```
[β] Flutter (Channel master, v1.10.15-pre.697, on Linux, locale en_US.UTF-8)
β’ Flutter version 1.10.15-pre.697 at /usr/local/google/home/yjbanov/code/flutter/flutter
β’ Framework revision 7726910a5b (2 hours ago), 2019-11-25 16:47:51 -0500
β’ Engine revision c89ac6347b
β’ Dart version 2.7.0
```
| engine,platform-web,c: rendering,P2,team-web,triaged-web | low | Critical |
528,413,611 | flutter | Remove the need for /#/ redirection | The redirection from `/` to `/#/` is an extra unnecessary hop that adds to application start-up time. Can we remove it?
/cc @mdebbar | framework,f: routes,platform-web,customer: webeap,P2,team-web,triaged-web | low | Major |
528,414,479 | rust | Account for HRTB on unsatisfied trait bound suggestions | When encountering a [higher-ranked-trait-bound error](https://github.com/rust-lang/rust/blob/master/src/test/ui/hrtb/hrtb-higher-ranker-supertraits.rs) where the compiler [would suggest adding a new `where` bound](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=179075a2fbee8d6fcb0e1208a72a1cb3) that is the same as an _existing_ bound, the suggestion should be to _replace_ the existing one with the hrtb version:
[before](https://github.com/rust-lang/rust/pull/66567):
```
error[E0277]: the trait bound `for<'tcx> F: Foo<'tcx>` is not satisfied
--> $DIR/hrtb-higher-ranker-supertraits.rs:18:26
|
LL | where F : Foo<'x>
| - help: consider further restricting type parameter `F`: `, F: for<'tcx> Foo<'tcx>`
...
LL | want_foo_for_any_tcx(f);
| ^ the trait `for<'tcx> Foo<'tcx>` is not implemented for `F`
...
LL | fn want_foo_for_any_tcx<F>(f: &F)
| --------------------
LL | where F : for<'tcx> Foo<'tcx>
| ------------------- required by this bound in `want_foo_for_any_tcx`
```
after:
```
error[E0277]: the trait bound `for<'tcx> F: Foo<'tcx>` is not satisfied
--> $DIR/hrtb-higher-ranker-supertraits.rs:18:26
|
LL | where F : Foo<'x>
| ----------- help: consider restricting type parameter `F` with HRTB: `F: for<'tcx> Foo<'tcx>`
...
LL | want_foo_for_any_tcx(f);
| ^ the trait `for<'tcx> Foo<'tcx>` is not implemented for `F`
...
LL | fn want_foo_for_any_tcx<F>(f: &F)
| --------------------
LL | where F : for<'tcx> Foo<'tcx>
| ------------------- required by this bound in `want_foo_for_any_tcx`
``` | C-enhancement,A-diagnostics,P-low,T-compiler,A-suggestion-diagnostics,D-invalid-suggestion,A-higher-ranked | low | Critical |
528,423,377 | terminal | colortool.exe shrinks window size by one column - every time it is called | Hi
I am running colortool.exe in cmd.exe (Microsoft Windows [Version 6.3.9600] Win 8.1 64bit OS) and every time I run it the Window Size reduces by one column (the rows and the Sceen Buffer Size stay the same).
Is this an "off by one" error?
It is important to me as I would like to call colortool from Textadept-curses.exe; once at load and once at quit.
Please accept apologies if this is a known bug.
Kind Regards Gavin | Product-Colortool,Help Wanted,Area-Server,Issue-Bug | low | Critical |
528,427,354 | pytorch | Redundant counter in batchnorm impl | ## π Bug
This looks like an efficiency/perf bug (unless I am missing something).
`self.num_batches_tracked` is initialized and incremented but never used when `self.momentum` is not `None` during training (and tracking running stats).
## To Reproduce
Review code:
https://github.com/pytorch/pytorch/blob/b8f50d9cc860460c7e9b6d3b370cab546e9f9583/torch/nn/modules/batchnorm.py#L35
https://github.com/pytorch/pytorch/blob/b8f50d9cc860460c7e9b6d3b370cab546e9f9583/torch/nn/modules/batchnorm.py#L97-L102
## Expected behavior
`self.num_batches_tracked` should be set to `None` when `self.momentum` is not `None` to achieve a cleaner implementation
## Environment
NA
## Additional context
NA
| module: nn,triaged | low | Critical |
528,445,589 | pytorch | Expose bhistc to python | ## π Feature
<!-- A clear and concise description of the feature proposal -->
Calculate the histogram of the elements in 2d tensor x along the last dimension.
## Motivation
<!-- Please outline the motivation for the proposal. Is your feature request related to a problem? e.g., I'm always frustrated when [...]. If this is related to another GitHub issue, please link here too -->
https://discuss.pytorch.org/t/parallelize-histogram-calculation/60038
## Pitch
<!-- A clear and concise description of what you want to happen. -->
I found the backend implementation
https://github.com/pytorch/pytorch/blob/b8f50d9cc860460c7e9b6d3b370cab546e9f9583/aten/src/TH/generic/THTensorMoreMath.cpp#L1314-L1350
but it's not exposed to python so we can't easily use it, please add corresponding python bindings.
## Alternatives
<!-- A clear and concise description of any alternative solutions or features you've considered, if any. -->
## Additional context
<!-- Add any other context or screenshots about the feature request here. -->
| triaged,enhancement | low | Minor |
528,467,056 | TypeScript | JSDoc @typedef property description lost | <!-- π¨ 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 the latest published version. It may have already been fixed.
For npm: `typescript@next`
This is also the 'Nightly' version in the playground: http://www.typescriptlang.org/play/?ts=Nightly
-->
**TypeScript Version:** 3.8.0-dev.20191125
<!-- Search terms you tried before logging this (so others can find this issue more easily) -->
**Search Terms:**
- jsdoc
- typedef
- property
**Repo**
For the JS:
```js
/** @typedef {Object.<string, any>} type
* @property {string} prop1 - Missing Description 1
* @property {string} prop2 - Missing Description 2
*/
/** @type {type} */
var a = {
prop1: null,
prop2: null
}
/** @type {type}
* @class */
function b(){
this.prop1 = null;
this.prop2 = null;
}
var c = new b();
```
Type `c.prop1` to view `prop1` suggestion
**Expected behavior:**
Description from the typedef is shown: `Missing Description 1`
**Actual behavior:**
No description (but the property does have the correct type)
| Bug,Domain: JSDoc,Domain: Quick Info | low | Critical |
528,496,157 | TypeScript | Extract Constant Refactoring: Add way to extract all instances of selected expression | From https://github.com/microsoft/vscode/issues/85507
## Search Terms
- refactor
- extract
- extract constant / extract function
<!-- List of keywords you searched for before creating this issue. Write them down here so that others can find this suggestion more easily -->
## Suggestion
For the code:
```js
function doStuff() {
console.log('hello')
console.log('hi')
console.log('hello')
}
```
If I run `extract constant on the string `'hello'`, it'd be nice if we offered a way to extract all instances of that expression in the current scope. This would turn the code into:
```js
function doStuff() {
const text = 'hello'
console.log(text)
console.log('hi')
console.log(text)
}
```
## Use Cases
- Help reducing duplicated code
- Speed up code cleanup
| Suggestion,Awaiting More Feedback | low | Major |
528,527,676 | opencv | unrepresentable indices in max_pooling/max_unpooling in fp16 target leads to illegal memory accesses | ##### System information (version)
- OpenCV => master @ https://github.com/opencv/opencv/commit/ad0ab4109aec8173b34ee68d25bb488fbcfe5286
- Operating System / Platform => Ubuntu 18.04 64 Bit
- Compiler => GCC 7.4.0
##### Detailed description
Half-precision floats are not capable of accurately storing the indices in max_pooling layers for ENet.
```
max_idx as index_type: 65521
static_cast<__half>(max_idx): inf
static_cast<index_type>(static_cast<__half>(max_idx)): 2147483647
```
The max_pooling kernel computes the indices as integers but finally stores the index in `__half` format. The index which is retrieved after casting back to `index_type` in max_unpooling kernel can potentially leads to illegal memory access.
This renders the FP16 target unusable in networks which required max_unpooling for even reasonably small feature maps.
##### Steps to reproduce
DNNTestNetwork.ENet/1, where GetParam() = CUDA/CUDA_FP16
| bug,feature,category: dnn | low | Minor |
528,530,066 | TypeScript | `as` keyword doesn't appear in completion list |

| Bug | low | Minor |
528,552,867 | PowerToys | Code formatting style | # Summary of the new feature/enhancement
Uniform formatting style for the codebase helps navigating it and reduces time to review. We could also integrate format-check into CI to perform/verify the formatting automatically.
# Proposed technical implementation details
Currently #742 implements:
- a script which you need to invoke manually
- initial `.clang-format` style
As a first phase, I suggest to:
- approve the style itself
- merge a full codebase formatting commit
- (optional) implement basic CI checks
Stuff currently implemented
- [x] common lib
- [x] msi_to_msix_upgrade_lib
- [x] notifications
- [x] notifications_dll
- [ ] UnitTests-CommonLib
- [ ] module template
- [x] runner
- [x] action_runner
- [x] settings
- [ ] interface
- [ ] FanzyZones
- [ ] ImageResizer
- [ ] PowerRename
- [ ] PreviewPane
- [ ] WindowWalker
- [x] ShortcutGuide
| Idea-Enhancement,Area-Quality | low | Major |
528,565,825 | vue | Class Binding Type Missing | ### What problem does this feature solve?
When writing a computed property for a class binding, I found I couldn't type it for typescript.
I made a temporary one and remembered, there are more possibilities, so instead of writing them myself, I thought best to use the built in ones.
Yet I can't seem to find a built in one. Am I being really dense and they are actually there right in front of my nose and I can't see them?
At any rate, I have wrote my own as
```
export type VueClassBinding = string | readonly string[] | {
readonly [className: string]: boolean,
};
```
Am I missing anything?
Is it possible someone can add this to the typings?
### What does the proposed API look like?
```
...
computed: {
inputClassList(): VueClassBinding {
if ( Math.random() > .5 ) return 'my-class-name';
if ( Math.random() > .5 ) return ['my-class-name'];
return {
'my-class-name': true,
};
}
}
...
```
<!-- generated by vue-issues. DO NOT REMOVE --> | discussion,typescript | medium | Minor |
528,582,082 | pytorch | add method to make tensor constant for debug purposes | ## π Feature
Add method to make constant tensors
tensor.make_const()
## Motivation
This option will make it easy to find inplace operators in case of such exceptions:
```
RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation
```
Instead RuntimeError should be thrown when inplace operation is performed on constant tensor.
## Alternatives
Perhaps it is even better to make all tensors constant by default, since inplace operators rarely needed.
cc @ezyang @SsnL @albanD @zou3519 @gqchen | module: autograd,triaged | low | Critical |
528,584,692 | pytorch | [TensorBoard] Graph with objects other than torch.nn.Module can not be visualized. | ## π Bug
I use tensorboardX to `add_graph(model, (dump,))`, but
```
writer_dict['writer'].add_graph(model, (dump_input, ))
File "/home/ubuntu/anaconda3/lib/python3.7/site-packages/tensorboardX/writer.py", line 774, in add_graph
self._get_file_writer().add_graph(graph(model, input_to_model, verbose, **kwargs))
File "/home/ubuntu/anaconda3/lib/python3.7/site-packages/tensorboardX/pytorch_graph.py", line 275, in graph
trace = torch.jit.trace(model, args)
File "/home/ubuntu/anaconda3/lib/python3.7/site-packages/torch/jit/__init__.py", line 772, in trace
check_tolerance, _force_outplace, _module_class)
File "/home/ubuntu/anaconda3/lib/python3.7/site-packages/torch/jit/__init__.py", line 898, in trace_module
module = make_module(mod, _module_class, _compilation_unit)
File "/home/ubuntu/anaconda3/lib/python3.7/site-packages/torch/jit/__init__.py", line 669, in make_module
return _module_class(mod, _compilation_unit=_compilation_unit)
File "/home/ubuntu/anaconda3/lib/python3.7/site-packages/torch/jit/__init__.py", line 1386, in init_then_register
original_init(self, *args, **kwargs)
File "/home/ubuntu/anaconda3/lib/python3.7/site-packages/torch/jit/__init__.py", line 1386, in init_then_register
original_init(self, *args, **kwargs)
File "/home/ubuntu/anaconda3/lib/python3.7/site-packages/torch/jit/__init__.py", line 1881, in __init__
self._modules[name] = TracedModule(submodule, id_set)
File "/home/ubuntu/anaconda3/lib/python3.7/site-packages/torch/jit/__init__.py", line 1386, in init_then_register
original_init(self, *args, **kwargs)
File "/home/ubuntu/anaconda3/lib/python3.7/site-packages/torch/jit/__init__.py", line 1881, in __init__
self._modules[name] = TracedModule(submodule, id_set)
File "/home/ubuntu/anaconda3/lib/python3.7/site-packages/torch/jit/__init__.py", line 1386, in init_then_register
original_init(self, *args, **kwargs)
File "/home/ubuntu/anaconda3/lib/python3.7/site-packages/torch/jit/__init__.py", line 1881, in __init__
self._modules[name] = TracedModule(submodule, id_set)
File "/home/ubuntu/anaconda3/lib/python3.7/site-packages/torch/jit/__init__.py", line 1386, in init_then_register
original_init(self, *args, **kwargs)
File "/home/ubuntu/anaconda3/lib/python3.7/site-packages/torch/jit/__init__.py", line 1881, in __init__
self._modules[name] = TracedModule(submodule, id_set)
File "/home/ubuntu/anaconda3/lib/python3.7/site-packages/torch/jit/__init__.py", line 1386, in init_then_register
original_init(self, *args, **kwargs)
File "/home/ubuntu/anaconda3/lib/python3.7/site-packages/torch/jit/__init__.py", line 1881, in __init__
self._modules[name] = TracedModule(submodule, id_set)
File "/home/ubuntu/anaconda3/lib/python3.7/site-packages/torch/jit/__init__.py", line 1386, in init_then_register
original_init(self, *args, **kwargs)
File "/home/ubuntu/anaconda3/lib/python3.7/site-packages/torch/jit/__init__.py", line 1855, in __init__
assert(isinstance(orig, torch.nn.Module))
AssertionError
```
## To Reproduce
Steps to reproduce the behavior:
```python
import torch
from tensorboardX import SummaryWriter
writer = SummaryWriter()
model = mymodel()
dump_input = torch.rand( (1, 3,256, 256) )
writer.add_graph(model, (dump_input, ))
```
## Expected behavior
<!-- A clear and concise description of what you expected to happen. -->
## Environment
Collecting environment information...
PyTorch version: 1.2.0
Is debug build: No
CUDA used to build PyTorch: 10.0.130
OS: Ubuntu 16.04.6 LTS
GCC version: (Ubuntu 5.4.0-6ubuntu1~16.04.11) 5.4.0 20160609
CMake version: Could not collect
Python version: 3.7
Is CUDA available: Yes
CUDA runtime version: 10.1.105
GPU models and configuration:
GPU 0: GeForce RTX 2080 Ti
GPU 1: GeForce RTX 2080 Ti
Nvidia driver version: 418.43
cuDNN version: Probably one of the following:
/usr/lib/x86_64-linux-gnu/libcudnn.so.7.5.0
/usr/local/cuda-10.1/targets/x86_64-linux/lib/libcudnn.so.7
Versions of relevant libraries:
[pip3] numpy==1.16.2
[pip3] numpydoc==0.8.0
[pip3] torch==1.2.0
[pip3] torchvision==0.4.0
[conda] blas 1.0 mkl
[conda] mkl 2019.1 144
[conda] mkl-service 1.1.2 py37he904b0f_5
[conda] mkl_fft 1.0.10 py37ha843d7b_0
[conda] mkl_random 1.0.2 py37hd81dba3_0
[conda] torch 1.2.0 pypi_0 pypi
[conda] torchvision 0.3.0 pypi_0 pypi
## Additional context
The same problem occurred when using `torch.utils.tensorboard`
| triaged,module: tensorboard | medium | Critical |
528,597,478 | create-react-app | Find correct IPv4 for LAN when having multiples network interfaces | ### Is your proposal related to a problem?
When I have multiples network interfaces actives on my Mac (ex: Wifi and Ethernet), and one or some of them as an invalid IPv4 (such as 169.254.0.0/16 when there's an issue with the DHCP for example), the IPv4 retrieved by using the `ip` static method of the `address` package is returning the first IPv4 found by iterating over the network interfaces.
### Describe the solution you'd like
I think the problem could be solved by iterating over the IPv4 of the different possible network interfaces and using the first **valid private IPv4** instead of using the first one found.
### Describe alternatives you've considered
I had to disconnect the network interfaces that were causing the issue. Not a big deal but annoying, especially everytime you forget it.
| issue: proposal,needs triage | low | Minor |
528,661,005 | rust | Rethink how cross-compiling works, including the terminology | The current config.toml.example in rust says:
~~~~
# In addition to the build triple, other triples to produce full compiler
# toolchains for. Each of these triples will be bootstrapped from the build
# triple and then will continue to bootstrap themselves. This platform must
# currently be able to run all of the triples provided here.
#host = ["x86_64-unknown-linux-gnu"] # defaults to just the build triple
# In addition to all host triples, other triples to produce the standard library
# for. Each host triple will be used to produce a copy of the standard library
# for each target triple.
#target = ["x86_64-unknown-linux-gnu"] # defaults to just the build triple
~~~~
Note that the terminology here is confusing. "build" in the cross-compiling context actually refers to the "host" platform in a normal compilation context, and "host" in the cross-compiling context actually refers to the "target" platform in a normal context. "target" in the cross-compiling context does not have an analogue in the normal context, since normally one is not compiling a compiler. If you are confused, more suitable names might be "host", "target-compiler" and "target-libstd". In fact it may be better to rename the config.toml keys to these ones. The older more confusing terminology comes from GCC I believe, and perhaps they got it from even older terminology.
In "host" where it says "This platform must currently be able to run all of the triples provided here." - this is (1) ostensibly not true, we have been cross-compiling in Debian arbitrary platforms A to arbitrary platforms B for a few years now by setting build = A, host = [B], target = [B] and (2) not desired, since you want to be able to arbitrarily cross-compile from any platform A to any platform B.
TL;DR: I'm not sure the original intention behind that statement, but it's not true today, not desired, and at least the documentation should be fixed.
In "target" where it says "Each host triple will be used to produce a copy of the standard library for each target triple" is unfortunately true, for example in Debian we have found cross-compiling to break when setting build = A, host = [B], target = [B, wasm32], and then the bootstrap tries to compile libstd:wasm32 using rustc:B which platform A can't run. (For some reason, if target is set to only [B], the bootstrap does *not* try to compile libstd:B using rustc:B, as noted also in the previous paragraph.)
I'm also unsure of the original intention behind this behaviour, I don't see why it's necessary or desirable to compile all target platforms (i.e. all libstds) using all of the host platforms (i.e. toolchains) that you're building, since some of these toolchains might not be executable by the build platform.
I would suggest this be fixed to "the build platform will be used to produce a copy of the standard library for each target triple". I tried doing this, but couldn't figure out how to make this work. In `src/bootstrap/builder.rs` in `maybe_run` I tried changing the "for host in hosts, for target in targets" double-loop into two single loops each with `host:` set to builder.build.build and `target:` set to either host or target, but then other stuff broke.
It doesn't help that the terms "host" and "target" are overloaded so confusingly too.
| A-cross,T-bootstrap,A-docs,T-infra,A-contributor-roadblock | low | Major |
528,662,926 | pytorch | `torch.multiprocessing.spawn` fails when `join=False` | ## π Bug
Invoking `torch.multiprocessing.spawn(fn, args=(), nprocs=n, join=False)` raises a `FileNotFoundError` when `join=False`. In contrast, `join=True` works as expected.
## To Reproduce
The following script reproduces the error on pytorch versions `1.1.0` and `1.3.0a0+f25d01e`.
```
import torch.multiprocessing as mp
import time
def worker(nproc, arg1, arg2, arg3):
# do something...
test = True
if __name__ == '__main__':
mp.spawn(worker, (None, None, None), nprocs=1, join=False)
time.sleep(3)
print('terminated')
```
The script fails with the following error message:
```
Traceback (most recent call last):
File "<string>", line 1, in <module>
File ".../python3.7/multiprocessing/spawn.py", line 105 in spawn_main
exitcode = _main(fd)
File ".../python3.7/multiprocessing/spawn.py", line 115, in _main
self = reduction.pickle.load(from_parent)
File ".../python3.7/multiprocessing/synchronize.py", line 110, in __setstate__
self._semlock = _multiprocessing.SemLock._rebuild(*state)
FileNotFoundError: [Errno 2] No such file or directory
terminated
```
Note that `terminated` is printed, showing that the error occurs in the worker thread.
## Expected behavior
The `FileNotFoundError` should not occur. Indeed, `terminated` is printed without any errors if we change `join=False` to `join=True`.
## Environment
PyTorch version: 1.3.0a0+f25d01e
Is debug build: No
CUDA used to build PyTorch: 10.0.130
OS: Ubuntu 18.04.1 LTS
GCC version: (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0
CMake version: version 3.14.0
Python version: 3.7
Is CUDA available: Yes
CUDA runtime version: 10.0.130
GPU models and configuration:
GPU 0: Quadro GP100
GPU 1: Quadro GP100
Nvidia driver version: 410.79
cuDNN version: Could not collect
Versions of relevant libraries:
[pip] numpy==1.17.2
[pip] torch==1.3.0a0+f25d01e
[pip] torchvision==0.5.0a0+937c83a
[conda] blas 1.0 mkl.conda
[conda] magma-cuda100 2.5.1 1 pytorch
[conda] mkl 2019.4 243.conda
[conda] mkl-include 2019.4 243.conda
[conda] mkl-service 2.3.0 py37he904b0f_0.conda
[conda] mkl_fft 1.0.14 py37ha843d7b_0.conda
[conda] mkl_random 1.1.0 py37hd6b4f25_0.conda
[conda] torch 1.3.0a0+f25d01e <pip>
| module: multiprocessing,triaged | low | Critical |
528,681,475 | opencv | Feature Request: Add more Gstreamer Capture Formats | I know Opencv now supports
// we support 11 types of data:
// video/x-raw, format=BGR -> 8bit, 3 channels
// video/x-raw, format=GRAY8 -> 8bit, 1 channel
// video/x-raw, format=UYVY -> 8bit, 2 channel
// video/x-raw, format=YUY2 -> 8bit, 2 channel
// video/x-raw, format=YVYU -> 8bit, 2 channel
// video/x-raw, format=NV12 -> 8bit, 1 channel (height is 1.5x larger than true height)
// video/x-raw, format=NV21 -> 8bit, 1 channel (height is 1.5x larger than true height)
// video/x-raw, format=YV12 -> 8bit, 1 channel (height is 1.5x larger than true height)
// video/x-raw, format=I420 -> 8bit, 1 channel (height is 1.5x larger than true height)
// video/x-bayer -> 8bit, 1 channel
// image/jpeg -> 8bit, mjpeg: buffer_size x 1 x 1
// bayer data is never decoded, the user is responsible for that
// everything is 8 bit, so we just test the caps for bit depth
but Nvidia HW accelerated converter has this follow formats.
Capabilities:
video/x-raw(memory:NVMM)
format: { (string)I420, (string)NV12, (string)BGRx, (string)RGBA, (string)GRAY8 }
width: [ 1, 2147483647 ]
height: [ 1, 2147483647 ]
framerate: [ 0/1, 2147483647/1 ]
video/x-raw
format: { (string)I420, (string)NV12, (string)BGRx, (string)RGBA, (string)GRAY8 }
width: [ 1, 2147483647 ]
height: [ 1, 2147483647 ]
framerate: [ 0/1, 2147483647/1 ]
Also, most of the Deep Learning models needs RGB or BGR Mat formats...
so maybe it will be a good option to accept RGB.
Also based on video/x-raw(memory:NVMM) It Could be possible to add it?? As CudaMat???
| priority: low,category: gpu/cuda (contrib) | low | Minor |
528,681,816 | TypeScript | Support mixins for abstract classes | ## Search Terms
Related to #32122, but not the same.
abstract mixins classes
## Suggestion
Right now we can't to extending abstract classes with mixins. So, it would be nice to create a solution for this case.
## Use Cases
```
abstract class Test {
}
type Constructor = new (...args: any[]) => any;
function MyAwesomeMixin<T extends Constructor>(Constructor: Constructor) {
abstract class MyAwesomeMixin extends Constructor {
}
return MyAwesomeMixin;
}
class A extends MyAwesomeMixin(Test) {
/* Argument of type 'typeof Test' is not assignable to parameter of type 'Constructor'.
Cannot assign an abstract constructor type to a non-abstract constructor type.(2345) */
}
```
Okay, try to create abstract constructor type:
```
type Constructor = abstract new (...args: any[]) => any;
/* Syntax error */
```
Hmm,..
## Examples
Here is two way to create solution for this problem:
1. (simple) Allow create abstract constructor types
```
type Constructor = (new (...args: any[]) => any) | (abstract new (...args: any[]) => any);
```
2. (complex, but beautiful) Add new syntax to define mixins, and initially add support to extending abstract classes, like this:
```
abstract class Test {
abstract mainMethod(): void;
}
mixin MyAwesomeMixin {
public someMethod(): void {
console.log('hello');
}
}
class A extends MyAwesomeMixin(Test) {
public mainMethod(): void {
this.someMethod();
}
}
// AND
abstract mixin MyAwesomeAbstractMixin {
abstract someMethod(): void;
}
class B extends MyAwesomeAbstractMixin(Test) {
public mainMethod(): void {
this.someMethod();
}
}
// Also this can add support to extending mixins without Mixin(Mixin2(Mixin3(Class)))
mixin MyAwesomeExtendedMixin extends MyAwesomeAbstractMixin {
public someMethod(): void {
...
}
}
```
## 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).
| Suggestion,Awaiting More Feedback | medium | Critical |
528,690,991 | node | investigate flaky sequential/test-perf-hooks in CI | <!--
Thank you for reporting a possible bug in Node.js.
Please fill in as much of the template below as you can.
Version: output of `node -v`
Platform: output of `uname -a` (UNIX), or version and 32 or 64-bit (Windows)
Subsystem: if known, please specify the affected core module name
If possible, please provide code that demonstrates the problem, keeping it as
simple and free of external dependencies as you can.
-->
* **Version**: master
* **Platform**: ubuntu1804_sharedlibs_withoutssl_x64
* **Subsystem**: perf_hooks
<!-- Please provide more details below this comment. -->
```
not ok 2761 sequential/test-perf-hooks
---
duration_ms: 1.517
severity: fail
exitcode: 1
stack: |-
{
name: 'node',
entryType: 'node',
startTime: 0,
duration: { around: 52.144811153411865 },
nodeStart: { around: 0 },
v8Start: { around: 0 },
bootstrapComplete: { around: 48.848198890686035, delay: 2500 },
environment: { around: 0 },
loopStart: -1,
loopExit: -1
}
{
name: 'node',
entryType: 'node',
startTime: 0,
duration: { around: 1058.5430703163147 },
nodeStart: { around: 0 },
v8Start: { around: 0 },
bootstrapComplete: { around: 48.848198890686035, delay: 2500 },
environment: { around: 0 },
loopStart: { around: 48.848198890686035, delay: 2500 },
loopExit: -1
}
{
name: 'node',
entryType: 'node',
startTime: 0,
duration: { around: 1379.0943932533264 },
nodeStart: { around: 0 },
v8Start: { around: 0 },
bootstrapComplete: { around: 48.848198890686035, delay: 2500 },
environment: { around: 0 },
loopStart: { around: 48.848198890686035, delay: 2500 },
loopExit: { around: 1379.1089520454407 }
}
assert.js:383
throw err;
^
AssertionError [ERR_ASSERTION]: duration: 319.4689869880676 >= 250
at checkNodeTiming (/home/iojs/build/workspace/node-test-commit-linux-containered/test/sequential/test-perf-hooks.js:67:7)
at Timeout._onTimeout (/home/iojs/build/workspace/node-test-commit-linux-containered/test/sequential/test-perf-hooks.js:93:3)
at listOnTimeout (internal/timers.js:535:17)
at processTimers (internal/timers.js:479:7) {
generatedMessage: false,
code: 'ERR_ASSERTION',
actual: false,
expected: true,
operator: '=='
}
...
```
ref: https://ci.nodejs.org/job/node-test-commit-linux-containered/nodes=ubuntu1804_sharedlibs_withoutssl_x64/16233/consoleText | flaky-test,perf_hooks | low | Critical |
528,700,767 | rust | Add a `starts_with(s: &str) -> bool` method for `fmt::Arguments`? | It's currently very cumbersome to check whether a panic message starts with an expected `&str` in `no_std` mode:
```rust
#[panic_handler]
fn panic(info: &PanicInfo) -> ! {
use core::fmt::Write;
let mut check_message = CheckPanicMessage::new("some panic message:");
let error = write!(&mut check_message, "{}", info.message().unwrap_or(&format_args!(""))).is_err();
if !error && check_message.starts_as_expected() {
// do something (e.g. mark test as successful)
} else {
// do something else (e.g. mark test as failed)
}
}
struct CheckPanicMessage<'a> {
expected_prefix: &'a str,
mismatch: bool,
}
impl<'a> CheckPanicMessage<'a> {
fn new(expected_prefix: &'a str) -> Self {
Self {
expected_prefix,
mismatch: false,
}
}
fn starts_as_expected(&self) -> bool {
!self.mismatch && self.expected_prefix == ""
}
}
use core::fmt;
impl fmt::Write for CheckPanicMessage<'_> {
fn write_str(&mut self, s: &str) -> fmt::Result {
let len = s.len().min(self.expected_prefix.len());
if !self.mismatch {
if s.starts_with(&self.expected_prefix[..len]) {
serial_println!("[ok] expected: <{}>, got: <{}>", &self.expected_prefix[..len], s);
self.expected_prefix = &self.expected_prefix[len..];
} else {
serial_println!("expected: <{}>, got: <{}>", &self.expected_prefix[..len], s);
self.mismatch = true;
}
}
Ok(())
}
}
```
(If there is an easier way to achieve this, please let me know.)
How about adding a `starts_with(&self, &str) -> bool` method to `fmt::Arguments`? With such a method, the above could be shortened to:
```rust
#[panic_handler]
fn panic(info: &PanicInfo) -> ! {
if info.message().unwrap_or(&format_args!("")).starts_with("some panic message:") {
// do something (e.g. mark test as successful)
} else {
// do something else (e.g. mark test as failed)
}
}
```
I would be happy to write a PR that adds this as an unstable method if it is desired.
| T-libs-api,C-feature-request | low | Critical |
528,701,197 | youtube-dl | how to download lang=en-IE and tlang=zh-Hans subtitle | https://www.youtube.com/api/timedtext?v=zDujFhvgUzI&asr_langs=de%2Cen%2Ces%2Cfr%2Cit%2Cja%2Cko%2Cnl%2Cpt%2Cru&caps=asr&xorp=true&hl=en&ip=0.0.0.0&ipbits=0&expire=1574796999&sparams=ip%2Cipbits%2Cexpire%2Cv%2Casr_langs%2Ccaps%2Cxorp&signature=55E79DD91B83B7794DB068675B36A741FC068DAF.CB674DFA36D22BDE6033A12BF41D65B8AE06155D&key=yt8&lang=en-IE&fmt=srv3&xorb=2&xobt=3&xovt=3&tlang=zh-Hans
how to download lang=en-IE and tlang=zh-Hans subtitle
when
--write-auto-sub --sub-lang=zh-Hans --convert-subs=ass
then
lang=en and tlang=zh-Hans subtitle | question | low | Minor |
528,761,972 | pytorch | cuda support | I am trying to install pytorch from source but the installation does not recognize cuda. The torch.cuda.is_available shows FALSE. Please help!
Below is my installation log
```
Building wheel torch-1.4.0a0+7903fb1
-- Building version 1.4.0a0+7903fb1
cmake --build . --target install --config Release -- -j 6
[0/1] Install the project...
-- Install configuration: "Release"
running install
running build
running build_py
copying torch/version.py -> build/lib.linux-x86_64-3.7/torch
copying caffe2/proto/predictor_consts_pb2.py -> build/lib.linux-x86_64-3.7/caffe2/proto
copying caffe2/proto/caffe2_pb2.py -> build/lib.linux-x86_64-3.7/caffe2/proto
copying caffe2/proto/prof_dag_pb2.py -> build/lib.linux-x86_64-3.7/caffe2/proto
copying caffe2/proto/metanet_pb2.py -> build/lib.linux-x86_64-3.7/caffe2/proto
copying caffe2/proto/caffe2_legacy_pb2.py -> build/lib.linux-x86_64-3.7/caffe2/proto
copying caffe2/proto/torch_pb2.py -> build/lib.linux-x86_64-3.7/caffe2/proto
copying caffe2/proto/hsm_pb2.py -> build/lib.linux-x86_64-3.7/caffe2/proto
running build_ext
-- Building with NumPy bindings
-- Not using cuDNN
-- Not using CUDA
-- Using MKLDNN
-- Not using CBLAS in MKLDNN
-- Not using NCCL
-- Building with distributed package
Copying extension caffe2.python.caffe2_pybind11_state
Copying caffe2.python.caffe2_pybind11_state from torch/lib/python3.7/site-packages/caffe2/python/caffe2_pybind11_state.cpython-37m-x86_64-linux-gnu.so to /data001/pytorch/build/lib.linux-x86_64-3.7/caffe2/python/caffe2_pybind11_state.cpython-37m-x86_64-linux-gnu.so
running install_lib
copying build/lib.linux-x86_64-3.7/caffe2/proto/predictor_consts_pb2.py -> /root/anaconda3/lib/python3.7/site-packages/caffe2/proto
copying build/lib.linux-x86_64-3.7/caffe2/proto/caffe2_pb2.py -> /root/anaconda3/lib/python3.7/site-packages/caffe2/proto
copying build/lib.linux-x86_64-3.7/caffe2/proto/prof_dag_pb2.py -> /root/anaconda3/lib/python3.7/site-packages/caffe2/proto
copying build/lib.linux-x86_64-3.7/caffe2/proto/metanet_pb2.py -> /root/anaconda3/lib/python3.7/site-packages/caffe2/proto
copying build/lib.linux-x86_64-3.7/caffe2/proto/caffe2_legacy_pb2.py -> /root/anaconda3/lib/python3.7/site-packages/caffe2/proto
copying build/lib.linux-x86_64-3.7/caffe2/proto/torch_pb2.py -> /root/anaconda3/lib/python3.7/site-packages/caffe2/proto
copying build/lib.linux-x86_64-3.7/caffe2/proto/hsm_pb2.py -> /root/anaconda3/lib/python3.7/site-packages/caffe2/proto
copying build/lib.linux-x86_64-3.7/torch/version.py -> /root/anaconda3/lib/python3.7/site-packages/torch
byte-compiling /root/anaconda3/lib/python3.7/site-packages/caffe2/proto/predictor_consts_pb2.py to predictor_consts_pb2.cpython-37.pyc
byte-compiling /root/anaconda3/lib/python3.7/site-packages/caffe2/proto/caffe2_pb2.py to caffe2_pb2.cpython-37.pyc
byte-compiling /root/anaconda3/lib/python3.7/site-packages/caffe2/proto/prof_dag_pb2.py to prof_dag_pb2.cpython-37.pyc
byte-compiling /root/anaconda3/lib/python3.7/site-packages/caffe2/proto/metanet_pb2.py to metanet_pb2.cpython-37.pyc
byte-compiling /root/anaconda3/lib/python3.7/site-packages/caffe2/proto/caffe2_legacy_pb2.py to caffe2_legacy_pb2.cpython-37.pyc
byte-compiling /root/anaconda3/lib/python3.7/site-packages/caffe2/proto/torch_pb2.py to torch_pb2.cpython-37.pyc
byte-compiling /root/anaconda3/lib/python3.7/site-packages/caffe2/proto/hsm_pb2.py to hsm_pb2.cpython-37.pyc
byte-compiling /root/anaconda3/lib/python3.7/site-packages/torch/version.py to version.cpython-37.pyc
running install_egg_info
running egg_info
writing torch.egg-info/PKG-INFO
writing dependency_links to torch.egg-info/dependency_links.txt
writing entry points to torch.egg-info/entry_points.txt
writing top-level names to torch.egg-info/top_level.txt
reading manifest file 'torch.egg-info/SOURCES.txt'
writing manifest file 'torch.egg-info/SOURCES.txt'
removing '/root/anaconda3/lib/python3.7/site-packages/torch-1.4.0a0+7903fb1-py3.7.egg-info' (and everything under it)
Copying torch.egg-info to /root/anaconda3/lib/python3.7/site-packages/torch-1.4.0a0+7903fb1-py3.7.egg-info
``` | module: build,triaged | low | Minor |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.