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 |
---|---|---|---|---|---|---|
565,519,356 | pytorch | Long torchscript warmup times can be problematic for production serving | Torchscript models take some time to compile on their first query. Initial warmup can be triggered via shadow traffic, but in a large scale elastic cluster of nodes serving many torchscript models, this potentially makes orchestration or user experience more difficult.
In one particular case (densenet 161) we saw warmup times of over 1 minute.
Potential improvements:
* Off-thread compilation (run initial queries unoptimized while compiling in another thread) or have a flag to run uncompiled?
* Improve compile times for particular outliers like densenet161
cc @suo , @fbbradheintz
Related to:
https://github.com/pytorch/pytorch/issues/27610
Example of slow initial query attached, with output:
```
$ python test_torchscript.py
loading model
model loaded
warmup
['n02123045', 'tabby']
first query took 109.52137017250061
starting
['n02123045', 'tabby']
['n02123045', 'tabby']
['n02123045', 'tabby']
['n02123045', 'tabby']
['n02123045', 'tabby']
--- 1.9634242057800293 seconds ---
```
| oncall: jit,triaged | low | Major |
565,523,152 | godot | Input.is_action_pressed() still returns true after Cmd-Tab and releasing the key | **Godot version:**
3.2.stable
**OS/device including version:**
MacOS X Catalina 10.15.2
**Issue description:**
Basically the same as https://github.com/godotengine/godot/issues/18785 . This is still reproducible on mac.
**Steps to reproduce:**
https://github.com/godotengine/godot/issues/18785
**Minimal reproduction project:**
https://github.com/godotengine/godot/issues/18785
| bug,platform:macos,confirmed,topic:input | low | Major |
565,570,049 | flutter | Support passing VM flags during background execution | ### Problem
VM Flags determine whether the isolates start paused (for debugging), whether we use software or hardware rendering (for Scuba) and many more. When a VM is started and configured with a set of flags, it cannot be changed.
For Android, Flutter tooling sets these flags via adb. When adb constructs the Intent to launch Flutter activity, it puts these as Intent extras. The extras are then received and processed by the Flutter activity. They are eventually passed to `ensureInitializationComplete` call.
This creates a problem for background execution because the event that causes the VM to start does not get initiated via the process outlined above (no flutter tools, no activity, no intents). Every call to ensureInitializationComplete when the isolate needs to be started in the background receives null as part of VM args, which is far from ideal. If we intend to support background execution on Android, we need to make these flags available to the VM everywhere.
### Proposals
We will examine several proposals to expose the flags outside the activity.
#### Manifest
Anything that gets put into the AndroidManifest is immediately available to the application. Android embedding itself makes use of manifest values when loading resources. We could put the list of flags in the manifest for the application to read.
Pros:
- Well understood and reliable way of reading configuration on Android.
- Hard to tamper since manifest becomes part of a signed APK
- This is an important pro compared to the current status. Any application can generate intents with an arbitrary set of extras. If we make the flags only accessible via manifest, we protect against this.
- There’s a canonical way to merge manifests
- Apps don’t need to change their manifests. We can output a manifest file with only VM flags and leave it to Android tooling to merge it to final App manifest.
Cons:
- Need to change how tooling works today. Intent extras can be constructed at runtime. Manifests need to be built at compile time.
- Might be easier to leak into production apps. E.g. if someone manually edits their manifest to set flags and then forgets them.
- We will end up with confusing flags. For instance, tooling supports --use_prebuilt_application. However, that won’t work with any of the other flags since manifest cannot be retroactively included in a prebuilt APK.
#### Configuration File via ADB
We can put the configuration in a file and copy it to the device using adb. ResourceManager can be used to read it back.
Pros:
- Can be done at runtime. We can change this file without having to recompile the whole app.
- Since the application is not modified, it would be difficult to leak this to release.
Cons:
- Additional complexity to find and read this file. This isn’t too bad since we already read back files in ResourceManager when engine starts.
- We have an extra adb step before starting the app. Copying a file using adb push to an application specific folder might not be possible. We can hack it by copying it to /tmp/<package_id>.cfg
- Security concerns. The app will be looking for a file on disk to load as configuration. We should make sure a malicious third party cannot place a set of instructions there.
#### Configuration File via Assets
A variation of the proposal above is to include the configuration file in the APK. This is very much like a manifest so it carries most of the pros and cons of that approach with a few differences:
- Additional complexity to find and read this file whereas manifest APIs are well defined.
- Harder to leak into production than manifest.
#### Keep Using Intents
Intents work fairly well for the runtime configuration case. This would require us to minimize the cases where the single isolate is instantiated from a place where no intent is available.
If we don’t start the isolate eagerly and the Flutter activity starts it, you get the proper flags. This fixes the broken development and testing flows since those never start via a background event.
- We could only invoke the isolate with null params iff the application was started due to background processing.
- There’s no way to detect this since… there’s no intent.
- We could only invoke the isolate with null params iff we detect (from a plugin) that the isolate is not running.
- This would allow apps to start from tooling or IDE normally.
- However, if we want them to start due to a background activity, we would have to forego debugging.
- All background plugins need to handle this.
- Might make sense if we expose an API for plugins “to request an isolate”.
With this approach, we lose the ability to debug background isolate. Therefore, in addition to delaying the isolate start, we can save flag values to persistent storage the first time the application starts.
- This effectively creates a configuration file from within the app.
- Enable debugging of truly background isolates via this method:
- Start the app
- Kill the app
- Invoke the background event
- Upgrades might become a problem where the configuration is not wiped.
- Starting the app overwrites the args so the sequence above still works.
- It writes a file the first time the app starts but during development so it should fine.
This feels like a band-aid fix because it does not make flags available everywhere. We might find other use cases in the future (such as starting isolate from a service) that might not be covered by this approach.
### Detailed Solution
Currently I am leaning towards two solutions:
[short term] “Keep using Intents” solution solves most of the use cases w.r.t. debugging and tests while avoiding a major change in the tooling. We will implement this as a layer above the Android embedding only in google3.
[long term] “The Manifest” solution is a secure, well understood and well supported way of defining configuration. In the long term, we also need to solve the pre-warmed isolates use case. At that point, the google3 methodology will be deprecated and migrated to using manifests. | platform-android,engine,c: proposal,P2,team-android,triaged-android | low | Critical |
565,574,834 | flutter | [web] The engine should send correct affinity with text selection | Currently, when the user is using the keyboard to move the cursor in a text field, we report these selection changes to the framework but with no affinity information. This is causing the framework to always [default to `TextAffinity.downstream`](https://github.com/flutter/flutter/blob/bf32974189d0b18c1606800e5a0d2cb05d7bee7f/packages/flutter/lib/src/services/text_input.dart#L639).
To see this issue:
* Use a multi-line text field that has multiple lines of text.
* Move the cursor to the beginning of a line.
* Click the left arrow key to move the cursor back.
* Notice the cursor doesn't move to the previous line yet.
| a: text input,framework,platform-web,P2,team-web,triaged-web | low | Minor |
565,577,873 | pytorch | Dropout of attention weights in function F.multi_head_attention_forward() breaks sum-to-1 constraint | ## 🐛 Bug
Dropout by calling the built-in dropout function includes rescaling the un-dropped elements, which results in the dropped attention weight vectors possibly sum to a larger than 1 value.
## To Reproduce
Steps to reproduce the behavior:
See line 3374 to 3376 in file `torch/nn/functional.py`
```python
attn_output_weights = softmax(
attn_output_weights, dim=-1)
attn_output_weights = dropout(attn_output_weights, p=dropout_p, training=training)
attn_output = torch.bmm(attn_output_weights, v)
```
Step through in PDB:
```
(Pdb) attn_output_weights.sum(2)
tensor([[1.0000, 1.0000, 1.0000, ..., 1.0000, 1.0000, 1.0000],
[1.0000, 1.0000, 1.0000, ..., 1.0000, 1.0000, 1.0000],
[1.0000, 1.0000, 1.0000, ..., 1.0000, 1.0000, 1.0000],
...,
[1.0000, 1.0000, 1.0000, ..., 1.0000, 1.0000, 1.0000],
[1.0000, 1.0000, 1.0000, ..., 1.0000, 1.0000, 1.0000],
[1.0000, 1.0000, 1.0000, ..., 1.0000, 1.0000, 1.0000]],
device='cuda:0', grad_fn=<SumBackward1>)
(Pdb) n
> /home/hantek/.conda/envs/py37/lib/python3.7/site-packages/torch/nn/functional.py(3378)multi_head_attention_forward()
-> attn_output = torch.bmm(attn_output_weights, v)
(Pdb) attn_output_weights.sum(2)
tensor([[1.0307, 1.0081, 1.0560, ..., 1.0524, 1.0065, 0.9454],
[1.0181, 1.0151, 1.0170, ..., 1.0090, 0.9986, 0.9864],
[0.9757, 0.9827, 0.9963, ..., 1.0014, 0.9632, 0.9294],
...,
[1.0049, 0.9946, 0.9487, ..., 1.0083, 1.0059, 0.9952],
[0.9971, 1.0024, 1.0114, ..., 0.9894, 1.0492, 1.0207],
[1.0050, 1.0084, 1.0159, ..., 0.9867, 0.9799, 1.0328]],
device='cuda:0', grad_fn=<SumBackward1>)
```
What I expect to happen is that the weights still sum-to-1, or sum to a smaller than 1 value after attention dropout.
## Environment
python 3.7, pytorch 1.4.0
## Additional context | module: nn,triaged | low | Critical |
565,585,705 | flutter | [web] unskip location history tests on Safari | Some tests in `test/window_test.dart` are skipped in Safari.
In Safari the test passes in isolation. However, when running all tests at once, the whole batch fails. It's hard to tell why. There seems to be some cross-tests state pollution going on. Perhaps the issue is that tests run in an `<iframe>` and location history is modifying some global state.
Sample failure: https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8804297826222711985/+/u/test:_Run_tests_on_macOS_Safari/stdout
Edit by @yjbanov: refined this bug report with more details. | a: tests,team,framework,platform-web,browser: edge,P2,team-web,triaged-web | low | Critical |
565,598,565 | go | runtime/race: report TSAN memory statistics | I don't really have specific recommendations here, but I wanted to report this troubleshooting session, because this is the worst time I've ever had trying to troubleshoot Go program performance, I was at my wit's end trying to debug it, Go has a brand of being not difficult to troubleshoot, and "I can find the problems quickly" is a big part of the reason I like the language. So some time spent thinking about and fixing these issues seems useful.
The details of the program are not that important, but I had a pretty simple program that checks for rows in a Postgres database, updates their status if it finds one, then makes an HTTP request with the contents of the database row. I tested it by writing a single database row once per second, with a single worker. Via `*DBStats` I never had more than 4 database conns open at a time.
What I observed was **high and growing RSS usage.** In production this would result in the program being OOM killed after some length of time. Locally on my Mac, RAM use grew from 140MB to 850MB when I left it running overnight.
I tried all of the tricks I could find via blog posts:
- disabling HTTP2 support
- disabling MADV_DONTNEED
- setting Connection: close on the HTTP Client
- manually inspecting the code for goroutine leaks (constant use of around 20 goroutines)
- manually inspecting the code for defers in a for loop in a long running function, unbounded array appends etc. (none)
- ensuring HTTP bodies were fully consumed, DB queries closed after use, etc.
None of these made a difference, the memory usage kept growing. Running pprof and looking at the runtime memory statistics, I was struck by a difference between the reported values and the actual observed memory usage. These numbers are after the program had been running all night and Activity Monitor told me it was using 850MB of RAM.
```
# runtime.MemStats
# Alloc = 3410240
# TotalAlloc = 2834416608
# Sys = 213078288
# Lookups = 0
# Mallocs = 38955235
# Frees = 38943138
# HeapAlloc = 3410240
# HeapSys = 199819264
# HeapIdle = 194469888
# HeapInuse = 5349376
# HeapReleased = 192643072
# HeapObjects = 12097
# Stack = 1376256 / 1376256
# MSpan = 132600 / 196608
# MCache = 13888 / 16384
# BuckHashSys = 2045579
# GCSys = 8042776
# OtherSys = 1581421
# NextGC = 4194304
# LastGC = 1581710840991223000
# PauseNs = [...]
# PauseEnd = [...]
# NumGC = 1187
# NumForcedGC = 0
# GCCPUFraction = 4.524177278457185e-06
# DebugGC = false
```
Specifically there's only about 200MB of "Sys" allocated and that number stayed pretty constant even though Activity Monitor reported the program was using about 850MB of RSS.
Another odd thing was the `inuse_space` heap profile only reported about 340kB of RAM usage. This sample was taken after reducing `runtime.MemProfileRate` to 512 and after leaving the program running all night.
```
(pprof) top20
Showing nodes accounting for 313.47kB, 91.83% of 341.36kB total
Dropped 100 nodes (cum <= 1.71kB)
Showing top 20 nodes out of 130
flat flat% sum% cum cum%
76.76kB 22.49% 22.49% 76.76kB 22.49% runtime.malg
68.02kB 19.93% 42.41% 68.02kB 19.93% bufio.NewReaderSize (inline)
54kB 15.82% 58.23% 54kB 15.82% github.com/rcrowley/go-metrics.newExpDecaySampleHeap (inline)
15.35kB 4.50% 62.73% 57.89kB 16.96% github.com/kevinburke/rickover/dequeuer.(*Dequeuer).Work
15.35kB 4.50% 67.23% 15.35kB 4.50% net/http.(*persistConn).roundTrip
14.80kB 4.34% 71.56% 15.90kB 4.66% database/sql.(*Rows).awaitDone
9.99kB 2.93% 74.49% 13.55kB 3.97% github.com/lib/pq.NewConnector
8.77kB 2.57% 77.06% 8.77kB 2.57% database/sql.(*Tx).awaitDone
8.28kB 2.43% 79.48% 69.90kB 20.48% github.com/lib/pq.(*Connector).open
8kB 2.34% 81.83% 8kB 2.34% bufio.NewWriterSize
8kB 2.34% 84.17% 8kB 2.34% hash/crc32.slicingMakeTable
5.24kB 1.53% 85.71% 10.23kB 3.00% github.com/lib/pq.(*conn).prepareTo
4kB 1.17% 86.88% 4kB 1.17% runtime.allgadd
```
I would have expected that number to be a lot higher.
Eventually I realized that I had been running this program with the race detector on - performance isn't super important but correctness is so I wanted to ensure I caught any unsafe reads or writes. Some searching around in the issue tracker revealed this issue - https://github.com/golang/go/issues/26813 - which seems to indicate that the race detector might not clean up correctly after defers and recovers.
Recompiling and running the program without the race detector seems to eliminate the leak. It would be great to have confirmation that #26813 is actually the problem, though. github.com/lib/pq uses recover and panic quite heavily to do fast stack unwinds - similar to the JSON package - but as far as I can tell from adding print statements to my test program, it's not ever actually panicking, so maybe just the heavy use of `recover` and my use of `defer context.cancel()` is enough to set it off.
Look, it is fine if the race detector leaks memory, and I understand running programs in production for days on end with the race detector on is atypical. What bothered me more was **how hard this was to track down, and how poorly the tooling did at identifying the actual problem.** The [only documentation on the runtime performance of the race detector states](https://golang.org/doc/articles/race_detector.html#Runtime_Overheads):
> The cost of race detection varies by program, but for a typical program, memory usage may increase by 5-10x and execution time by 2-20x.
I read pretty much every blog post anyone had written on using pprof and none of them mentioned this issue, either.
It would be nice if runtime.MemStats had a section about memory allocated for the race detector, or if there was more awareness/documentation of this issue somewhere. I'm sure there are other possible solutions that I'm probably not aware of because I'm not super familiar | NeedsInvestigation,compiler/runtime | medium | Critical |
565,602,449 | TypeScript | Add `import type "mod"` | ## Search Terms
type-only import
## Suggestion
The new type-only import syntax supports most variations of `import` statement but not this one:
`import type 'mod'`
It may seem stupid because no type is actually imported?! But it's in fact useful if `mod` contains some global declarations that you need.
Global declarations are currently only imported from: `typeroots` (`@types/*` by default) or `types` configs; and referenced modules.
~This syntax is even more useful because it can't be emulated today. If you do `import 'mod'` then typing works _but_ TS assumes you import the module for side-effects and will _not_ erase it.~(EDIT: see triple-slash comment)
## Use Cases
I encountered this today.
One package I use provides some dependency injection and basically defines the following module augmentation:
`inject(x: 'myType'): MyType`
which is a strongly typed overload of
`inject<T = unknown>(x: string): T`.
Inject itself comes from another library so code that wants to use this import needs to do this:
```ts
import { inject } from 'other-lib';
import type 'my-lib';
let my = inject('myType'); // correctly typed as MyType
```
Current work-arounds include:
- Importing a type `import { MyType } from 'my-lib'` but if you don't use it in code it'll be a warning;
- Import without type `import 'my-lib'` but it won't be erased;
- ~Add this lib to `typeroots` or `types` and do nothing (might be better in some cases).~ (EDIT: not really working, see [my comment below](https://github.com/microsoft/TypeScript/issues/36812#issuecomment-586526700) for an alternative solution.)
- Use `/// <reference types="mod" />`, which works but I think most people have forgotten about? (I have 😜)
## 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,In Discussion,Awaiting More Feedback | medium | Major |
565,604,835 | pytorch | Make it easier to add new messages in RPC layer | ## 🚀 Feature
As more features are implemented in the RPC layer there will likely be a need to add new message types and custom logic for responding to those messages.
Currently, there is a lot of scaffolding that needs to be written which is sort of duplicated across message types, for example we need to:
1) define the message type
2) define whether it is a request or response
3) define its serdes methods
4) define how we should respond to the message
All of these hooks need to be added in separate files and it's quite easy to miss certain hooks and spend extra time debugging. It would be good to consolidate, such as by implementing some of the ideas below:
1) Have all RPC commands define an `execute()` method, and call this in `request_callback_impl.cpp`. This will save us the giant switch statement there (there is a TODO for this in the code currently)
2) Encapsulate the message type and whether it is a request/response into a single point of truth,
3) Provide a `registerMessage()` or similar interface where the user can just define their message type, any custom logic needed to convert from message --> command, and how to respond to the message. The framework will take care of instantiating the concrete objects via lambda functions that the developer can pass in.
## Motivation
It takes quite a bit of time to add new messages/commands currently.
cc @pietern @mrshenli @pritamdamania87 @zhaojuanmao @satgera @gqchen @aazzolini @rohan-varma @xush6528 @jjlilley @osalpekar | triaged,better-engineering,module: rpc | low | Critical |
565,605,196 | PowerToys | [PowerRename] Warn when renaming results in equivalent names | # Summary of the new feature/enhancement
Show a warning when renaming files results in some of them getting equivalent names.
# Details
Right now the files which should get equal names actually get enumerated, for example, if we have ab.txt and ba.txt and we replace b by a, we get aa.txt and aa (2).txt. Not just this, but no warning appears if files with the same target name already exist in that folder. | Idea-Enhancement,Product-PowerRename | low | Major |
565,606,992 | TypeScript | Support symbol properties on namespaces | ## Search Terms
- namespace symbol
- namespace symbol property
- namespace symbol properties
## Suggestion
The ability to declare symbol properties on **TypeScript** namespaces.
## Use Cases
See <https://github.com/DefinitelyTyped/DefinitelyTyped/pull/42154#discussion_r376739320>.
## Examples
```ts
// doSomething.d.ts
import { promisify } from "util";
declare function doSomething(
foo: any,
onSuccessCallback: (result: string) => void,
onErrorCallback: (reason: any) => void
);
declare namespace doSomething {
function [promisify.custom](foo: any): Promise<string>;
}
export = doSomething;
```
## 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,In Discussion | low | Critical |
565,609,340 | rust | Bad quality code for `Clone` on enum types | For this Rust code, we get some pretty bad assembly:
```rust
#[derive(Clone)]
pub enum Foo {
A(u8),
B(bool),
}
#[derive(Clone)]
pub enum Bar {
C(Foo),
D(u8),
}
pub fn clone_foo(f: &Foo) -> Foo {
f.clone()
}
pub fn clone_bar(b: &Bar) -> Bar {
b.clone()
}
```
([Playground](https://play.rust-lang.org/?version=stable&mode=release&edition=2018&gist=c14facc15a40601a2eb8dd10e122e421))
Assembly:
```
playground::clone_bar:
movb 1(%rdi), %al
cmpb $1, (%rdi)
jne .LBB1_2
xorl %ecx, %ecx
movl $1, %edx
jmp .LBB1_3
.LBB1_2:
movzbl 2(%rdi), %edx
xorl %ecx, %ecx
testb %dl, %dl
setne %cl
cmpb $1, %al
sete %al
cmovnel %edx, %ecx
shll $16, %ecx
xorl %edx, %edx
.LBB1_3:
orl %edx, %ecx
movzbl %al, %eax
shll $8, %eax
orl %ecx, %eax
retq
```
To see that it's possibly to do better, we can simply add a `Copy` instance to the types. Then the code _even for `Clone`_ gets much better:
```rust
#[derive(Clone, Copy)]
pub enum Foo {
A(u8),
B(bool),
}
#[derive(Clone, Copy)]
pub enum Bar {
C(Foo),
D(u8),
}
pub fn clone_foo(f: &Foo) -> Foo {
f.clone()
}
pub fn clone_bar(b: &Bar) -> Bar {
b.clone()
}
```
([Playground](https://play.rust-lang.org/?version=stable&mode=release&edition=2018&gist=4215a15ed3879563d06ab23e548ff8b1))
Assembly:
```
playground::clone_bar:
movzwl (%rdi), %ecx
movzbl 2(%rdi), %eax
shll $16, %eax
orl %ecx, %eax
retq
```
It's still not perfect (why are there two 2-byte loads instead of a single 4-byte load?) but it's much better. | I-slow,C-enhancement,A-codegen,T-compiler | low | Major |
565,626,196 | pytorch | Expose `internal::GRAIN_SIZE` through Python API. | ## 🚀 Feature
Currently the `internal::GRAIN_SIZE` is visible only via the C++ API. Its hard to know how many threads will be spawned by a given method for purposes of debugging or performance analysis purely through the Python API.
Having a way to do this using something like `torch.GRAIN_SIZE` should serve as a simple way of doing this.
## Motivation
I'm working on https://github.com/pytorch/pytorch/issues/33065 and find that I can't easily get the grain size from the python API and need to put a `cout` in the C++ code and then recompile it.
## Pitch
`torch.GRAIN_SIZE` should return the `internal::GRAIN_SIZE` number.
| triaged,enhancement,module: multithreading | low | Critical |
565,629,307 | flutter | [web]: Platform.isAndroid and Platform.isIOS crash and can't be caught | Internal: b/207023188
Supporting web is difficult because I can't detect whether the web platform is in use.
I tried `!Platform.isAndroid && !Platform.isIOS`, but it crashes. I used a try-catch around it. It freezes. I have to fully stop the emulator to recover. It still crashes on re-attempt. | c: crash,framework,dependency: dart,platform-web,P2,team-web,triaged-web | low | Critical |
565,716,552 | go | x/tools/gopls: support advanced query syntax for Symbol | <!-- Please answer these questions before submitting your issue. Thanks! -->
### What version of Go are you using (`go version`)?
<pre>
$ go version
go version devel +b7689f5aa3 Fri Jan 31 06:02:00 2020 +0000 linux/amd64
$ go list -m golang.org/x/tools
golang.org/x/tools v0.0.0-20200214144324-88be01311a71
$ go list -m golang.org/x/tools/gopls
golang.org/x/tools/gopls v0.1.8-0.20200214144324-88be01311a71
</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="on"
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/myitcv/.cache/go-build"
GOENV="/home/myitcv/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/myitcv/gostuff"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/home/myitcv/gos"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/home/myitcv/gos/pkg/tool/linux_amd64"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/home/myitcv/gostuff/src/github.com/myitcv/govim/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-build646330205=/tmp/go-build -gno-record-gcc-switches"
</pre></details>
### What did you do?
This is a request/proposal more than an issue.
We were discussing with @findleyr a means by which symbol search can be made more useful (in Vim). With #37236 fixed, the existing Symbol method will return matches from within the workspace (main module). But a fairly common query is to find symbols matching the query within the "current" package, where "current" is defined by the file within which the cursor is located. i.e. I want to jump to the definition of the method `(*T).M`.
Because the editor/client knows nothing about packages, I think this will require a query similar to the following. Imagine we are searching using the term `hello`, with the cursor in the file `main.go`
```
package:/path/to/main.go hello
```
`gopls` would then translate the file URI to a package and suitably constrain the results.
---
cc @stamblerre @findleyr
FYI @leitzler
| help wanted,FeatureRequest,gopls,Tools | medium | Critical |
565,716,655 | pytorch | torch.clamp_ not inplace during backward | I use torch.clamp_ to avoid forward overflow for fp16 calculation.
It does not consume extra memory during forward pass.
However, it has the **same gpu memory cost** as torch.clamp during backward pass.
In comparison, torch.relu_ does not take extra gpu memory during both forward and backward pass.
torch version: 1.3.0
torch.version.cuda: 10.1.243
```
_conv3d = nn.Conv3d
class Conv3dWrapper(_conv3d):
def __init__(self, in_channels, out_channels, kernel_size, stride=1, padding=0, dilation=1,
groups=1, bias=True, padding_mode='zeros'):
super(Conv3dWrapper, self).__init__(in_channels, out_channels, kernel_size, stride,
padding, dilation, groups, bias, padding_mode)
def forward(self, input):
return torch.clamp_(super(Conv3dWrapper, self).forward(input), -65504, 65504)
_conv_trans3d = nn.ConvTranspose3d
class ConvTranspose3dWrapper(_conv_trans3d):
def __init__(self, in_channels, out_channels, kernel_size, stride=1, padding=0,
output_padding=0, groups=1, bias=True, dilation=1, padding_mode='zeros'):
super(ConvTranspose3dWrapper, self).__init__(in_channels, out_channels, kernel_size,
stride, padding, output_padding, groups, bias, dilation, padding_mode)
def forward(self, input):
return torch.clamp_(super(ConvTranspose3dWrapper, self).forward(input), -65504, 65504)
```
cc @ezyang @SsnL @albanD @zou3519 @gqchen | module: autograd,module: memory usage,triaged | low | Major |
565,719,408 | node | vm: Function declarations should use [[Define]] instead of [[Set]] on the global object | - **Version**: v13.8.0
- **Platform**: All; tested on **Travis CI** (**Ubuntu 16.04.6 LTS**)
- **Subsystem**: vm
## What steps will reproduce the bug?
```js
const vm = require("vm");
let impl = { status: "" };
let ctx = vm.createContext();
Object.defineProperty(ctx, "status", {
configurable: true,
enumerable: true,
get() {
return impl.status;
},
set(v) {
impl.status = `${v}`;
}
});
// https://github.com/web-platform-tests/wpt/blob/master/xhr/status-async.htm
vm.runInContext(`
function statusRequest(...args) {
console.log(args.map(JSON.stringify).join("\t"));
}
function status(code, text, content, type) {
statusRequest("GET", code, text, content, type);
statusRequest("HEAD", code, text, content, type);
statusRequest("CHICKEN", code, text, content, type);
}
status(204, "UNICORNSWIN", "", "")
status(401, "OH HELLO", "Not today.", "")
status(402, "FIVE BUCKS", "<x>402<\/x>", "text/xml")
status(402, "FREE", "Nice!", "text/doesnotmatter")
status(402, "402 TEH AWESOME", "", "")
status(502, "YO", "", "")
status(502, "lowercase", "SWEET POTATO", "text/plain")
status(503, "HOUSTON WE HAVE A", "503", "text/plain")
status(699, "WAY OUTTA RANGE", "699", "text/plain")
`, ctx);
```
## How often does it reproduce? Is there a required condition?
Always.
## What is the expected behavior?
The functions get defined using `[[DefineOwnProperty]]` as specified in [ECMA‑262 § 8.1.1.4.18 `CreateGlobalFunctionBinding`](https://tc39.es/ecma262/#sec-createglobalfunctionbinding).
<details>
<summary><strong>Expected log output</strong></summary>
<pre><table><tr><td>"GET"</td> <td>204</td> <td>"UNICORNSWIN"</td> <td>""</td> <td>""</td></tr>
<tr><td>"HEAD"</td> <td>204</td> <td>"UNICORNSWIN"</td> <td>""</td> <td>""</td></tr>
<tr><td>"CHICKEN"</td> <td>204</td> <td>"UNICORNSWIN"</td> <td>""</td> <td>""</td></tr>
<tr><td>"GET"</td> <td>401</td> <td>"OH HELLO"</td> <td>"Not today."</td> <td>""</td></tr>
<tr><td>"HEAD"</td> <td>401</td> <td>"OH HELLO"</td> <td>"Not today."</td> <td>""</td></tr>
<tr><td>"CHICKEN"</td> <td>401</td> <td>"OH HELLO"</td> <td>"Not today."</td> <td>""</td></tr>
<tr><td>"GET"</td> <td>402</td> <td>"FIVE BUCKS"</td> <td>"<x>402</x>"</td> <td>"text/xml"</td></tr>
<tr><td>"HEAD"</td> <td>402</td> <td>"FIVE BUCKS"</td> <td>"<x>402</x>"</td> <td>"text/xml"</td></tr>
<tr><td>"CHICKEN"</td> <td>402</td> <td>"FIVE BUCKS"</td> <td>"<x>402</x>"</td> <td>"text/xml"</td></tr>
<tr><td>"GET"</td> <td>402</td> <td>"FREE"</td> <td>"Nice!"</td> <td>"text/doesnotmatter"</td></tr>
<tr><td>"HEAD"</td> <td>402</td> <td>"FREE"</td> <td>"Nice!"</td> <td>"text/doesnotmatter"</td></tr>
<tr><td>"CHICKEN"</td> <td>402</td> <td>"FREE"</td> <td>"Nice!"</td> <td>"text/doesnotmatter"</td></tr>
<tr><td>"GET"</td> <td>402</td> <td>"402 TEH AWESOME"</td> <td>""</td> <td>""</td></tr>
<tr><td>"HEAD"</td> <td>402</td> <td>"402 TEH AWESOME"</td> <td>""</td> <td>""</td></tr>
<tr><td>"CHICKEN"</td> <td>402</td> <td>"402 TEH AWESOME"</td> <td>""</td> <td>""</td></tr>
<tr><td>"GET"</td> <td>502</td> <td>"YO"</td> <td>""</td> <td>""</td></tr>
<tr><td>"HEAD"</td> <td>502</td> <td>"YO"</td> <td>""</td> <td>""</td></tr>
<tr><td>"CHICKEN"</td> <td>502</td> <td>"YO"</td> <td>""</td> <td>""</td></tr>
<tr><td>"GET"</td> <td>502</td> <td>"lowercase"</td> <td>"SWEET POTATO"</td> <td>"text/plain"</td></tr>
<tr><td>"HEAD"</td> <td>502</td> <td>"lowercase"</td> <td>"SWEET POTATO"</td> <td>"text/plain"</td></tr>
<tr><td>"CHICKEN"</td> <td>502</td> <td>"lowercase"</td> <td>"SWEET POTATO"</td> <td>"text/plain"</td></tr>
<tr><td>"GET"</td> <td>503</td> <td>"HOUSTON WE HAVE A"</td> <td>"503"</td> <td>"text/plain"</td></tr>
<tr><td>"HEAD"</td> <td>503</td> <td>"HOUSTON WE HAVE A"</td> <td>"503"</td> <td>"text/plain"</td></tr>
<tr><td>"CHICKEN"</td> <td>503</td> <td>"HOUSTON WE HAVE A"</td> <td>"503"</td> <td>"text/plain"</td></tr>
<tr><td>"GET"</td> <td>699</td> <td>"WAY OUTTA RANGE"</td> <td>"699"</td> <td>"text/plain"</td></tr>
<tr><td>"HEAD"</td> <td>699</td> <td>"WAY OUTTA RANGE"</td> <td>"699"</td> <td>"text/plain"</td></tr>
<tr><td>"CHICKEN"</td> <td>699</td> <td>"WAY OUTTA RANGE"</td> <td>"699"</td> <td>"text/plain"</td></tr></table></pre>
</details>
## What do you see instead?
```
evalmachine.<anonymous>:10
status(204, "UNICORNSWIN", "", "")
^
Uncaught TypeError: status is not a function
at evalmachine.<anonymous>:10:1
at Script.runInContext (vm.js:131:20)
at Object.runInContext (vm.js:295:6)
at repl:1:4
at Script.runInThisContext (vm.js:120:20)
at REPLServer.defaultEval (repl.js:432:29)
at bound (domain.js:429:14)
at REPLServer.runBound [as eval] (domain.js:442:12)
at REPLServer.onLine (repl.js:759:10)
at REPLServer.emit (events.js:333:22)
```
## Additional information
Discovered in: <https://github.com/jsdom/jsdom/pull/2835#discussion_r379706437>
## See also
- <https://github.com/nodejs/node/issues/38918> | vm,v8 engine | low | Critical |
565,721,418 | TypeScript | Variable initializer omits an error on destructuring assignment | <!-- 🚨 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.7.x-dev.20200213
<!-- Search terms you tried before logging this (so others can find this issue more easily) -->
**Search Terms:**
**Code**
```ts
const [[{ data: a }]] = [] as [Text[]] | []; // error
const [[{ data: b }] = []] = [] as [Text[]] | []; // no error
```
**Expected behavior:**
```ts
const [[{ data: a }]] = [] as [Text[]] | []; // error
const [[{ data: b }] = []] = [] as [Text[]] | []; // error
```
**Actual behavior:**
```ts
const [[{ data: a }]] = [] as [Text[]] | []; // error
const [[{ data: b }] = []] = [] as [Text[]] | []; // no error
```
**Playground Link:** http://www.typescriptlang.org/play/index.html?ts=3.9.0-dev.20200213&ssl=2&ssc=50&pln=1&pc=1#code/MYewdgzgLgBA2nA3jAJgQymgXDNMC+AuoTALzwloTwAqApgB5RzEwA+FA3AFCiSwJk6TDgBGBEuRaSKuanHpNp7LkA
**Related Issues:** <!-- Did you find other bugs that looked similar? -->
| Bug | low | Critical |
565,722,939 | neovim | Concurrent startup/exit corrupts shada on windows | <!-- Before reporting: search existing issues and check the FAQ. -->
- `nvim --version`: bb331a9
- Operating system/version: Windows 10
### Steps to reproduce using `nvim -u NORC`
Install Firefox Nightly, Neovim and NodeJS in a [Windows 10 VM](https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/). Then, install Firenvim [from source](https://github.com/glacambre/firenvim#from-source) and run its testsuite (`npm run test`) a few times.
### Actual behaviour
Neovim eventually corrupts the shada file. I can only reproduce this by running the Firenvim testsuite (which starts and kills lots of neovim process very quickly) on a Windows VM (which is pretty slow). I know reproducing this would be a lot of effort so feel free to ask for more information, I'll be happy to run whatever steps need to be ran.
Using `-i NONE` is an acceptable workaround for my usecase.
Here are two example corrupted shada directories: https://file.io/DpD6xJ
https://file.io/J2daeD
In both cases, the error message is `E576: Error while reading ShaDa file: last entry specified that it occupies 99 bytes, but file ended earlier.`. | bug,multiproc,editor-state | low | Critical |
565,731,373 | go | x/crypto/ssh: TCP/IP port forwarding expects IP addresses | [`(*ssh.Client).ListenTCP`](https://github.com/golang/crypto/blob/034e5325b6ab92faa14d15c30e86919e911cf8e0/ssh/tcpip.go#L101-L139) expects an IP address (via `*net.TCPAddr`) and therefore [`(*ssh.Client).Listen`](https://github.com/golang/crypto/blob/034e5325b6ab92faa14d15c30e86919e911cf8e0/ssh/tcpip.go#L19-L37) attempts to resolve addresses.
However, [section 7.1 of RFC 4254](https://tools.ietf.org/html/rfc4254#section-7.1) states:
> The 'address to bind' and 'port number to bind' specify the IP
> address (or domain name) and port on which connections for forwarding
> are to be accepted. Some strings used for 'address to bind' have
> special-case semantics.
>
> - "" means that connections are to be accepted on all protocol
> families supported by the SSH implementation.
>
> - "0.0.0.0" means to listen on all IPv4 addresses.
>
> - "::" means to listen on all IPv6 addresses.
>
> - "localhost" means to listen on all protocol families supported by
> the SSH implementation on loopback addresses only ([RFC3330] and
> [RFC3513]).
>
> - "127.0.0.1" and "::1" indicate listening on the loopback
> interfaces for IPv4 and IPv6, respectively.
There are two consequences of the current interface:
1. You can only provide resolvable names. This prohibits two of the strings with special-case semantics from working (`""`, reported in #33227, and `"::"`).
2. Resolution happens client side. This changes the meaning of the string `"localhost"` from being "all protocol families supported by the SSH implementation on loopback addresses only" to being only one of those and may provide a different result for other names (AWS hostnames resolving to internal addresses inside a data center comes to mind).
Outside of defining a new public interface, I think the least breaking change would be to extract an unexported `listenTCP` function taking a string address and call this from `Listen` which can then drop resolution but of course if you're relying on that behavior, it will still be surprising.
I'm happy to submit a pull request but I'd appreciate some thoughts on how to best evolve the interface into something that both supports the scope of the RFC and doesn't disregard current users. | NeedsInvestigation | low | Major |
565,735,901 | terminal | WT -? -help --help window should include a link to the command line arguments |
# including a perma link into the help window
currently the help output is very basic.
Usually commands in cmd / powershell will not open a Win32 message box for help (except some few like slmgr, msiexec but print it in the console
# including a link or output in console session
Please consider to output the help content into the console session and / or include a permanent link to
https://github.com/microsoft/terminal/blob/master/doc/user-docs/UsingCommandlineArguments.md
for further documentation. . This will help new users
currently the output is a Win32 message box.
---------------------------
Help
---------------------------
wt - the Windows Terminal
Usage: [OPTIONS] [SUBCOMMAND]
Options:
-h,--help Print this help message and exit
Subcommands:
new-tab Create a new tab
split-pane Create a new split pane
focus-tab Move focus to another tab
---------------------------
OK
---------------------------
| Product-Terminal,Issue-Task,Area-Commandline | low | Minor |
565,808,018 | pytorch | Illegal instruction: 4 - OSX 10.13.6 install from source | ## 🐛 Bug
<!-- A clear and concise description of what the bug is. -->
## To Reproduce
Steps to reproduce the behavior:
1. git clone --recursive https://github.com/pytorch/pytorch
...
2. export CMAKE_PREFIX_PATH=${CONDA_PREFIX:-"$(dirname $(which conda))/../"}
3. MACOSX_DEPLOYMENT_TARGET=10.13.6 CC=clang CXX=clang++ python setup.py install
Illegal instruction: 4
## Expected behavior
This installation was already done some days before and it worked, but without cudnn.
Pytorch was removed with pip and cudnn files were added.
The same install command, as before and the message "**_Illegal instruction: 4_**" was displayed. Hardware is not changed.
cuddn files removed, install retried - same message.
## Environment
from collect_env:
PyTorch version: N/A
Is debug build: N/A
CUDA used to build PyTorch: N/A
OS: Mac OSX 10.13.6
GCC version: Could not collect
CMake version: version 3.14.0
Python version: 3.6
Is CUDA available: N/A
CUDA runtime version: Could not collect
GPU models and configuration: Could not collect
Nvidia driver version: 1.1.0
cuDNN version: Probably one of the following:
/usr/local/cuda/lib/libcudnn.7.dylib
/usr/local/cuda/lib/libcudnn_static.a
Versions of relevant libraries:
[pip3] numpy==1.18.1
[pip3] numpydoc==0.9.2
[conda] blas 1.0 mkl
[conda] mkl 2019.4 233
[conda] mkl-include 2020.0 166
[conda] mkl-service 2.3.0 py36hfbe908c_0
[conda] mkl_fft 1.0.15 py36h5e564d8_0
[conda] mkl_random 1.1.0 py36ha771720_0
--
from conda info:
conda version : 4.8.2
conda-build version : 3.18.11
python version : 3.6.10.final.0
virtual packages : __cuda=10.1
--
kextstat | grep -i cuda
147 0 0xffffff7f8197c000 0x2000 0x2000 com.nvidia.CUDA (1.1.0) 5CF5D7EC-2985-32A1-9150-1BE18678BFC6 <4 1>
cudnn: 7.6.3.30
--
Hardware:
MacPro 5.1
NVIDIA GeForce GTX 960
| module: build,triaged,module: macos | low | Critical |
565,833,822 | pytorch | Sobol engine generates out-of-bounds samples after drawing too many samples | ## 🐛 Bug
The SobolEngine should always produce points between [0, 1]. However, after drawing about a billion samples, it produces points far outside this range.
## To Reproduce
```
import torch
i = 1
sobol = torch.quasirandom.SobolEngine(dimension=2)
while True:
X = sobol.draw(1000000)
print('iteration: %d, min=%0.9f, max=%0.9f, mean=%0.9f'% (i, X.min(), X.max(), X.mean()))
i += 1
```
## Expected behavior
The first few iterations are correct (all values between 0 and 1):
```
iteration: 1, min=0.000000954, max=0.999999046, mean=0.499999553
iteration: 2, min=0.000000477, max=0.999999523, mean=0.499999940
iteration: 3, min=0.000000238, max=0.999999762, mean=0.500000298
```
At iteration 1074, the bug appears:
```
iteration: 1072, min=0.000000286, max=0.999998808, mean=0.500000775
iteration: 1073, min=0.000000955, max=0.999999821, mean=0.499999911
iteration: 1074, min=0.000000001, max=131019.000000000, mean=16913.619140625
iteration: 1075, min=0.000000955, max=131019.000000000, mean=65512.328125000
```
## Environment
- PyTorch Version (e.g., 1.0): 1.4.0
- OS (e.g., Linux): Linux
- How you installed PyTorch (`conda`, `pip`, source): pip
- Build command you used (if compiling from source): N/A
- Python version: 3.7.5
- CUDA/cuDNN version: not relevant
- GPU models and configuration: not relevant
| triaged,module: random | low | Critical |
565,834,982 | go | x/crypto/ssh: add support for [email protected] | The `[email protected]` extension lets a server notify a client of all its host keys to enable a smooth transition if they have [UpdateHostKeys](https://manpages.debian.org/buster/openssh-client/ssh_config.5.en.html#UpdateHostKeys) enabled. We should offer it server-side. | help wanted,Proposal,Proposal-Accepted,NeedsFix,FeatureRequest,Proposal-Crypto | medium | Major |
565,840,794 | pytorch | It is not good to separate the steps of modules making and forward computation | ## 🚀 Feature
Hi, dear developers, I think,
<!-- A clear and concise description of the feature proposal -->
It is not good to separate the steps of modules making and forward computation,
which should be combined like a circuit diagram
## 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 -->
Because separating the steps of modules making and forward computation will make code highly redundant, as the module initiation and forward computation are a procedure essentially the same.
## Pitch
<!-- A clear and concise description of what you want to happen. -->
## 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. -->
| feature,triaged | low | Minor |
565,847,094 | youtube-dl | It would be awesome if youtube-dl had an option to define maximum time allowed for the download | <!--
######################################################################
WARNING!
IGNORING THE FOLLOWING TEMPLATE WILL RESULT IN ISSUE CLOSED AS INCOMPLETE
######################################################################
-->
## Checklist
<!--
Carefully read and work through this check list in order to prevent the most common mistakes and misuse of youtube-dl:
- First of, make sure you are using the latest version of youtube-dl. Run `youtube-dl --version` and ensure your version is 2020.01.24. If it's not, see https://yt-dl.org/update on how to update. Issues with outdated version will be REJECTED.
- Search the bugtracker for similar feature requests: http://yt-dl.org/search-issues. DO NOT post duplicates.
- Finally, put x into all relevant boxes (like this [x])
-->
- [x] I'm reporting a feature request
- [x] I've verified that I'm running youtube-dl version **2020.01.24**
- [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.
-->
Due to restrictions in my workplace I need to interrupt my download after x seconds and then wait with a timeout to continue downloading and then repeat this process again and again until the download is complete.
I tried use this option:
--external-downloader curl --external-downloader-args “--max-time <seconds>”
But the problem is when the “--max-time” option is complete I think youtube-dl detect it as an error in the connection and it try to auto retry the download and start the download process again.
I not found an option in youtube-dl to set no rety. The only option I see is --retries wish define the number of retries and when I set --retries 0 an error occurs.
Thank you for your attention and please let me know if there is a better way to do what I trie to do with youtube-dl
Sorry for my poor english
| request | low | Critical |
565,874,537 | pytorch | PyTorch 1.4.0 does not support using `Module` or `ModuleList` in attribute annotations in ScriptModule | ## 🐛 Bug
<!-- A clear and concise description of what the bug is. -->
## To Reproduce
The following piece of code:
```python
import torch
from torch import Tensor, zeros
from torch.nn import Module, Linear, ModuleList
from torch.jit import script
class MyModule(torch.nn.Module):
__constants__ = ('wrapped',)
wrapped: Module
def __init__(self, wrapped: Module):
super().__init__()
self.wrapped = wrapped
def forward(self, input: Tensor):
return self.wrapped(input)
m = script(MyModule(Linear(3, 3)))
```
would produce the following traceback:
```
/opt/local/miniconda3/envs/py3.6/bin/python /Users/ipwx/projects/tensorkit/debug.py
Traceback (most recent call last):
File "/Users/ipwx/projects/tensorkit/debug.py", line 19, in <module>
m = script(MyModule(Linear(3, 3)))
File "/opt/local/miniconda3/envs/py3.6/lib/python3.6/site-packages/torch/jit/__init__.py", line 1255, in script
return torch.jit._recursive.recursive_script(obj)
File "/opt/local/miniconda3/envs/py3.6/lib/python3.6/site-packages/torch/jit/_recursive.py", line 534, in recursive_script
return create_script_module(nn_module, infer_methods_to_compile(nn_module))
File "/opt/local/miniconda3/envs/py3.6/lib/python3.6/site-packages/torch/jit/_recursive.py", line 293, in create_script_module
concrete_type = concrete_type_store.get_or_create_concrete_type(nn_module)
File "/opt/local/miniconda3/envs/py3.6/lib/python3.6/site-packages/torch/jit/_recursive.py", line 236, in get_or_create_concrete_type
concrete_type_builder = infer_concrete_type_builder(nn_module)
File "/opt/local/miniconda3/envs/py3.6/lib/python3.6/site-packages/torch/jit/_recursive.py", line 115, in infer_concrete_type_builder
attr_type = infer_type(name, item)
File "/opt/local/miniconda3/envs/py3.6/lib/python3.6/site-packages/torch/jit/_recursive.py", line 79, in infer_type
attr_type = torch.jit.annotations.ann_to_type(class_annotations[name])
File "/opt/local/miniconda3/envs/py3.6/lib/python3.6/site-packages/torch/jit/annotations.py", line 253, in ann_to_type
raise ValueError("Unknown type annotation: '{}'".format(ann))
ValueError: Unknown type annotation: '<class 'torch.nn.modules.module.Module'>'
```
Also, the following piece of code:
```python
from typing import *
import torch
from torch import Tensor, zeros
from torch.nn import Module, Linear, ModuleList
from torch.jit import script
class MyModule(torch.nn.Module):
__constants__ = ('wrapped',)
wrapped: ModuleList
def __init__(self, wrapped: List[Module]):
super().__init__()
self.wrapped = ModuleList(wrapped)
def forward(self, input: Tensor):
output = input
for m in self.wrapped:
output = m(output)
return output
m = script(MyModule([Linear(3, 3), Linear(3, 3)]))
```
would produce the following traceback:
```
Traceback (most recent call last):
File "/Users/ipwx/projects/tensorkit/debug.py", line 24, in <module>
m = script(MyModule([Linear(3, 3), Linear(3, 3)]))
File "/opt/local/miniconda3/envs/py3.6/lib/python3.6/site-packages/torch/jit/__init__.py", line 1255, in script
return torch.jit._recursive.recursive_script(obj)
File "/opt/local/miniconda3/envs/py3.6/lib/python3.6/site-packages/torch/jit/_recursive.py", line 534, in recursive_script
return create_script_module(nn_module, infer_methods_to_compile(nn_module))
File "/opt/local/miniconda3/envs/py3.6/lib/python3.6/site-packages/torch/jit/_recursive.py", line 293, in create_script_module
concrete_type = concrete_type_store.get_or_create_concrete_type(nn_module)
File "/opt/local/miniconda3/envs/py3.6/lib/python3.6/site-packages/torch/jit/_recursive.py", line 236, in get_or_create_concrete_type
concrete_type_builder = infer_concrete_type_builder(nn_module)
File "/opt/local/miniconda3/envs/py3.6/lib/python3.6/site-packages/torch/jit/_recursive.py", line 115, in infer_concrete_type_builder
attr_type = infer_type(name, item)
File "/opt/local/miniconda3/envs/py3.6/lib/python3.6/site-packages/torch/jit/_recursive.py", line 79, in infer_type
attr_type = torch.jit.annotations.ann_to_type(class_annotations[name])
File "/opt/local/miniconda3/envs/py3.6/lib/python3.6/site-packages/torch/jit/annotations.py", line 253, in ann_to_type
raise ValueError("Unknown type annotation: '{}'".format(ann))
ValueError: Unknown type annotation: '<class 'torch.nn.modules.container.ModuleList'>'
```
Also, I noticed that, if I removed the type annotation for `wrapped`, no error was thrown, but the code of `wrapped.forward` was not inlined, which was the behavior of PyTorch 1.3.1. Formally, the following piece of code:
```python
import torch
from torch import Tensor, zeros
from torch.nn import Module, Linear, ModuleList
from torch.jit import script
class MyModule(torch.nn.Module):
__constants__ = ('wrapped',)
# wrapped: Module
def __init__(self, wrapped: Module):
super().__init__()
self.wrapped = wrapped
def forward(self, input: Tensor):
return self.wrapped(input)
m = script(MyModule(Linear(3, 3)))
print(m.code)
```
would generate the following output:
```
def forward(self,
input: Tensor) -> Tensor:
return (self.wrapped).forward(input, )
```
but the same code generates the following output with PyTorch 1.3.1:
```
import __torch__
import __torch__.torch.nn.modules.linear
def forward(self,
input: Tensor) -> Tensor:
_0 = self.wrapped
_1 = _0.weight
_2 = _0.bias
if torch.eq(torch.dim(input), 2):
_3 = torch.__isnot__(_2, None)
else:
_3 = False
if _3:
bias = ops.prim.unchecked_unwrap_optional(_2)
ret = torch.addmm(bias, input, torch.t(_1), beta=1, alpha=1)
else:
output = torch.matmul(input, torch.t(_1))
if torch.__isnot__(_2, None):
bias0 = ops.prim.unchecked_unwrap_optional(_2)
output0 = torch.add_(output, bias0, alpha=1)
else:
output0 = output
ret = output0
return ret
```
## Expected behavior
I suppose PyTorch should support `Module` and `ModuleList` in its annotations, just as 1.3.1. Also, the code of wrapped is expected to be inlined, as a performance optimization.
## Environment
- PyTorch Version (e.g., 1.0): 1.4.0
- OS (e.g., Linux): Mac OSX 10.15.3
- How you installed PyTorch (`conda`, `pip`, source): pip
- Build command you used (if compiling from source): none
- Python version: 3.6
- CUDA/cuDNN version: none
- GPU models and configuration: none
- Any other relevant information: none
cc @suo | oncall: jit,triaged | low | Critical |
565,887,106 | flutter | "Invalid kernel binary format version" when Flutter Run with an Android Emulator | <!-- Thank you for using Flutter!
If you are looking for support, please check out our documentation
or consider asking a question on Stack Overflow:
* https://flutter.dev/
* https://api.flutter.dev/
* https://stackoverflow.com/questions/tagged/flutter?sort=frequent
If you have found a bug or if our documentation doesn't have an answer
to what you're looking for, then fill our the template below. Please read
our guide to filing a bug first: https://flutter.dev/docs/resources/bug-reports
-->
## Steps to Reproduce
<!-- Please tell us exactly how to reproduce the problem you are running into. -->
This error only occurs when `flutter run` with an Android Emulator, not with an iOS simulator.
An app is installed on the Android Emulator, however it shows a white screen when `flutter run` is executed or the app is launched by tapping in the home screen of the Emulator.
<!--
Include the full logs of the commands you are running between the lines
with the backticks below. If you are running any "flutter" commands,
please include the output of running them with "--verbose"; for example,
the output of running "flutter --verbose create foo".
-->
`flutter devices`
```
2 connected devices:
Android SDK built for x86 • emulator-5554 • android-x86 • Android Q (API 28) (emulator)
iPhone SE • DFF6CC19-AAE5-4BB4-A935-1D5A030BBDFB • ios • com.apple.CoreSimulator.SimRuntime.iOS-13-3 (simulator)
```
<details>
<summary>flutter run -d emul</summary>
```
$ flutter run -d emul
Using hardware rendering with device Android SDK built for x86. If you get graphics artifacts, consider enabling software rendering with "--enable-software-rendering".
Launching lib/main.dart on Android SDK built for x86 in debug mode...
Note: /Users/Moses/.pub-cache/hosted/pub.dartlang.org/path_provider-1.5.1/android/src/main/java/io/flutter/plugins/pathprovider/PathProviderPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Running Gradle task 'assembleDebug'...
Running Gradle task 'assembleDebug'... Done 20.0s
✓ Built build/app/outputs/apk/debug/app-debug.apk.
Installing build/app/outputs/apk/app.apk... 3.8s
E/flutter (22128): [ERROR:flutter/shell/common/shell.cc(202)] Dart Error: Can't load Kernel binary: Invalid kernel binary format version.
E/flutter (22128): [ERROR:flutter/shell/common/engine.cc(200)] Could not prepare to run the isolate.
E/flutter (22128): [ERROR:flutter/shell/common/engine.cc(139)] Engine not prepare and launch isolate.
E/flutter (22128): [ERROR:flutter/shell/common/shell.cc(464)] Could not launch engine with configuration.
Syncing files to device Android SDK built for x86...
6,247ms (!)
Flutter run key commands.
r Hot reload. 🔥🔥🔥
R Hot restart.
h Repeat this help message.
d Detach (terminate "flutter run" but leave application running).
c Clear the screen
q Quit (terminate the application on the device).
An Observatory debugger and profiler on Android SDK built for x86 is available at: http://127.0.0.1:55364/Ngy4kEJ5n7s=/
```
Press R to hot restart:
```
Performing hot restart... ⣻Error 105 received from application: Isolate must be runnable
Restarted application in 1,005ms.
Application finished.
hot restart failed to complete
$
```
`flutter run -d emul --verbose`
```
$ flutter run -d emul --verbose
[ +32 ms] executing: [/Users/Moses/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +40 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[ ] e481fcae528ef65de8d689213a710d567c7ab3ca
[ ] executing: [/Users/Moses/flutter/] git describe --match v*.*.* --first-parent --long --tags
[ +21 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags
[ ] v1.15.3-82-ge481fcae52
[ +9 ms] executing: [/Users/Moses/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[ +6 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[ ] origin/master
[ ] executing: [/Users/Moses/flutter/] git ls-remote --get-url origin
[ +6 ms] Exit code 0 from: git ls-remote --get-url origin
[ ] https://github.com/flutter/flutter.git
[ +60 ms] executing: [/Users/Moses/flutter/] git rev-parse --abbrev-ref HEAD
[ +7 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ ] master
[ +5 ms] executing: sw_vers -productName
[ +19 ms] Exit code 0 from: sw_vers -productName
[ ] Mac OS X
[ ] executing: sw_vers -productVersion
[ +17 ms] Exit code 0 from: sw_vers -productVersion
[ ] 10.15.3
[ ] executing: sw_vers -buildVersion
[ +18 ms] Exit code 0 from: sw_vers -buildVersion
[ ] 19D76
[ +30 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[ +3 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +53 ms] executing: /Users/Moses/Library/Android/sdk/platform-tools/adb devices -l
[ +9 ms] Exit code 0 from: /Users/Moses/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:1
[ +23 ms] executing: /usr/bin/xcode-select --print-path
[ +11 ms] Exit code 0 from: /usr/bin/xcode-select --print-path
[ ] /Applications/Xcode.app/Contents/Developer
[ +3 ms] executing: /usr/bin/xcodebuild -version
[ +135 ms] Exit code 0 from: /usr/bin/xcodebuild -version
[ +2 ms] Xcode 11.3.1
Build version 11C504
[ +1 ms] executing: xcrun --find xcdevice
[ +15 ms] Exit code 0 from: xcrun --find xcdevice
[ ] /Applications/Xcode.app/Contents/Developer/usr/bin/xcdevice
[ +2 ms] executing: xcrun xcdevice list --timeout 1
[+1699 ms] [
{
"simulator" : true,
"operatingSystemVersion" : "13.3 (17C45)",
"available" : true,
"platform" : "com.apple.platform.iphonesimulator",
"modelCode" : "iPad8,1",
"identifier" : "75FA9767-9400-4ABD-BF2E-82B83834DDA4",
"architecture" : "x86_64",
"modelName" : "iPad Pro (11-inch)",
"name" : "iPad Pro (11-inch)"
},
{
"simulator" : true,
"operatingSystemVersion" : "13.3 (17K446)",
"available" : true,
"platform" : "com.apple.platform.appletvsimulator",
"modelCode" : "AppleTV6,2",
"identifier" : "2253E51F-208F-4D43-9C59-5D953505C7EE",
"architecture" : "x86_64",
"modelName" : "Apple TV 4K (at 1080p)",
"name" : "Apple TV 4K (at 1080p)"
},
{
"simulator" : true,
"operatingSystemVersion" : "13.3 (17C45)",
"available" : true,
"platform" : "com.apple.platform.iphonesimulator",
"modelCode" : "iPhone10,4",
"identifier" : "D7C1F829-02B6-4790-9598-8F5793EA0C9B",
"architecture" : "x86_64",
"modelName" : "iPhone 8",
"name" : "iPhone 8"
},
{
"simulator" : true,
"operatingSystemVersion" : "13.3 (17C45)",
"available" : true,
"platform" : "com.apple.platform.iphonesimulator",
"modelCode" : "iPad11,3",
"identifier" : "C78D7625-FFBD-4B74-9071-D4177103AF72",
"architecture" : "x86_64",
"modelName" : "iPad Air (3rd generation)",
"name" : "iPad Air (3rd generation)"
},
{
"simulator" : true,
"operatingSystemVersion" : "13.3 (17C45)",
"available" : true,
"platform" : "com.apple.platform.iphonesimulator",
"modelCode" : "iPhone8,4",
"identifier" : "DFF6CC19-AAE5-4BB4-A935-1D5A030BBDFB",
"architecture" : "x86_64",
"modelName" : "iPhone SE",
"name" : "iPhone SE"
},
{
"simulator" : true,
"operatingSystemVersion" : "13.3 (17C45)",
"available" : true,
"platform" : "com.apple.platform.iphonesimulator",
"modelCode" : "iPad7,12",
"identifier" : "1C01CD67-D909-42F5-841F-A0F0FFDC733C",
"architecture" : "x86_64",
"modelName" : "iPad (7th generation)",
"name" : "iPad (7th generation)"
},
{
"simulator" : true,
"operatingSystemVersion" : "11.4 (15F79)",
"available" : true,
"platform" : "com.apple.platform.iphonesimulator",
"modelCode" : "iPhone10,6",
"identifier" : "B3DD913B-B1A7-4EBA-8789-4842E4731B22",
"architecture" : "x86_64",
"modelName" : "iPhone X",
"name" : "iOS 11.4 iPhone X"
},
{
"simulator" : true,
"operatingSystemVersion" : "13.3 (17K446)",
"available" : true,
"platform" : "com.apple.platform.appletvsimulator",
"modelCode" : "AppleTV6,2",
"identifier" : "AB6CCEA6-D418-4F0A-BE20-492E86E1E2F0",
"architecture" : "x86_64",
"modelName" : "Apple TV 4K",
"name" : "Apple TV 4K"
},
{
"simulator" : true,
"operatingSystemVersion" : "13.3 (17C45)",
"available" : true,
"platform" : "com.apple.platform.iphonesimulator",
"modelCode" : "iPhone12,5",
"identifier" : "7C34B4C6-F22B-452F-AF66-19590034145E",
"architecture" : "x86_64",
"modelName" : "iPhone 11 Pro Max",
"name" : "iPhone 11 Pro Max"
},
{
"simulator" : true,
"operatingSystemVersion" : "13.3 (17C45)",
"available" : true,
"platform" : "com.apple.platform.iphonesimulator",
"modelCode" : "iPhone10,5",
"identifier" : "48809E9A-7163-4127-A4FA-ACAC0EE6658F",
"architecture" : "x86_64",
"modelName" : "iPhone 8 Plus",
"name" : "iPhone 8 Plus"
},
{
"simulator" : true,
"operatingSystemVersion" : "13.3 (17C45)",
"available" : true,
"platform" : "com.apple.platform.iphonesimulator",
"modelCode" : "iPhone12,3",
"identifier" : "15AC2B0D-65C0-433D-8B0B-BDBB3E769EF2",
"architecture" : "x86_64",
"modelName" : "iPhone 11 Pro",
"name" : "iPhone 11 Pro"
},
{
"simulator" : true,
"operatingSystemVersion" : "13.3 (17C45)",
"available" : true,
"platform" : "com.apple.platform.iphonesimulator",
"modelCode" : "iPad6,4",
"identifier" : "50EEB5DB-E193-4116-9A9D-79DE54EF6F8C",
"architecture" : "x86_64",
"modelName" : "iPad Pro (9.7-inch)",
"name" : "iPad Pro (9.7-inch)"
},
{
"simulator" : true,
"operatingSystemVersion" : "6.1.1 (17S445)",
"available" : true,
"platform" : "com.apple.platform.watchsimulator",
"modelCode" : "Watch4,4",
"identifier" : "9298195A-0DEF-46AD-8232-942FEF7F42D9",
"architecture" : "i386",
"modelName" : "Apple Watch Series 4 - 44mm",
"name" : "Apple Watch Series 4 - 44mm"
},
{
"simulator" : true,
"operatingSystemVersion" : "13.3 (17C45)",
"available" : true,
"platform" : "com.apple.platform.iphonesimulator",
"modelCode" : "iPad8,5",
"identifier" : "A98E9770-3D1D-4A1F-84F5-80AE79865AF4",
"architecture" : "x86_64",
"modelName" : "iPad Pro (12.9-inch) (3rd generation)",
"name" : "iPad Pro (12.9-inch) (3rd generation)"
},
{
"simulator" : true,
"operatingSystemVersion" : "6.1.1 (17S445)",
"available" : true,
"platform" : "com.apple.platform.watchsimulator",
"modelCode" : "Watch4,3",
"identifier" : "D74112BC-3328-4071-9BEC-11ECFDF0267D",
"architecture" : "i386",
"modelName" : "Apple Watch Series 4 - 40mm",
"name" : "Apple Watch Series 4 - 40mm"
},
{
"simulator" : true,
"operatingSystemVersion" : "13.3 (17K446)",
"available" : true,
"platform" : "com.apple.platform.appletvsimulator",
"modelCode" : "AppleTV5,3",
"identifier" : "AF733C86-74A2-4C1B-9002-F896B3673411",
"architecture" : "x86_64",
"modelName" : "Apple TV",
"name" : "Apple TV"
},
{
"simulator" : true,
"operatingSystemVersion" : "6.1.1 (17S445)",
"available" : true,
"platform" : "com.apple.platform.watchsimulator",
"modelCode" : "Watch5,3",
"identifier" : "FECE2B50-2C5D-41C6-B966-6BEAA703E869",
"architecture" : "i386",
"modelName" : "Apple Watch Series 5 - 40mm",
"name" : "Apple Watch Series 5 - 40mm"
},
{
"simulator" : true,
"operatingSystemVersion" : "13.3 (17C45)",
"available" : true,
"platform" : "com.apple.platform.iphonesimulator",
"modelCode" : "iPhone12,1",
"identifier" : "7EB19C28-1BA5-423E-BEA1-F56D61FD57C9",
"architecture" : "x86_64",
"modelName" : "iPhone 11",
"name" : "iPhone 11"
},
{
"simulator" : true,
"operatingSystemVersion" : "6.1.1 (17S445)",
"available" : true,
"platform" : "com.apple.platform.watchsimulator",
"modelCode" : "Watch5,4",
"identifier" : "63E8AEB3-50CA-44DE-A5E8-F0BE94BDC255",
"architecture" : "i386",
"modelName" : "Apple Watch Series 5 - 44mm",
"name" : "Apple Watch Series 5 - 44mm"
}
]
[ +10 ms] /usr/bin/xcrun simctl list --json devices
[ +209 ms] /Users/Moses/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell getprop
[ +57 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[ +4 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[ +1 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +118 ms] Found plugin path_provider at /Users/Moses/.pub-cache/hosted/pub.dartlang.org/path_provider-1.5.1/
[ +81 ms] Found plugin path_provider at /Users/Moses/.pub-cache/hosted/pub.dartlang.org/path_provider-1.5.1/
[ +81 ms] Generating /Users/Moses/Documents/flutter/schooler/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java
[ +31 ms] ro.hardware = ranchu
[ +23 ms] Using hardware rendering with device Android SDK built for x86. If you get graphics artifacts, consider enabling software rendering with "--enable-software-rendering".
[ +22 ms] Launching lib/main.dart on Android SDK built for x86 in debug mode...
[ +18 ms] executing: /Users/Moses/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell -x logcat -v time -t 1
[ +35 ms] Exit code 0 from: /Users/Moses/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell -x logcat -v time -t 1
[ ] --------- beginning of main
02-16 18:44:18.560 W//system/bin/adbd( 1728): type=1400 audit(0.0:212362): avc: denied { create } for comm=73657276657220736F636B6574 scontext=u:r:adbd:s0 tcontext=u:r:adbd:s0 tclass=socket permissive=0
[ +7 ms] executing: /Users/Moses/Library/Android/sdk/platform-tools/adb version
[ +2 ms] executing: /Users/Moses/Library/Android/sdk/platform-tools/adb -s emulator-5554 logcat -v time -T 02-16 18:44:18.560
[ +29 ms] Android Debug Bridge version 1.0.40
Version 28.0.2-5303910
Installed as /Users/Moses/Library/Android/sdk/platform-tools/adb
[ +3 ms] executing: /Users/Moses/Library/Android/sdk/platform-tools/adb start-server
[ +17 ms] Building APK
[ +24 ms] Running Gradle task 'assembleDebug'...
[ +3 ms] gradle.properties already sets `android.enableR8`
[ +11 ms] Using gradle from /Users/Moses/Documents/flutter/schooler/android/gradlew.
[ +1 ms] /Users/Moses/Documents/flutter/schooler/android/gradlew mode: 33261 rwxr-xr-x.
[+1355 ms] executing: /usr/bin/plutil -convert json -o - /Applications/Android Studio.app/Contents/Info.plist
[ +9 ms] Exit code 0 from: /usr/bin/plutil -convert json -o - /Applications/Android Studio.app/Contents/Info.plist
[ ] {"CFBundleName":"Android
Studio","JVMOptions":{"ClassPath":"$APP_PACKAGE\/Contents\/lib\/bootstrap.jar:$APP_PACKAGE\/Contents\/lib\/extensions.jar:$APP_PACKAGE\/Contents\/lib\/util.jar:$APP_PACKAGE\/Contents\/lib\/jdom.jar:$APP_PACKAGE\/Contents\/lib\/log4j.jar:$APP_PACKAGE\/Contents\/lib\/trove4
j.jar:$APP_PACKAGE\/Contents\/lib\/jna.jar","JVMVersion":"1.8*,1.8+","WorkingDirectory":"$APP_PACKAGE\/Contents\/bin","MainClass":"com.intellij.idea.Main","Properties":{"idea.java.redist":"Bundled","idea.paths.selector":"AndroidStudio3.4","idea.executable":"studio","idea.
platform.prefix":"AndroidStudio","idea.home.path":"$APP_PACKAGE\/Contents"}},"LSArchitecturePriority":["x86_64"],"CFBundleVersion":"AI-183.5429.30.34.5452501","CFBundleDevelopmentRegion":"English","CFBundleDocumentTypes":[{"CFBundleTypeName":"Android Studio Project
File","CFBundleTypeExtensions":["ipr"],"CFBundleTypeRole":"Editor","CFBundleTypeIconFile":"studio.icns"},{"CFBundleTypeName":"All
documents","CFBundleTypeExtensions":["*"],"CFBundleTypeOSTypes":["****"],"CFBundleTypeRole":"Editor","LSTypeIsPackage":false}],"NSSupportsAutomaticGraphicsSwitching":true,"CFBundlePackageType":"APPL","CFBundleIconFile":"studio.icns","NSHighResolutionCapable":true,"CFBundl
eShortVersionString":"3.4","CFBundleInfoDictionaryVersion":"6.0","CFBundleExecutable":"studio","LSRequiresNativeExecution":"YES","CFBundleURLTypes":[{"CFBundleTypeRole":"Editor","CFBundleURLName":"Stacktrace","CFBundleURLSchemes":["idea"]}],"CFBundleIdentifier":"com.googl
e.android.studio","LSApplicationCategoryType":"public.app-category.developer-tools","CFBundleSignature":"????","LSMinimumSystemVersion":"10.8","CFBundleGetInfoString":"Android Studio 3.4, build AI-183.5429.30.34.5452501. Copyright JetBrains s.r.o., (c) 2000-2019"}
[ +11 ms] executing: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java -version
[ +85 ms] Exit code 0 from: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java -version
[ ] openjdk version "1.8.0_152-release"
OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
OpenJDK 64-Bit Server VM (build 25.152-b01, mixed mode)
[ +5 ms] executing: [/Users/Moses/Documents/flutter/schooler/android/] /Users/Moses/Documents/flutter/schooler/android/gradlew -Pverbose=true -Ptarget=/Users/Moses/Documents/flutter/schooler/lib/main.dart -Ptrack-widget-creation=true
-Pfilesystem-scheme=org-dartlang-root -Ptarget-platform=android-x86 assembleDebug
[ +873 ms] > Configure project :app
[ ] WARNING: The option setting 'android.enableR8=true' is experimental and unsupported.
[ ] The current default is 'false'
[ ] Consider disabling R8 by removing 'android.enableR8=true' from your gradle.properties before publishing your app.
[ ] > Configure project :path_provider
[ ] WARNING: The option setting 'android.enableR8=true' is experimental and unsupported.
[ ] The current default is 'false'
[ ] Consider disabling R8 by removing 'android.enableR8=true' from your gradle.properties before publishing your app.
[ +82 ms] > Transform annotation.jar (androidx.annotation:annotation:1.0.0-rc01) with JetifyTransform
[ ] > Transform lifecycle-viewmodel.aar (androidx.lifecycle:lifecycle-viewmodel:2.0.0-rc01) with JetifyTransform
[ ] > Transform annotation.jar (androidx.annotation:annotation:1.0.0-rc01) with IdentityTransform
[ ] > Transform lifecycle-viewmodel.aar (androidx.lifecycle:lifecycle-viewmodel:2.0.0-rc01) with ExtractAarTransform
[ ] > Transform print.aar (androidx.print:print:1.0.0-rc01) with JetifyTransform
[ ] > Transform interpolator.aar (androidx.interpolator:interpolator:1.0.0-rc01) with JetifyTransform
[ ] > Transform documentfile.aar (androidx.documentfile:documentfile:1.0.0-rc01) with JetifyTransform
[ ] > Transform print.aar (androidx.print:print:1.0.0-rc01) with ExtractAarTransform
[ ] > Transform localbroadcastmanager.aar (androidx.localbroadcastmanager:localbroadcastmanager:1.0.0-rc01) with JetifyTransform
[ ] > Transform collection.jar (androidx.collection:collection:1.0.0-rc01) with JetifyTransform
[ ] > Transform interpolator.aar (androidx.interpolator:interpolator:1.0.0-rc01) with ExtractAarTransform
[ ] > Transform collection.jar (androidx.collection:collection:1.0.0-rc01) with IdentityTransform
[ ] > Transform versionedparcelable.aar (androidx.versionedparcelable:versionedparcelable:1.0.0-rc01) with JetifyTransform
[ ] > Transform documentfile.aar (androidx.documentfile:documentfile:1.0.0-rc01) with ExtractAarTransform
[ ] > Transform localbroadcastmanager.aar (androidx.localbroadcastmanager:localbroadcastmanager:1.0.0-rc01) with ExtractAarTransform
[ ] > Transform cursoradapter.aar (androidx.cursoradapter:cursoradapter:1.0.0-rc01) with JetifyTransform
[ ] > Transform versionedparcelable.aar (androidx.versionedparcelable:versionedparcelable:1.0.0-rc01) with ExtractAarTransform
[ ] > Transform cursoradapter.aar (androidx.cursoradapter:cursoradapter:1.0.0-rc01) with ExtractAarTransform
[ ] > Transform core-common.jar (androidx.arch.core:core-common:2.0.0-rc01) with JetifyTransform
[ ] > Transform core-common.jar (androidx.arch.core:core-common:2.0.0-rc01) with IdentityTransform
[ ] > Transform core-runtime.aar (androidx.arch.core:core-runtime:2.0.0-rc01) with JetifyTransform
[ ] > Transform core-runtime.aar (androidx.arch.core:core-runtime:2.0.0-rc01) with ExtractAarTransform
[ ] > Transform documentfile.aar (androidx.documentfile:documentfile:1.0.0-rc01) with AarTransform
[ ] > Transform core-runtime.aar (androidx.arch.core:core-runtime:2.0.0-rc01) with AarTransform
[ ] > Transform print.aar (androidx.print:print:1.0.0-rc01) with AarTransform
[ ] > Transform interpolator.aar (androidx.interpolator:interpolator:1.0.0-rc01) with AarTransform
[ ] > Transform lifecycle-viewmodel.aar (androidx.lifecycle:lifecycle-viewmodel:2.0.0-rc01) with AarTransform
[ ] > Transform localbroadcastmanager.aar (androidx.localbroadcastmanager:localbroadcastmanager:1.0.0-rc01) with AarTransform
[ ] > Transform lifecycle-common.jar (androidx.lifecycle:lifecycle-common:2.0.0-rc01) with JetifyTransform
[ ] > Transform cursoradapter.aar (androidx.cursoradapter:cursoradapter:1.0.0-rc01) with AarTransform
[ ] > Transform lifecycle-common.jar (androidx.lifecycle:lifecycle-common:2.0.0-rc01) with IdentityTransform
[ +2 ms] > Transform lifecycle-livedata-core.aar (androidx.lifecycle:lifecycle-livedata-core:2.0.0-rc01) with JetifyTransform
[ ] > Transform core.aar (androidx.core:core:1.0.0-rc01) with JetifyTransform
[ ] > Transform lifecycle-runtime.aar (androidx.lifecycle:lifecycle-runtime:2.0.0-rc01) with JetifyTransform
[ ] > Transform versionedparcelable.aar (androidx.versionedparcelable:versionedparcelable:1.0.0-rc01) with AarTransform
[ ] > Transform swiperefreshlayout.aar (androidx.swiperefreshlayout:swiperefreshlayout:1.0.0-rc01) with JetifyTransform
[ ] > Transform asynclayoutinflater.aar (androidx.asynclayoutinflater:asynclayoutinflater:1.0.0-rc01) with JetifyTransform
[ ] > Transform customview.aar (androidx.customview:customview:1.0.0-rc01) with JetifyTransform
[ ] > Transform lifecycle-livedata-core.aar (androidx.lifecycle:lifecycle-livedata-core:2.0.0-rc01) with ExtractAarTransform
[ ] > Transform slidingpanelayout.aar (androidx.slidingpanelayout:slidingpanelayout:1.0.0-rc01) with JetifyTransform
[ ] > Transform core.aar (androidx.core:core:1.0.0-rc01) with ExtractAarTransform
[ ] > Transform lifecycle-runtime.aar (androidx.lifecycle:lifecycle-runtime:2.0.0-rc01) with ExtractAarTransform
[ ] > Transform drawerlayout.aar (androidx.drawerlayout:drawerlayout:1.0.0-rc01) with JetifyTransform
[ ] > Transform asynclayoutinflater.aar (androidx.asynclayoutinflater:asynclayoutinflater:1.0.0-rc01) with ExtractAarTransform
[ ] > Transform swiperefreshlayout.aar (androidx.swiperefreshlayout:swiperefreshlayout:1.0.0-rc01) with ExtractAarTransform
[ ] > Transform customview.aar (androidx.customview:customview:1.0.0-rc01) with ExtractAarTransform
[ ] > Transform drawerlayout.aar (androidx.drawerlayout:drawerlayout:1.0.0-rc01) with ExtractAarTransform
[ ] > Transform lifecycle-livedata-core.aar (androidx.lifecycle:lifecycle-livedata-core:2.0.0-rc01) with AarTransform
[ ] > Transform slidingpanelayout.aar (androidx.slidingpanelayout:slidingpanelayout:1.0.0-rc01) with ExtractAarTransform
[ ] > Transform asynclayoutinflater.aar (androidx.asynclayoutinflater:asynclayoutinflater:1.0.0-rc01) with AarTransform
[ ] > Transform lifecycle-runtime.aar (androidx.lifecycle:lifecycle-runtime:2.0.0-rc01) with AarTransform
[ ] > Transform coordinatorlayout.aar (androidx.coordinatorlayout:coordinatorlayout:1.0.0-rc01) with JetifyTransform
[ ] > Transform swiperefreshlayout.aar (androidx.swiperefreshlayout:swiperefreshlayout:1.0.0-rc01) with AarTransform
[ ] > Transform slidingpanelayout.aar (androidx.slidingpanelayout:slidingpanelayout:1.0.0-rc01) with AarTransform
[ ] > Transform viewpager.aar (androidx.viewpager:viewpager:1.0.0-rc01) with JetifyTransform
[ ] > Transform customview.aar (androidx.customview:customview:1.0.0-rc01) with AarTransform
[ ] > Transform loader.aar (androidx.loader:loader:1.0.0-rc01) with JetifyTransform
[ ] > Transform drawerlayout.aar (androidx.drawerlayout:drawerlayout:1.0.0-rc01) with AarTransform
[ ] > Transform coordinatorlayout.aar (androidx.coordinatorlayout:coordinatorlayout:1.0.0-rc01) with ExtractAarTransform
[ ] > Transform legacy-support-core-utils.aar (androidx.legacy:legacy-support-core-utils:1.0.0-rc01) with JetifyTransform
[ ] > Transform legacy-support-core-ui.aar (androidx.legacy:legacy-support-core-ui:1.0.0-rc01) with JetifyTransform
[ ] > Transform viewpager.aar (androidx.viewpager:viewpager:1.0.0-rc01) with ExtractAarTransform
[ ] > Transform fragment.aar (androidx.fragment:fragment:1.0.0-rc01) with JetifyTransform
[ ] > Transform loader.aar (androidx.loader:loader:1.0.0-rc01) with ExtractAarTransform
[ ] > Transform coordinatorlayout.aar (androidx.coordinatorlayout:coordinatorlayout:1.0.0-rc01) with AarTransform
[ ] > Transform fragment.aar (androidx.fragment:fragment:1.0.0-rc01) with ExtractAarTransform
[ ] > Transform legacy-support-core-ui.aar (androidx.legacy:legacy-support-core-ui:1.0.0-rc01) with ExtractAarTransform
[ ] > Transform viewpager.aar (androidx.viewpager:viewpager:1.0.0-rc01) with AarTransform
[ ] > Transform lifecycle-common-java8.jar (androidx.lifecycle:lifecycle-common-java8:2.0.0-rc01) with JetifyTransform
[ ] > Transform loader.aar (androidx.loader:loader:1.0.0-rc01) with AarTransform
[ ] > Transform lifecycle-common-java8.jar (androidx.lifecycle:lifecycle-common-java8:2.0.0-rc01) with IdentityTransform
[ ] > Transform legacy-support-core-utils.aar (androidx.legacy:legacy-support-core-utils:1.0.0-rc01) with ExtractAarTransform
[ ] > Transform lifecycle-viewmodel.aar (androidx.lifecycle:lifecycle-viewmodel:2.0.0-rc01) with AarTransform
[ ] > Transform print.aar (androidx.print:print:1.0.0-rc01) with AarTransform
[ ] > Transform localbroadcastmanager.aar (androidx.localbroadcastmanager:localbroadcastmanager:1.0.0-rc01) with AarTransform
[ ] > Transform x86_debug.jar (io.flutter:x86_debug:1.0.0-d60f298d9e7755b8f8204646e7ff03a846f5436c) with JetifyTransform
[ ] > Transform documentfile.aar (androidx.documentfile:documentfile:1.0.0-rc01) with AarTransform
[ ] > Transform cursoradapter.aar (androidx.cursoradapter:cursoradapter:1.0.0-rc01) with AarTransform
[ ] > Transform x86_debug.jar (io.flutter:x86_debug:1.0.0-d60f298d9e7755b8f8204646e7ff03a846f5436c) with IdentityTransform
[ ] > Transform interpolator.aar (androidx.interpolator:interpolator:1.0.0-rc01) with AarTransform
[ ] > Transform core-runtime.aar (androidx.arch.core:core-runtime:2.0.0-rc01) with AarTransform
[ ] > Transform lifecycle-livedata-core.aar (androidx.lifecycle:lifecycle-livedata-core:2.0.0-rc01) with AarTransform
[ ] > Transform lifecycle-runtime.aar (androidx.lifecycle:lifecycle-runtime:2.0.0-rc01) with AarTransform
[ ] > Transform x86_64_debug.jar (io.flutter:x86_64_debug:1.0.0-d60f298d9e7755b8f8204646e7ff03a846f5436c) with JetifyTransform
[ ] > Transform x86_64_debug.jar (io.flutter:x86_64_debug:1.0.0-d60f298d9e7755b8f8204646e7ff03a846f5436c) with IdentityTransform
[ ] > Transform asynclayoutinflater.aar (androidx.asynclayoutinflater:asynclayoutinflater:1.0.0-rc01) with AarTransform
[ ] > Transform swiperefreshlayout.aar (androidx.swiperefreshlayout:swiperefreshlayout:1.0.0-rc01) with AarTransform
[ ] > Transform customview.aar (androidx.customview:customview:1.0.0-rc01) with AarTransform
[ ] > Transform slidingpanelayout.aar (androidx.slidingpanelayout:slidingpanelayout:1.0.0-rc01) with AarTransform
[ ] > Transform drawerlayout.aar (androidx.drawerlayout:drawerlayout:1.0.0-rc01) with AarTransform
[ ] > Transform coordinatorlayout.aar (androidx.coordinatorlayout:coordinatorlayout:1.0.0-rc01) with AarTransform
[ ] > Transform viewpager.aar (androidx.viewpager:viewpager:1.0.0-rc01) with AarTransform
[ ] > Transform loader.aar (androidx.loader:loader:1.0.0-rc01) with AarTransform
[ ] > Transform fragment.aar (androidx.fragment:fragment:1.0.0-rc01) with AarTransform
[ ] > Transform legacy-support-core-ui.aar (androidx.legacy:legacy-support-core-ui:1.0.0-rc01) with AarTransform
[ ] > Transform legacy-support-core-utils.aar (androidx.legacy:legacy-support-core-utils:1.0.0-rc01) with AarTransform
[ ] > Transform legacy-support-core-ui.aar (androidx.legacy:legacy-support-core-ui:1.0.0-rc01) with AarTransform
[ ] > Transform fragment.aar (androidx.fragment:fragment:1.0.0-rc01) with AarTransform
[ ] > Transform versionedparcelable.aar (androidx.versionedparcelable:versionedparcelable:1.0.0-rc01) with AarTransform
[ ] > Transform flutter_embedding_debug.jar (io.flutter:flutter_embedding_debug:1.0.0-d60f298d9e7755b8f8204646e7ff03a846f5436c) with JetifyTransform
[ ] > Transform legacy-support-core-utils.aar (androidx.legacy:legacy-support-core-utils:1.0.0-rc01) with AarTransform
[ ] > Transform core.aar (androidx.core:core:1.0.0-rc01) with AarTransform
[ ] > Transform core.aar (androidx.core:core:1.0.0-rc01) with AarTransform
[+1974 ms] > Task :app:compileFlutterBuildDebug
[ ] [ +28 ms] executing: [/Users/Moses/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[ ] [ +37 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[ ] [ ] e481fcae528ef65de8d689213a710d567c7ab3ca
[ ] [ ] executing: [/Users/Moses/flutter/] git describe --match v*.*.* --first-parent --long --tags
[ ] [ +20 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags
[ ] [ ] v1.15.3-82-ge481fcae52
[ ] [ +9 ms] executing: [/Users/Moses/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[ ] [ +6 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[ ] [ ] origin/master
[ ] [ ] executing: [/Users/Moses/flutter/] git ls-remote --get-url origin
[ ] [ +6 ms] Exit code 0 from: git ls-remote --get-url origin
[ ] [ ] https://github.com/flutter/flutter.git
[ ] [ +57 ms] executing: [/Users/Moses/flutter/] git rev-parse --abbrev-ref HEAD
[ ] [ +7 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ ] [ ] master
[ ] [ +27 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[ ] [ +2 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ ] [ +7 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[ ] [ ] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[ ] [ ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ ] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
[ ] [ +104 ms] Initializing file store
[ ] [ +23 ms] kernel_snapshot: Starting due to {}
[ ] [ +14 ms] /Users/Moses/flutter/bin/cache/dart-sdk/bin/dart /Users/Moses/flutter/bin/cache/artifacts/engine/darwin-x64/frontend_server.dart.snapshot --sdk-root /Users/Moses/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --target=flutter
-Ddart.developer.causal_async_stacks=true -Ddart.vm.profile=false -Ddart.vm.product=false --bytecode-options=source-positions,local-var-info,debugger-stops,instance-field-initializers,keep-unreachable-code,avoid-closure-call-instructions --enable-asserts
--track-widget-creation --no-link-platform --packages /Users/Moses/Documents/flutter/schooler/.packages --output-dill /Users/Moses/Documents/flutter/schooler/.dart_tool/flutter_build/6338f30dcd53a7b51f12a0cdcd7651a8/app.dill --depfile
/Users/Moses/Documents/flutter/schooler/.dart_tool/flutter_build/6338f30dcd53a7b51f12a0cdcd7651a8/kernel_snapshot.d package:schooler/main.dart
[+6088 ms] [+6293 ms] kernel_snapshot: Complete
[+1499 ms] [+1469 ms] debug_android_application: Starting due to {}
[ +99 ms] [ +183 ms] debug_android_application: Complete
[ +500 ms] [ +443 ms] Persisting file store
[ ] [ +8 ms] Done persisting file store
[ ] [ +3 ms] build succeeded.
[ ] [ +10 ms] "flutter assemble" took 8,605ms.
[ +99 ms] > Task :app:packLibsflutterBuildDebug
[ ] > Transform lifecycle-viewmodel.aar (androidx.lifecycle:lifecycle-viewmodel:2.0.0-rc01) with AarTransform
[ ] > Transform print.aar (androidx.print:print:1.0.0-rc01) with AarTransform
[ ] > Transform localbroadcastmanager.aar (androidx.localbroadcastmanager:localbroadcastmanager:1.0.0-rc01) with AarTransform
[ ] > Transform documentfile.aar (androidx.documentfile:documentfile:1.0.0-rc01) with AarTransform
[ ] > Transform cursoradapter.aar (androidx.cursoradapter:cursoradapter:1.0.0-rc01) with AarTransform
[ ] > Transform core-runtime.aar (androidx.arch.core:core-runtime:2.0.0-rc01) with AarTransform
[ ] > Transform lifecycle-runtime.aar (androidx.lifecycle:lifecycle-runtime:2.0.0-rc01) with AarTransform
[ ] > Transform core.aar (androidx.core:core:1.0.0-rc01) with AarTransform
[ ] > Transform asynclayoutinflater.aar (androidx.asynclayoutinflater:asynclayoutinflater:1.0.0-rc01) with AarTransform
[ ] > Transform swiperefreshlayout.aar (androidx.swiperefreshlayout:swiperefreshlayout:1.0.0-rc01) with AarTransform
[ ] > Transform customview.aar (androidx.customview:customview:1.0.0-rc01) with AarTransform
[ ] > Transform lifecycle-livedata-core.aar (androidx.lifecycle:lifecycle-livedata-core:2.0.0-rc01) with AarTransform
[ ] > Transform slidingpanelayout.aar (androidx.slidingpanelayout:slidingpanelayout:1.0.0-rc01) with AarTransform
[ ] > Transform versionedparcelable.aar (androidx.versionedparcelable:versionedparcelable:1.0.0-rc01) with AarTransform
[ ] > Transform drawerlayout.aar (androidx.drawerlayout:drawerlayout:1.0.0-rc01) with AarTransform
[ ] > Transform coordinatorlayout.aar (androidx.coordinatorlayout:coordinatorlayout:1.0.0-rc01) with AarTransform
[ ] > Transform interpolator.aar (androidx.interpolator:interpolator:1.0.0-rc01) with AarTransform
[ ] > Transform loader.aar (androidx.loader:loader:1.0.0-rc01) with AarTransform
[ ] > Transform legacy-support-core-ui.aar (androidx.legacy:legacy-support-core-ui:1.0.0-rc01) with AarTransform
[ ] > Transform legacy-support-core-utils.aar (androidx.legacy:legacy-support-core-utils:1.0.0-rc01) with AarTransform
[ ] > Transform viewpager.aar (androidx.viewpager:viewpager:1.0.0-rc01) with AarTransform
[ ] > Transform fragment.aar (androidx.fragment:fragment:1.0.0-rc01) with AarTransform
[ ] > Transform localbroadcastmanager.aar (androidx.localbroadcastmanager:localbroadcastmanager:1.0.0-rc01) with AarTransform
[ ] > Transform print.aar (androidx.print:print:1.0.0-rc01) with AarTransform
[ ] > Transform lifecycle-viewmodel.aar (androidx.lifecycle:lifecycle-viewmodel:2.0.0-rc01) with AarTransform
[ ] > Transform documentfile.aar (androidx.documentfile:documentfile:1.0.0-rc01) with AarTransform
[ ] > Transform cursoradapter.aar (androidx.cursoradapter:cursoradapter:1.0.0-rc01) with AarTransform
[ ] > Transform versionedparcelable.aar (androidx.versionedparcelable:versionedparcelable:1.0.0-rc01) with AarTransform
[ ] > Transform core-runtime.aar (androidx.arch.core:core-runtime:2.0.0-rc01) with AarTransform
[ ] > Transform lifecycle-livedata-core.aar (androidx.lifecycle:lifecycle-livedata-core:2.0.0-rc01) with AarTransform
[ ] > Transform lifecycle-runtime.aar (androidx.lifecycle:lifecycle-runtime:2.0.0-rc01) with AarTransform
[ ] > Transform core.aar (androidx.core:core:1.0.0-rc01) with AarTransform
[ ] > Transform asynclayoutinflater.aar (androidx.asynclayoutinflater:asynclayoutinflater:1.0.0-rc01) with AarTransform
[ ] > Transform customview.aar (androidx.customview:customview:1.0.0-rc01) with AarTransform
[ ] > Transform interpolator.aar (androidx.interpolator:interpolator:1.0.0-rc01) with AarTransform
[ ] > Transform slidingpanelayout.aar (androidx.slidingpanelayout:slidingpanelayout:1.0.0-rc01) with AarTransform
[ ] > Transform coordinatorlayout.aar (androidx.coordinatorlayout:coordinatorlayout:1.0.0-rc01) with AarTransform
[ ] > Transform drawerlayout.aar (androidx.drawerlayout:drawerlayout:1.0.0-rc01) with AarTransform
[ ] > Transform swiperefreshlayout.aar (androidx.swiperefreshlayout:swiperefreshlayout:1.0.0-rc01) with AarTransform
[ ] > Transform viewpager.aar (androidx.viewpager:viewpager:1.0.0-rc01) with AarTransform
[ ] > Transform loader.aar (androidx.loader:loader:1.0.0-rc01) with AarTransform
[ ] > Transform legacy-support-core-utils.aar (androidx.legacy:legacy-support-core-utils:1.0.0-rc01) with AarTransform
[ ] > Transform legacy-support-core-ui.aar (androidx.legacy:legacy-support-core-ui:1.0.0-rc01) with AarTransform
[ ] > Transform fragment.aar (androidx.fragment:fragment:1.0.0-rc01) with AarTransform
[ ] > Task :app:preBuild UP-TO-DATE
[ ] > Task :path_provider:preBuild UP-TO-DATE
[ ] > Task :path_provider:preDebugBuild UP-TO-DATE
[ ] > Transform flutter_embedding_debug.jar (io.flutter:flutter_embedding_debug:1.0.0-d60f298d9e7755b8f8204646e7ff03a846f5436c) with IdentityTransform
[ ] > Transform annotation.jar (androidx.annotation:annotation:1.1.0) with JetifyTransform
[ ] > Task :path_provider:checkDebugManifest
[ ] > Transform annotation.jar (androidx.annotation:annotation:1.1.0) with IdentityTransform
[ +90 ms] > Task :path_provider:processDebugManifest
[ ] > Task :app:checkDebugClasspath
[ ] WARNING: Conflict with dependency 'androidx.annotation:annotation' in project ':app'. Resolved versions for runtime classpath (1.1.0) and compile classpath (1.0.0-rc01) differ. This can lead to runtime crashes. To resolve this issue follow advice at
https://developer.android.com/studio/build/gradle-tips#configure-project-wide-properties. Alternatively, you can try to fix the problem by adding this snippet to /Users/Moses/Documents/flutter/schooler/android/app/build.gradle:
[ +1 ms] dependencies {
[ ] implementation("androidx.annotation:annotation:1.1.0")
[ ] }
[ ] > Task :app:preDebugBuild
[ ] > Task :path_provider:compileDebugAidl NO-SOURCE
[ ] > Task :app:compileDebugAidl NO-SOURCE
[ ] > Transform print.aar (androidx.print:print:1.0.0-rc01) with AarTransform
[ ] > Transform localbroadcastmanager.aar (androidx.localbroadcastmanager:localbroadcastmanager:1.0.0-rc01) with AarTransform
[ ] > Transform documentfile.aar (androidx.documentfile:documentfile:1.0.0-rc01) with AarTransform
[ ] > Transform cursoradapter.aar (androidx.cursoradapter:cursoradapter:1.0.0-rc01) with AarTransform
[ ] > Transform interpolator.aar (androidx.interpolator:interpolator:1.0.0-rc01) with AarTransform
[ ] > Transform versionedparcelable.aar (androidx.versionedparcelable:versionedparcelable:1.0.0-rc01) with AarTransform
[ ] > Transform core-runtime.aar (androidx.arch.core:core-runtime:2.0.0-rc01) with AarTransform
[ ] > Transform lifecycle-livedata-core.aar (androidx.lifecycle:lifecycle-livedata-core:2.0.0-rc01) with AarTransform
[ ] > Transform lifecycle-runtime.aar (androidx.lifecycle:lifecycle-runtime:2.0.0-rc01) with AarTransform
[ ] > Transform lifecycle-viewmodel.aar (androidx.lifecycle:lifecycle-viewmodel:2.0.0-rc01) with AarTransform
[ ] > Transform core.aar (androidx.core:core:1.0.0-rc01) with AarTransform
[ ] > Transform asynclayoutinflater.aar (androidx.asynclayoutinflater:asynclayoutinflater:1.0.0-rc01) with AarTransform
[ ] > Transform swiperefreshlayout.aar (androidx.swiperefreshlayout:swiperefreshlayout:1.0.0-rc01) with AarTransform
[ ] > Transform customview.aar (androidx.customview:customview:1.0.0-rc01) with AarTransform
[ ] > Transform slidingpanelayout.aar (androidx.slidingpanelayout:slidingpanelayout:1.0.0-rc01) with AarTransform
[ ] > Transform drawerlayout.aar (androidx.drawerlayout:drawerlayout:1.0.0-rc01) with AarTransform
[ ] > Transform coordinatorlayout.aar (androidx.coordinatorlayout:coordinatorlayout:1.0.0-rc01) with AarTransform
[ ] > Transform viewpager.aar (androidx.viewpager:viewpager:1.0.0-rc01) with AarTransform
[ ] > Transform loader.aar (androidx.loader:loader:1.0.0-rc01) with AarTransform
[ ] > Transform legacy-support-core-utils.aar (androidx.legacy:legacy-support-core-utils:1.0.0-rc01) with AarTransform
[ ] > Transform legacy-support-core-ui.aar (androidx.legacy:legacy-support-core-ui:1.0.0-rc01) with AarTransform
[ ] > Transform fragment.aar (androidx.fragment:fragment:1.0.0-rc01) with AarTransform
[ ] > Task :path_provider:packageDebugRenderscript NO-SOURCE
[ ] > Task :app:compileDebugRenderscript
[ ] > Task :app:checkDebugManifest
[ ] > Task :app:generateDebugBuildConfig
[ ] > Task :app:prepareLintJar UP-TO-DATE
[ ] > Transform localbroadcastmanager.aar (androidx.localbroadcastmanager:localbroadcastmanager:1.0.0-rc01) with LibrarySymbolTableTransform
[ ] > Transform print.aar (androidx.print:print:1.0.0-rc01) with LibrarySymbolTableTransform
[ ] > Transform lifecycle-viewmodel.aar (androidx.lifecycle:lifecycle-viewmodel:2.0.0-rc01) with LibrarySymbolTableTransform
[ ] > Transform documentfile.aar (androidx.documentfile:documentfile:1.0.0-rc01) with LibrarySymbolTableTransform
[ ] > Transform cursoradapter.aar (androidx.cursoradapter:cursoradapter:1.0.0-rc01) with LibrarySymbolTableTransform
[ ] > Transform interpolator.aar (androidx.interpolator:interpolator:1.0.0-rc01) with LibrarySymbolTableTransform
[ ] > Transform core-runtime.aar (androidx.arch.core:core-runtime:2.0.0-rc01) with LibrarySymbolTableTransform
[ ] > Transform versionedparcelable.aar (androidx.versionedparcelable:versionedparcelable:1.0.0-rc01) with LibrarySymbolTableTransform
[ ] > Transform lifecycle-livedata-core.aar (androidx.lifecycle:lifecycle-livedata-core:2.0.0-rc01) with LibrarySymbolTableTransform
[ ] > Transform lifecycle-runtime.aar (androidx.lifecycle:lifecycle-runtime:2.0.0-rc01) with LibrarySymbolTableTransform
[ ] > Transform core.aar (androidx.core:core:1.0.0-rc01) with LibrarySymbolTableTransform
[ ] > Transform asynclayoutinflater.aar (androidx.asynclayoutinflater:asynclayoutinflater:1.0.0-rc01) with LibrarySymbolTableTransform
[ ] > Transform swiperefreshlayout.aar (androidx.swiperefreshlayout:swiperefreshlayout:1.0.0-rc01) with LibrarySymbolTableTransform
[ ] > Transform customview.aar (androidx.customview:customview:1.0.0-rc01) with LibrarySymbolTableTransform
[ ] > Transform slidingpanelayout.aar (androidx.slidingpanelayout:slidingpanelayout:1.0.0-rc01) with LibrarySymbolTableTransform
[ ] > Transform drawerlayout.aar (androidx.drawerlayout:drawerlayout:1.0.0-rc01) with LibrarySymbolTableTransform
[ ] > Transform coordinatorlayout.aar (androidx.coordinatorlayout:coordinatorlayout:1.0.0-rc01) with LibrarySymbolTableTransform
[ ] > Transform viewpager.aar (androidx.viewpager:viewpager:1.0.0-rc01) with LibrarySymbolTableTransform
[ ] > Transform loader.aar (androidx.loader:loader:1.0.0-rc01) with LibrarySymbolTableTransform
[ ] > Transform legacy-support-core-utils.aar (androidx.legacy:legacy-support-core-utils:1.0.0-rc01) with LibrarySymbolTableTransform
[ ] > Transform legacy-support-core-ui.aar (androidx.legacy:legacy-support-core-ui:1.0.0-rc01) with LibrarySymbolTableTransform
[ ] > Transform fragment.aar (androidx.fragment:fragment:1.0.0-rc01) with LibrarySymbolTableTransform
[ ] > Transform aapt2-osx.jar (com.android.tools.build:aapt2:3.2.1-4818971) with Aapt2Extractor
[ ] > Task :app:cleanMergeDebugAssets UP-TO-DATE
[ ] > Transform print.aar (androidx.print:print:1.0.0-rc01) with AarTransform
[ ] > Transform cursoradapter.aar (androidx.cursoradapter:cursoradapter:1.0.0-rc01) with AarTransform
[ ] > Transform interpolator.aar (androidx.interpolator:interpolator:1.0.0-rc01) with AarTransform
[ ] > Transform documentfile.aar (androidx.documentfile:documentfile:1.0.0-rc01) with AarTransform
[ ] > Transform versionedparcelable.aar (androidx.versionedparcelable:versionedparcelable:1.0.0-rc01) with AarTransform
[ ] > Transform core-runtime.aar (androidx.arch.core:core-runtime:2.0.0-rc01) with AarTransform
[ ] > Transform lifecycle-livedata-core.aar (androidx.lifecycle:lifecycle-livedata-core:2.0.0-rc01) with AarTransform
[ ] > Transform lifecycle-runtime.aar (androidx.lifecycle:lifecycle-runtime:2.0.0-rc01) with AarTransform
[ ] > Transform core.aar (androidx.core:core:1.0.0-rc01) with AarTransform
[ ] > Transform asynclayoutinflater.aar (androidx.asynclayoutinflater:asynclayoutinflater:1.0.0-rc01) with AarTransform
[ ] > Transform swiperefreshlayout.aar (androidx.swiperefreshlayout:swiperefreshlayout:1.0.0-rc01) with AarTransform
[ ] > Transform customview.aar (androidx.customview:customview:1.0.0-rc01) with AarTransform
[ ] > Transform slidingpanelayout.aar (androidx.slidingpanelayout:slidingpanelayout:1.0.0-rc01) with AarTransform
[ ] > Transform drawerlayout.aar (androidx.drawerlayout:drawerlayout:1.0.0-rc01) with AarTransform
[ ] > Transform coordinatorlayout.aar (androidx.coordinatorlayout:coordinatorlayout:1.0.0-rc01) with AarTransform
[ ] > Transform viewpager.aar (androidx.viewpager:viewpager:1.0.0-rc01) with AarTransform
[ ] > Transform loader.aar (androidx.loader:loader:1.0.0-rc01) with AarTransform
[ ] > Transform legacy-support-core-utils.aar (androidx.legacy:legacy-support-core-utils:1.0.0-rc01) with AarTransform
[ ] > Transform legacy-support-core-ui.aar (androidx.legacy:legacy-support-core-ui:1.0.0-rc01) with AarTransform
[ ] > Transform fragment.aar (androidx.fragment:fragment:1.0.0-rc01) with AarTransform
[ ] > Transform lifecycle-viewmodel.aar (androidx.lifecycle:lifecycle-viewmodel:2.0.0-rc01) with AarTransform
[ ] > Transform localbroadcastmanager.aar (androidx.localbroadcastmanager:localbroadcastmanager:1.0.0-rc01) with AarTransform
[ ] > Task :app:mergeDebugShaders
[ ] > Task :app:compileDebugShaders
[ ] > Task :app:generateDebugAssets
[ ] > Task :path_provider:mergeDebugShaders
[ ] > Task :path_provider:compileDebugShaders
[ ] > Task :path_provider:generateDebugAssets
[ ] > Task :path_provider:packageDebugAssets
[ ] > Task :app:mergeDebugAssets
[ +282 ms] > Task :app:copyFlutterAssetsDebug
[ ] > Task :app:mainApkListPersistenceDebug
[ ] > Transform lifecycle-viewmodel.aar (androidx.lifecycle:lifecycle-viewmodel:2.0.0-rc01) with AarTransform
[ ] > Transform localbroadcastmanager.aar (androidx.localbroadcastmanager:localbroadcastmanager:1.0.0-rc01) with AarTransform
[ ] > Transform print.aar (androidx.print:print:1.0.0-rc01) with AarTransform
[ ] > Transform documentfile.aar (androidx.documentfile:documentfile:1.0.0-rc01) with AarTransform
[ ] > Transform cursoradapter.aar (androidx.cursoradapter:cursoradapter:1.0.0-rc01) with AarTransform
[ ] > Transform versionedparcelable.aar (androidx.versionedparcelable:versionedparcelable:1.0.0-rc01) with AarTransform
[ ] > Transform interpolator.aar (androidx.interpolator:interpolator:1.0.0-rc01) with AarTransform
[ ] > Transform core-runtime.aar (androidx.arch.core:core-runtime:2.0.0-rc01) with AarTransform
[ ] > Transform lifecycle-livedata-core.aar (androidx.lifecycle:lifecycle-livedata-core:2.0.0-rc01) with AarTransform
[ ] > Transform lifecycle-runtime.aar (androidx.lifecycle:lifecycle-runtime:2.0.0-rc01) with AarTransform
[ ] > Transform customview.aar (androidx.customview:customview:1.0.0-rc01) with AarTransform
[ ] > Transform swiperefreshlayout.aar (androidx.swiperefreshlayout:swiperefreshlayout:1.0.0-rc01) with AarTransform
[ ] > Transform asynclayoutinflater.aar (androidx.asynclayoutinflater:asynclayoutinflater:1.0.0-rc01) with AarTransform
[ ] > Transform drawerlayout.aar (androidx.drawerlayout:drawerlayout:1.0.0-rc01) with AarTransform
[ ] > Transform slidingpanelayout.aar (androidx.slidingpanelayout:slidingpanelayout:1.0.0-rc01) with AarTransform
[ ] > Transform core.aar (androidx.core:core:1.0.0-rc01) with AarTransform
[ ] > Transform viewpager.aar (androidx.viewpager:viewpager:1.0.0-rc01) with AarTransform
[ ] > Transform loader.aar (androidx.loader:loader:1.0.0-rc01) with AarTransform
[ ] > Transform legacy-support-core-utils.aar (androidx.legacy:legacy-support-core-utils:1.0.0-rc01) with AarTransform
[ ] > Transform coordinatorlayout.aar (androidx.coordinatorlayout:coordinatorlayout:1.0.0-rc01) with AarTransform
[ ] > Transform fragment.aar (androidx.fragment:fragment:1.0.0-rc01) with AarTransform
[ ] > Transform legacy-support-core-ui.aar (androidx.legacy:legacy-support-core-ui:1.0.0-rc01) with AarTransform
[ ] > Task :app:generateDebugResValues
[ ] > Task :app:generateDebugResources
[ ] > Task :path_provider:compileDebugRenderscript
[ ] > Task :path_provider:generateDebugResValues
[ ] > Task :path_provider:generateDebugResources
[ ] > Task :path_provider:packageDebugResources
[ +196 ms] > Task :app:mergeDebugResources
[ ] > Task :app:createDebugCompatibleScreenManifests
[ ] > Task :app:processDebugManifest
[ ] > Task :app:splitsDiscoveryTaskDebug
[ +99 ms] > Task :path_provider:generateDebugRFile
[ +699 ms] > Task :app:processDebugResources
[ ] > Task :app:generateDebugSources
[ ] > Task :path_provider:generateDebugBuildConfig
[ ] > Task :path_provider:prepareLintJar UP-TO-DATE
[ ] > Task :path_provider:generateDebugSources
[ ] > Task :path_provider:javaPreCompileDebug
[ +98 ms] > Task :path_provider:compileDebugJavaWithJavac
[ ] > Task :path_provider:processDebugJavaRes NO-SOURCE
[ +1 ms] Note: /Users/Moses/.pub-cache/hosted/pub.dartlang.org/path_provider-1.5.1/android/src/main/java/io/flutter/plugins/pathprovider/PathProviderPlugin.java uses or overrides a deprecated API.
[ +2 ms] Note: Recompile with -Xlint:deprecation for details.
[ +91 ms] > Task :path_provider:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug
[ ] > Task :app:javaPreCompileDebug
[ +201 ms] > Task :app:compileDebugJavaWithJavac
[ ] > Task :app:compileDebugNdk NO-SOURCE
[ ] > Task :app:compileDebugSources
[ +897 ms] > Task :app:transformClassesWithDexBuilderForDebug
[ +303 ms] > Task :app:transformDexArchiveWithExternalLibsDexMergerForDebug
[ +298 ms] > Task :app:transformDexArchiveWithDexMergerForDebug
[ ] > Transform lifecycle-viewmodel.aar (androidx.lifecycle:lifecycle-viewmodel:2.0.0-rc01) with AarTransform
[ ] > Transform core-runtime.aar (androidx.arch.core:core-runtime:2.0.0-rc01) with AarTransform
[ ] > Transform versionedparcelable.aar (androidx.versionedparcelable:versionedparcelable:1.0.0-rc01) with AarTransform
[ ] > Transform lifecycle-livedata-core.aar (androidx.lifecycle:lifecycle-livedata-core:2.0.0-rc01) with AarTransform
[ ] > Transform documentfile.aar (androidx.documentfile:documentfile:1.0.0-rc01) with AarTransform
[ ] > Transform interpolator.aar (androidx.interpolator:interpolator:1.0.0-rc01) with AarTransform
[ ] > Transform lifecycle-runtime.aar (androidx.lifecycle:lifecycle-runtime:2.0.0-rc01) with AarTransform
[ ] > Transform core.aar (androidx.core:core:1.0.0-rc01) with AarTransform
[ ] > Transform print.aar (androidx.print:print:1.0.0-rc01) with AarTransform
[ ] > Transform asynclayoutinflater.aar (androidx.asynclayoutinflater:asynclayoutinflater:1.0.0-rc01) with AarTransform
[ ] > Transform customview.aar (androidx.customview:customview:1.0.0-rc01) with AarTransform
[ ] > Transform cursoradapter.aar (androidx.cursoradapter:cursoradapter:1.0.0-rc01) with AarTransform
[ ] > Transform slidingpanelayout.aar (androidx.slidingpanelayout:slidingpanelayout:1.0.0-rc01) with AarTransform
[ ] > Transform localbroadcastmanager.aar (androidx.localbroadcastmanager:localbroadcastmanager:1.0.0-rc01) with AarTransform
[ ] > Transform drawerlayout.aar (androidx.drawerlayout:drawerlayout:1.0.0-rc01) with AarTransform
[ ] > Transform coordinatorlayout.aar (androidx.coordinatorlayout:coordinatorlayout:1.0.0-rc01) with AarTransform
[ ] > Transform viewpager.aar (androidx.viewpager:viewpager:1.0.0-rc01) with AarTransform
[ ] > Transform legacy-support-core-utils.aar (androidx.legacy:legacy-support-core-utils:1.0.0-rc01) with AarTransform
[ ] > Transform legacy-support-core-ui.aar (androidx.legacy:legacy-support-core-ui:1.0.0-rc01) with AarTransform
[ ] > Transform loader.aar (androidx.loader:loader:1.0.0-rc01) with AarTransform
[ ] > Transform fragment.aar (androidx.fragment:fragment:1.0.0-rc01) with AarTransform
[ ] > Transform annotation.jar (androidx.annotation:annotation:1.1.0) with IdentityTransform
[ ] > Transform swiperefreshlayout.aar (androidx.swiperefreshlayout:swiperefreshlayout:1.0.0-rc01) with AarTransform
[ ] > Transform lifecycle-viewmodel.aar (androidx.lifecycle:lifecycle-viewmodel:2.0.0-rc01) with AarTransform
[ ] > Transform core-common.jar (androidx.arch.core:core-common:2.0.0-rc01) with IdentityTransform
[ ] > Transform localbroadcastmanager.aar (androidx.localbroadcastmanager:localbroadcastmanager:1.0.0-rc01) with AarTransform
[ ] > Transform print.aar (androidx.print:print:1.0.0-rc01) with AarTransform
[ ] > Transform documentfile.aar (androidx.documentfile:documentfile:1.0.0-rc01) with AarTransform
[ ] > Transform cursoradapter.aar (androidx.cursoradapter:cursoradapter:1.0.0-rc01) with AarTransform
[ ] > Transform interpolator.aar (androidx.interpolator:interpolator:1.0.0-rc01) with AarTransform
[ ] > Transform versionedparcelable.aar (androidx.versionedparcelable:versionedparcelable:1.0.0-rc01) with AarTransform
[ ] > Transform lifecycle-common.jar (androidx.lifecycle:lifecycle-common:2.0.0-rc01) with IdentityTransform
[ ] > Transform core-runtime.aar (androidx.arch.core:core-runtime:2.0.0-rc01) with AarTransform
[ ] > Transform lifecycle-livedata-core.aar (androidx.lifecycle:lifecycle-livedata-core:2.0.0-rc01) with AarTransform
[ ] > Transform lifecycle-runtime.aar (androidx.lifecycle:lifecycle-runtime:2.0.0-rc01) with AarTransform
[ ] > Transform swiperefreshlayout.aar (androidx.swiperefreshlayout:swiperefreshlayout:1.0.0-rc01) with AarTransform
[ ] > Transform slidingpanelayout.aar (androidx.slidingpanelayout:slidingpanelayout:1.0.0-rc01) with AarTransform
[ ] > Transform core.aar (androidx.core:core:1.0.0-rc01) with AarTransform
[ ] > Transform collection.jar (androidx.collection:collection:1.0.0-rc01) with IdentityTransform
[ ] > Transform customview.aar (androidx.customview:customview:1.0.0-rc01) with AarTransform
[ ] > Transform drawerlayout.aar (androidx.drawerlayout:drawerlayout:1.0.0-rc01) with AarTransform
[ ] > Transform coordinatorlayout.aar (androidx.coordinatorlayout:coordinatorlayout:1.0.0-rc01) with AarTransform
[ ] > Transform asynclayoutinflater.aar (androidx.asynclayoutinflater:asynclayoutinflater:1.0.0-rc01) with AarTransform
[ ] > Transform lifecycle-common-java8.jar (androidx.lifecycle:lifecycle-common-java8:2.0.0-rc01) with IdentityTransform
[ ] > Transform loader.aar (androidx.loader:loader:1.0.0-rc01) with AarTransform
[ ] > Transform legacy-support-core-utils.aar (androidx.legacy:legacy-support-core-utils:1.0.0-rc01) with AarTransform
[ ] > Transform x86_64_debug.jar (io.flutter:x86_64_debug:1.0.0-d60f298d9e7755b8f8204646e7ff03a846f5436c) with IdentityTransform
[ ] > Transform legacy-support-core-ui.aar (androidx.legacy:legacy-support-core-ui:1.0.0-rc01) with AarTransform
[ ] > Transform fragment.aar (androidx.fragment:fragment:1.0.0-rc01) with AarTransform
[ ] > Transform x86_debug.jar (io.flutter:x86_debug:1.0.0-d60f298d9e7755b8f8204646e7ff03a846f5436c) with IdentityTransform
[ ] > Transform flutter_embedding_debug.jar (io.flutter:flutter_embedding_debug:1.0.0-d60f298d9e7755b8f8204646e7ff03a846f5436c) with IdentityTransform
[ ] > Transform viewpager.aar (androidx.viewpager:viewpager:1.0.0-rc01) with AarTransform
[ ] > Task :app:mergeDebugJniLibFolders
[ ] > Task :path_provider:compileDebugNdk NO-SOURCE
[ ] > Task :path_provider:mergeDebugJniLibFolders
[ ] > Task :path_provider:transformNativeLibsWithMergeJniLibsForDebug
[ ] > Task :path_provider:transformNativeLibsWithStripDebugSymbolForDebug
[ ] > Task :path_provider:transformNativeLibsWithIntermediateJniLibsForDebug
[+1091 ms] > Task :app:transformNativeLibsWithMergeJniLibsForDebug
[ +499 ms] > Task :app:transformNativeLibsWithStripDebugSymbolForDebug
[ ] > Task :app:checkDebugLibraries
[ ] > Task :app:processDebugJavaRes NO-SOURCE
[ +300 ms] > Task :app:transformResourcesWithMergeJavaResForDebug
[ ] > Task :app:validateSigningDebug
[+2797 ms] > Task :app:packageDebug
[ ] > Task :app:assembleDebug
[ +81 ms] > Task :path_provider:extractDebugAnnotations
[ ] > Task :path_provider:mergeDebugConsumerProguardFiles UP-TO-DATE
[ ] > Task :path_provider:transformResourcesWithMergeJavaResForDebug
[ ] > Task :path_provider:transformClassesAndResourcesWithSyncLibJarsForDebug
[ ] > Task :path_provider:transformNativeLibsWithSyncJniLibsForDebug
[ ] > Task :path_provider:bundleDebugAar
[ ] > Task :path_provider:compileDebugSources
[ ] > Task :path_provider:assembleDebug
[ ] BUILD SUCCESSFUL in 19s
[ ] 56 actionable tasks: 52 executed, 4 up-to-date
[ +361 ms] Running Gradle task 'assembleDebug'... (completed in 21.2s)
[ +35 ms] calculateSha: LocalDirectory: '/Users/Moses/Documents/flutter/schooler/build/app/outputs/apk'/app.apk
[ +45 ms] calculateSha: reading file took 43us
[ +507 ms] calculateSha: computing sha took 506us
[ +3 ms] ✓ Built build/app/outputs/apk/debug/app-debug.apk.
[ +5 ms] executing: /Users/Moses/Library/Android/sdk/build-tools/28.0.3/aapt dump xmltree /Users/Moses/Documents/flutter/schooler/build/app/outputs/apk/app.apk AndroidManifest.xml
[ +14 ms] Exit code 0 from: /Users/Moses/Library/Android/sdk/build-tools/28.0.3/aapt dump xmltree /Users/Moses/Documents/flutter/schooler/build/app/outputs/apk/app.apk AndroidManifest.xml
[ ] N: android=http://schemas.android.com/apk/res/android
E: manifest (line=2)
A: android:versionCode(0x0101021b)=(type 0x10)0x1
A: android:versionName(0x0101021c)="1.0.0" (Raw: "1.0.0")
A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1c
A: android:compileSdkVersionCodename(0x01010573)="9" (Raw: "9")
A: package="com.example.schooler" (Raw: "com.example.schooler")
A: platformBuildVersionCode=(type 0x10)0x1
A: platformBuildVersionName="1.0.0" (Raw: "1.0.0")
E: uses-sdk (line=7)
A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10
A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1c
E: uses-permission (line=14)
A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
E: application (line=22)
A: android:label(0x01010001)="schooler" (Raw: "schooler")
A: android:icon(0x01010002)=@0x7f080000
A: android:name(0x01010003)="io.flutter.app.FlutterApplication" (Raw: "io.flutter.app.FlutterApplication")
A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory")
E: activity (line=28)
A: android:theme(0x01010000)=@0x7f0a0000
A: android:name(0x01010003)="com.example.schooler.MainActivity" (Raw: "com.example.schooler.MainActivity")
A: android:launchMode(0x0101001d)=(type 0x10)0x1
A: android:configChanges(0x0101001f)=(type 0x11)0x400037b4
A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
E: meta-data (line=42)
A: android:name(0x01010003)="io.flutter.app.android.SplashScreenUntilFirstFrame" (Raw: "io.flutter.app.android.SplashScreenUntilFirstFrame")
A: android:value(0x01010024)=(type 0x12)0xffffffff
E: intent-filter (line=46)
E: action (line=47)
A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
E: category (line=49)
A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
[ +5 ms] Stopping app 'app.apk' on Android SDK built for x86.
[ ] executing: /Users/Moses/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell am force-stop com.example.schooler
[ +134 ms] executing: /Users/Moses/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell pm list packages com.example.schooler
[ +127 ms] package:com.example.schooler
[ +3 ms] executing: /Users/Moses/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell cat /data/local/tmp/sky.com.example.schooler.sha1
[ +83 ms] 8f359a6c16e9e956d30f2ff0ca8952069767ff5b
[ +1 ms] Installing APK.
[ +1 ms] executing: /Users/Moses/Library/Android/sdk/platform-tools/adb version
[ +9 ms] Android Debug Bridge version 1.0.40
Version 28.0.2-5303910
Installed as /Users/Moses/Library/Android/sdk/platform-tools/adb
[ +1 ms] executing: /Users/Moses/Library/Android/sdk/platform-tools/adb start-server
[ +11 ms] Installing build/app/outputs/apk/app.apk...
[ +1 ms] executing: /Users/Moses/Library/Android/sdk/platform-tools/adb -s emulator-5554 install -t -r /Users/Moses/Documents/flutter/schooler/build/app/outputs/apk/app.apk
[+3874 ms] Performing Streamed Install
Success
[ ] Installing build/app/outputs/apk/app.apk... (completed in 3.9s)
[ +1 ms] executing: /Users/Moses/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell echo -n 9377636d105589306a40f6ab40c2299aed1ed7fc > /data/local/tmp/sky.com.example.schooler.sha1
[ +47 ms] Android SDK built for x86 startApp
[ +4 ms] executing: /Users/Moses/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell am start -a android.intent.action.RUN -f 0x20000000 --ez enable-background-compilation true --ez enable-dart-profiling true --ez enable-checked-mode true --ez
verify-entry-points true com.example.schooler/com.example.schooler.MainActivity
[ +99 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=com.example.schooler/.MainActivity (has extras) }
[ ] Waiting for observatory port to be available...
[ +860 ms] E/flutter (22301): [ERROR:flutter/shell/common/shell.cc(202)] Dart Error: Can't load Kernel binary: Invalid kernel binary format version.
[ +2 ms] E/flutter (22301): [ERROR:flutter/shell/common/engine.cc(200)] Could not prepare to run the isolate.
[ ] E/flutter (22301): [ERROR:flutter/shell/common/engine.cc(139)] Engine not prepare and launch isolate.
[ ] E/flutter (22301): [ERROR:flutter/shell/common/shell.cc(464)] Could not launch engine with configuration.
[ +320 ms] Observatory URL on device: http://127.0.0.1:35941/1hHQXWI4kxY=/
[ +1 ms] executing: /Users/Moses/Library/Android/sdk/platform-tools/adb -s emulator-5554 forward tcp:0 tcp:35941
[ +8 ms] 55694
[ ] Forwarded host port 55694 to device port 35941 for Observatory
[ +11 ms] Connecting to service protocol: http://127.0.0.1:55694/1hHQXWI4kxY=/
[ +317 ms] Successfully connected to service protocol: http://127.0.0.1:55694/1hHQXWI4kxY=/
[ +2 ms] Sending to VM service: getVM({})
[ +4 ms] Result: {type: VM, name: vm, architectureBits: 32, hostCPU: Intel(R) Core(TM) i7-6820HQ CPU @ 2.70GHz, operatingSystem: android, targetCPU: ia32, version: 2.8.0-dev.9.0.flutter-edd64e6d5c (Fri Feb 14 06:40:31 2020 +0000) on "android_ia32", _profilerMode: ...
[ +4 ms] Sending to VM service: getIsolate({isolateId: isolates/1401343412289959})
[ +3 ms] Sending to VM service: _flutter.listViews({})
[ +11 ms] Result: {type: Isolate, id: isolates/1401343412289959, name: main, number: 1401343412289959, _originNumber: 1401343412289959, startTime: 1581849887190, _heaps: {new: {type: HeapSpace, name: new, vmName: Scavenger, collections: 2, avgCollectionPeriodMillis...
[ +3 ms] Result: {type: FlutterViewList, views: [{type: FlutterView, id: _flutterView/0xd19ea710, isolate: {type: @Isolate, fixedId: true, id: isolates/1401343412289959, name: main.dart$main-1401343412289959, number: 1401343412289959}}]}
[ +5 ms] DevFS: Creating new filesystem on the device (null)
[ +1 ms] Sending to VM service: _createDevFS({fsName: schooler})
[ +34 ms] Result: {type: FileSystem, name: schooler, uri: file:///data/user/0/com.example.schooler/code_cache/schoolerPZDUNZ/schooler/}
[ ] DevFS: Created new filesystem on the device (file:///data/user/0/com.example.schooler/code_cache/schoolerPZDUNZ/schooler/)
[ +1 ms] Updating assets
[ +82 ms] Syncing files to device Android SDK built for x86...
[ +2 ms] Scanning asset files
[ +2 ms] <- reset
[ ] Compiling dart to kernel with 0 updated files
[ +8 ms] /Users/Moses/flutter/bin/cache/dart-sdk/bin/dart /Users/Moses/flutter/bin/cache/artifacts/engine/darwin-x64/frontend_server.dart.snapshot --sdk-root /Users/Moses/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --incremental --target=flutter
-Ddart.developer.causal_async_stacks=true --output-dill /var/folders/kn/60mx42xd24scvm6n4kf3nq140000gp/T/flutter_tool.9LMlDB/app.dill --packages /Users/Moses/Documents/flutter/schooler/.packages -Ddart.vm.profile=false -Ddart.vm.product=false
--bytecode-options=source-positions,local-var-info,debugger-stops,instance-field-initializers,keep-unreachable-code,avoid-closure-call-instructions --enable-asserts --track-widget-creation --filesystem-scheme org-dartlang-root
[ +5 ms] <- compile package:schooler/main.dart
[+5991 ms] Updating files
[ +160 ms] DevFS: Sync finished
[ +1 ms] Syncing files to device Android SDK built for x86... (completed in 6,170ms, longer than expected)
[ ] Synced 0.9MB.
[ +1 ms] Sending to VM service: _flutter.listViews({})
[ +4 ms] Result: {type: FlutterViewList, views: [{type: FlutterView, id: _flutterView/0xd19ea710, isolate: {type: @Isolate, fixedId: true, id: isolates/1401343412289959, name: main.dart$main-1401343412289959, number: 1401343412289959}}]}
[ ] <- accept
[ ] Connected to _flutterView/0xd19ea710.
[ +1 ms] Flutter run key commands.
[ +1 ms] r Hot reload. 🔥🔥🔥
[ +1 ms] R Hot restart.
[ ] h Repeat this help message.
[ ] d Detach (terminate "flutter run" but leave application running).
[ ] c Clear the screen
[ ] q Quit (terminate the application on the device).
[ ] An Observatory debugger and profiler on Android SDK built for x86 is available at: http://127.0.0.1:55694/1hHQXWI4kxY=/
```
Press R to hot restart:
```
[+11556 ms] Performing hot restart...
[ +9 ms] Scanned through 473 files in 6ms
[ ] Syncing files to device Android SDK built for x86...
[ ] Scanning asset files
[ ] <- reset
[ ] Compiling dart to kernel with 0 updated files
[ +1 ms] <- recompile package:schooler/main.dart 56332b3b-f164-44bb-b952-a0eacfdbd202
[ ] <- 56332b3b-f164-44bb-b952-a0eacfdbd202
[ +87 ms] Updating files
[ +856 ms] DevFS: Sync finished
[ ] Syncing files to device Android SDK built for x86... (completed in 947ms)
[ ] Synced 20.1MB.
[ ] <- accept
[ ] Sending to VM service: getIsolate({isolateId: isolates/1401343412289959})
[ +5 ms] Result: {type: Isolate, id: isolates/1401343412289959, name: main, number: 1401343412289959, _originNumber: 1401343412289959, startTime: 1581849887191, _heaps: {new: {type: HeapSpace, name: new, vmName: Scavenger, collections: 2, avgCollectionPeriodMillis...
[ +1 ms] Sending to VM service: resume({isolateId: isolates/1401343412289959})
[ +20 ms] Error 105 received from application: Isolate must be runnable
[ ] {request: {method: resume, params: {isolateId: isolates/1401343412289959}}, details: Isolate must be runnable before this request is made.}
[ +2 ms] Performing hot restart... (completed in 987ms)
[ ] Restarted application in 988ms.
[ +3 ms] Application finished.
hot restart failed to complete
#0 throwToolExit (package:flutter_tools/src/base/common.dart:14:3)
#1 TerminalHandler._commonTerminalInputHandler (package:flutter_tools/src/resident_runner.dart:1254:11)
<asynchronous suspension>
#2 TerminalHandler.processTerminalInput (package:flutter_tools/src/resident_runner.dart:1304:13)
#3 _rootRunUnary (dart:async/zone.dart:1134:38)
#4 _CustomZone.runUnary (dart:async/zone.dart:1031:19)
#5 _CustomZone.runUnaryGuarded (dart:async/zone.dart:933:7)
#6 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:339:11)
#7 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:266:7)
#8 _SyncBroadcastStreamController._sendData (dart:async/broadcast_stream_controller.dart:377:20)
#9 _BroadcastStreamController.add (dart:async/broadcast_stream_controller.dart:252:5)
#10 _AsBroadcastStreamController.add (dart:async/broadcast_stream_controller.dart:476:11)
#11 _rootRunUnary (dart:async/zone.dart:1134:38)
#12 _CustomZone.runUnary (dart:async/zone.dart:1031:19)
#13 _CustomZone.runUnaryGuarded (dart:async/zone.dart:933:7)
#14 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:339:11)
#15 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:266:7)
#16 _SinkTransformerStreamSubscription._add (dart:async/stream_transformers.dart:70:11)
#17 _EventSinkWrapper.add (dart:async/stream_transformers.dart:17:11)
#18 _StringAdapterSink.add (dart:convert/string_conversion.dart:238:11)
#19 _StringAdapterSink.addSlice (dart:convert/string_conversion.dart:243:7)
#20 _Utf8ConversionSink.addSlice (dart:convert/string_conversion.dart:314:20)
#21 _ErrorHandlingAsciiDecoderSink.addSlice (dart:convert/ascii.dart:254:17)
#22 _ErrorHandlingAsciiDecoderSink.add (dart:convert/ascii.dart:240:5)
#23 _ConverterStreamEventSink.add (dart:convert/chunked_conversion.dart:74:18)
#24 _SinkTransformerStreamSubscription._handleData (dart:async/stream_transformers.dart:122:24)
#25 _rootRunUnary (dart:async/zone.dart:1134:38)
#26 _CustomZone.runUnary (dart:async/zone.dart:1031:19)
#27 _CustomZone.runUnaryGuarded (dart:async/zone.dart:933:7)
#28 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:339:11)
#29 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:266:7)
#30 _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:773:19)
#31 _StreamController._add (dart:async/stream_controller.dart:649:7)
#32 _StreamController.add (dart:async/stream_controller.dart:595:5)
#33 _Socket._onData (dart:io-patch/socket_patch.dart:1870:41)
#34 _rootRunUnary (dart:async/zone.dart:1138:13)
#35 _CustomZone.runUnary (dart:async/zone.dart:1031:19)
#36 _CustomZone.runUnaryGuarded (dart:async/zone.dart:933:7)
#37 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:339:11)
#38 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:266:7)
#39 _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:773:19)
#40 _StreamController._add (dart:async/stream_controller.dart:649:7)
#41 _StreamController.add (dart:async/stream_controller.dart:595:5)
#42 new _RawSocket.<anonymous closure> (dart:io-patch/socket_patch.dart:1415:33)
#43 _NativeSocket.issueReadEvent.issue (dart:io-patch/socket_patch.dart:919:14)
#44 _microtaskLoop (dart:async/schedule_microtask.dart:43:21)
#45 _startMicrotaskLoop (dart:async/schedule_microtask.dart:52:5)
#46 _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:118:13)
#47 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:169:5)
[ +7 ms] executing: /Users/Moses/Library/Android/sdk/platform-tools/adb -s emulator-5554 forward --list
[ +9 ms] Exit code 0 from: /Users/Moses/Library/Android/sdk/platform-tools/adb -s emulator-5554 forward --list
[ ] emulator-5554 tcp:55694 tcp:35941
[ +1 ms] executing: /Users/Moses/Library/Android/sdk/platform-tools/adb -s emulator-5554 forward --remove tcp:55694
[ +8 ms] DevFS: Deleting filesystem on the device (file:///data/user/0/com.example.schooler/code_cache/schoolerPZDUNZ/schooler/)
[ ] Sending to VM service: _deleteDevFS({fsName: schooler})
[ +11 ms] Result: {type: Success}
[ ] DevFS: Deleted filesystem on the device (file:///data/user/0/com.example.schooler/code_cache/schoolerPZDUNZ/schooler/)
[ +1 ms] executing: /Users/Moses/Library/Android/sdk/platform-tools/adb -s emulator-5554 forward --list
[ +6 ms] Exit code 0 from: /Users/Moses/Library/Android/sdk/platform-tools/adb -s emulator-5554 forward --list
[ +1 ms] "flutter run" took 49,533ms.
$
```
<!-- If possible, paste the output of running `flutter doctor -v` here. -->
`flutter doctor -v`
```
$ flutter doctor -v
[✓] Flutter (Channel master, v1.15.4-pre.82, on Mac OS X 10.15.3 19D76, locale zh-Hant-HK)
• Flutter version 1.15.4-pre.82 at /Users/Moses/flutter
• Framework revision e481fcae52 (28 hours ago), 2020-02-14 22:34:30 -0800
• Engine revision d60f298d9e
• Dart version 2.8.0 (build 2.8.0-dev.9.0 edd64e6d5c)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
• Android SDK at /Users/Moses/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.3.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.3.1, Build version 11C504
• CocoaPods version 1.8.4
[✓] Android Studio (version 3.4)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 35.0.1
• Dart plugin version 183.6270
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
[✓] VS Code (version 1.42.0)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.8.1
[✓] Connected device (2 available)
• Android SDK built for x86 • emulator-5554 • android-x86 • Android Q (API 28) (emulator)
• iPhone SE • DFF6CC19-AAE5-4BB4-A935-1D5A030BBDFB • ios • com.apple.CoreSimulator.SimRuntime.iOS-13-3 (simulator)
• No issues found!
$
```
</details>
Thanks for any help! | c: crash,platform-android,tool,P2,team-android,triaged-android | low | Critical |
565,904,269 | youtube-dl | Adult Swim extractor failing to retrieve ngtv_info | > youtube-dl -v --ap-mso Charter_Direct --ap-username wisonm --ap-password Gunda
m@@00 -f "best[height=720]" https://www.adultswim.com/videos/demon-slayer/lettin
g-someone-else-go-first
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', '--ap-mso', 'Charter_Direct', '--ap-username',
'PRIVATE', '--ap-password', 'PRIVATE', '-f', 'best[height=720]', 'https://www.a
dultswim.com/videos/demon-slayer/letting-someone-else-go-first']
[debug] Encodings: locale cp1252, fs mbcs, out cp65001, pref cp1252
[debug] youtube-dl version 2020.01.24
[debug] Python version 3.4.4 (CPython) - Windows-8.1-6.3.9600
[debug] exe versions: ffmpeg 4.2.2, ffprobe 4.2.2
[debug] Proxy map: {}
[AdultSwim] letting-someone-else-go-first: Downloading JSON metadata
[AdultSwim] 30c137bcbd343ea6ec2b80f276fee9ce42179843: Downloading JSON metadata
ERROR: An extractor error has occurred. (caused by KeyError('media',)); please r
eport this issue on https://yt-dl.org/bug . Make sure you are using the latest v
ersion; type youtube-dl -U to update. Be sure to call youtube-dl with the --ve
rbose flag and include its complete output.
Traceback (most recent call last):
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpw0w300
z1\build\youtube_dl\extractor\common.py", line 530, in extract
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpw0w300
z1\build\youtube_dl\extractor\adultswim.py", line 163, in _real_extract
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpw0w300
z1\build\youtube_dl\extractor\turner.py", line 200, in _extract_ngtv_info
KeyError: 'media'
Traceback (most recent call last):
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpw0w300
z1\build\youtube_dl\extractor\common.py", line 530, in extract
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpw0w300
z1\build\youtube_dl\extractor\adultswim.py", line 163, in _real_extract
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpw0w300
z1\build\youtube_dl\extractor\turner.py", line 200, in _extract_ngtv_info
KeyError: 'media'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpw0w300
z1\build\youtube_dl\YoutubeDL.py", line 796, in extract_info
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpw0w300
z1\build\youtube_dl\extractor\common.py", line 543, in extract
youtube_dl.utils.ExtractorError: An extractor error has occurred. (caused by Key
Error('media',)); please report this issue on https://yt-dl.org/bug . Make sure
you are using the latest version; type youtube-dl -U to update. Be sure to cal
l youtube-dl with the --verbose flag and include its complete output.
While attempting to download this weekends episode of Demon Slayer using the following link https://www.adultswim.com/videos/demon-slayer/letting-someone-else-go-first it returns the above extraction errors and have tested it on this weeks Black Clover episode https://www.adultswim.com/videos/black-clover/smiles-tears so it is not an isolated bug. | tv-provider-account-needed | low | Critical |
565,916,099 | flutter | How to remove 'I/flutter (13135):' in vscode debug console | When I use debugPrint () to print the information, 'I / flutter (13135):' is added to each line, which affects readability very much and cannot copy the data in json format correctly.
Another way to print logs is developer.log (). This way is not added 'I / flutter (13135):', but multi-line text will be truncated. In fact, developer.log () is normal in android studio.

| c: new feature,tool,engine,d: stackoverflow,P3,team-engine,triaged-engine | medium | Critical |
565,922,438 | rust | Tracking Issue for linked_list_remove | <!--
Thank you for creating a tracking issue! 📜 Tracking issues are for tracking a
feature from implementation to stabilisation. Make sure to include the relevant
RFC for the feature if it has one. Otherwise provide a short summary of the
feature and link any relevant PRs or issues, and remove any sections that are
not relevant to the feature.
Remember to add team labels to the tracking issue.
For a language team feature, this would e.g., be `T-lang`.
Such a feature should also be labeled with e.g., `F-my_feature`.
This label is used to associate issues (e.g., bugs and design questions) to the feature.
-->
#68705 adds a method in LinkedList to remove an element at a specified index.
The feature gate for the issue is `#![feature(linked_list_remove)]`.
| A-collections,T-libs-api,B-unstable,C-tracking-issue,Libs-Tracked,Libs-Small | low | Critical |
565,929,716 | godot | Not obvious behavior with temporary removed signal definition | **Godot version:**
3.2.stable
**OS/device including version:**
Windows 10
**Issue description:**
On existing signal connection try to comment out/rename/remove the definition of the signal:
- Scene tab - icon showing that connection is still present
- Signals tab - connection disappears
But if you return signal definition back to the script/class - connection in Signals tab appears again.
If you close and reopen the scene (while signal definition removed) - signal connection also removed completely and finally.
**Steps to reproduce:**
Just comment out any signal definition with existing connection

**Possible solutions:**
- Scene tab - icon could change the color and/or hover description could be more clear
- Signals tab - such connection could be marked as "temporary unavailable" | bug,topic:gdscript,topic:editor,confirmed,usability | low | Critical |
565,948,644 | godot | AnimationPlayer::stop(false) unexpectedly flushes animation queue | **Godot version:**
Godot 3.2 stable
**OS/device including version:**
Ubuntu 18.04
**Issue description:**
When pausing animations using `AnimationPlayer::stop(false)`, the animation queue is unexpectedly flushed, and as a result they do not play when resuming using `AnimationPlayer::play()` after the paused animation finishes.
**Steps to reproduce:**
In the reproduction project, press `Enter` to play red animation and queue green animation, then press `Esc` while red animation is playing to pause it (using `AnimationPlayer::stop(false)`). Press `Esc` again to unpause (using `AnimationPlayer::play()`), and notice that the red animation finishes but the green one that was previously queued does not play.
**Minimal reproduction project:**
[animationplayer-queue-bug-minimal-reproduction.zip](https://github.com/godotengine/godot/files/4210541/animationplayer-queue-bug-minimal-reproduction.zip) | bug,topic:core | low | Critical |
565,960,883 | go | x/pkgsite: lower score of previous path in case of module rename | ### What is the URL of the page with the issue?
https://pkg.go.dev/github.com/myitcv/govim/cmd/govim/config?tab=doc
### What is your user agent?
<pre>
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.66 Safari/537.36
</pre>
### Screenshot

### What did you do?
Visited the above page.
### What did you expect to see?
Expected to see `v0.0.29` as the latest version.
### What did you see instead?
Saw `v0.0.22` which was released a long time ago:

| NeedsInvestigation,pkgsite,UX,pkgsite/search | low | Major |
565,964,924 | rust | Overflow evaluating requirements when referencing associated type without a type parameter | This code fails to compile on stable (1.41.0), beta (1.42.0-beta.3), and nightly:
```rust
use std::ops::Add;
struct Container<S: Data>(S);
trait Data {
type Elem;
}
impl<A> Data for Vec<A> {
type Elem = A;
}
impl<A, S> Add<Container<S>> for f32
where
f32: Add<A, Output=A>,
S: Data<Elem=A>,
{
type Output = Container<S>;
fn add(self, _rhs: Container<S>) -> Container<S> {
unimplemented!()
}
}
impl<'a, A, S> Add<&'a Container<S>> for f32
where
f32: Add<A>,
S: Data<Elem=A>,
{
type Output = Container<Vec<<f32 as Add<A>>::Output>>;
fn add(self, _rhs: &Container<S>) -> Self::Output {
unimplemented!()
}
}
fn main() {}
```
([playground](https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=0b20b5a0031756e51ca72df4489526d1))
with the following error messages:
```
error[E0275]: overflow evaluating the requirement `f32: std::ops::Add<Container<_>>`
--> src/main.rs:24:16
|
24 | impl<'a, A, S> Add<&'a Container<S>> for f32
| ^^^^^^^^^^^^^^^^^^^^^
|
= help: consider adding a `#![recursion_limit="256"]` attribute to your crate
= note: required because of the requirements on the impl of `std::ops::Add<Container<_>>` for `f32`
= note: required because of the requirements on the impl of `std::ops::Add<Container<_>>` for `f32`
= note: required because of the requirements on the impl of `std::ops::Add<Container<_>>` for `f32`
[...]
= note: required because of the requirements on the impl of `std::ops::Add<Container<_>>` for `f32`
= note: required because of the requirements on the impl of `std::ops::Add<Container<_>>` for `f32`
error[E0275]: overflow evaluating the requirement `f32: std::ops::Add<Container<_>>`
--> src/main.rs:30:5
|
30 | / fn add(self, _rhs: &Container<S>) -> Self::Output {
31 | | unimplemented!()
32 | | }
| |_____^
|
= help: consider adding a `#![recursion_limit="256"]` attribute to your crate
= note: required because of the requirements on the impl of `std::ops::Add<Container<_>>` for `f32`
= note: required because of the requirements on the impl of `std::ops::Add<Container<_>>` for `f32`
= note: required because of the requirements on the impl of `std::ops::Add<Container<_>>` for `f32`
[...]
= note: required because of the requirements on the impl of `std::ops::Add<Container<_>>` for `f32`
= note: required because of the requirements on the impl of `std::ops::Add<Container<_>>` for `f32`
```
I expected it to compile without errors. Adding a type parameter for the type `<f32 as Add<A>>::Output` fixes the issue. In other words, this equivalent code compiles without errors:
```rust
use std::ops::Add;
struct Container<S: Data>(S);
trait Data {
type Elem;
}
impl<A> Data for Vec<A> {
type Elem = A;
}
impl<A, S> Add<Container<S>> for f32
where
f32: Add<A, Output=A>,
S: Data<Elem=A>,
{
type Output = Container<S>;
fn add(self, _rhs: Container<S>) -> Container<S> {
unimplemented!()
}
}
// See the type `B` here.
impl<'a, A, S, B> Add<&'a Container<S>> for f32
where
f32: Add<A, Output = B>,
S: Data<Elem=A>,
{
type Output = Container<Vec<B>>;
fn add(self, _rhs: &Container<S>) -> Self::Output {
unimplemented!()
}
}
fn main() {}
```
([playground](https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=d0815f4f20342c69ff611054c0236eaa))
Maybe the compiler is over-eager in evaluating the `<f32 as Add<A>>::Output` type expression, but using a type parameter instead set equal to that type prevents the compiler from going too far?
### Meta
Tested using the Rust playground.
* stable: 1.41.0
* beta: 1.42.0-beta.3 (2020-02-07 86f329b419dbac59da59)
* nightly: 1.43.0-nightly (2020-02-15 61d9231ff2604a046798) | A-trait-system,T-compiler,C-bug,T-types,fixed-by-next-solver | low | Critical |
565,974,093 | neovim | refactor: use DEFER() macro for freeing resources | someone implemented DEFER() macro for C , and it looks pretty good:
- https://github.com/moon-chilled/Defer
- https://lobste.rs/s/d8g4mk/i_implemented_defer_for_c
see also https://news.ycombinator.com/item?id=22617915
> the "cleanup" GCC variable attribute: https://gcc.gnu.org/onlinedocs/gcc/Common-Variable-Attributes.html
> example usage: https://github.com/FRRouting/frr/blob/master/lib/frr_pthread.h#L218-L264
| refactor,core | low | Minor |
565,978,178 | flutter | Connect to VM timeout when doing integration tests | ## Steps to Reproduce
<!-- You must include full steps to reproduce so that we can reproduce the problem. -->
1. Run `flutter drive --target=test_driver/app.dart`.
2. see the error on test startup:
```bash
VMServiceFlutterDriver: It is taking an unusually long time to connect to the VM...
VMServiceFlutterDriver: It is taking an unusually long time to connect to the VM...
VMServiceFlutterDriver: It is taking an unusually long time to connect to the VM...
VMServiceFlutterDriver: It is taking an unusually long time to connect to the VM...
...
```
**Expected results:** the integration tests should start running in the emulator
**Actual results:** it keeps saying cannot connect to VM and finally timeout.
see this CI run: https://github.com/tianhaoz95/photochat/pull/17/checks?check_run_id=449361947#step:6:936
[logs_157.zip](https://github.com/flutter/flutter/files/4210996/logs_157.zip)
| c: regression,tool,t: flutter driver,customer: crowd,P2,team-tool,triaged-tool | low | Critical |
565,984,402 | godot | Enabled text wrapping on TextEdit node causes low perfomance | **Godot version:** 3.2.stable.official
**OS/device including version:** Windows 10 x64
**Issue description:** I suppose everything is just the way it is, but this was quite unexpected source of lag for my text processing app. Perfomance decrease depends on _(string length / node width)_ ratio and gets worse if text is selected.
Gif below demonstrates CPU (left column) and GPU (rightmost column) usage (RAM is middle).

Can it be because line splits of entire string are calculated every frame? Is it possible to freeze the node unless it has focus or text is changed?
**Steps to reproduce:** Paste text (>10k symbols) to TextEdit node with true _wrap_enabled_.
**Minimal reproduction project:** [Text Wrap Test.zip](https://github.com/godotengine/godot/files/4211078/Text.Wrap.Test.zip)
| bug,confirmed,topic:gui,performance | low | Major |
566,016,418 | flutter | The flutter tool can crash when the local .git workspace gets into a bad state | This may happen if .git is pointed to a different origin, lacks an origin repo, is on some unknown branch, or is in a detached HEAD state. There are numerous causes, one being of course the unfortunate behavior of the `flutter version` command. Another would be manual git operations. The usual failure case is either a version check exception or an error such as:
`ProcessException: git log -n 1 --pretty=format:%ad --date=iso exited with code 0` (This often happens during upgrades)
One solution is to manually put the `git` workspace back into a good state. The commands to do so, assuming you wanted to be on the `stable` channel would be:
`git remote remove origin`
`git remote add origin https://github.com/flutter/flutter.git`
`git fetch origin`
`git checkout --track -b stable origin/stable`
This can also happen if `git` is configured incorrectly on a local level. For example, set a `git config` like `git config --global color.ui ture`. This will result in git commands that read this configuration crashing:
```
VersionCheckError: VersionCheckError: Command exited with code 128: git -c log.showSignature=false log -n 1 --pretty=format:%ad --date=iso
Standard error: fatal: bad numeric config value 'ture' for 'color.ui': invalid unit
```
In the `flutter doctor` check, we're specifically catching these crashes but they ultimately prevent us from upgrading or determining the current flutter version. | c: crash,tool,a: quality,P2,team-tool,triaged-tool | low | Critical |
566,033,725 | rust | Confusing errors when using `Self` variants with lifetimes | Minimal example, imagine that we have the following type:
```rust
enum MyCow<'a> {
Owned(String),
Borrowed(&'a str),
}
```
If the user returns `Self` variants, this fails:
```rust
impl<'a> MyCow<'a> {
fn borrow(&self) -> MyCow<'_> {
match self {
Self::Owned(s) => Self::Borrowed(s),
Self::Borrowed(s) => Self::Borrowed(s),
}
}
fn own(&self) -> MyCow<'static> {
match self {
Self::Owned(s) => Self::Owned(s.clone()),
Self::Borrowed(s) => Self::Owned(s.to_string()),
}
}
}
```
But the same code works when you change `Self` to `MyCow`!
```rust
impl<'a> MyCow<'a> {
fn borrow(&self) -> MyCow<'_> {
match self {
Self::Owned(s) => MyCow::Borrowed(s),
Self::Borrowed(s) => MyCow::Borrowed(s),
}
}
fn own(&self) -> MyCow<'static> {
match self {
Self::Owned(s) => MyCow::Owned(s.clone()),
Self::Borrowed(s) => MyCow::Owned(s.to_string()),
}
}
}
```
The real error here is that `Self` really represents `MyCow<'a>` and not `MyCow<'_>` or `MyCow<'static>`-, but the errors don't really relay this. Potentially linked issue: #30904 (has been fixed). | C-enhancement,A-diagnostics,T-compiler,D-confusing | low | Critical |
566,035,133 | go | gollvm: runtime and runtime/pprof packages test failed | <!--
Please answer these questions before submitting your issue. Thanks!
For questions please use one of our forums: https://github.com/golang/go/wiki/Questions
-->
### What version of Go are you using (`go version`)?
<pre>
$ go version
go version go1.14rc1 gollvm LLVM 11.0.0git 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/erifan01/.cache/go-build"
GOENV="/home/erifan01/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/erifan01/gopath"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/home/erifan01/gollvm-master/install"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/home/erifan01/gollvm-master/install/tools"
GCCGO="/home/erifan01/gollvm-master/install/bin/llvm-goc"
AR="ar"
CC="/usr/bin/cc"
CXX="/usr/bin/c++"
CGO_ENABLED="1"
GOMOD=""
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-build180143903=/tmp/go-build -gno-record-gcc-switches -funwind-tables"
</pre></details>
### What did you do?
$ ninja check-gollvm
### What did you expect to see?
All test pass
### What did you see instead?
Tests of package runtime and runtime/pprof failed
@thanm @ianlancetaylor @cherrymui | NeedsInvestigation | medium | Critical |
566,065,117 | You-Dont-Know-JS | types & grammar: research trig math | https://macwright.org/2020/02/14/math-keeps-changing.html | for second edition | medium | Minor |
566,066,006 | PowerToys | Add hot corners functionality to PowerToys | # Summary of the new feature/enhancement
Operating systems such as macOS or some Linux distributions have hot corners option in their functionality. It would be great to have something like that in Windows. Although there are third party applications that provide such functionality (e.g. WinX Corners), they are sometimes limited.
# Proposed technical implementation details (optional)
For example, you can set one of the default options:
- Opening the task view
- Opening the start menu
- Opening of the action centre
- Opening Cortana (?)
- Opening the Alt-tab interface
- Execution of own powershell / cmd command | Help Wanted,Idea-New PowerToy | high | Critical |
566,081,795 | pytorch | IterableDataset with num_workers > 0 and drop_last=True drops more instances than expected | ## 🐛 Bug
When using `IterableDataset` with `num_workers > 0` and `drop_last=True`, DataLoader drops more instances than expected.
It seems like the drop of incomplete batches are occurred at each worker.
## To Reproduce
Steps to reproduce the behavior:
```
import torch
from torch.utils.data import IterableDataset
from torch.utils.data import DataLoader
from torch.utils.data import get_worker_info
class MyIterableDataset(IterableDataset):
def __iter__(self):
worker_info = get_worker_info()
worker_id = worker_info.id
yield from range(100*worker_id, 100*(worker_id+1))
dataset = MyIterableDataset()
data_loader = DataLoader(dataset, batch_size=128, num_workers=10, drop_last=True)
next(iter(data_loader))
>>>
(Expect this to return some batch, but this just raises StopIteration)
```
## Expected behavior
Drops only the incomplete batch of complete iteration, not per each worker.
## Environment
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.6
Is CUDA available: Yes
CUDA runtime version: Could not collect
GPU models and configuration:
GPU 0: TITAN Xp
GPU 1: TITAN Xp
GPU 2: TITAN Xp
GPU 3: TITAN Xp
Nvidia driver version: 440.44
cuDNN version: Could not collect
Versions of relevant libraries:
[pip] numpy==1.18.1
[pip] torch==1.3.1
[pip] torchvision==0.4.2
[conda] blas 1.0 mkl
[conda] mkl 2019.4 243
[conda] mkl-service 2.3.0 py36he904b0f_0
[conda] mkl_fft 1.0.15 py36ha843d7b_0
[conda] mkl_random 1.1.0 py36hd6b4f25_0
[conda] pytorch 1.3.1 py3.6_cuda10.1.243_cudnn7.6.3_0 pytorch
[conda] torchvision 0.4.2 py36_cu101 pytorch
cc @SsnL | feature,module: dataloader,triaged | low | Critical |
566,096,209 | vscode | Key binding condition for "is merging conflicts"? | It would be great if there is a way to express the key binding condition of merging conflicts. That way I can bind the same key to "move to next change" and "move to next conflict" and let VSCode do the right thing smartly.
Looks like [there is another person](https://stackoverflow.com/a/46133407/1755086) who would like this as well. | feature-request,merge-conflict | low | Minor |
566,136,879 | go | x/net/html: text node is moved outside <table> | ### What version of Go are you using (`go version`)?
Playground, Go 1.13
### Does this issue reproduce with the latest release?
Yes
### What operating system and processor architecture are you using (`go env`)?
Playground
### What did you do?
https://play.golang.org/p/UmY2tC6CML5
### What did you expect to see?
The output HTML should be identical to the input.
### What did you see instead?
The `test` text node is moved before `<table>`.
Yes, I know that it's not correct to have a text node directly inside a `<table>`.
However, I'm manipulating an HTML document containing templating instructions from https://github.com/flosch/pongo2 .
My goal is to do some changes in the HTML **before** rendering the template.
Is it possible to not move these text nodes, even if the HTML is not strictly valid ?
Is there another workaround ? | NeedsInvestigation | low | Minor |
566,140,611 | opencv | Decode with multiple GPUs: How can I specify whichi gpu to use in cv::VideoCapture()? | <!--
If you have a question rather than reporting a bug please go to http://answers.opencv.org where you get much faster responses.
If you need further assistance please read [How To Contribute](https://github.com/opencv/opencv/wiki/How_to_contribute).
Please:
* Read the documentation to test with the latest developer build.
* Check if other person has already created the same issue to avoid duplicates. You can comment on it if there already is an issue.
* Try to be as detailed as possible in your report.
* Report only one problem per created issue.
This is a template helping you to create an issue which can be processed as quickly as possible. This is the bug reporting section for the OpenCV library.
-->
##### System information (version)
<!-- Example
- OpenCV => 4.2.0
- Operating System / Platform => ubuntu 18.04
- Compiler => gcc
-->
- OpenCV => 4.2.0
- Operating System / Platform => ubuntu 18.04
- Compiler => gcc
##### Detailed description
I have 2 videos to be decoded, and I have 2 available gpus.
I want to construct two video captures to decode video 0 with gpu 0 and decode video 1 with gpu 1.
How can I achieve this feature? Thanks!
BTW, I set
`OPENCV_FFMPEG_CAPTURE_OPTIONS="video_codec;h264_cuvid"` to use ffmpeg with cuvid to decode videos in opencv.
##### Steps to reproduce
<!-- to add code example fence it with triple backticks and optional file extension
```.cpp
// C++ code example
```
or attach as .txt or .zip file
-->
| feature,priority: low,category: videoio,category: gpu/cuda (contrib) | low | Critical |
566,164,011 | rust | parser: Implement recovery for potential unknown macro variables `$ IDENT` | https://github.com/rust-lang/rust/pull/69211 simplified parsing and fixed treatment of `$` tokens coming from proc macros, but slightly regressed diagnostics.
If a declarative macro body contains something that looks like an unknown macro variable `$ var`, then it's preserved and outputted like two-token sequence punctuation `$` and identifier `var`.
We previously tried to detect such sequences in `Parser::bump`, but the detection wasn't correct and wasn't done in the best way for recovery.
Instead, we need to support parsing the `$ IDENT` sequences in context dependent fashion, as an error expression in expression position, as an error type in type position etc.
Currently supported positions for macro variables (roughly in the order of importance):
- [ ] `expr`
- [ ] `ty`
- [ ] `pat`
- [ ] `item`
- [ ] `ident`
- [ ] `lifetime`
- [ ] `vis`
- [ ] `path`
- [ ] `block`
- [ ] `literal`
- [ ] `meta`
- [ ] `stmt`
It's quite possible that implementing this recovery for `ident` can successfully make implementing it for `expr`, `ty`, `pat`, `path` and `meta` unnecessary. | C-enhancement,A-diagnostics,A-parser,T-compiler | low | Critical |
566,180,824 | vue | Throw error/warn if watch path doesn't resolve to an existing property | ### What problem does this feature solve?
Currently, if a watch path does not address an existing property, its handler would just silently never execute.
This may cause bugs due to a typo or refactoring that involves restructuring the app model. Especially if we want to watch something like `'$store.state.user.user.subscriptions'`.
Here's a JSFiddle to play with: https://jsfiddle.net/WofWca/50feyxn7
### What does the proposed API look like?
Just throw an error (or warn?) in such case. Like it would happen if we used `this.$watch(() => this.$store.state.user.user.subscriptions, () => { .... });`
<!-- generated by vue-issues. DO NOT REMOVE --> | feature request,warnings | low | Critical |
566,214,125 | godot | RigidBody2D tunnels CollisionShape2D and bounces back with even greater momentum | **Godot version:**
3.2
**OS/device including version:**
Windows 10
**Issue description:**
When a `RigidBody2D` with very small mass (e.g. 0.1) is connected with a `PinJoint2D` to another `RigidBody2D` with a larger mass like (e.g. 100), the heavier body pushes the smaller mass through the `CollisionShape2D` of another object that it is collides with and bounces back with even greater momentum. This effect diminishes as you keep increasing the mass of the lighter body.
`RigidBody2D` should not pass through `CollisionShape2D` of another object and should not bounce back with a greater momentum than before collision.

**Minimal reproduction project:**
[CollisionBug.zip](https://github.com/godotengine/godot/files/4213102/CollisionBug.zip)
| bug,topic:physics | low | Critical |
566,217,735 | create-react-app | Print QRCode for local network IP address | I usually like to test my mobile site versions on real devices. A printed QRCode of the local network IP address would make connecting more convenient by just scanning a QRCode instead of having to type out the IP address.
I think something like a CLI flag à la `react-scripts start --print-qrcode` could work nicely.
Libraries that could be used:
- [qrterminal](https://github.com/mdp/qrterminal)
- [qrcode-terminal](https://github.com/gtanner/qrcode-terminal)
Looking for feedback! | issue: proposal,needs triage | low | Minor |
566,265,495 | react | Bug: [eslint-plugin-react-hooks] exhaustive-deps false positive on "unnecessary" dependency if its a React component | ## Steps to reproduce
1. create a memoized value using `useMemo`
2. a React component is used in the creation of this value, in a JSX expression
3. specify the React component in the dependency array
Link to code example: https://github.com/zeorin/eslint-plugin-react-hooks-repro
## The current behavior
```
React Hook useMemo has an unnecessary dependency: 'Component'. Either exclude it or remove the dependency array react-hooks/exhaustive-deps
```
## The expected behavior
No lint errors.
## More details
A simple repro (taken from the link above) is:
```javascript.jsx
function Foo({ component: Component }) {
const memoized = useMemo(() => ({
render: () => <Component />
}), [Component]);
return memoized.render();
}
```
## Workarounds
If one changes the component to lowercase, the lint error goes away. It does also mean that we need to change the way we render the component:
```javascript.jsx
function Foo({ component }) {
const memoized = useMemo(() => ({
render: component
}), [component]);
return memoized.render();
}
```
Alternatively we can decide not to use JSX, in which case the lint rule functions correctly, too:
```javascript.jsx
function Foo({ component: Component }) {
const memoized = useMemo(() => ({
render: () => React.createElement(Component)
}), [Component]);
return memoized.render();
}
```
## Impact
Currently it is hard to use props that are components in a JSX expression if one is using the `exhaustive-deps` rule.
This is also compounded by the fact that this rule has a ESLint fix that removes the dependency, thus changing the behaviour of the code and leading to bugs. See https://github.com/facebook/react/issues/16313 for that bug report. | Type: Bug,Component: ESLint Rules | low | Critical |
566,288,527 | opencv | Unify fisheye and omnidir API | ##### System information (version)
- OpenCV => 4.2.0-dev
- Operating System / Platform => any
- Compiler => any
##### Detailed description
It would be great to have a matching API for fisheye and omnidirectional cameras. There are a couple of features missing from each to complete the set:
fisheye | omnidir
------------|------------
calibrate | calibrate
distortPoints | n/a
estimateNewCameraMatrixForUndistortRectify | n/a
initUndistortRectifyMap | initUndistortRectifyMap (arg name inconsistent - mltype vs m1type)
projectPoints | projectPoints (missing overload w/ affine mtx)
stereoCalibrate | stereoCalibrate
n/a | stereoReconstruct
stereoRectify | stereoRectify
undistortImage | undistortImage
undistortPoints | undistortPoints
| category: calib3d,RFC | low | Minor |
566,315,079 | godot | Removing and adding lots of sprites is very slow if done in the same tick | **Godot version:** 3.2 stable
**OS/device including version:** Arch Linux, kernel 5.5.2
**Issue description:**
When deleting and adding a lot of sprites at once Godot's performance heavily depends upon whether deletion and addition are done in the same tick or not.
In detail: I added around 3000 sprites as children to the same (empty) parent by a script which is reasonable fast. When I then sometime later remove all those nodes again (by calling `queue_free()` on them and removing them from the parent) and immediately add another 3000 new ones to the same parent, Godot takes significantly more time than when just creating and adding new sprites. I'd like to note that the hiccup occurs between frames (i.e. Godot's calls to `_process()`) and not during my calls to `queue_free()` or `add_child()` or anywhere in my script code.
I was then able to find a kind of workaround that is a lot faster. Instead of deleting and adding all the sprites in the same tick, I first delete all sprites in one `_process()` call and delay creation of new ones until the next `_process()` call
The slow down factor depends - according to my experiments - on the number of nodes removed/added. When deleting and adding 10000 sprites it takes about 1 second when splitting work into to ticks while it takes about 10 seconds when doing all the work in one tick, while the factor is less than 2 when using just 500 nodes.
It is also important to node that the difference is measurable but rather low when removing and adding bare `Node2D`s instead of sprites. I got a difference of 200 ms of about 12 % when trying 40000 nodes.
The observations I made where basically the same when running the project in the editor or a Linux or HTML5 export.
**Steps to reproduce:**
Download the example project I created and run it. You should see debug/console output in the likes of
Preparing ...
Removing nodes
Creating nodes
Action took 885 ms
Removing and recreating nodes
Action took 10642 ms
Done
You can then close the window. To run the experiment with different number of sprites change `num_sprites` of the root node in scene `Main.tscn` or in the script `Main.gd`.
**Minimal reproduction project:**
Here I'm using `OS.get_ticks_msec()` to measure time. The first number printed is the time measured over two ticks*, first deleting previously created nodes, second adding the same amount again. The second number printed is measured over one tick* where deletion and addition are done immediately after another.
*The starting time stamp is stored in the first tick where the work load starts. The ending time stamp is retrieved in the tick immediately following the tick where the work load ends. This allows the time between calls to `_process()` to be included in the measurement.
[BugQueueFreeDelay.zip](https://github.com/godotengine/godot/files/4214074/BugQueueFreeDelay.zip)
| bug,topic:core,confirmed,performance | low | Critical |
566,448,766 | opencv | FLANN feature matching in opencv.js | Hi! FlannBasedMatcher is present in C++ version, is there some way to use it in OpenCV.js? Maybe I need to change some of the build parameters to get this function in the wasm version of OpenCV? | category: javascript (js) | low | Major |
566,484,911 | go | dl: return the same exit status of the wrapped command | Currently, the `Run` function in the `internal/version` and `gotip` packages returns the exit status `1` if the wrapped command fails:
```
if err := cmd.Run(); err != nil {
// TODO: return the same exit status maybe.
os.Exit(1)
}
os.Exit(0)
```
I'm developing a package that wraps various `go` commands, and I'm adding support for testing different versions of the `go` tool. Unfortunately one test that checks for the exit status 2 now fails.
I'm using this patched version locally:
```
diff --git a/gotip/main.go b/gotip/main.go
index 6338234..0a8f0db 100644
--- a/gotip/main.go
+++ b/gotip/main.go
@@ -57,9 +57,8 @@ func main() {
}
cmd.Env = dedupEnv(caseInsensitiveEnv, append(os.Environ(), "GOROOT="+root, "PATH="+newPath))
if err := cmd.Run(); err != nil {
- if _, ok := err.(*exec.ExitError); ok {
- // TODO: return the same exit status maybe.
- os.Exit(1)
+ if err, ok := err.(*exec.ExitError); ok {
+ os.Exit(err.ExitCode())
}
log.Fatalf("gotip: failed to execute %v: %v", gobin, err)
}
diff --git a/internal/version/version.go b/internal/version/version.go
index a63c649..349bd6e 100644
--- a/internal/version/version.go
+++ b/internal/version/version.go
@@ -61,7 +61,9 @@ func Run(version string) {
}
cmd.Env = dedupEnv(caseInsensitiveEnv, append(os.Environ(), "GOROOT="+root, "PATH="+newPath))
if err := cmd.Run(); err != nil {
- // TODO: return the same exit status maybe.
+ if err, ok := err.(*exec.ExitError); ok {
+ os.Exit(err.ExitCode())
+ }
os.Exit(1)
}
os.Exit(0)
``` | NeedsDecision | low | Critical |
566,489,166 | godot | Editor crashes if an autoloaded tool script frees an autoload | **Godot version:**
3.2.1 245ecb6684d089940273564fb7a314e5e11ea72e
**OS/device including version:**
Win10 64-bit
**Issue description:**
I isolated a small bit of code in an Autoload will frequently and randomly crash the editor.
```
tool
extends CanvasLayer
func _ready() -> void:
if(Engine.editor_hint):
if(get_tree().edited_scene_root != self):
queue_free()
return
print("Load normally.")
```
Trace
```
CrashHandlerException: Program crashed
Dumping the backtrace. Please include this when reporting the bug on https://github.com/godotengine/godot/issues
[0] RaiseException
[1] _CxxThrowException (d:\agent\_work\5\s\src\vctools\crt\vcruntime\src\eh\throw.cpp:75)
[2] __RTDynamicCast (d:\agent\_work\5\s\src\vctools\crt\vcruntime\src\eh\rtti.cpp:291)
[3] Object::cast_to<Script> (C:\Godot\Version 3.2\Source\core\object.h:610)
[4] Ref<Script>::Ref<Script> (C:\Godot\Version 3.2\Source\core\reference.h:264)
[5] EditorAutoloadSettings::update_autoload (C:\Godot\Version 3.2\Source\editor\editor_autoload_settings.cpp:426)
[6] ProjectSettingsEditor::popup_project_settings (C:\Godot\Version 3.2\Source\editor\project_settings_editor.cpp:811)
[7] EditorNode::_menu_option_confirm (C:\Godot\Version 3.2\Source\editor\editor_node.cpp:2467)
[8] EditorNode::_menu_option (C:\Godot\Version 3.2\Source\editor\editor_node.cpp:863)
[9] MethodBind1<EditorNode,int>::call (C:\Godot\Version 3.2\Source\core\method_bind.gen.inc:867)
[10] Object::call (C:\Godot\Version 3.2\Source\core\object.cpp:921)
[11] Object::emit_signal (C:\Godot\Version 3.2\Source\core\object.cpp:1217)
[12] Object::emit_signal (C:\Godot\Version 3.2\Source\core\object.cpp:1275)
[13] PopupMenu::activate_item (C:\Godot\Version 3.2\Source\scene\gui\popup_menu.cpp:1162)
[14] PopupMenu::_gui_input (C:\Godot\Version 3.2\Source\scene\gui\popup_menu.cpp:343)
[15] MethodBind1<PopupMenu,Ref<InputEvent> const &>::call (C:\Godot\Version 3.2\Source\core\method_bind.gen.inc:867)
[16] Object::call_multilevel (C:\Godot\Version 3.2\Source\core\object.cpp:763)
[17] Object::call_multilevel (C:\Godot\Version 3.2\Source\core\object.cpp:864)
[18] Viewport::_gui_call_input (C:\Godot\Version 3.2\Source\scene\main\viewport.cpp:1669)
[19] Viewport::_gui_input_event (C:\Godot\Version 3.2\Source\scene\main\viewport.cpp:2049)
[20] Viewport::input (C:\Godot\Version 3.2\Source\scene\main\viewport.cpp:2828)
[21] Viewport::_vp_input (C:\Godot\Version 3.2\Source\scene\main\viewport.cpp:1446)
[22] MethodBind1<Viewport,Ref<InputEvent> const &>::call (C:\Godot\Version 3.2\Source\core\method_bind.gen.inc:867)
[23] Object::call (C:\Godot\Version 3.2\Source\core\object.cpp:921)
[24] Object::call (C:\Godot\Version 3.2\Source\core\object.cpp:847)
[25] SceneTree::call_group_flags (C:\Godot\Version 3.2\Source\scene\main\scene_tree.cpp:275)
[26] SceneTree::input_event (C:\Godot\Version 3.2\Source\scene\main\scene_tree.cpp:431)
[27] InputDefault::_parse_input_event_impl (C:\Godot\Version 3.2\Source\main\input_default.cpp:442)
[28] InputDefault::parse_input_event (C:\Godot\Version 3.2\Source\main\input_default.cpp:260)
[29] InputDefault::flush_accumulated_events (C:\Godot\Version 3.2\Source\main\input_default.cpp:679)
[30] OS_Windows::process_events (C:\Godot\Version 3.2\Source\platform\windows\os_windows.cpp:2464)
[31] OS_Windows::run (C:\Godot\Version 3.2\Source\platform\windows\os_windows.cpp:3159)
[32] widechar_main (C:\Godot\Version 3.2\Source\platform\windows\godot_windows.cpp:162)
[33] _main (C:\Godot\Version 3.2\Source\platform\windows\godot_windows.cpp:184)
[34] main (C:\Godot\Version 3.2\Source\platform\windows\godot_windows.cpp:196)
[35] __scrt_common_main_seh (d:\agent\_work\5\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288)
[36] BaseThreadInitThunk
-- END OF BACKTRACE --
```
@vnen Wondering if you feel this is something that is a thing not to do, or is something that's supposed to be supported?
**Steps to reproduce:**
Use the project below. I'm unsure how exactly it is triggered, but open and close the project repeatedly, or move around and do things, save things, start and stop the app, etc. It occurs periodically.
Reproduced most often when I opened the Project Settings. Though it crashes sometimes when the project is opened.
**Minimal reproduction project:**
[Autoload Crash.zip](https://github.com/godotengine/godot/files/4215851/Autoload.Crash.zip)
| topic:core,documentation,crash | low | Critical |
566,521,739 | flutter | [web] DevTools get disconnected on hot reload when running app in debug mode in browser | <!-- Thank you for using Flutter!
If you are looking for support, please check out our documentation
or consider asking a question on Stack Overflow:
* https://flutter.dev/
* https://api.flutter.dev/
* https://stackoverflow.com/questions/tagged/flutter?sort=frequent
If you have found a bug or if our documentation doesn't have an answer
to what you're looking for, then fill our the template below. Please read
our guide to filing a bug first: https://flutter.dev/docs/resources/bug-reports
-->
## Steps to Reproduce
<!-- You must include full steps to reproduce so that we can reproduce the problem. -->
1. Run `flutter create bug`.
2. Choose Chome (web-javascript) in devices.
3. Launch lib/main.dart in debug mode.
4. Open Flutter Devtools.
5. Open main.dart.
6. Ctrl+s.
**Expected results:** DevTools stay up and running
**Actual results:** DevTools get disconnected as if I closed the app.
<details>
<summary>Logs</summary>
<!--
Run your application with `flutter run --verbose` and attach all the
log output below between the lines with the backticks. If there is an
exception, please see if the error message includes enough information
to explain how to solve the issue.
-->
```
flutter run --verbose -d chrome
[ +15 ms] executing: [/home/alm/.flutter-sdk/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +20 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[ ] fabeb2a16f1d008ab8230f450c49141d35669798
[ ] executing: [/home/alm/.flutter-sdk/] git describe --match v*.*.* --first-parent --long --tags
[ +3 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags
[ ] v1.14.6-0-gfabeb2a16
[ +4 ms] executing: [/home/alm/.flutter-sdk/] git rev-parse --abbrev-ref --symbolic @{u}
[ +3 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[ ] origin/beta
[ ] executing: [/home/alm/.flutter-sdk/] git ls-remote --get-url origin
[ +2 ms] Exit code 0 from: git ls-remote --get-url origin
[ ] https://github.com/flutter/flutter.git
[ +30 ms] executing: [/home/alm/.flutter-sdk/] git rev-parse --abbrev-ref HEAD
[ +4 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ ] beta
[ +21 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[ +1 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +28 ms] executing: /home/alm/.android/sdk/platform-tools/adb devices -l
[ +4 ms] Exit code 0 from: /home/alm/.android/sdk/platform-tools/adb devices -l
[ ] List of devices attached
[ +11 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[ +1 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +471 ms] Generating /home/alm/.web-files/bug/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java
[ +74 ms] Launching lib/main.dart on Chrome in debug mode...
[ ] Building application for the web...
[+6519 ms] Starting daemon...
[ +209 ms] Initializing inputs
[ +9 ms] Reading cached asset graph...
[ +137 ms] Reading cached asset graph completed, took 135ms
[ +282 ms] Checking for updates since last build...
[ +380 ms] Checking for updates since last build completed, took 380ms
[ +7 ms] Initializing inputs
[ +1 ms] Reading cached asset graph...
[ ] Reading cached asset graph completed, took 135ms
[ ] Checking for updates since last build...
[ ] Checking for updates since last build completed, took 380ms
[ +534 ms] About to build [web]...
[ +2 ms] Running build...
[ +121 ms] Running build completed, took 63ms
[ ] Caching finalized dependency graph...
[ +36 ms] Caching finalized dependency graph completed, took 105ms
[ +8 ms] Succeeded after 178ms with 0 outputs (0 actions)
[ +9 ms] Building application for the web... (completed in 8.3s)
[ ] Attempting to connect to browser instance..
[+2032 ms] Debug service listening on ws://127.0.0.1:36713/-5qo7bX7UEU=
[ +293 ms] Failed to load asset at path: packages/build_web_compilers/src/dev_compiler/dart_sdk.js.
Status code: 404
Headers:
{
"date": "Mon, 17 Feb 2020 21:12:51 GMT",
"content-length": "9",
"x-frame-options": "SAMEORIGIN",
"content-type": "text/plain; charset=utf-8",
"x-xss-protection": "1; mode=block",
"x-content-type-options": "nosniff",
"server": "dart:io with Shelf",
"via": "1.1 shelf_proxy"
}
Content:
Not Found}
[ +23 ms] Attempting to connect to browser instance.. (completed in 2.3s)
[ +1 ms] Warning: Flutter's support for web development is not stable yet and hasn't
[ ] been thoroughly tested in production environments.
[ ] For more information see https://flutter.dev/web
[ ] 🔥 To hot restart changes while running, press "r". To hot restart (and refresh the browser), press "R".
[ ] For a more detailed help message, press "h". To quit, press "q".
[ +6 ms] Debug service listening on ws://127.0.0.1:36713/-5qo7bX7UEU=
```
<!--
Run `flutter analyze` and attach any output of that command below.
If there are any analysis errors, try resolving them before filing this issue.
-->
```
flutter analyze
Analyzing bug...
No issues found! (ran in 1.5s)
```
<!-- Finally, paste the output of running `flutter doctor -v` here. -->
```
flutter doctor -v
[✓] Flutter (Channel beta, v1.14.6, on Linux, locale en_US.UTF-8)
• Flutter version 1.14.6 at /home/alm/.flutter-sdk
• Framework revision fabeb2a16f (3 weeks ago), 2020-01-28 07:56:51 -0800
• Engine revision c4229bfbba
• Dart version 2.8.0 (build 2.8.0-dev.5.0 fc3af737c7)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at /home/alm/.android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 29.0.2
• ANDROID_HOME = /home/alm/.android/sdk/
• Java binary at: /home/alm/.android-studio/jre/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
• All Android licenses accepted.
[✓] Chrome - develop for the web
• Chrome at google-chrome
[✓] Android Studio (version 3.5)
• Android Studio at /home/alm/.android-studio
• Flutter plugin version 42.1.1
• Dart plugin version 191.8593
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
[✓] VS Code (version 1.42.0)
• VS Code at /usr/share/code
• Flutter extension version 3.8.1
[✓] Connected device (2 available)
• Chrome • chrome • web-javascript • Google Chrome 79.0.3945.88
• Web Server • web-server • web-javascript • Flutter Tools
• No issues found!
```
</details>
| tool,platform-web,d: devtools,P2,team-web,triaged-web | low | Critical |
566,535,189 | TypeScript | Assignment to constant variables imported from ES6 modules allowed |
<!--
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.7.5
**Search Terms:**
- Assignment to constant variable in imported modules
**Code**
```ts
// originalFunction.js
let originalFunction = () => console.log('Original function executed! 🏁');
export {originalFunction};
// patchFunction.js
import {originalFunction} from "./originalFunction.js";
originalFunction = () => console.log('patched function 💥');
// run.js
import './patchFunction.js';
import {originalFunction} from './originalFunction.js';
originalFunction();
```
**Expected behavior:**
After `tsc` (with `"allowJs": true`, `"target": "es5"` or es6, `"module": "commonjs"`) and running `node run.js` in output folder you should get `Uncaught TypeError: Assignment to constant variable. at patchFunction.js:6`
Just like you'd get with _pure_ es6 in browser with this html (on same 3 original .js files):
```html
<html >
<head></head>
<body>
<script type="module" src="originalFunction.js"></script>
<script type="module" src="patchFunction.js"></script>
<script type="module" src="run.js"></script>
</body>
</html>
```
**Actual behavior:**
Output is `patched function 💥` because the code is transpiled in this manner:
```js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var originalFunction_js_1 = require("./originalFunction.js");
originalFunction_js_1.originalFunction = function () {
console.log('patched function 💥');
};
```
**Playground Link:**
Hard to get it on playground because it requires having separate files on filesystem and actually loading them by browser.
| Bug | low | Critical |
566,559,382 | godot | AnimationPlayer: and key symbol disappearing when Region is enabled | **Godot version:** 3.2. stable
**OS/device including version:** Win 64
**Issue description:**
Key symbol next to properties in the inspector are disappearing when Sprite Region is enabled. Effectively making it impossible to animate Sprite Regions.
Possibly related closed issue: https://github.com/godotengine/godot/issues/8306
**Steps to reproduce:**
1. Create new scene
2. Add Sprite and set texture.
3. Enable region. Draw a region or chose autosclice in the bottom TextureRegion panel.
4. Add AnimationPlayer and create a New Anim
5. Make sure you have the AnimationPlayer Node selected, so key symbol is visible next to properties
6. Click the Sprite node
7. Wonder where the keys went.

**Minimal reproduction project:**
[Region-Bug.zip](https:**//github.com/godotengine/godot/files/4175151/Region-Bug.zip)
Sidenote: Reimporting as "Region" seem to break everything: png still shows up in the File System, but disappears from the Viewport and Inspector, and cannot be loaded back into the Texture property anymore. Might have something to do with [this update](https://godotengine.org/article/atlas-support-returns-godot-3-2)? Made a separate issue here: https://github.com/godotengine/godot/issues/37071 | bug,topic:editor | low | Critical |
566,566,955 | TypeScript | Issue with union type | <!-- 🚨 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.
-->
**TypeScript Version:** 3.7.5
**Expected behavior:**
Type of parameter qm in method Service.getItems should be union type assignable `QueryModel<KeyToEntityMap<E>>`
**Actual behavior:**
```
Argument of type 'QueryModel<KeyToEntityMap<E>>' is not assignable to parameter of type 'QueryModel<{ x: string; }> & QueryModel<{ y: string; }>'.
Type 'QueryModel<KeyToEntityMap<E>>' is not assignable to type 'QueryModel<{ x: string; }>'.
Type '{ x: string; }' is not assignable to type 'KeyToEntityMap<E>'.
```
**Code**
```ts
type Key = "a" | "b";
type KeyToEntityMap<E extends Key> =
E extends "a" ? { x: string; } :
E extends "b" ? { y: string; } :
never;
class QueryModel<T>
{
filters: [keyof T, string][] = [];
}
class Service<E extends Key>
{
getItems(qm: QueryModel<KeyToEntityMap<E>>): KeyToEntityMap<E>[]
{
return [];
}
}
type IServiceFactory = { [E in Key]: Service<E> };
class ServicesFactory implements IServiceFactory
{
a: Service<"a"> = new Service<"a">();
b: Service<"b"> = new Service<"b">();
}
const sf: IServiceFactory = new ServicesFactory();
class Same<E extends Key>
{
fail(e: E)
{
let queryModel = new QueryModel<KeyToEntityMap<E>>();
//Here getItems parameter gets wrong intersection type QueryModel<{ x: string; }> & QueryModel<{ y: string; }>
let items: KeyToEntityMap<E> = sf[e].getItems(queryModel);
}
}
```
<details><summary><b>Output</b></summary>
```ts
"use strict";
class QueryModel {
constructor() {
this.filters = [];
}
}
class Service {
getItems(qm) {
return [];
}
}
class ServicesFactory {
constructor() {
this.a = new Service();
this.b = new Service();
}
}
const sf = new ServicesFactory();
class Same {
fail(e) {
let items = sf[e].getItems(new QueryModel());
}
}
```
</details>
<details><summary><b>Compiler Options</b></summary>
```json
{
"compilerOptions": {
"noImplicitAny": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"strictPropertyInitialization": true,
"strictBindCallApply": true,
"noImplicitThis": true,
"noImplicitReturns": true,
"useDefineForClassFields": false,
"alwaysStrict": true,
"allowUnreachableCode": false,
"allowUnusedLabels": false,
"downlevelIteration": false,
"noEmitHelpers": false,
"noLib": false,
"noStrictGenericChecks": false,
"noUnusedLocals": false,
"noUnusedParameters": false,
"esModuleInterop": true,
"preserveConstEnums": false,
"removeComments": false,
"skipLibCheck": false,
"checkJs": false,
"allowJs": false,
"declaration": true,
"experimentalDecorators": false,
"emitDecoratorMetadata": false,
"target": "ES2017",
"module": "ESNext"
}
}
```
</details>
**Playground Link:** [Provided](https://www.typescriptlang.org/play/?ssl=28&ssc=22&pln=28&pc=25#code/C4TwDgpgBA0hJQLxQEQEMVQD6oEYoG4AoUSWeAFQHsBRAO2AEtQBZNMAHhqggA9gIdACYBnciAB8SIlFlRufAcLHpMAfigBvKLwBcUEcABOjOgHMCUAL5RdMuQv6DRedVqgh9hk+cs27clB0EABuEEbERADGADZoImIAigCu4SAsVEIQMRwUEkSa9rIAZowxAkYi+gDaANbwVMVQFAA0BsamZgC61V1IUL3EVkTRcQlQAMrhIYxREFw8Tsri+YWBZhDAAJICALYiABQAjrv6KWkZWTlwINT0TKzsXBISAJT6N3cMzOlPNBK9IpaIGBIybZJGOgDLrEQLDYYkcDQLZTIwzOYAMTQUWAVCMCGQ2mq3FM4i6+lR6Pm-2sxFi8TElNmEBEWJxeIQjF2YBiEF2gmAYhR02ZbNx+IKQLQFJFcw4qikyGCAHdJrL5gqDq9YXJcDK0cz5fhFUEIKqmXKUMatUNolQ6IYDMV9MKDZjseKCabzerWR6OTaRvTxhM0PyFopnGIbqsgcU0GUDhB9DRXkC1oE5LzgFBmHyquIvg9fpwacgRMVqhAugA6DbbPaHFVQc74y7ZDifWjfR6ll5a7VQIHwohAA)
| Needs Investigation | low | Critical |
566,568,577 | flutter | Make ListView scrollable within PageView | Unless I'm missing something, I don't believe it's possible to achieve scrolling on both a `ListView` (or `SingleChildScrollView`) and a `PageView` when the `ListView` is within the `PageView` and they both scroll in the same direction.
Consider the following simple example app with a vertical scrolling `ListView` within a vertical `PageView`:
```dart
void main() => runApp(App());
class App extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(),
body: PageView(
scrollDirection: Axis.vertical,
children: <Widget>[
ListView.builder(
itemCount: 20,
itemBuilder: (BuildContext context, int index) => ListTile(title: Text('Item $index'))
),
Text('Page 2')
],
)
)
);
}
}
```
There is no way to get the `PageView` to scroll pages. I think expected behavior should be that when the `ListView` is scrolled to the bottom, the `PageView` should then handle the gesture. If I remember correctly, I believe it works like this with Android's `RecyclerView` and `ViewPager`.
I've played around with `ScrollPhysics`, `ScrollBehavior`, and `NotificationListener` such as listening for `OverscrollNotification` and then disabling scrolling for `ListView`, but I could not find a solution that worked well. | framework,f: scrolling,f: gestures,c: proposal,P3,team-framework,triaged-framework | high | Critical |
566,568,841 | storybook | Using react hooks + storybook hooks between stories and decorators break SB | **Describe the bug**
The error: **Storybook preview hooks can only be called inside decorators and story functions**
**To Reproduce**
Steps to reproduce the behavior:
1. Write a story with just a div.
2. Write two decorators.
3. Write the first decorator with **useParameter** and some react hooks.
4. Write the second decorator with just rendering the story as a react component.
5. See the error.
**Expected behavior**
To not have this issue.
**Code snippets**
```tsx
// Component.story.tsx
export default {
title: 'New story',
decorators: [hooksDecorator, justDecorator],
};
export function initial() {
return <div>Hiii</div>;
}
// decorators.tsx
export function hooksDecorator(Story) {
const someBool = useParameter<boolean>('bool');
const [state, setState] = useState(someBool);
useEffect(() => {
setTimeout(() => {
setState(someBool || true);
}, 100);
}, [someBool]);
return <Story />
}
export function justDecorator(Story) {
return <Story />
}
```
**System:**
```
OS: Linux 4.15 Ubuntu 18.04.4 LTS (Bionic Beaver)
CPU: (4) x64 Intel(R) Core(TM) i7-4510U CPU @ 2.00GHz
Binaries:
Node: 12.14.1 - ~/.nvm/versions/node/v12.14.1/bin/node
Yarn: 1.21.1 - /usr/bin/yarn
npm: 6.13.4 - ~/.nvm/versions/node/v12.14.1/bin/npm
Browsers:
Chrome: 80.0.3987.106
Firefox: 74.0b4
npmPackages:
@storybook/addon-actions: 5.3.13 => 5.3.13
@storybook/addon-docs: 5.3.13 => 5.3.13
@storybook/addon-knobs: 5.3.13 => 5.3.13
@storybook/preset-typescript: 1.1.0 => 1.1.0
@storybook/react: 5.3.13 => 5.3.13
```
**Extra information:**
You don't need to really use the parameter data nor the react hooks' data to get to this error state. Just because you're rendering the story as a component will produce this situation.
But something to note: if the decorators are reordered and the **hooksDecorator** is in the last place, the bug won't happen. Also, if **hooksDecorator** is first and the rest just render the story as a function, it won't happen either. | bug,api: addons | low | Critical |
566,572,815 | rust | Documentation unclear with Fn trait on extern "C" function pointers | The relevant docs are [here](https://doc.rust-lang.org/std/primitive.fn.html) and [here in the repo](https://github.com/rust-lang/rust/blob/master/src/libstd/primitive_docs.rs#L1133-L1135):
> In addition, function pointers of any signature, ABI, or safety are Copy, and all safe function pointers implement Fn, FnMut, and FnOnce. This works because these traits are specially known to the compiler.
The code:
```Rust
extern "C" fn abc(x: u32) {
println!("Hello, {}", x);
}
fn do_it<F: Fn(u32)>(f: F, n: u32) {
f(n)
}
fn main() {
do_it(abc, 5);
}
```
Does not compile even though `abc` can be called without `unsafe`, which the docs seem to suggest is sufficient for this to work.
[Rust playground demonstrating the issue](https://play.rust-lang.org/?version=stable&mode=debug&edition=2015&gist=8735414c1ecb5b4e58d9997912419b21)
I'd be happy to update the docs, but unfortunately I think I don't understand why this doesn't work well enough to do so. | C-enhancement,A-FFI,T-lang,A-docs | low | Critical |
566,590,105 | go | cmd/compile: combine int tests when comparing against a constant string | To compare against "abc", we currently emit code to test whether uint16(first two bytes)==uint16("ab") and then whether (third byte)=="c".
I suspect that it'd be more efficient to load the three bytes into the first three bytes of a uint32 (two loads combined with `|`) and then compare that to uint32("abc\0").
I'm not sure whether we could do this with comparison-combining rewrite rules (note that the loads have side-effects in general, but we're sure in this case they won't fault) or whether it'd be better to fix this in walk.go, where this optimization is generated.
Low priority.
| Performance,NeedsFix | low | Major |
566,591,187 | go | cmd/compile: optimize small runtime.memequal calls | In the SSA backend, we could optimize a call to runtime.memequal in which the length is small and one argument points to a readonly data symbol. We could replace it by reading the readonly data and checking the bytes of the other argument directly.
This is similar to the optimization in walk.go for comparing against a constant string, and could potentially supercede it. The optimization in walk.go doesn't always trigger. An example is using strings.HasPrefix to check for a constant prefix; the call gets inlined, but walk.go isn't able to do the optimization because its analysis isn't powerful enough.
Low priority.
| Performance,NeedsFix | low | Minor |
566,615,144 | node | Nodejs build system incorrectly prepending zlib include path to small-icu includes. | * **Version**: 12.14.1(bug appears to be in master as well)
* **Platform**: buildroot master
* **Subsystem**: small-icu
### What steps will reproduce the bug?
attempt to build nodejs with small-icu and a shared zlib on a system that also contains a system icu with both zlib and icu headers in the `/include` directory
See [here](http://autobuild.buildroot.net/results/497/497275b0e4eba8bfadab9d781f7dcea6adf12029/build-end.log) for buildroot build log failure.
### How often does it reproduce? Is there a required condition?
always when building with small-icu and shared zlib on a system with zlib and icu headers in the system include path
### What is the expected behavior?
nodejs will use icu headers from small-icu instead of system icu headers when small-icu is selected
### What do you see instead?
nodejs attempts to use system-icu headers due to zlib include directory being prepended to small-icu include directories
### Additional information
this bug is due to nodejs passing all include directories from config.gypi before the small-icu includes to the compiler which causes the compiler to try and use the incompatible system icu headers instead of the built in small-icu headers
| build,i18n-api | low | Critical |
566,689,021 | TypeScript | strictNullChecks allows inconsistent indexed type with spread syntax | <!-- 🚨 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.
-->
Reporting this as a bug since I couldn't find a suitable duplicate. If this behavior is by design, please consider adding an option to change it.
**TypeScript Version:** 3.7.5
<!-- Search terms you tried before logging this (so others can find this issue more easily) -->
**Search Terms:** indexed undefined spread spreading strictNullChecks
**Expected behavior:** `useObjects(...objectList)` should fail to compile
**Actual behavior:** `useObjects(...objectList)` compiles without error
**Code**
```ts
const objectList =
[
{ a: 1, b: 2 },
{ c: 3, d: 4 },
];
function useObjects
(
obj1?: { [key: string]: number | undefined; },
obj2?: { [key: string]: number; },
): void
{
// ...
}
useObjects(...objectList); // no error
useObjects(objectList[0], objectList[1]); // error 2345 on second argument
```
<details><summary><b>Compiler Options</b></summary>
```json
{
"compilerOptions": {
"noImplicitAny": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"strictPropertyInitialization": true,
"strictBindCallApply": true,
"noImplicitThis": true,
"noImplicitReturns": true,
"useDefineForClassFields": false,
"alwaysStrict": true,
"allowUnreachableCode": false,
"allowUnusedLabels": false,
"downlevelIteration": false,
"noEmitHelpers": false,
"noLib": false,
"noStrictGenericChecks": false,
"noUnusedLocals": false,
"noUnusedParameters": false,
"esModuleInterop": true,
"preserveConstEnums": false,
"removeComments": false,
"skipLibCheck": false,
"checkJs": false,
"allowJs": false,
"declaration": true,
"experimentalDecorators": false,
"emitDecoratorMetadata": false,
"target": "ES2017",
"module": "ESNext"
}
}
```
</details>
**Playground Link:** [Provided](https://www.typescriptlang.org/play/?ssl=1&ssc=1&pln=18&pc=1#code/MYewdgzgLgBCBGArApsKAZAltGBeAUANr4ykwDeMAhgFwwCMANDPHQEwwC+jJZlwdAMzMAJnQAsXHgF0A3PnwAzAK5g0mcDGURkAeSSooEfAApepBInoB+OpUIBrZAE860AE6YwAc2l0wygC28MjuMAA+WmAiyIpeyCKyUuZwSGy2FDCOLm5Qnj5+MAHBoUnc+ACUdABuIJgi+OQpAPTNMAB0nficCtp6BmgQJp3tloZY0BXyffoogyZjaBNQhAAM0syLGNgr9NJT+EA)
| Bug | low | Critical |
566,722,404 | pytorch | It seems nn.Sequential.add_module() could take duplicate names | Hi, guys,
I am reproducing DeepLabV3+ model these days,
and I find that nn.Sequential.add_module() could take duplicate names, as
```python
# some initialization code
depthwise.add_module("act", act)
pointwise.add_module("act", act)
```
Is that normal?
Any idea or suggestion will be appreciated!
| module: nn,triaged | low | Minor |
566,795,973 | vscode | Parameter hints should not use aria.alert | Instead they should use `activeDescendent` same as suggest widget.
Code pointer where parameterHints are currently using `aria alert` https://github.com/microsoft/vscode/blob/8451f8bd913914aac17b6b3273b6ed0db137a217/src/vs/editor/contrib/parameterHints/parameterHintsWidget.ts#L251
As @pawelurbanski points out:
Using activeDescendant for parameter hints.
* Currently, the hints are outputted by the alert function, which has 2 nasty attributes:
* If you do not modify the message with a counter, repeate messages are filtered out,
* If you modify the message you go crazy after hearing: string appeared 29 times,
* When there is more than 1 paremter all the items are read as a single string with no pauses,
* The alert is an offscreen DOM element that is not-focusable so you can’t scroll through the items.
* I just disable the hints all together and use Ctrl+Shift+Space every now and then…
fyi @alexdima | help wanted,debt,accessibility,editor-parameter-hints | low | Major |
566,807,504 | opencv | Add [minimal] type information to the images created using the Python wrapper of opencv |
##### System information (version)
<!-- Example
- OpenCV => 3.1
- Operating System / Platform => Windows 64 Bit
- Compiler => Visual Studio 2015
-->
- OpenCV => 4.1.2
- Operating System / Platform => Windows 10 / Python wrapper
- Compiler => not used, but have available VS2017/ VS2019
##### Detailed description
This issue is actually about the Python wrapper, and I couldnt find the pythons specific repo, so I'm here. the issue is non-existant on languages such as C/C++ and is only relevant in Python.
In Python wrapper, when you create an image, e.g. with imread, there is no way, you can distiguish it between other image types, such as the one, created using Matplotlibs `imread`. They all represent the resulting image, simply as a numpy ndarray.
We can distinguish between these two methods, by quering the `base` and `flags` attributes. However, when the objects are deepcopied this distinction goes away and there would be no way of knowing which object comes from opencv backend and which comes from other sources.
```python
In [48]: img_cv.flags
Out[48]:
C_CONTIGUOUS : True
F_CONTIGUOUS : False
OWNDATA : True
WRITEABLE : True
ALIGNED : True
WRITEBACKIFCOPY : False
UPDATEIFCOPY : False
In [49]: img_mtplotlib.flags
Out[49]:
C_CONTIGUOUS : True
F_CONTIGUOUS : False
OWNDATA : False
WRITEABLE : False
ALIGNED : True
WRITEBACKIFCOPY : False
UPDATEIFCOPY : False
In [50]: img_skimage.flags
Out[50]:
C_CONTIGUOUS : True
F_CONTIGUOUS : False
OWNDATA : False
WRITEABLE : True
ALIGNED : True
WRITEBACKIFCOPY : False
UPDATEIFCOPY : False
```
After deepcopy :
```python
cv2:
C_CONTIGUOUS : True
F_CONTIGUOUS : False
OWNDATA : True
WRITEABLE : True
ALIGNED : True
WRITEBACKIFCOPY : False
UPDATEIFCOPY : False
matplotlib after deepcopy:
C_CONTIGUOUS : True
F_CONTIGUOUS : False
OWNDATA : True
WRITEABLE : True
ALIGNED : True
WRITEBACKIFCOPY : False
UPDATEIFCOPY : False
skimage after deefpcopy:
C_CONTIGUOUS : True
F_CONTIGUOUS : False
OWNDATA : True
WRITEABLE : True
ALIGNED : True
WRITEBACKIFCOPY : False
UPDATEIFCOPY : False
```
This is specially the case, since opencv works with BGR instead of RGB and there is no way to know if channels are swapped without any metadata.
Exposing the resulting image as a well structured data-structure that can provide other meta-data concerning it would be very helpful on python like the way `skimage` does it, it has a meta attribute which can be used among others, to distinguish it between other types.
Solution :
--
One simple solution could be to implement the opencv image as a specific type that inherits from numpy.ndarray. sth like :
Minimal Solution :
```python
class OpenCVImage(np.ndarray):
pass
# instead of returning the ndarray wrap it using the OpenCVImage.
return np.array(img).view(OpenCVImage)
```
This will behave like before and this time it can be easily identified. you may also add other meta-data if needed.
### Steps to reproduce
- operating system Win10
- architecture x86
- opencv-python 4.1.2
```python
import cv2
from skimage import io
from PIL import Image
import matplotlib.pyplot as plt
import copy
img_path = 'test.jpg'
c = cv2.imread(img_path)
s = io.imread(img_path)
m = plt.imread(img_path)
print(f'opencv obj: {type(c)} {type(c).__name__}')
print(f'skimage obj: {type(s)} {type(s).__name__}')
print(f'matplotlibs obj: {type(m)} {type(m).__name__}')
print(f'CV2: \n{c.flags} ')
print(f'\nMatplotlib:\n{m.flags} ')
print(f'\nSkimage: \n{s.flags} ')
c_2 = copy.deepcopy(c)
s_2 = copy.deepcopy(s)
m_2 = copy.deepcopy(m)
print('\nAfter DeepCopy\n')
print(f'CV2: \n{c_2.flags} ')
print(f'\nMatplotlib: \n{m_2.flags} ')
print(f'\nSkimage: \n{s_2.flags} ')
```
| category: python bindings,RFC | low | Minor |
566,890,855 | TypeScript | Generic constraint generates a TS2344 | **TypeScript Version:** 3.7.x, 3.8.1, 3.9.x (next)
<!-- Search terms you tried before logging this (so others can find this issue more easily) -->
**Search Terms:** Generic constraint 2344
**Code**
```ts
type KeyOf<T> = keyof ((T extends any ? (k: T)=>void : never) extends ((k: infer I)=>void) ? I : never);
type Constraint<T> = KeyOf<T> extends never
? any
// : KeyOf<any> extends KeyOf<T>
// ? any
: (
'a' extends KeyOf<T>
? never
: any
);
type ForceConstraint<T> = T extends Constraint<T> ? T : never;
interface Interface<T extends Constraint<T>> {
b: string;
}
type Infer<CB> = CB extends () => infer TReturn
? ForceConstraint<TReturn>
: never;
type InferWithConstraint<CB> = ForceConstraint<Infer<CB>>;
type InferInterfaceFromCallback<CB> = Interface<InferWithConstraint<CB>>; // invalid => NOT OK
type InferInterfaceFromCallback1<CB> = Interface<Infer<CB>;> // invalid too => NOT OK
// just debug purpose
type A1 = Interface<unknown>;
type A2 = Interface<any>; // invalid => OK
type A3 = Interface<never>;
type A4 = Interface<undefined>;
type A5 = Interface<number>;
type A6 = Interface<string>;
type A7 = Interface<null>;
type A8 = Interface<object>;
type A9 = Interface<{}>;
type A_FAIL1 = Interface<{ a: 'b' }>; // invalid => OK
type A_FAIL2 = Interface<{ a: 'b' } | 1>; // invalid => OK
```
[Playground Link](http://www.typescriptlang.org/play/?ts=3.9.0-dev.20200215&ssl=38&ssc=54&pln=37&pc=1#)
**Expected behavior:**
```ts
type InferInterfaceFromCallback<CB> = Interface<InferWithConstraint<CB>>;
```
Should be valid
**Explanation:**
So, i was trying to apply a specific constraint on a generic type.
`Constraint<T>` 'returns' never if T contains a property called ```a```, else it returns any
`ForceConstraint<T>` tries to help typescript to know if T is valid, else it returns never
` Interface<T extends Constraint<T>>` forces its generic type to respect `Constraint`
`Infer<CB>` infers the return type of **CB** and ensures it follows `Constraint`
`InferWithConstraint<CB>` forces again `Infer<CB>` to be compliant with `Constraint` (even if it is already)
So `Interface<InferWithConstraint<CB>>` should be valid, sadly, typescript reports:
```
TS2344: Type 'ForceConstraint<Infer<CB>>' does not satisfy the constraint 'Constraint<ForceConstraint<Infer<CB>>>'.
```
**Potentially related issues:**
- https://github.com/microsoft/TypeScript/issues/31736
- https://github.com/microsoft/TypeScript/issues/34604
| Needs Investigation | low | Critical |
566,925,128 | godot | CTRL + Click for links in GDScript can fail to navigate. | **Godot version:**
3.2.1 245ecb6684d089940273564fb7a314e5e11ea72e
**OS/device including version:**
Win10 64-bit
**Issue description:**
It seems as of late there are occasions when the CTRL + Click links in code refuse to signal they've been clicked. Maybe it's click area is having issues?
@Calinou Wondering if you might know the PR history of these. Perhaps a regression? I don't recall having this in happen 3.1.
It is tricky to reproduce, but managed to capture a GIF of it. I'm repeatedly CTRL + Clicking this reference, and when I moved the mouse downward a little near the end of the GIF you can see it worked.

**Steps to reproduce:**
N/A
**Minimal reproduction project:**
N/A | bug,topic:editor,confirmed | low | Minor |
566,937,585 | terminal | MEGATHREAD: Commandline Args Follow-Up Work | ## Reference
* Original issue: #607
* [Original Spec](https://github.com/microsoft/terminal/blob/master/doc/specs/%23607%20-%20Commandline%20Arguments%20for%20the%20Windows%20Terminal.md) (Added in #3495)
* Initial Implementation PR: #4023
* [UsingCommandlineArguments.md](https://github.com/microsoft/terminal/blob/master/doc/user-docs/UsingCommandlineArguments.md)
## Untriaged Bugs/Features
* [x] #4619 wt does not handle newlines properly
## 1.0 Bugs
* [x] #4618 wt command-line cannot consistently parse more than one argument
* [ ] #4602 WT -? -help --help window should include a link to the command line arguments
* [ ] #4571 wt.exe /d doesn't work if the directory path ends in '\' and is quoted
## The Help Dialog
* [x] #4612 Help windows contain different help messages dependent of the way how help is triggered.
* [ ] The Help Dialog should have copy-pasteable text
* [ ] #4134
## Post 1.0 features
* [ ] #4620 Add support for `initialPosition` and others
- From the spec:
> When parsing a `new-tab` command, configure the `TerminalApp::AppLogic` to
set some initial state about itself, to handle the `new-tab` arguments
[`--initialPosition`, `--maximized`, `--initialRows`, `--initialCols`]. Only
set this state for the first `new-tab` parsed. These settings will overwrite
the corresponding global properties on launch.
* [x] #5464 Add support for `focus-pane`
* [x] Add support for a profile to launch multiple panes using `wt` commands
* [x] Add support for running a set of `wt` commands on startup
* [x] #5466 Add support for "short" command name aliases (like `sp` for `split-pane`)
* [x] Add support for running commands on an existing wt window (e.g. `wt -s 0 split-pane` opens a pane in the current window)
- Add support for wt.exe to run commands in an existing Terminal Window #4472
* [x] #6183 Add support for `-t,--title title` to set the startingTitle of a new terminal session (add to `terminal_parameters`)
* [x] #6298 `wt.exe` should support `-%,--percent` for setting a pane's size on the commandline
* [x] #6580 Maybe add support for `move-focus` subcommand
* [x] Add command-line option start terminal in focus mode (after/during #7825)
* [x] Set tab color in command line #8075
## 2.0 Bugs
* [x] Fails to launch maximized/fullscreen and the given profile #7318
* [x] The nextTab and prevTab actions do not work correctly when initiated via wt.exe or the command palette #10070
* [ ] #12191
## Backlog
* [ ] #5462 Add support for `open-settings`
* [ ] #5465 Add support for `--file,-f configuration_file` for reading a list of commands from a file
* [ ] Add command-line option start terminal minimized #7374
* [ ] Add support for `send-input` subcommand #9368
* [ ] Allow for ExecuteCommandline actions to be called straight from the commandline #9994
* [ ] Command line spec/override for closeOnExit #10019
* [ ] #4637 Other options for overriding profile starting directory
* [ ] #5528 Add support for appending a commandline to a profile's commandline
* [ ] WT probably needs a CLI exe to interact with the Terminal via the command line.
* [ ] #7258 `wt --help` should print text to terminal, instead of popping open a modal dialog
* [ ] #11616
* [ ] #5463 Add support for `list-profiles`
* [ ] #15496
* [ ] #16008
## Discussion
* [x] #4611 -H and -V parameters shouldn't be case-sensitive
* [x] #4570 `;` is an annoying separator character
* [x] #4601 long form arguments (e.g. `--profile`) have poor discoverability
* [x] Windows commandline args are usually `/fooBar` but ours are `--fooBar` and that's weird
* [x] #5801 Add support for launching fullscreen?
<details>
<summary>Other related discussion</summary>
* Pass commands to new wt instance. Is this already supported? #4598
* Add support for wt.exe to run commands in the current Terminal Window #4656
* wt support run command in application #4864
* Shouldn't help ( -h or --help) print to the console? #4887
</details> | Area-UserInterface,Product-Terminal,Issue-Scenario,Area-Commandline | medium | Critical |
567,025,620 | vscode | Warning in package.json when specifying icon without https repository | <!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->
<!-- Also please test using the latest insiders build to make sure your issue has not already been fixed: https://code.visualstudio.com/insiders/ -->
<!-- Use Help > Report Issue to prefill these. -->
- VSCode Version: 1.42.1
- OS Version: Windows 10 (Windows_NT x64 10.0.16299)
- vsce version: 1.73.0
This is basically the issue described in #30434, but the warning message does not seem to be "true" in my case. I am opening this issue because that one is closed.
I am building an extension for company internal use only. My source code repository is not available over https, but the icon works fine when I've package the extension as a VSIX.
Here's a screenshot of the warning:

I'll admit it disappointed me when I thought I could not have an icon in my extension. My 1.0.0 version did not have an icon because of the warning message. For 1.0.1, I decided to try it anyway, and it worked.
Maybe, it's true for extensions published on the marketplace? If so, it may be better to indicate such in the message. Maybe change the text to something like this: "An icon requires a repository with HTTPS protocol to be specified in this package.json, _when publishing to the marketplace_"?
Steps to Reproduce:
1. Add a relative `icon` reference to an extension `package.json`
2. Do not have a `repository` that is available over https. (Mine is a directory on a shared drive.)
3. See the path to the `icon` get orange squiggles under it with the hover text "An icon requires a repository with HTTPS protocol to be specified in this package.json."
<!-- Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: Yes
| bug,extensions-development | low | Major |
567,040,958 | terminal | Integrate VSCode's Markdown Linter into CI | PR #4615 used the VS Code Markdown Linter to clean up our markdown a bit. It'd be nice if we could make this a part of our CI and just add it to the `Invoke-CodeFormat` tool in `\tools\OpenConsole.psm1`.
>It looks like the PowerShell team is integrating at the project level, unsure about their CI integrations:
https://github.com/PowerShell/PowerShell/blob/master/.vscode/extensions.json#L10
https://github.com/PowerShell/PowerShell/blob/master/.vscode/settings.json#L10
_Originally posted by @rpunt in https://github.com/microsoft/terminal/pull/4615#issuecomment-587504180_ | Help Wanted,Area-Build,Product-Terminal,Issue-Task | low | Minor |
567,084,896 | go | cmd/go: gccgo crashes when building json-iterator | ### What version of Go are you using (`go version`)?
<pre>
$ go version
go version go1.12.2 gccgo (Ubuntu 9.2.1-9ubuntu2) 9.2.1 20191008 linux/amd64
$ powerpc64le-linux-gnu-gccgo-9 --version
powerpc64le-linux-gnu-gccgo-9 (Ubuntu 9.2.1-9ubuntu2) 9.2.1 20191008
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
</pre>
### Does this issue reproduce with the latest release?
I'm using gccgo-9, which I think is the latest.
### What operating system and processor architecture are you using (`go env`)?
<details><summary><code>go env</code> Output</summary><br><pre>
$ go env
GOARCH="ppc64le"
GOBIN=""
GOCACHE="/home/apollo/.gocache"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/apollo/Development/json-iterator"
GOPROXY=""
GORACE=""
GOROOT="/usr"
GOTMPDIR=""
GOTOOLDIR="/usr/lib/gcc/x86_64-linux-gnu/9"
GCCGO="/usr/bin/powerpc64le-linux-gnu-gccgo-9"
CC="powerpc64le-linux-gnu-gcc-9"
CXX="x86_64-linux-gnu-g++-9"
CGO_ENABLED="0"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build273883847=/tmp/go-build -gno-record-gcc-switches -funwind-tables"
</pre></details>
### What did you do?
```
export GOARCH=ppc64le
export CC=powerpc64le-linux-gnu-gcc-9
go get -v github.com/json-iterator/go
```
### What did you expect to see?
Successful installation of the module.
### What did you see instead?
gccgo crashes:
```
github.com/json-iterator/go
# github.com/json-iterator/go
go1: internal compiler error: in do_get_backend, at go/gofrontend/expressions.cc:4677
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-9/README.Bugs> for instructions.
```
| NeedsInvestigation | low | Critical |
567,117,644 | rust | Yield reference in coroutine with GAT | Since https://github.com/rust-lang/rust/pull/67160 has been merged in December, having a GAT with lifetimes should be possible (See the `StreamingIterator` example in that PR).
The current trait-defition of a coroutine is the following:
```rust
pub trait Coroutine<R = ()> {
type Yield;
type Return;
fn resume(
self: Pin<&mut Self>,
arg: R
) -> CoroutineState<Self::Yield, Self::Return>;
}
```
The issue here is that the `Yield` can't be parameterized with a lifetime, so yielding a reference from a coroutine is not possible in its current state.
By using a GAT for the `Yield` AT, it would be possible to return a local reference.
I also don't see why the resume argument type could not have been expressed with a GAT, so at the end we would use the following trait definition for a coroutine:
```rust
pub trait Coroutine {
type Resume<'a>;
type Yield<'a>;
type Return;
fn resume<'a, 'b>(
self: Pin<&'a mut Self>,
arg: Self::Resume<'b>
) -> CoroutineState<Self::Yield<'a>, Self::Return>;
}
```
| A-associated-items,T-lang,C-feature-request,A-coroutines,F-coroutines,GATs-triaged,A-GATs | low | Major |
567,151,764 | terminal | Other options for overriding profile starting directory | ## Description of the new feature/enhancement
The new command line arg for specifying starting directory is great but it's limited to individual panes and tabs created during launch. I'd like additional ways of specifying starting directories for panes/tabs, particularly those that get created after launch. Here's two additions I think would be useful:
### Window-wide starting directory command line argument
Starting a terminal with `wt --windowStartingDirectory "c:\my\project\dir"` would cause all tabs/panes opened during the life of that terminal window to start in `c:\my\project\dir`. This is useful for opening a terminal window directly in a deeply nested project directory and then quickly and easily opening/closing additional panes/tabs in that location. This should also apply to all panes/tabs created via initial command line args that don't have an individual `--startingDirectory` specified.
You can *more or less* achieve this right now by setting a profile's starting directory to `.` and starting `wt.exe` itself with the actual desired starting directory as working directory. However this requires a more complicated launch, eg. `cmd /C start /D "c:\my\project\dir" wt`. You also lose the ability to keep a useful default starting directory in the profile's settings for a simple launch of `wt.exe`.
### newTab and splitPane keybind options for reusing current directory
An additional option for the newTab/splitPane keybindings could open these with starting directory set to the current working directory of the current tab/pane. Useful if you open a terminal, eventually `cd` to some directory, and then want additional panes/tabs in that directory.
---
These would be additions to a prioritized list where the tab/pane being created uses the highest priority starting directory that was provided, eg:
1. reuse current directory via keybind
2. `--startingDirectory` command line argument
3. `--windowStartingDirectory` command line argument
4. profile starting directory
5. `wt.exe` working directory | Product-Terminal,Issue-Scenario,Area-Commandline | low | Major |
567,152,561 | rust | [lint: unsafe_in_unsafe_fn] A lint which triggers on unsafe operations in `unsafe fn` | As a follow up to fixing https://github.com/rust-lang/rust/issues/69173 via https://github.com/rust-lang/rust/pull/69245, we would like to see a lint, starting as `allow`-by-default which would trigger on the following situation:
```rust
#![warn(unsafe_in_unsafe_fn)]
unsafe fn foo() {} // Stand-in for any unsafe operation.
unsafe fn bar() {
foo();
//~^ WARN unsafe operation directly in `unsafe fn`
//~| HELP move the operation into an `unsafe { ... }` block.
}
```
Eventually, over time, we would like to consider moving this lint to be `warn`-by-default, but we would like to give the ecosystem time to adapt before doing so. We have not discussed what the timescale of "eventually" entails.
Context (this has already been tentatively accepted by the language team in meetings, though not FCP):
- https://github.com/rust-lang/rfcs/pull/2585#issuecomment-586325462
- https://github.com/rust-lang/rfcs/pull/2585#issuecomment-586513265
cc @rust-lang/lang @RalfJung
<!-- TRIAGEBOT_START -->
<!-- TRIAGEBOT_ASSIGN_START -->
This issue has been assigned to @LeSeulArtichaut via [this comment](https://github.com/rust-lang/rust/issues/69270#issuecomment-588254029).
<!-- TRIAGEBOT_ASSIGN_DATA_START$${"user":"LeSeulArtichaut"}$$TRIAGEBOT_ASSIGN_DATA_END -->
<!-- TRIAGEBOT_ASSIGN_END -->
<!-- TRIAGEBOT_END --> | C-enhancement,A-lints,T-compiler | low | Minor |
567,177,189 | pytorch | torch._C.Node.scopeName() missing in pytorch 1.4 | ## 🐛 Bug
scopeName() appears as a method in pytorch 1.4 torch._C.Node but it seems to lo longer be written to.
It is minor but doesn't seem to be listed as an intended change, so I surmise is a bug.
In the meantime, If there's a workaround to get the scopename pls let me know.
Thank you
## To Reproduce
1.run
```python
# setup model: run before either of both scripts
import torch
from torchvision import models
from torch.onnx import utils
image = torch.randn([2,3,224,224])
net = models.resnet18()
```
2. in pytorch 1.4 access any given valid node ( in resnet this should be a conv node)
```python
trace_module = torch.jit.trace(net, image)
node = list(trace_module.graph.nodes())[9] # grab a conv node
print(node.scopeName())
# '' # > returns empty string, method exists but it is no longer useful
```
3. for validation access same node in pytorch 1.4 using private method
```python
graph, out = torch.jit._get_trace_graph(net, image)
graph = utils._optimize_graph(graph,
operator_export_type=torch._C._onnx.OperatorExportTypes.ONNX)
node=list(graph.nodes())[11]
print(node.scopeName())
#'' # > returns nothing
```
## Expected behavior
4. compare to pytorch 1.3
torch._C.Node.scopeName() returns a readable address that refers to the python model syntax
```python
# pytorch 1.3,
trace, out = torch.jit.get_trace_graph(net, image)
graph = utils._optimize_graph(trace.graph(), operator_export_type=torch._C._onnx.OperatorExportTypes.ONNX)
node=list(graph.nodes())[11]
print(node.scopeName())
#'ResNet/Sequential[layer1]/BasicBlock[1]/Conv2d[conv1]' # > returns scopename
```
## Environment
PyTorch version: 1.4.0
Is debug build: No
CUDA used to build PyTorch: 10.0
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.8
Is CUDA available: Yes
CUDA runtime version: Could not collect
GPU models and configuration: GPU 0: GeForce GTX 1070
Nvidia driver version: 440.26
cuDNN version: /usr/lib/x86_64-linux-gnu/libcudnn.so.7.6.4
Versions of relevant libraries:
[pip] numpy==1.18.1
[pip] torch==1.4.0
[pip] torchvision==0.5.0
[conda] mkl 2019.5 281 conda-forge
[conda] pytorch 1.4.0 py3.8_cuda10.0.130_cudnn7.6.3_0 pytorch
[conda] torchvision 0.5.0 py38_cu100 pytorch
cc @suo | oncall: jit,triaged | low | Critical |
567,178,077 | flutter | Make it possible for showSearch to show the search screen only within the Scaffold where it is called | ## Use case
I am developing an adaptive application that is working on both smartphones and tablets. On tablets, the interface is a split screen with a list of elements on the left, and the details about the selected element on the right. And I am using showSearch() to search elements on the left, or more precisely to filter them. Here is what the interface looks like on an iPad:

And when I tap the search icon in the left AppBar, it displays the search interface over the entire screen:

But the problem is that I want users to be able to select elements in the suggestions on the left and see their details on the right without closing the search.
## Proposal
Add a fullscreen boolean flag to the SearchDelegate class with a default value to true, but when it's false, the search interface is scoped to the context of the nearest Scaffold, not the entire screen.
| c: new feature,framework,f: material design,c: proposal,P2,team-design,triaged-design | low | Minor |
567,185,852 | TypeScript | Automate DefinitelyTyped and ATA infrastructure during nightly publishes | We have a set of tasks we perform on every release to ensure DefinitelyTyped and Automatic Type Acquisition is in a good state for the upcoming release.
https://github.com/Microsoft/TypeScript/wiki/Release-Activities#types-publisher-and-definitelytyped-header-parser
As we discussed offline, we'd like to make sure some of these are done automatically regardless of when a release is coming. | Infrastructure | low | Minor |
567,199,586 | flutter | Make backtrace printing routines signal safe. | engine,P2,team-engine,triaged-engine | low | Minor |
|
567,206,454 | godot | [Bullet] Inaccurate behaviour of 3D KinematicBody move_and_slide_with_snap on vertical moving platform. | **Godot version:**
V3.2.stable.official
**OS/device including version:**
Pop!_OS 19.10
**Issue description:**
When a 3D KinematicBody is being moved by a move_and_slide_with_snap function and sits on top of a vertical moving platform the behaviour is inaccurate: when moving upwards the mesh enters the moving platform and when moving downwards the mesh floats slightly above it.
**Steps to reproduce:**
3D Space:
Create a KinematicBody for the player, add as a child a MeshRenderer (CubeMesh) and a CollisionShape (BoxShape); set all margins to 0.001. Write a move_and_slide_with_snap script and attach to it.
For the moving platform, create another kinematic body with a MeshRenderer (CubeMesh) and a CollisionShape (BoxShape); again, set all margins to 0.001. As a child add an AnimationPlayer, create a new animation and animate it's translation property up and down (Y axis) with the desired speed, duration and distances. Set the ProcessMode to Physics.
Also add a Camera and adjust it so you can see the scene.
Player script:
```
extends KinematicBody
export var move_speed = 750
export var gravity = 3000
export var jump_force = 1300
export var max_fall_speed = 3000
var y_velo = 0
var snap_normal = Vector3.DOWN
func movement(delta):
var move_vec = Vector3()
if Input.is_action_pressed("move_left"):
move_vec.x -= 1
if Input.is_action_pressed("move_right"):
move_vec.x += 1
move_vec *= move_speed
move_vec.y = y_velo
move_and_slide_with_snap(move_vec * delta, snap_normal, Vector3.UP)
var grounded = is_on_floor()
y_velo -= gravity * delta
if grounded:
if Input.is_action_pressed("jump"):
set_snap_normal(Vector3(0,0,0))
y_velo = jump_force
if y_velo <= 0:
set_snap_normal(Vector3.DOWN)
func set_snap_normal(new_snap_normal):
snap_normal = new_snap_normal
func _physics_process(delta):
movement(delta)
```
**Minimal reproduction project:**
[moving_platform.zip](https://github.com/godotengine/godot/files/4222009/moving_platform.zip)
| bug,confirmed,topic:physics,topic:3d | medium | Major |
567,232,066 | flutter | Assert if a transparent container absorbs hits | This would be a behavior change, but I think I would find it confusing to have a transparent container absorbe hits. Today, `Container(color: Colors.transparent)` absorbs hits.
I'm marking this as stretch goals since it's not clear at this point if anyone is actually suffering because of this - if we find out it's causing confusion it shouldn't be too hard to fix though. | framework,f: gestures,P3,team-framework,triaged-framework | low | Major |
567,268,426 | pytorch | Make ArrayRef::size() return int64_t rather than size_t | Would have prevented #33001 (PR at #33456) | module: internals,triaged | low | Minor |
567,269,259 | pytorch | Add 32-bit CI (e.g., Raspberry PI CI) | c.f. #33456
cc @ezyang | module: ci,triaged | low | Minor |
567,326,296 | pytorch | Distributed Data Parallel for computation graphs that make RPCs in forward() | ## 🚀 Feature
<!-- A clear and concise description of the feature proposal -->
The current [DDP implementation](https://pytorch.org/tutorials/intermediate/ddp_tutorial.html) require a computation graph is on a single node (maybe multiple devices). DDP won't work if a computation graph makes RPCs in its `forward()` method. This feature is to make DDP work for such computation graphs by leveraging the existing [Distributed Autograd/Optimizer](https://pytorch.org/docs/stable/notes/distributed_autograd.html).
Note that the parameter servers can't use DDP in this use case.
## 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 -->
To support the following model
```
class SimpleNet(nn.Module):
def __init__(self, d_in, d_out):
super(SimpleNet, self).__init__()
self.net = nn.Linear(d_in, d_out)
self.relu = nn.ReLU()
def forward(self, input):
return self.relu(self.net(input))
class HybridModel(nn.Module):
def __init__(self, remote_parameter_server):
super(HybridModel, self).__init__()
self.net1 = SimpleNet(5, 8)
self.rps = remote_parameter_server
self.net2 = SimpleNet(5, 3)
def forward(self, x):
x = self.net1(x)
x = RPC(self.rps, another_remote_net, x)
return self.net2(x)
ddp_hybrid_model = DistributedDataParallel(HybridModel(remote_server))
```
## Pitch
<!-- A clear and concise description of what you want to happen. -->
TDB
## Alternatives
<!-- A clear and concise description of any alternative solutions or features you've considered, if any. -->
TDB
## Additional context
<!-- Add any other context or screenshots about the feature request here. -->
CC: @pritamdamania87 @mrshenli @zhaojuanmao
cc @pietern @mrshenli @pritamdamania87 @zhaojuanmao @satgera @rohan-varma @gqchen @aazzolini @xush6528 @osalpekar @jjlilley | oncall: distributed,triaged,module: rpc | low | Minor |
567,343,274 | flutter | `flutter logs -d all` doesn't work even though we suggest it | ```
ianh@burmese:~/dev/cruisemonkey$ flutter logs
More than one device connected; please specify a device with the '-d
<deviceId>' flag, or use '-d all' to act on all devices.
Pixel 3 XL • 8AJY0LZ2N • android-arm64 • Android 10 (API 29)
Lenovo TB 8504F • HGAFGRP2 • android-arm64 • Android 7.1.1 (API 25)
ianh@burmese:~/dev/cruisemonkey$ flutter logs -d all
More than one device connected; please specify a device with the '-d
<deviceId>' flag.
Pixel 3 XL • 8AJY0LZ2N • android-arm64 • Android 10 (API 29)
Lenovo TB 8504F • HGAFGRP2 • android-arm64 • Android 7.1.1 (API 25)
```
Given that we support tailing the logs of all devices with `flutter run -d all`, seems logical that we should be able to do that with `flutter logs` too. | c: new feature,tool,a: quality,P2,team-tool,triaged-tool | low | Minor |
567,382,765 | go | gollvm: find a better way to deal with g | Currently, gollvm stores the current g in tls. The runtime.getg () function returns the current g. This function will be inlined for better performance and the inlining will be disabled by GoSafeGetg pass in some situations. Cherry described this situation in this pass:
```
within a function,
//
// load g
// call mcall(...)
// load g
//
// may be compiled to
//
// leaq g@TLS, %rdi
// call __tls_get_addr
// movq %rax, %rbx // cache in a callee-save register %rbx
// ... use g in %rax ...
// call foo
// ... use g in %rbx ...
// This is incorrect if a thread switch happens at the call of foo.
```
A practical example of this situation: [gofrontend/chan.go#154](https://github.com/golang/gofrontend/blob/d5d00d310ec33aeb18f33f807956ec0c4eeea6bb/libgo/go/runtime/chan.go#L154.)
By removing the inlining of the second and subsequent getg functions in a block, GoSafeGetg pass fixed this issue on linux/amd64. But on Linux / arm64, llvm performs cache optimization on the tls base address across the entire function range, so the g obtained by the second and subsequent getg in the above situation may still be wrong.
As I know, this kind of optimization is common in llvm and gcc, and it seems to be correct and very good for c / c ++. Before c / c ++ introduced a concept like goroutine, I think this optimization will not be changed. Please refer to similar issues: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=26461, https://bugs.llvm.org/show_bug.cgi?id=19177.
Currently gollvm only supports linux / amd64 and linux / arm64, but as more platforms are supported in the future, I think this issue will be a problem on more platforms, so I think we need to find a better way to store the current g.
At present, the methods I can think of are as follows:
1. Keep the current practice, store g in tls, try to remove the cache of tls base address.
2. Follow the practice of main go, reserve a register to store g.
3. Store g in a suitable location on the stack.
@thanm @cherrymui @ianlancetaylor Any suggestions ? | NeedsInvestigation | low | Critical |
567,396,168 | rust | [Docs] box doesn't contain documentation regarding ZSTs | I've recently learned that `Box::new` on a ZST returns the ZSTs alignment. I assumed that the return value didn't really matter since it's a ZST.
This should be added to Box's documentation (`Box::from_raw` should also be aligned then, right?) | C-enhancement,T-libs-api,A-docs | low | Major |
567,452,713 | flutter | [video_player] iOS: Player doesn't open a video with whitespaces in the path | <!-- Thank you for using Flutter!
If you are looking for support, please check out our documentation
or consider asking a question on Stack Overflow:
* https://flutter.dev/
* https://api.flutter.dev/
* https://stackoverflow.com/questions/tagged/flutter?sort=frequent
If you have found a bug or if our documentation doesn't have an answer to what you're looking for, then fill out the template below. Please read
our guide to filing a bug first: https://flutter.dev/docs/resources/bug-reports
-->
## Steps to Reproduce
<!-- You must include full steps to reproduce so that we can reproduce the problem. -->
1. Create VideoPlayerController.file using the path with whitespaces
2. Play video
**Expected results:** Video played
**Actual results:** Video isn't played, because of player not created
I think the problem is at the moment of creating the link in **player = [[FLTVideoPlayer alloc] initWithURL:[NSURL URLWithString:uriArg]**, **NSURL URLWithString:uriArg** will be returned nil and the player isn't created. | platform-ios,p: video_player,package,has reproducible steps,P2,found in release: 2.2,found in release: 2.3,team-ios,triaged-ios | low | Critical |
567,470,209 | TypeScript | jsdoc "object." fails where "Object." works. | `Object.<string,number>` works
`object.<string,number>` fails
jsdoc eslint likes lower case `object`, see here: https://github.com/gajus/eslint-plugin-jsdoc/blob/master/.README/rules/check-types.md
| Suggestion,Awaiting More Feedback | low | Minor |
567,519,018 | pytorch | jit.trace checker fails for LSTM | ## 🐛 Bug
It is not possible to trace an LSTM without `check_trace=False` - i.e the checker is unusable.
May be related to #23993?
## To Reproduce
A minimal example is as follows:
```python
input_size = 2
hidden_size = 3
num_layers = 2
batch = 1
seq_len = 2
lstm = torch.nn.LSTM(input_size, hidden_size, num_layers)
# args
zeros = torch.zeros(num_layers * 1, batch, hidden_size)
a, b = torch.randn(seq_len, batch, input_size), (zeros, zeros)
torch.jit.trace(lstm, (a, b))
```
throws
```shell
---------------------------------------------------------------------------
TracingCheckError Traceback (most recent call last)
<ipython-input-13-74cf3bd6b360> in <module>
10 zeros = torch.zeros(num_layers * 1, batch, hidden_size)
11 a, b = torch.randn(seq_len, batch, input_size), (zeros, zeros)
---> 12 torch.jit.trace(lstm, (a, b))
~/miniconda3/envs/ml_ci/lib/python3.7/site-packages/torch/jit/__init__.py in trace(func, example_inputs, optimize, check_trace, check_inputs, check_tolerance, _force_outplace, _module_class, _compilation_unit)
880 return trace_module(func, {'forward': example_inputs}, None,
881 check_trace, wrap_check_inputs(check_inputs),
--> 882 check_tolerance, _force_outplace, _module_class)
883
884 if (hasattr(func, '__self__') and isinstance(func.__self__, torch.nn.Module) and
~/miniconda3/envs/ml_ci/lib/python3.7/site-packages/torch/jit/__init__.py in trace_module(mod, inputs, optimize, check_trace, check_inputs, check_tolerance, _force_outplace, _module_class, _compilation_unit)
1042 else:
1043 _check_trace([inputs], func, check_trace_method,
-> 1044 check_tolerance, _force_outplace, True, _module_class)
1045 finally:
1046 torch.jit._trace_module_map = old_module_map
~/miniconda3/envs/ml_ci/lib/python3.7/site-packages/torch/autograd/grad_mode.py in decorate_no_grad(*args, **kwargs)
47 def decorate_no_grad(*args, **kwargs):
48 with self:
---> 49 return func(*args, **kwargs)
50 return decorate_no_grad
51
~/miniconda3/envs/ml_ci/lib/python3.7/site-packages/torch/jit/__init__.py in _check_trace(check_inputs, func, traced_func, check_tolerance, force_outplace, is_trace_module, _module_class)
683 diag_info = graph_diagnostic_info()
684 if any(info is not None for info in diag_info):
--> 685 raise TracingCheckError(*diag_info)
686
687
TracingCheckError: Tracing failed sanity checks!
ERROR: Graphs differed across invocations!
Graph diff:
graph(%self : __torch__.torch.nn.modules.module.Module,
%input : Tensor,
%2 : (Tensor, Tensor)):
%3 : Tensor = prim::GetAttr[name="bias_hh_l1"](%self)
%4 : Tensor = prim::GetAttr[name="bias_ih_l1"](%self)
%5 : Tensor = prim::GetAttr[name="weight_hh_l1"](%self)
%6 : Tensor = prim::GetAttr[name="weight_ih_l1"](%self)
%7 : Tensor = prim::GetAttr[name="bias_hh_l0"](%self)
%8 : Tensor = prim::GetAttr[name="bias_ih_l0"](%self)
%9 : Tensor = prim::GetAttr[name="weight_hh_l0"](%self)
%10 : Tensor = prim::GetAttr[name="weight_ih_l0"](%self)
- %hx : Tensor, %12 : Tensor = prim::TupleUnpack(%2)
? ^^
+ %hx.1 : Tensor, %hx : Tensor = prim::TupleUnpack(%2)
? ++ ^^
- %13 : Tensor[] = prim::ListConstruct(%hx, %hx)
+ %13 : Tensor[] = prim::ListConstruct(%hx.1, %hx)
? ++
%14 : Tensor[] = prim::ListConstruct(%10, %9, %8, %7, %6, %5, %4, %3)
%15 : bool = prim::Constant[value=1]() # /home/julian/miniconda3/envs/ml_ci/lib/python3.7/site-packages/torch/nn/modules/rnn.py:559:0
%16 : int = prim::Constant[value=2]() # /home/julian/miniconda3/envs/ml_ci/lib/python3.7/site-packages/torch/nn/modules/rnn.py:559:0
%17 : float = prim::Constant[value=0]() # /home/julian/miniconda3/envs/ml_ci/lib/python3.7/site-packages/torch/nn/modules/rnn.py:559:0
%18 : bool = prim::Constant[value=1]() # /home/julian/miniconda3/envs/ml_ci/lib/python3.7/site-packages/torch/nn/modules/rnn.py:559:0
%19 : bool = prim::Constant[value=0]() # /home/julian/miniconda3/envs/ml_ci/lib/python3.7/site-packages/torch/nn/modules/rnn.py:559:0
%20 : bool = prim::Constant[value=0]() # /home/julian/miniconda3/envs/ml_ci/lib/python3.7/site-packages/torch/nn/modules/rnn.py:559:0
%21 : Tensor, %22 : Tensor, %23 : Tensor = aten::lstm(%input, %13, %14, %15, %16, %17, %18, %19, %20) # /home/julian/miniconda3/envs/ml_ci/lib/python3.7/site-packages/torch/nn/modules/rnn.py:559:0
%24 : (Tensor, Tensor) = prim::TupleConstruct(%22, %23)
%25 : (Tensor, (Tensor, Tensor)) = prim::TupleConstruct(%21, %24)
return (%25)
First diverging operator:
Node diff:
- %hx : Tensor, %12 : Tensor = prim::TupleUnpack(%2)
? ^^
+ %hx.1 : Tensor, %hx : Tensor = prim::TupleUnpack(%2)
? ++ ^^
```
By the looks of it the compiler renames `hx`.
<!-- If you have a code sample, error messages, stack traces, please provide it here as well -->
## Expected behaviour
This to pass fine
<!-- A clear and concise description of what you expected to happen. -->
## Environment
Collecting environment information...
PyTorch version: 1.4.0
Is debug build: No
CUDA used to build PyTorch: 10.0
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.7
Is CUDA available: Yes
CUDA runtime version: Could not collect
GPU models and configuration: GPU 0: GeForce GTX 1050 Ti with Max-Q Design
Nvidia driver version: 430.64
cuDNN version: Could not collect
Versions of relevant libraries:
[pip3] numpy==1.13.3
[pip3] torch-stft==0.1.4
[conda] _pytorch_select 0.1 cpu_0 anaconda
[conda] blas 1.0 mkl
[conda] mkl 2019.4 243 anaconda
[conda] mkl-service 2.3.0 py37he904b0f_0 anaconda
[conda] mkl_fft 1.0.12 py37ha843d7b_0 anaconda
[conda] mkl_random 1.0.2 py37hd81dba3_0 anaconda
[conda] pytorch 1.4.0 py3.7_cuda10.0.130_cudnn7.6.3_0 pytorch
[conda] torchaudio 0.4.0 pypi_0 pypi
[conda] torchvision 0.2.1 py37_0
## Additional context
<!-- Add any other context about the problem here. -->
cc @suo | oncall: jit | low | Critical |
567,617,500 | rust | tidy should not traverse untracked directories | <!--
Thank you for filing a bug report! 🐛 Please provide a short summary of the bug,
along with any information you feel relevant to replicating the bug.
-->
I ran (effectively):
```
% git pull origin master
...
% git status
On branch moz-master
Your branch is ahead of 'pnk-gh/moz-master' by 5558 commits.
(use "git push" to publish your local commits)
Untracked files:
(use "git add <file>..." to include in what will be committed)
../src/ignore_me/
nothing added to commit but untracked files present (use "git add" to track)
% cat ../src/ignore_me/should_be_ignored.rs
use tidy;
use not_so_smart;
// THIS IS AN ABSURDLY LONG LINE OVER HERE THIS IS AN ABSURDLY LONG LINE OVER HERE THIS IS AN ABSURDLY LONG LINE OVER HERE
% ../x.py test src/tools/tidy
Updating only changed submodules
Submodules updated in 0.08 seconds
Finished dev [unoptimized] target(s) in 0.16s
Diff in /Users/felixklock/Dev/Mozilla/rust.git/src/ignore_me/should_be_ignored.rs at line 1:
-use tidy;
use not_so_smart;
+use tidy;
// THIS IS AN ABSURDLY LONG LINE OVER HERE THIS IS AN ABSURDLY LONG LINE OVER HERE THIS IS AN ABSURDLY LONG LINE OVER HERE
Running `"/Users/felixklock/Dev/Mozilla/rust.git/objdir-dbgopt/build/x86_64-apple-darwin/stage0/bin/rustfmt" "--config-path" "/Users/felixklock/Dev/Mozilla/rust.git" "--edition" "2018" "--unstable-features" "--skip-children" "--check" "/Users/felixklock/Dev/Mozilla/rust.git/src/ignore_me/should_be_ignored.rs"` failed.
If you're running `tidy`, try again with `--bless` flag. Or, you just want to format code, run `./x.py fmt` instead.
failed to run: /Users/felixklock/Dev/Mozilla/rust.git/objdir-dbgopt/build/bootstrap/debug/bootstrap test src/tools/tidy
Build completed unsuccessfully in 0:00:03
%
```
There are often extraneous files and directories in my source tree. And often they are not even files/directories that I had created (see (*) below).
The problem is that tidy does a blanket traversal of the tree under `src/`, as far as I can tell, and thus will happily flag "problems" in files that are no longer effectively part of the source code.
(My most recent instance of this was tidy flagging a problem in a `.rs` file under `src/stdsimd/`.)
Eventually, after several rounds of trying to understand why non-tidy code got checked into the github repo, I'll eventually remember to look at `git status` and take note of the directories listed under untracked files. And then, usually, delete them.
But this should not be necessary. `tidy` should be smart enough to run `git status` itself and use that to drive its traversal.
----
(*) part of the above process is the build system will automatically update submodules. But old directories from old (outdated) submodule checkouts still stick around.
<!-- TRIAGEBOT_START -->
<!-- TRIAGEBOT_ASSIGN_START -->
<!-- TRIAGEBOT_ASSIGN_DATA_START$${"user":"Milo123459"}$$TRIAGEBOT_ASSIGN_DATA_END -->
<!-- TRIAGEBOT_ASSIGN_END -->
<!-- TRIAGEBOT_END --> | T-bootstrap,C-discussion | medium | Critical |
567,640,651 | godot | Error while building Project with Godot Mono | **Godot version:**
Godot Engine v3.2.stable.mono.oficial
**OS/device including version:**
Windows 10
**Issue description:**
Some times (even a newly created) Project fails to build and results in error MSB3248: Parameter "SearchPaths" has invalid value "[PathToMyProject].
Even if i change nothing, just repeatedly pressing the build button it suddenly works again and after a few more builds i get this error again. This Error also occurs sometimes on an older Project i made with Godot 3.1.
Install Versions: Godot 3.2 (Mono), Mono 6.10, .Net Framework 4.7, .Net Core 3.1.
**Steps to reproduce:**
Try to build a Godot Mono Project.
**Minimal reproduction project:**
Create a new Mono Project and try to build it.
EDIT:
Sometimes in my *..csproj file, the tags Private and HintPath in the Reference tag of GodotSharp and GodotSharpEditor swap:
From:
<Reference Include="GodotSharp">
<Private>False</Private>
<HintPath>$(ProjectDir)/.mono/assemblies/$(ApiConfiguration)/GodotSharp.dll</HintPath>
</Reference>
to.
<Reference Include="GodotSharp">
<HintPath>$(ProjectDir)/.mono/assemblies/$(ApiConfiguration)/GodotSharp.dll</HintPath>
<Private>False</Private>
</Reference>
And the same (at the same time) in the GodotSharpEditor reference tag.
I don't know if this is related or not. | bug,platform:windows,confirmed,topic:dotnet | low | Critical |
567,643,712 | TypeScript | Should be possible to spread `Parameters` onto its function | **TypeScript Version:** 3.7.5
**Search Terms:**
function parameters spread
**Expected behavior:**
Expected the playground example to compile without errors
**Actual behavior:**
The code works great, but Typescript throws the following error:
> Type 'Parameters<F>' must have a '[Symbol.iterator]()' method that returns an iterator. (2488)
**Code**
```ts
export function call<F extends (...args: any) => any>(
fn: F,
...parameters: Parameters<F>
): ReturnType<F> {
return fn(...parameters);
}
```
**Playground Link:** [Provided](https://www.typescriptlang.org/play/?ssl=1&ssc=1&pln=2&pc=22#code/KYDwDg9gTgLgBAMwK4DsDGMCWEVzQQwBtCAeAMTlBmBQBMBnOACgDo38oBzegLjnxQBPAJRwAvAD5+QiUwBQcRCj5kANArhsWYDvgC2walF5wACroNH65CXOF8ASoaRQUAFUFhgNuAG8NUM6uSqxsOlD6hsDGwgDccgC+QA)
| Bug | low | Critical |
567,652,158 | godot | Mouse bug on double click on Window header | **Godot version:**
3.2 (stable)
**OS/device including version:**
Windows OS only (tested on WIn10)
**Issue description:**
Double click on Godot WIndow header make mouse "stuck" (mouse click always activated).
Only after double click 2 more times mouse return to its normal state.
**Steps to reproduce:**
In WIn10 launch Goodt 3.2 game and double click Window header.
**Minimal reproduction project:**
I do not have time, and WIndows 10 today to make test-project.
I saw this bug when launch my own demo on Win10. this bug happened only in Win10, so its not my mouse-logic problem.
I use very default 3D-Camera logic(this can be copy-pasted to 3d Camera node) [Camera.gd src](https://github.com/danilw/godot-utils-and-other/blob/master/portals_panorama/scripts/Camera.gd) (remove line 102 103)
[link to build(exe)](https://danilw.github.io/godot-utils-and-other/portal_panorama/portal_panorama_win.zip) launch it and double click header | bug,platform:windows,topic:core,confirmed | low | Critical |
567,692,151 | godot | Scale stops snapping after rotating a node (2d) | **Godot version:**
3.2
**OS/device including version:**
GalliumOS (unknown version)
**Issue description:**
After a sprite is rotated in the 2d view, scaling it with the corner handles does not snap to grid.
**Steps to reproduce:**
Create a sprite in a 2d view, rotate it 180 degrees, and scale it using the handles that appear with the select tool.
**Minimal reproduction project:**
[bug.zip](https://github.com/godotengine/godot/files/4226182/bug.zip)
| bug,topic:editor,confirmed | low | Critical |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.