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 |
---|---|---|---|---|---|---|
626,156,604 |
pytorch
|
[TensorPipe] Errors in pipeWrite should clear out the future in pendingResponseMessage
|
## 🐛 Bug/Enhancement
In this code block: https://github.com/pytorch/pytorch/blob/e07ee1954d5d8f47617173fe7aee8db49e64c4c9/torch/csrc/distributed/rpc/tensorpipe_agent.cpp#L378-L381 it doesn't appear that the future stored in `clientPipe.pendingResponseMessage_` is cleared out when there is an early return, although the future is removed in the `pipeRead` lambda (`clientPipe.pendingResponseMessage_.erase(it);`). If the former path means that processing for that future response is over, it could also be cleared out of the map in this way.
I'm not sure if this is actually causing any known bugs anywhere, but it could perhaps be contributing to tensorpipe test flakiness.
cc @pietern @mrshenli @pritamdamania87 @zhaojuanmao @satgera @gqchen @aazzolini @rohan-varma @xush6528 @jjlilley @osalpekar @jiayisuse @lw @beauby
|
triaged,module: rpc,module: tensorpipe
|
low
|
Critical
|
626,211,204 |
pytorch
|
Problems implementing complex support for acosh, asinh, tanh
|
## 🐛 Bug
There is an unexpected behavior (on Windows and MacOS) while trying to implement complex support for `acosh, asinh, atanh` Unary Ops. (Please see: https://github.com/pytorch/pytorch/pull/38388)
For Windows VS2019, CUDA 10.1:
```
Input Tensor: tensor([(0.0000+0.0000j), (1.2300+infj), (-0.0600+nanj), (inf+2.9800j),
(inf+infj), (inf+nanj), (nan+0.0000j), (nan-0.0600j),
(nan+infj), (nan+nanj)])
asinh output: tensor([(0.0000+0.0000j), (inf+1.5708j), (nan+nanj), (inf+0.0000j),
(inf+0.7854j), (nan+nanj), (nan+nanj), (nan+nanj),
(nan+nanj), (nan+nanj)])
```
For Windows VS2019 CPU:
```
Input Tensor: tensor([(0.0000+0.0000j), (1.2300+infj), (-0.0600+nanj), (inf+2.9800j),
(inf+infj), (inf+nanj), (nan+0.0000j), (nan-0.0600j),
(nan+infj), (nan+nanj)])
asinh output: tensor([(0.0000+0.0000j), (inf+1.5708j), (nan+nanj), (inf+0.0000j),
(inf+0.7854j), (nan+nanj), (nan+nanj), (nan+nanj),
(nan+nanj), (nan+nanj)])
```
While on MacOS, the call `torch.asinh()` throws a `RuntimeError`:
```
May 27 11:55:42 test_asinh_domain_complex_cpu_complex64 (__main__.TestTorchDeviceTypeCPU) ... Sample: tensor([(0.0000+0.0000j), (1.2300+infj), (-0.0600+nanj), (inf+2.9800j),
May 27 11:55:42 (inf+infj), (inf+nanj), (nan+0.0000j), (nan-0.0600j),
May 27 11:55:42 (nan+infj), (nan+nanj)])
May 27 11:55:42 Traceback (most recent call last):
May 27 11:55:42 File "test/run_test.py", line 689, in <module>
May 27 11:55:42 main()
May 27 11:55:42 File "test/run_test.py", line 682, in main
May 27 11:55:42 raise RuntimeError(message)
May 27 11:55:42 RuntimeError: test_torch failed! Received signal: SIGILL
```
These logs are from the test cases that were written to test domains for these trigonometric functions. Please see the removed tests here which were used: https://github.com/pytorch/pytorch/pull/38388/commits/ccfe7c14423a5bede6c976aea520ac10833a67e7.
## To Reproduce
Steps to reproduce the behavior:
1. Use the following git commands:
```
git remote add test https://github.com/krshrimali/pytorch.git
git fetch test
git checkout test/complex-support-acosh-like
```
2. Build PyTorch using the branch `test/complex-support-acosh-like`.
3. Run tests: `python test/test_torch.py`. Please note that the tests fail on VS2019 (CPU and CUDA-10.1) and throw `RuntimeError` on MacOS.
**Note:** the stack traces/logs have been provided in the bug description.
## Expected behavior
Here is how Linux systems return output for `asinh` on the input tensors mentioned in the bug description.
```
tensor([(0.0000+0.0000j), (inf+1.5708j), (nan+nanj), (inf+0.0000j),
(inf+0.7854j), (inf+nanj), (nan+0.0000j), (nan+nanj),
(inf+nanj), (nan+nanj)])
```
Here is a concise table on how the behavior diverges:
```
Input | Windows (CPU & CUDA) | Linux (CPU & CUDA) and NumPy (Linux & Windows)
(inf, nan) | (nan, nan) | (inf, nan)
(nan, 0.) | (nan, nan) | (nan, 0.)
(nan, inf) | (nan, nan) | (inf, nan)
```
**Note:** Windows diverges similarly on CPU and CUDA-10.1.
## Additional context
If you are keen on how the results are compared, please see: https://github.com/pytorch/pytorch/pull/38388#issuecomment-630158866.
cc: @mruberry, @anjali411
cc @ezyang @anjali411 @dylanbespalko
|
triaged,module: complex
|
low
|
Critical
|
626,241,374 |
godot
|
Models with blend shape are not rendered correctly on Android
|
<!-- Please search existing issues for potential duplicates before filing yours:
https://github.com/godotengine/godot/issues?q=is%3Aissue
-->
**Godot version:** Godot Engine v3.2.1.stable
<!-- Specify commit hash if using non-official build. -->
**OS/device including version:** OnePlus G1910 GPU:Adreno(TM) 640 GLES3
<!-- Specify GPU model, drivers, and the backend (GLES2, GLES3, Vulkan) if graphics-related. -->
**Issue description:**
I created a test scene
1. head model with about 50+ blend shapes

2. cube model with 2 simple blend shapes

On my PC(OpenGL ES 3.0 Renderer: Intel(R) UHD Graphics 620)
It looks like this
<img width="326" alt="PC" src="https://user-images.githubusercontent.com/9582710/83096845-4be70480-a0d9-11ea-94fb-2a3fdcd78177.png">
But on my android phone ,it looks like this
<img width="691" alt="Android" src="https://user-images.githubusercontent.com/9582710/83096949-818bed80-a0d9-11ea-9059-ff4608be1bf4.png">
I can't capture any useful logs on my phone
And this is my phone info in OpenGl ES CapsViewer
http://opengles.gpuinfo.org/displayreport.php?id=4388
<!-- What happened, and what was expected. -->
**Steps to reproduce:**
1. open project
2. export android apk
3. run
I tested on 3 different phones, and each phone had rendering issues.
**Minimal reproduction project:**
I compressed with 7z and changed the suffix to zip
[3D_Android_model.zip](https://github.com/godotengine/godot/files/4693542/3D_Android_model.zip)
<!-- A small Godot project which reproduces the issue. Drag and drop a zip archive to upload it. -->
|
bug,platform:android,topic:rendering,confirmed,topic:3d
|
low
|
Major
|
626,245,039 |
pytorch
|
`torch.backends` undocumented
|
## 📚 Documentation
As title, `torch.backends` is undocumented
Related issue: https://github.com/pytorch/pytorch/issues/12468
FYI, here is the search suggestions for `torch.b`. Seems that many people are searching for `torch.backends.cudnn.{benchmark, deterministic, enabled}`

|
module: docs,triaged
|
low
|
Minor
|
626,310,147 |
pytorch
|
Crossentropy inconsistent results depending on tensor order
|
## 🐛 Bug
While implementing contrastive loss, I discovered that depending on the order of the elements in the input tensor, torch.nn.functional.cross_entropy may return different results. With large batch size, as used for contrastive loss, this difference may reach more than 1e-2.
## To Reproduce
Short example to see the behavior where both tensor contains the same elements but in different order (except element 0 which is the "True" element):
```
print(torch.nn.functional.cross_entropy(torch.Tensor([[-0.02199082262814044952392578125, 0.050022132694721221923828125, 0.00222884747199714183807373046875, -0.122285909950733184814453125, -0.055452823638916015625]]), torch.LongTensor([0])))
print(torch.nn.functional.cross_entropy(torch.Tensor([[-0.02199082262814044952392578125, -0.122285909950733184814453125, 0.050022132694721221923828125, -0.055452823638916015625, 0.00222884747199714183807373046875]]), torch.LongTensor([0])))
```
Result:
```
tensor(1.603590130805969238281250)
tensor(1.603590250015258789062500)
```
Here the difference is small (1e-7) but with larger batch size and larger size of the tensor, it may reach more than 1e-2 .
## Expected behavior
The value should not depend on the order of the element in the tensor (except for the "True" element) or at least should not reach so large values.
## Environment
- PyTorch Version (e.g., 1.0): 1.5.0
- OS (e.g., Linux): Ubuntu 18.04.4 LTS
- How you installed PyTorch (`conda`, `pip`, source): conda
- Python version: 3.8.2
- CUDA/cuDNN version: Run on CPU
- GPU models and configuration: Run on CPU
- Any other relevant information:
## Additional context
cc @albanD @mruberry
|
module: nn,triaged,module: determinism
|
low
|
Critical
|
626,348,896 |
neovim
|
lsp: synchronous omnifunc
|
I want to start discussion around LSP omnifunc. Last few days i'm trying to use it directly without any autocompletion frameworks (like CoC or deoplete), and I ran into an issue with omnifunc being (kinda) async. As far as I know, omnifunc should be always a sync call.
For example, I tried to create a simple fallback to default `<C-n>` completion if omnifunc doesn't return anything, but I cannot rely on the complete done event since it's triggered multiple times.
I also tried to use "mucomplete" to see if it manages to make it work with it's chain completion, but it just skips the omnifunc and continues down the chain, probably because initial trigger of omnifunc didn't return anything.
I think we should either make it sync, or expose another omnifunc function that will be sync, since my guess is that some people are ok with having it async.
I'd gladly do this myself, but my lua skills are really bad, especially around the async stuff.
|
enhancement,lsp,completion
|
medium
|
Major
|
626,412,470 |
angular
|
Make it possible to reason about content to project (content projection and content queries unification)
|
There are multiple use-cases where one would like to reason about content provided to a component (check if content was provided at all, count the number of items etc.).
To make the discussion more concrete let's consider the following markup ([full runnable scenario](https://stackblitz.com/edit/angular-ivy-sumkgl?file=src%2Fapp%2Fapp.component.ts)):
```html
<my-container>
<my-item></my-item>
<my-item></my-item>
<my-item></my-item>
</my-container>
```
Given this markup the `<my-container>` component might want to answer the following questions:
* was content provided at all (existing, popular issue.: #26083)
* how many items were provided (as of today this could be done through content queries only).
On top of this the `<my-container>` implementation might want to do the following (all the provided examples boil down to the ability of projecting items individually):
* wrap each item into some markup;
* project only 2 first items;
* project every second item (or items in 2 separate columns);
* etc. etc.
Achieving any of the use-cases listed above is very difficult in the current Angular and it steams from the fact that one can't reason (count, pick-up, check presence etc.) about individual items to project.
While content queries can be used, to some degree, to reason about content items individually, the content queries approach has its problems as well:
* we end up with 2 mechanism operating on content (content queries and content projection) - those 2 mechanism have different APIs, different capabilities, need to be learnt separately etc.;
* there is a fundamental mismatch between 2 mechanism: content projection operates on "blocks" that can't be reason about (but capture content), while content queries are good with individual items but don't capture content (we can't insert result of a content query into the DOM).
This fundamental mismatch between content projection and content queries leads to many surprising situations and use-cases that can't be implemented really. Again, here is a "typical" example: https://stackblitz.com/edit/angular-ivy-sumkgl?file=src%2Fapp%2Fapp.component.ts
In short: content projection and content queries are good mechanisms while used separately, but as soon as we try to use both mechanisms together we start to bump into serious problems.
The idea behind opening this issue is to capture use-cases that are difficult to implement and expose problems where both content queries and content projection are used together. This should open ways to designing a more powerful content projection where it is possible to reason about and project content with one API. To set expectations: there are no immediate implementation plans, we want to capture use-cases and experiment with different APIs first.
|
feature,area: core,core: queries,core: content projection,type: use-case,needs: discussion
|
high
|
Critical
|
626,414,099 |
flutter
|
MissingPluginException thrown when setting up the add-to-app platform channel
|
pubspec.yaml
```
version: 1.0.0+1
environment:
sdk: ">=2.1.0 <3.0.0"
dependencies:
flutter_easyrefresh: ^2.1.1
flutter_swiper : ^1.1.4
flutter:
sdk: flutter
```
flutter channel --> master
**1.When I initialize the MethodChannel in the FragmentActivity configureFlutterEngine**
```
class MyFlutterActivity : FlutterActivity() {
private val CHANNEL_NETWORK = "native_network"
private val CHANNEL_LOG = "native_log"
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
}
override fun configureFlutterEngine(@NonNull flutterEngine: FlutterEngine) {
MethodChannel(
flutterEngine.dartExecutor.binaryMessenger,
CHANNEL_NETWORK
).setMethodCallHandler {
// Note: this method is invoked on the main thread.
call, result ->
//call.method是获取调用的方法名字
//call.arguments 是获取参数
if (call.method == "test") {
val batteryLevel: String = "hello kotlin"
if (batteryLevel != null) {
result.success(batteryLevel) // 相当于是调用方法的return
} else {
result.error("UNAVAILABLE", "Battery level not available.", null) // 告诉调用者失败了
}
} else {
result.notImplemented() // 告诉调用者没有此方法,避免一直等到阻塞在这
}
}
MethodChannel(
flutterEngine.dartExecutor.binaryMessenger,
CHANNEL_LOG
).setMethodCallHandler(MethodCallHandler { call, result ->
var tag: String = call.argument("tag") ?: "flutter"
var message: String = call.argument("msg") ?: ""
when (call.method) {
"logV" -> Log.v(tag, message)
"logD" -> Log.d(tag, message)
"logI" -> Log.i(tag, message)
"logW" -> Log.w(tag, message)
"logE" -> Log.e(tag, message)
}
result.success("success");
})
}
}
```
**2.I use the Cache Engine in my app**
```
class App:Application() {
lateinit var flutterEngine : FlutterEngine
/**
* 这里有坑,如果dark中有调用native的代码,此处应该会去初始化dark代码,从而报错
* 即你在原生注册的方法MethodChannel不会生效,
*/
override fun onCreate() {
super.onCreate()
flutterEngine = FlutterEngine(this)
flutterEngine.dartExecutor.executeDartEntrypoint(
DartExecutor.DartEntrypoint.createDefault()
)
FlutterEngineCache
.getInstance()
.put("my_engine_id", flutterEngine)
}
}
```
**3.And then I start flutter somewhere in my app**
```
var intent = Intent(context, MyFlutterActivity::class.java)
intent.putExtra("cached_engine_id", "my_engine_id")
intent.putExtra("background_mode", FlutterActivityLaunchConfigs.BackgroundMode.transparent.name)
startActivity(intent)
```
**4.The code in the dark is normal, I won't list it**
**5.Then I get the following error**
```
E/flutter: [ERROR:flutter/lib/ui/ui_dart_state.cc(166)] Unhandled Exception: MissingPluginException(No implementation found for method logD on channel native_log)
#0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:157:7)
<asynchronous suspension>
#1 MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:332:12)
#2 LogUtils.d (package:fluttermodule/util/LogUtils.dart:11:13)
#3 MinePageState.initState (package:fluttermodule/module/home/MinePage.dart:43:14)
#4 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4649:58)
#5 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4485:5)
#6 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3455:14)
#7 Element.updateChild (package:flutter/src/widgets/framework.dart:3223:18)
#8 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4536:16)
#9 Element.rebuild (package:flutter/src/widgets/framework.dart:4227:5)
#10 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4490:5)
```
**6.When I initialize the MethodChannel in my App, this problem doesn't arise**
```
class App:Application() {
lateinit var flutterEngine : FlutterEngine
private val CHANNEL_NETWORK = "native_network"
private val CHANNEL_LOG = "native_log"
/**
* 这里有坑,如果用缓存engine,则应在此处初始化MethodChannel,
* 而不是FlutterActivity中的configureFlutterEngine方法
*/
override fun onCreate() {
super.onCreate()
flutterEngine = FlutterEngine(this)
flutterEngine.dartExecutor.executeDartEntrypoint(
DartExecutor.DartEntrypoint.createDefault()
)
FlutterEngineCache
.getInstance()
.put("my_engine_id", flutterEngine)
initMethodChannel()
}
private fun initMethodChannel() {
MethodChannel(
flutterEngine.dartExecutor.binaryMessenger,
CHANNEL_NETWORK
).setMethodCallHandler {
call, result ->
if (call.method == "test") {
val batteryLevel: String = "hello kotlin"
if (batteryLevel != null) {
result.success(batteryLevel) // 相当于是调用方法的return
} else {
result.error("UNAVAILABLE", "Battery level not available.", null) // 告诉调用者失败了
}
} else {
result.notImplemented() // 告诉调用者没有此方法,避免一直等到阻塞在这
}
}
MethodChannel(
flutterEngine.dartExecutor.binaryMessenger,
CHANNEL_LOG
).setMethodCallHandler(MethodChannel.MethodCallHandler { call, result ->
var tag: String = call.argument("tag") ?: "flutter"
var message: String = call.argument("msg") ?: ""
when (call.method) {
"logV" -> Log.v(tag, message)
"logD" -> Log.d(tag, message)
"logI" -> Log.i(tag, message)
"logW" -> Log.w(tag, message)
"logE" -> Log.e(tag, message)
}
result.success("success");
})
}
}
```
|
platform-android,engine,d: api docs,a: existing-apps,P2,team-android,triaged-android
|
low
|
Critical
|
626,433,370 |
create-react-app
|
Any plans to do nightly releases in the near future?
|
### Is your proposal related to a problem?
Not really related to a problem. In the last couple of months I have found myself in a situation where I was really interested in testing something that was merged in the master branch, but not yet released. Happened to me now with the [experimental support for fast refresh](https://github.com/facebook/create-react-app/pull/8582), also happened in the past with the [support for TS3.7](https://github.com/facebook/create-react-app/pull/7928) and [the ability to change webpack dev server host/port](https://github.com/facebook/create-react-app/pull/7750)
### Describe the solution you'd like
Some other libs in the community do alpha/beta or nightly releases to allow developers to play with the latest things merged to master. I created this issue after discussing this with @mrmckeb in [spectrum](https://spectrum.chat/create-react-app/general/how-can-i-use-the-master-branch-of-react-scripts-in-my-project~c304ec1d-1d1a-4b19-9c6c-8dd9e048f99c)
### Describe alternatives you've considered
An easy alternative is to clone create-react-app and link react-scripts locally... but this process does not really scale when working with several developers in the same repo and all of them have to do the same on their own.
Other alternative was to try to build react-scrips locally and publish it github packages, then all my colleagues could just install that dependency from that registry instead... but being honest I couldn't make that work.
The same for trying to publish react-scripts to npm registry changing the name to something like @sbalay/react-scripts
### Additional context
I think that I'm not the only one interested in this, several people in the community follow the excellent work that you do in this repo day to day and are eager to test things and help out 🙂
|
issue: proposal,needs triage
|
low
|
Major
|
626,453,639 |
flutter
|
[camera] Unable To Get High Quality/Full Frame Image & Camera Stretching Issue
|
```console
I/CameraDeviceState(31088): Legacy camera service transitioning to state IDLE
I/RequestQueue(31088): Repeating capture request set.
W/LegacyRequestMapper(31088): convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
W/LegacyRequestMapper(31088): Only received metering rectangles with weight 0.
W/LegacyRequestMapper(31088): Only received metering rectangles with weight 0.
I/CameraDeviceState(31088): Legacy camera service transitioning to state CAPTURING
I/RequestQueue(31088): Repeating capture request cancelled.
I/CameraDeviceState(31088): Legacy camera service transitioning to state IDLE
E/CameraDevice-0-LE(31088): Surface with size (w=1280, h=720) and format 0x22 is not valid, size not in valid set: [960x720, 864x480, 640x640, 800x480, 720x480, 768x432, 640x480, 480x640, 576x432, 640x360, 480x360, 480x320, 384x288, 352x288, 320x240, 240x320, 240x160, 176x144, 144x176, 160x120]
E/CameraDevice-0-LE(31088): submitRequestList - cannot use a surface that wasn't configured
I/flutter (31088): Instance of '_Timer'
I/ExoPlayerImpl(31088): Init 8b28888 [ExoPlayerLib/2.11.4] [ysl, Redmi Y2, Xiaomi, 28]
I/OMXClient(31088): IOmx service obtained
I/ACodec (31088): codec does not support config priority (err -2147483648)
I/ACodec (31088): codec does not support config priority (err -2147483648)
W/ExtendedACodec(31088): Failed to get extension for extradata parameter
E/MediaRecorder(31088): stop called in an invalid state: 8
```
<details>
<summary>flutter doctor -v</summary>
```console
[√] Flutter (Channel stable, v1.17.1, on Microsoft Windows [Version
10.0.18363.592], locale en-IN)
• Flutter version 1.17.1 at C:\src\flutter
• Framework revision f7a6a7906b (2 weeks ago), 2020-05-12 18:39:00 -0700
• Engine revision 6bc433c6b6
• Dart version 2.8.2
[√] Android toolchain - develop for Android devices (Android SDK version
29.0.3)
• Android SDK at C:\Users\Khush\AppData\Local\Android\sdk
• Platform android-R, build-tools 29.0.3
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build
1.8.0_212-release-1586-b04)
• All Android licenses accepted.
[√] Android Studio (version 3.6)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 45.1.1
• Dart plugin version 192.8052
• Java version OpenJDK Runtime Environment (build
1.8.0_212-release-1586-b04)
[√] Connected device (1 available)
• GM1917 • 421ac9e • android-arm64 • Android 10 (API 29)
• No issues found!
```
</details>
|
p: camera,package,team-ecosystem,has reproducible steps,P2,found in release: 2.0,found in release: 2.2,triaged-ecosystem
|
low
|
Critical
|
626,470,780 |
vscode
|
[json] JSONSchema draft 2019-09 support
|
<!-- ⚠️⚠️ Do Not Delete This! feature_request_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->
JSONSchema draft-07 is currently supported but `http://json-schema.org/draft/2019-09/schema#` does not currently load, or at least no completion or validation functionality is able to be provided from it.
|
help wanted,feature-request,json
|
high
|
Critical
|
626,497,848 |
go
|
proposal: net/http: Add NewDefaultTransport function
|
We would like to be able to use the default options for `http.Transport` without modifying the global, or worrying about whether anyone has modified the transport, or having to typecast it to call `Clone`. I propose adding a `NewDefaultTransport() *Transport` function to the http package. It should return a new `Transport` with the default options filled out. The global definition then becomes `var DefaultTransport RoundTripper = NewDefaultTransport()`. Note that the function returns `*Transport` not `RoundTripper` so we don't have to typecast it.
```go
func NewDefaultTransport() *Transport {
return &Transport{
Proxy: ProxyFromEnvironment,
DialContext: (&net.Dialer{
Timeout: 30 * time.Second,
KeepAlive: 30 * time.Second,
DualStack: true,
}).DialContext,
ForceAttemptHTTP2: true,
MaxIdleConns: 100,
IdleConnTimeout: 90 * time.Second,
TLSHandshakeTimeout: 10 * time.Second,
ExpectContinueTimeout: 1 * time.Second,
}
}
```
This was previously discussed in #26013, but in that case people wanted to pull in modifications to the global that had been made, so the `Clone()` method was introduced.
|
Proposal
|
low
|
Major
|
626,524,159 |
TypeScript
|
strict boolean expressions compilerOption
|
## Search Terms
require strict boolean
## Suggestion
add yet another --strict check into compilerOptions, to only allow expressions that evaluate to Boolean for all conditional branching - `if`, `for`, `while`, `?:` ternary operator, etc
basically this TSLint rule, built into TS compiler
https://palantir.github.io/tslint/rules/strict-boolean-expressions/
## Use Cases
often people check the existence of function, before calling it:
`if (somFunc) someFunc()`
or they think that function is actualy a property, and hence dont call it
`if (someVal)... `. where it should have been `if (someVal()) ...`
if `if` required a strict boolean expression, both of the above would have been errors.
## Examples
instead above examples would be written:
`if (!!someFunc) someFunc()`
and for `someValue():boolean`
`if (someValue())..`
## Checklist
My suggestion meets these guidelines:
* [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
|
626,526,140 |
flutter
|
platformOverride/isWidgetCreationTracked service extensions do not respond until terminating
|
When running on web, these service extensions appear as loaded, but if I call them they seem to not respond (until I terminate the app, then they fail).
```
[2:44:25 PM] [Observatory] <== {"jsonrpc":"2.0","method":"streamNotify","params":{"streamId":"Isolate","event":{"type":"Event","kind":"ServiceExtensionAdded","timestamp":1590673465972,"isolate":{"type":"@Isolate","id":"1","number":"1","name":"main()"},"extensionRPC":"ext.flutter.platformOverride"}}}
[2:44:25 PM] [FlutterRun] ==> [{"id":"1","method":"app.callServiceExtension","params":{"appId":"905776b5-b381-41cd-9f12-b90cf284382a","methodName":"ext.flutter.platformOverride"}}]
// No response to calling ext.flutter.platformOverride...
// Until we terminate, and then it returns with "Service connection disposed"
[2:45:20 PM] [Observatory] Termination requested!
[2:45:20 PM] [FlutterRun] ==> [{"id":"5","method":"app.stop","params":{"appId":"905776b5-b381-41cd-9f12-b90cf284382a"}}]
[2:45:20 PM] [Observatory] <== {"jsonrpc":"2.0","method":"streamNotify","params":{"streamId":"Service","event":{"type":"Event","kind":"ServiceUnregistered","timestamp":1590673520454,"service":"hotRestart","method":"hotRestart"}}}
[2:45:20 PM] [FlutterRun] <== [{"id":"1","error":"ext.flutter.platformOverride: (-32000) Service connection disposed","trace":""}]
```
@jonahwilliams not sure if this is a Flutter or web issue. In VS Code we assume we can call these (because we see the load), and then end up showing errors in the debug console to the users during shutdown.
|
framework,dependency: dart,platform-web,P3,team-web,triaged-web
|
low
|
Critical
|
626,534,354 |
flutter
|
Combine past and future IAP purchases as one stream
|
# Use case
I would like to listen to a stream of both past and future purchases, so i always have the complete list of non-consumable purchases and active subscribtions.
I would like to do so, to know which purchases the user has made at startup, but also at a later time whilst using the app, if he decide to purchase a product.
My understanding now is that `queryPastPurchases` only return previous purchases using a `Future`, whilst `purchaseUpdatedStream` only receives updates for new purchases in a `Stream`.
## Proposal
I would like to propose a `Stream<List<PurchaseDetails>> purchases`, which output both purchases from `InAppPurchaseConnection.instance.queryPastPurchases`, in addition to any newer purchases from `InAppPurchaseConnection.instance.purchaseUpdatedStream`.
It's non-consumable purchases and active subscribtions, i'm interested in, not sure how consumable purchases would fit into this, but i think a separate stream for these would make sense.
|
c: new feature,p: in_app_purchase,package,c: proposal,team-ecosystem,P3,triaged-ecosystem
|
low
|
Minor
|
626,540,055 |
react
|
exhaustive-deps: custom effects should support async functions
|
We have a custom hook, `useAsyncEffect`, which works like `useEffect` except it accepts an async function. We would like to check the deps of this function using `exhaustive-deps`, but that lint rule is going a bit beyond its name and also checking the type of function we pass.
The `exhaustive-deps` rule can't know anything about the semantics of arbitrary third-party hooks, so I think it's overstepping its bounds a bit (at least if you take the name "exhaustive deps" literally)
React version: 16.13.1
eslint version: 7.0.0
eslint-plugin-react-hooks version: 4.0.3
## Steps To Reproduce
Source:
```
import React from 'react';
import { useAsyncEffect } from './utilities/react';
function MyComponent() {
useAsyncEffect(async () => {
await Promise.resolve()
}, []);
return <div />;
}
```
`.eslintrc.json`:
```
{
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"plugins": ["react-hooks"],
"rules": {
"react-hooks/exhaustive-deps": [
"error",
{
"additionalHooks": "^useAsyncEffect$"
}
]
}
}
```
Then run:
```
node_modules/.bin/eslint --ext jsx src/file.jsx
```
## The current behavior
```
5:18 error Effect callbacks are synchronous to prevent race conditions. Put the async function inside:
<snip>
✖ 1 problem (1 error, 0 warnings)
```
## The expected behavior
There should be no lint error
|
Type: Discussion,Component: ESLint Rules
|
medium
|
Critical
|
626,575,265 |
PowerToys
|
Reset the settings
|
# Summary of the new feature/enhancement
<!--
A clear and concise description of what the problem is that the new feature would solve.
Describe why and how a user would use this new functionality (if applicable).
-->
Just wanna ask for the option to reset the PowerToys settings. After fiddling around with them too much, one could simply want to start over with the defaults.
This has two parts:
1) manually reset settings
2) remove settings from the system (register and "C:\Users\\%username%\AppData\Local\Microsoft\PowerToys") when uninstalling (not when updating)
|
Idea-Enhancement,Product-Settings,Area-User Interface
|
medium
|
Major
|
626,616,038 |
godot
|
OS.execute() should work the same whether run within the editor or within an exported binary
|
<!-- Please search existing issues for potential duplicates before filing yours:
https://github.com/godotengine/godot/issues?q=is%3Aissue
-->
**Godot version:**
<!-- Specify commit hash if using non-official build. -->
v3.2.stable.official
**OS/device including version:**
<!-- Specify GPU model, drivers, and the backend (GLES2, GLES3, Vulkan) if graphics-related. -->
Windows 8.1
**Issue description:**
<!-- What happened, and what was expected. -->
OS.execute() has different behavior if the execute target is an exported Godot binary.
This was pointed out in issue (https://github.com/godotengine/godot-docs/issues/3593) which was determined to be a documentation issue (A.K.A "a feature").
This doesn't seem to make sense, OS.execute() should behave the same whether run within the editor or within an exported binary.
I've created an ugly work-around by using a Windows .bat file which then executes the target binary.
**Steps to reproduce:**
1) Unzip to a folder of your choosing.
2) Import osexec_child project into Godot.
3) Do a Windows export (note Embed PCK is checked). Verify ../osexec_bins/osexec_child.exe runs correctly when run from the command line.
4) Click Project/Exit to Project List.
5) Import osexec_parent project into Godot and run it in the editor (F5)
6) Clicking the button launches a second instance of oexec_parent, not ../osexec_bin/osexec_child.exe
7) Do a Windows export of osexec_parent (Embed PCK is checked)
8) Run ../osexec_bins/osexec_parent.exe from the command line
9) Clicking the button correctly launches osexec_child.exe
**Minimal reproduction project:**
<!-- A small Godot project which reproduces the issue. Drag and drop a zip archive to upload it. -->
[osexec_oddness.zip](https://github.com/godotengine/godot/files/4696664/osexec_oddness.zip)
|
discussion,topic:core
|
low
|
Minor
|
626,619,219 |
go
|
net/http: Transport.Clone breaks HTTP/2
|
<!--
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.13.10 darwin/amd64
</pre>
### Does this issue reproduce with the latest release?
Yes.
### What operating system and processor architecture are you using (`go env`)?
<details><summary><code>go env</code> Output</summary><br><pre>
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/tmp/.gocache"
GOENV="/Users/jrittner/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/jrittner/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/Users/jrittner/go1.13.10"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/Users/jrittner/go1.13.10/pkg/tool/darwin_amd64"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
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 -m64 -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/qz/jbyzqww512dfd00_vfwk74l4zy5gvy/T/go-build718180347=/tmp/go-build -gno-record-gcc-switches -fno-common"
</pre></details>
### What did you do?
I set up an `http.Transport` with a non-nil, empty map for `TLSNextProto` in order to disable HTTP/2, as per the documentation.
https://golang.org/pkg/net/http/
> Programs that must disable HTTP/2 can do so by setting Transport.TLSNextProto (for clients) or Server.TLSNextProto (for servers) to a non-nil, empty map.
```go
transport := http.DefaultTransport.(*http.Transport).Clone()
transport.TLSNextProto = make(map[string]func(authority string, c *tls.Conn) http.RoundTripper)
httpClient := &http.Client{
Transport: transport,
}
resp, err := httpClient.Get("https://google.com")
if err != nil {
panic(err)
}
defer resp.Body.Close()
fmt.Println("Response status:", resp.Status)
```
### What did you expect to see?
I expected it to do HTTP/1.1 over TLS.
### What did you see instead?
```
panic: Get https://google.com: net/http: HTTP/1.x transport connection broken: malformed HTTP response "\x00\x00\x12\x04\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00d\x00\x04\x00\x10\x00\x00\x00\x06\x00\x00@\x00\x00\x00\x04\b\x00\x00\x00\x00\x00\x00\x0f\x00\x01\x00\x00\x1e\a\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01http2_handshake_failed"
```
|
Documentation,NeedsInvestigation
|
low
|
Critical
|
626,630,483 |
angular
|
Content projection with `select` can be confusing
|
### Description
Content projection with the `select` attribute can be confusing for users. `select` only works on root-level elements, but sometimes users will wrap an element in `<ng-container *ngIf="...">`, not realizing that the `ng-container` is unnecessary. In their mind this is just some control flow logic but the root-level element is still the thing inside the `<ng-container>`. However, Angular actually considers `<ng-container>` to be the root element and projects the element into an unexpected slot. We see this come up in issues on the Angular Components repo sometimes, since we have several components that project content into different slots.
## 🔬 Minimal Reproduction
https://stackblitz.com/edit/angular-ivy-grarvn?file=src%2Fapp%2Fapp.module.ts
|
area: core,core: content projection,type: confusing,P3
|
low
|
Major
|
626,657,594 |
electron
|
Add whenReady API to BrowserWindows to await their set up/rendering
|
### Preflight Checklist
* [x] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/master/CONTRIBUTING.md) for this project.
* [x] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md) that this project adheres to.
* [x] I have searched the issue tracker for a feature request that matches the one I want to file, without success.
### Problem Description
I have some code that creates a window (via `window.open`) and then immediately tells the main process to print it. The problem is that the window hasn't finished loading yet / rendering, so it prints a blank page.
I don't really want to have to add a did-finish-load or ready-to-show event for all these windows that I create.
### Proposed Solution
Can we add an API for BrowserWindows (or webcontents?) that returns a promise that resolves once the window has finished loading and renderering? And then we can do:
const win = BrowserWindow.fromId(1);
await win.whenReady();
win.webContents.print(...);
(I guess we'd have to define what exactly `whenReady` means. Maybe use the broad definition of everything has finished loading and rendering)
|
enhancement :sparkles:,component/BrowserWindow
|
low
|
Major
|
626,670,125 |
pytorch
|
Add support for rsample to MixtureSameFamily Distribution
|
## 🚀 Feature
It would be great if MixtureSameFamily had the rsample() functionality so as to make the parameters of the MixturesameFamily distribution trainable.
## Motivation
rsample() is a valuable tool for making the parameters defining distributions trainable. Mixture Models have recently been added to the set of distributions pytorch provides, but the reparameterization trick cannot be applied to them, for, say, a mixture of gaussians.
## Pitch
It would be great if this could be implemented! Not much of a pitch to sell here, but just think having such functionality if possible would be a great addition to what MixtureSameFamily can offer.
## Alternatives
<!-- A clear and concise description of any alternative solutions or features you've considered, if any. -->
One could feasibly do this manually by hardcoding the mixture distribution, but I think that defeats the purpose of having the MixtureSameFamily option
## Additional context
Thanks for your help! Totally understand if for some reason this isn't implementable or low on priority list.
cc @vincentqb @fritzo @neerajprad @alicanb @vishwakftw
|
module: distributions,triaged,enhancement
|
medium
|
Major
|
626,682,360 |
TypeScript
|
Incorrect Indenting Behavior in VS
|
***Ported from https://github.com/dotnet/roslyn/issues/44607 by @DanielRosenwasser***
_This issue has been moved from [a ticket on Developer Community](https://developercommunity.visualstudio.com/content/problem/1050808/wrong-indenting-2.html)._
---
<p>Found this problem was reported before, appears to have been reported as fixed. But it is happening again… The title info for the original report is:</p>
<p>TITLE: Wrong indenting<br>
DATE: Olaf van der Spek reported 12/7/2018, 12:54:20 PM</p>
<p>Problems is effectively the same. Running VS 2019 v16.6.0. When you select the editor’s setting for “Indenting” which can be one of [NONE|BLOCK|SMART], selecting ‘BLOCK’ the cursor, most of the time, upon present ENTER goes to column 1 on the next line. Appears “INDENTING is behaving as “NONE” is selected.<br>
Not sure when started, bouncing between VS 2017 and 2019, never have seen the problem in 2017, can’t say it ever worked in 2019 for that matter.</p>
---
### Original Comments
#### Visual Studio Feedback System on 5/27/2020, 03:16 AM:
<p>We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.</p>
---
### Original Solutions
(no solutions)
|
Visual Studio,Needs Investigation,Domain: Smart Indentation
|
low
|
Major
|
626,687,527 |
material-ui
|
[Tabs] Keyboard navigation does not work with disabled tabs
|
- [x] The issue is present in the latest release.
- [x] I have searched the [issues](https://github.com/mui-org/material-ui/issues) of this repository and believe that this is not a duplicate.
## Current behavior
Tabs keyboard navigation does not behave correctly when there are disabled tab items
## Expected Behavior 🤔
Keyboard navigation should either allow the selected tabs to be focusable but not selectable or skip them. According to W3C accessibility standards, they should be focusable but not selectable.
## Steps to Reproduce 🕹
https://codesandbox.io/s/material-demo-v5ddi?file=/demo.js
Steps:
1. Try to use the keyboard to navigate through the tabs after focusing it
| Tech | Version |
| ----------- | ------- |
| Material-UI | v4.10.0 |
|
accessibility,component: tabs
|
low
|
Major
|
626,690,101 |
TypeScript
|
Change default inference from arrays to tuples and primitives to literals
|
I am working on functional project now and I'm getting a lot of errors related to too wide type inference for values. It looks like
```typescript
function test(a: { data: 1 | 2 }) { return a }
const a = { data: 2 }
// Types of property 'data' are incompatible.
// Type 'number' is not assignable to type '2'.ts(2345)
const b = test(a)
```
There're really many errors like this, and the main problem is that you can convert type A to type B, but not vice versa.
```typescript
type A = { data: 2 }
type B = { data: number }
```
So, I ask you to add a new compiler option (to not break existing code) that will make type checker infer types as narrow as possible. It will be very helpful for functional programming.
|
Suggestion,Awaiting More Feedback
|
medium
|
Critical
|
626,693,396 |
storybook
|
Controls: boolean control throws a red warning
|
**Describe the bug**
Playing with `"@storybook/addon-controls": "6.0.0-beta.17"` I got this warning after clicking a boolean control, which is the `inverseColors` input (at the beggining of the screenshot):

Upcoming clicks in the checkbox doesn't throw this,
as it seems that the checkbox is already changed to controlled.
**System:**
```
Environment Info:
System:
OS: Linux 5.4 Ubuntu 20.04 LTS (Focal Fossa)
CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
Binaries:
Node: 10.18.0 - ~/.nvm/versions/node/v10.18.0/bin/node
Yarn: 1.22.4 - /usr/bin/yarn
npm: 6.14.2 - ~/.nvm/versions/node/v10.18.0/bin/npm
Browsers:
Chrome: 83.0.4103.61
Firefox: 76.0.1
npmPackages:
@storybook/addon-a11y: 6.0.0-beta.17 => 6.0.0-beta.17
@storybook/addon-actions: 6.0.0-beta.17 => 6.0.0-beta.17
@storybook/addon-controls: 6.0.0-beta.17 => 6.0.0-beta.17
@storybook/addon-docs: 6.0.0-beta.17 => 6.0.0-beta.17
@storybook/addon-links: 6.0.0-beta.17 => 6.0.0-beta.17
@storybook/addon-viewport: 6.0.0-beta.17 => 6.0.0-beta.17
@storybook/addons: 6.0.0-beta.17 => 6.0.0-beta.17
@storybook/angular: 6.0.0-beta.17 => 6.0.0-beta.17
@storybook/cli: 6.0.0-beta.17 => 6.0.0-beta.17
@storybook/source-loader: 6.0.0-beta.17 => 6.0.0-beta.17
```
|
bug,addon: controls
|
medium
|
Critical
|
626,737,637 |
flutter
|
[gen_l10n] Newly written arb files not detected during hot reload/restart or rebuild
|
If an arb file with a name that includes a locale suffix, but no `@@locale` value, is added to a project then the corresponding class isn't generated and, if the app tries to retrieve strings from that locale, it fails ugly with an NPE.
For example, if app_es.arb is added:
```json
{
"helloWorld": "Hola Mundo!"
}
```
If the current locale is 'es' then `AppLocalizations.of(context).helloWorld` fails:
```dart
flutter: The following NoSuchMethodError was thrown building HelloWorld(dirty, dependencies:
flutter: [_LocalizationsScope-[GlobalKey#fb104]]):
flutter: The getter 'helloWorld' was called on null.
flutter: Receiver: null
flutter: Tried calling: helloWorld
```
This is because lib/l10n/app_localizations_es.dart wasn't generated. If the `@@locale` is included, then all is well:
```json
{
"@@locale": "es",
"helloWorld": "Hola Mundo!"
}
```
Originally, the `@@locale` entry was optional, since the locale could be inferred from the filename.
In cases where the requested locale really isn't present, we should fail more gracefully.
To set up this test case:
- Create a new Flutter project.
- Add a flutter_localizations section to the pubspec.yaml file's dependencies, or just use this [sample pubspec.yaml](https://gist.github.com/HansMuller/57667a3ddbb0f9633977a7b170f310bf).
- Add [this l10n.yaml](https://gist.github.com/HansMuller/83dde034cfdacf9622e35642e42d9ec6) file to the top level of your project.
- Add a lib/l10n directory to the project.
- Add [this template ARB](https://gist.github.com/HansMuller/561ec39803d4f32965278779515907d4) file to lib/l10n.
- Replace lib/main.dart with [this l10n demo](https://gist.github.com/HansMuller/57c569cf99997a6530eb05f64906042f).
|
tool,a: internationalization,P3,team-tool,triaged-tool
|
medium
|
Critical
|
626,789,189 |
flutter
|
Add mouse cursor support to the remaining widgets
|
While https://github.com/flutter/flutter/pull/57628 added mouse cursor support to a number of material widgets, there are other widgets remaining to support.
- Material:
- Card (probably)
- Tooltip
- NavigationRail
- ReorderableList
- Stepper
- TimePicker
- Chip
- DataTable
- Hyperlinks (not a widget; actually `InlineSpan` with tap gesture recognizers)
- Cupertino widgets (we might not do this until we start to support iPadOS cursors)
Please comment if widgets not mentioned here should also support mouse cursors.
|
c: new feature,framework,f: material design,f: cupertino,a: mouse,team-design,triaged-design
|
medium
|
Critical
|
626,810,061 |
TypeScript
|
Code generated for optional call could be optimized when the result is unused
|
The generated code for optional chaining is a little verbose when the "return" value of the expression is not being used. For example, when simply calling a function:
```typescript
maybe.close?.()
```
Here is a more [complete example](https://www.typescriptlang.org/play/#code/C4TwDgpgBAsghiARhAwgGwPYGc6LdAXigG8BYAKCigGNMsIB+ALigAoBKKAgPhIF8A3BUEUKAEwi04AJ2jUMAOyzAoAWwTIW8JKjq58Q8gHojAeQXQMYYAEtFcNBXU6AdLWyMXHUeVCQoAAoQ0gAWcGBY2shcJBRUzsjMsBq62PoQhnzikmgycorKUJCh4VgsQSURURkUJgAqAO4YUFa29mhYFMVhES4Jnu70DF7sAkA).
The second example generates:
```typescript
(_c = (_b = perhaps.maybe) === null || _b === void 0 ? void 0 : _b.close) === null || _c === void 0 ? void 0 : _c.call(_b);
```
But could be optimized to:
```typescript
(_b = perhaps.maybe) !== null && _b !== void 0 && (_c = _b.close) !== null && _c !== void 0 && _c.call(_b);
```
It's not a huge difference, but it saves 8 characters for each link in the chain.
While the spec says something like: "_the expression short-circuits with a return value of undefined_", when the return value is meaningless, then only the "short-circuit" part is important.
|
Suggestion,Help Wanted,Effort: Moderate,Experience Enhancement
|
low
|
Minor
|
626,814,683 |
PowerToys
|
[Run] Ability to pin first result for query
|
# Summary of the new feature/enhancement
Wox has the ability to set a first result for a specific query to improve the search results.
E.g. when often using visual studio, typing "vis" brings up VS Code first and then VS. I want to have VS as a first result (
# Proposed technical implementation details (optional)
Wox has this, as I see an attribution in the Settings I imagine there is already some sort of cooperation, so might be worth taking a deeper look!
|
Idea-Enhancement,Product-PowerToys Run,Area-User Interface
|
low
|
Minor
|
626,826,186 |
flutter
|
[tool_crash] ProcessException: Process exited abnormally:Command: C:\Users\BAYOH\Downloads\chat_app-master\chat_app-master\android\gradlew.bat, OS error code: 1
|
## Command
```
flutter build apk
```
## Steps to Reproduce
1. ...
2. ...
3. ...
## Logs
ProcessException: Process exited abnormally:
FAILURE: Build failed with an exception.
* What went wrong:
Project 'app' not found in root project 'android'.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 4s Command: C:\Users\BAYOH\Downloads\chat_app-master\chat_app-master\android\gradlew.bat, OS error code: 1
```
#0 RunResult.throwException (package:flutter_tools/src/base/process.dart:172:5)
#1 _DefaultProcessUtils.run (package:flutter_tools/src/base/process.dart:322:19)
<asynchronous suspension>
#2 flavorUndefinedHandler.<anonymous closure> (package:flutter_tools/src/android/gradle_errors.dart:277:57)
#3 buildGradleApp (package:flutter_tools/src/android/gradle.dart:416:73)
#4 _rootRunUnary (dart:async/zone.dart:1192:38)
#5 _CustomZone.runUnary (dart:async/zone.dart:1085:19)
#6 _FutureListener.handleValue (dart:async/future_impl.dart:141:18)
#7 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:686:45)
#8 Future._propagateToListeners (dart:async/future_impl.dart:715:32)
#9 Future._completeWithValue (dart:async/future_impl.dart:526:5)
#10 _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:36:15)
#11 _completeOnAsyncReturn (dart:async-patch/async_patch.dart:303:13)
#12 _DefaultProcessUtils.stream (package:flutter_tools/src/base/process.dart)
#13 _rootRunUnary (dart:async/zone.dart:1192:38)
#14 _CustomZone.runUnary (dart:async/zone.dart:1085:19)
#15 _FutureListener.handleValue (dart:async/future_impl.dart:141:18)
#16 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:686:45)
#17 Future._propagateToListeners (dart:async/future_impl.dart:715:32)
#18 Future._completeWithValue (dart:async/future_impl.dart:526:5)
#19 Future._asyncCompleteWithValue.<anonymous closure> (dart:async/future_impl.dart:560:7)
#20 _rootRun (dart:async/zone.dart:1184:13)
#21 _CustomZone.run (dart:async/zone.dart:1077:19)
#22 _CustomZone.runGuarded (dart:async/zone.dart:979:7)
#23 _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1019:23)
```
```
[✓] Flutter (Channel beta, 1.18.0-11.1.pre, on Microsoft Windows [Version 10.0.18362.175], locale en-US)
• Flutter version 1.18.0-11.1.pre at C:\flutter_windows_v1.12.13+hotfix.8-stable\flutter
• Framework revision 2738a1148b (2 weeks ago), 2020-05-13 15:24:36 -0700
• Engine revision ef9215ceb2
• Dart version 2.9.0 (build 2.9.0-8.2.beta)
[!] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at C:\Users\BAYOH\AppData\Local\Android\sdk
• Platform android-29, build-tools 29.0.2
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
[!] Android Studio (version 3.5)
• Android Studio at C:\Program Files\Android\Android Studio
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
[✓] VS Code (version 1.45.1)
• VS Code at C:\Users\BAYOH\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.10.2
[!] Connected device
! No devices available
! Doctor found issues in 3 categories.
```
## Flutter Application Metadata
**Type**: app
**Version**: 1.0.0+1
**Material**: true
**Android X**: false
**Module**: false
**Plugin**: false
**Android package**: null
**iOS bundle identifier**: null
**Creation channel**: beta
**Creation framework version**: 7a4c33425ddd78c54aba07d86f3f9a4a0051769b
### Plugins
flutter_native_image-884d50a6cd4b88d78a849dc7ccd70eaf23fd0cab
camera-0.5.7+4
cloud_firestore-0.12.11
emoji_picker-0.0.3
firebase_auth-0.16.0
firebase_auth_web-0.1.2
firebase_core-0.4.4+3
firebase_core_web-0.1.1+2
firebase_database-3.1.5
firebase_storage-3.1.5
flutter_facebook_login-1.2.0
flutter_plugin_android_lifecycle-1.0.7
fluttertoast-4.0.1
image_picker-0.6.6+1
onesignal-1.1.0
path_provider-1.6.7
path_provider_macos-0.0.4+2
permission_handler-4.4.0+hotfix.4
shared_preferences-0.5.7+1
shared_preferences_macos-0.0.1+8
shared_preferences_web-0.1.2+5
sqflite-1.3.0+1
url_launcher-5.4.5
url_launcher_macos-0.0.1+5
url_launcher_web-0.1.1+4
|
c: crash,tool,t: gradle,P2,team-tool,triaged-tool
|
low
|
Critical
|
626,861,211 |
TypeScript
|
Ensure find-all-refs works on unresolved locals
|
Spoke with @amcasey about this one.
Given the following
```ts
blah.yadda.yadda
```
`blah` will be an unresolved and should be an error, but we still want find-all-references on this symbol to work reasonably well. This is especially important in the mode described in #37713, where TypeScript won't have access to symbols in the global scope.
This can potentially be achieved by creating an "error scope" whose symbol table contents are progressively populated every time resolution fails.
|
Suggestion,In Discussion,Experimentation Needed,Domain: Symbol Navigation,Rescheduled
|
low
|
Critical
|
626,866,747 |
godot
|
Tree control contents draw over border
|
**Godot version:**
v3.2.1 stable
**OS/device including version:**
Fedora 32 (64 bit), RX 5700 XT using Navi10 driver, GLES3.
**Issue description:**
The contents of Tree controls draw over any border. This can be seen in the editor.

|
bug,topic:gui
|
medium
|
Major
|
626,868,591 |
godot
|
Custom resources cannot be created in FileSystem or Inspector docks in 4.0
|
**Godot version:**
4.0
**OS/device including version:**
Windows 10
**Issue description:**
<!-- What happened, and what was expected. -->
While working on #34828, I tried to set a resource property in the inspector to a new custom resource. The property menu closed, but the property remained unchanged. The console printed 2 errors:
```
Cannot get class 'CustomResource'.
editor\editor_properties.cpp:2496 - Condition "!resp" is true. Breaking.
```
I tried to make the custom resource again by right clicking in the FileSystem dock and selecting "New Resource." I selected my custom resource and clicked create, but the "Create New Resource" window closed without creating the resource. This error was printed:
```
editor\filesystem_dock.cpp:1801 - Condition "!r" is true.
```
**Steps to reproduce:**
1. Add a custom resource via a EditorPlugin
2. Try to set a resource property in the inspector to an instance of your custom resource. You could try to do this via the Inspector or via the FileSystem. You will find that either method will result in an error.
**Minimal reproduction project:**
<!-- A small Godot project which reproduces the issue. Drag and drop a zip archive to upload it. -->
[ResourceTest.zip](https://github.com/godotengine/godot/files/4698689/ResourceTest.zip)
|
bug,topic:editor,topic:plugin
|
low
|
Critical
|
626,871,051 |
create-react-app
|
Read xml files and other data
|
### Is your proposal related to a problem?
<!--
Provide a clear and concise description of what the problem is.
For example, "I'm always frustrated when..."
-->
I don't understand why we still have to face "you may need an appropriate loader to handle this file type" kind of error. I'm trying to load an xml file from my assets, which doesn't sound like something completely crazy in a web environment, and I get this message.
I would just expect webpack to be configured to load the unknown files extensions as raw text, or at least common web extensions like xml, xhtml, and such.
### Describe the solution you'd like
I think that we could just update the webpack configuration to load xml as raw text. This way at least we would be able to parse it.
### Describe alternatives you've considered
The only alternative I know of right now would be to eject, which is not much of an alternative...
|
issue: proposal,needs triage
|
low
|
Critical
|
626,903,238 |
electron
|
Expose user preference for double-click speed
|
Internet specifications don't provide a great way to distinguish single- and double-clicks; in the DOM, `onClick` will always fire as a part of `onDoubleClick`. The generally-accepted wisdom is to avoid putting both single- and double-click callbacks on a single DOM element, and when this can't be done, to manually handle the single-double distinction by allowing a timeout to elapse before considering a click to be a single-click.
Fair enough, but in that case, it seems like a no-brainer that, with the extra privileges allowed to Electron, we could make this timeout as comfortable as possible to the user, by respecting their OS setting for what constitutes a double-click, rather than using an arbitrary timeout. This also has accessibility implications for people who need to set especially long double-click speeds on their machines.
I propose a method on [systemPreferences](https://www.electronjs.org/docs/api/system-preferences) which returns what the OS reports as the double-click speed.
|
enhancement :sparkles:
|
low
|
Minor
|
626,915,924 |
flutter
|
TimeSensistiveTests in message_loop_unittests are sometimes failing on Fuchsia
|
They are filtered out in run_tests.sh because they sometimes time-out, causing test flakes
|
customer: fuchsia,framework,dependency: fuchsia,platform-fuchsia,P2,team-framework,triaged-framework
|
low
|
Minor
|
626,916,097 |
flutter
|
Add a clipBehavior property to the flutter/animations OpenContainer class
|
When using the OpenContainer class, I do not want it to clip the child within. For example, to allow a child's box shadow to show through and not be clipped.
|
c: new feature,package,c: proposal,p: animations,team-ecosystem,P3,triaged-ecosystem
|
low
|
Minor
|
627,013,714 |
rust
|
is_x86_feature_detected! does not work with $:literal argument
|
```rust
macro_rules! my_is_x86_feature_detected {
($feat:literal) => { // changing to $feat:tt makes it work
is_x86_feature_detected!($feat)
};
}
fn main() {
let _ = is_x86_feature_detected!("mmx"); // works
let _ = my_is_x86_feature_detected!("mmx"); // does not work
}
```
```console
error: unknown x86 target feature: mmx
--> src/main.rs:8:13
|
8 | let _ = my_is_x86_feature_detected!("mmx");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
```
The [std::is_x86_feature_detected!](https://doc.rust-lang.org/stable/std/macro.is_x86_feature_detected.html) macro appears to work when called with a string literal argument, and works when called with a $:tt argument, but does not work with a $:literal argument. I believe that it should work all three ways.
|
O-x86_64,T-compiler,A-SIMD,C-bug,O-x86_32
|
low
|
Critical
|
627,014,455 |
pytorch
|
Negative stride values in `as_strided`
|
## 🐛 Bug
`as_strided` accepts negative stride values, but acts as though the stride value is equal to one.
<!-- A clear and concise description of what the bug is. -->
## To Reproduce
Steps to reproduce the behavior:
``` python
x = torch.arange(16)
x.as_strided((4, ), (-42, ), 8)
# tensor([ 8, 9, 10, 11])
```
<!-- If you have a code sample, error messages, stack traces, please provide it here as well -->
## Expected behavior
Either
* An exception is thrown (if negative strides are not supported), or
* stride backwards from storage_offset.
<!-- A clear and concise description of what you expected to happen. -->
## Environment
```
Collecting environment information...
PyTorch version: 1.5.0+cu101
Is debug build: No
CUDA used to build PyTorch: 10.1
OS: Ubuntu 18.04.3 LTS
GCC version: (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
CMake version: version 3.12.0
Python version: 3.6
Is CUDA available: No
CUDA runtime version: 10.1.243
GPU models and configuration: Could not collect
Nvidia driver version: Could not collect
cuDNN version: /usr/lib/x86_64-linux-gnu/libcudnn.so.7.6.5
Versions of relevant libraries:
[pip3] numpy==1.18.4
[pip3] torch==1.5.0+cu101
[pip3] torchsummary==1.5.1
[pip3] torchtext==0.3.1
[pip3] torchvision==0.6.0+cu101
[conda] Could not collect
```
Also the same on Mac OSX with torch 1.5.0 and numpy 1.18.4.
## Additional context
<!-- Add any other context about the problem here. -->
cc @ezyang @bhosmer @smessmer @ljk53 @bdhirsh @ailzhang @VitalyFedyunin @jamesr66a @ppwwyyxx
|
module: internals,module: error checking,triaged,module: memory format
|
low
|
Critical
|
627,035,129 |
scrcpy
|
Demo mode by passing a flag
|
- [x] I have checked that a similar [feature request](https://github.com/Genymobile/scrcpy/issues?q=is%3Aopen+is%3Aissue+label%3A%22feature+request%22) does not already exist.
**Is your feature request related to a problem? Please describe.**
Right now I'm using [this](https://android.googlesource.com/platform/frameworks/base/+/master/packages/SystemUI/docs/demo_mode.md) particular script to enable the demo mode and then run scrcpy. It would be better if this is an inbuilt thing.
|
feature request,custom actions
|
low
|
Minor
|
627,050,795 |
TypeScript
|
ElementCSSInlineStyle.style should not be read-only
|
<!-- 🚨 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:** Nightly
<!-- Search terms you tried before logging this (so others can find this issue more easily) -->
**Search Terms:**
DOM Element HTMLElement SVGElement inline style setter
**Expected behavior:**
Per https://drafts.csswg.org/cssom/#elementcssinlinestyle, the style setter is forwarded to `style.cssText`, and thus accepts a string.
**Actual behavior:**
Type error:
> (property) ElementCSSInlineStyle.style: CSSStyleDeclaration
> Cannot assign to 'style' because it is a read-only property.(2540)
<!-- Did you find other bugs that looked similar? -->
**Related Issues:**
#13466, which (correctly) points to the old spec where `ElementCSSInlineStyle.style` was only described as `readonly`, without the `PutForwards=cssText` annotation.
This is however a case of an old spec that doesn't match a universal browser behavior.
https://github.com/w3c/csswg-drafts/issues/5127 where I asked the W3C for clarification
**Code**
```ts
const a = document.createElement("a")
a.style = ""
```
<details><summary><b>Output</b></summary>
```ts
"use strict";
const a = document.createElement("a");
a.style = "";
```
</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/?ts=4.0.0-dev.20200528&ssl=3&ssc=13&pln=1&pc=1#code/MYewdgzgLgBAhjAvDAJiYBXAtgUzFAOmACcc4ocBRAGx13wAoAiOJgSgFgAobuA6AJ60kMJkyA)
|
Bug,Domain: lib.d.ts
|
low
|
Critical
|
627,059,498 |
pytorch
|
Try Address Sanitizer in MSVC builds
|
## 🚀 Feature
<!-- A clear and concise description of the feature proposal -->
According to https://www.codeproject.com/Articles/5269130/Address-Sanitizer-in-Visual-Cplusplus, x64 ASAN will be added in Visual C++ Update 16.7 Preview 1. Maybe we can have a try.
## 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 improve the quality of the builds.
## Pitch
<!-- A clear and concise description of what you want to happen. -->
Have a try when it's available. In the long run, add a CI test for this.
## Alternatives
<!-- A clear and concise description of any alternative solutions or features you've considered, if any. -->
1. Use the native one
2. Use the one from clang on Windows
## Additional context
<!-- Add any other context or screenshots about the feature request here. -->
cc @peterjc123 @nbcsm @guyang3532
|
module: windows,triaged
|
low
|
Major
|
627,077,413 |
flutter
|
Add pixelRatio matchesGoldenFile()
|
I am not to sure with this one, but wouldn't it make sense to be able to pass a pixelRatio for the output image to `matchesGoldenFile`. Currently the golden file has the size of the surface in logical pixels. If I want to have an image that represents the exact pixels of my phone we would need sth. like `pixelRatio` which can be passed into the function as an optin.
|
a: tests,c: new feature,framework,c: proposal,P3,team-framework,triaged-framework
|
low
|
Major
|
627,115,127 |
rust
|
Cycle error through variance computation when using `-> _`.
|
Reduced example ([playground](https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=ffcbdecd32014759e9c2b83f57bcd186)):
```rust
struct Wrapper<T>(T);
fn foo<T>(x: Wrapper<T>) -> _ {
drop(x);
}
```
```
error[E0391]: cycle detected when processing `foo`
--> src/lib.rs:3:1
|
3 | fn foo<T>(x: Wrapper<T>) -> _ {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: ...which requires type-checking `foo`...
--> src/lib.rs:3:1
|
3 | fn foo<T>(x: Wrapper<T>) -> _ {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: ...which requires processing `Wrapper`...
--> src/lib.rs:1:1
|
1 | struct Wrapper<T>(T);
| ^^^^^^^^^^^^^^^^^^^^^
= note: ...which requires computing the variances for items in this crate...
= note: ...which again requires processing `foo`, completing the cycle
note: cycle used when collecting item types in top-level module
--> src/lib.rs:1:1
|
1 | / struct Wrapper<T>(T);
2 | |
3 | | fn foo<T>(x: Wrapper<T>) -> _ {
4 | | drop(x);
5 | | }
| |_^
```
You can see right away that it's hard to figure out what "processing" means and we should probably start a cleanup effort to add proper descriptions to queries (or at least name the query in the default message, even if it might not look pretty at all). cc @rust-lang/compiler
<hr/>
Using `-Ztreat-err-as-bug` + `RUST_BACKTRACE=1` I can turn the error into an ICE and get this:
```
#0 [crate_variances] computing the variances for items in this crate
#1 [variances_of] processing `Wrapper`
#2 [typeck_tables_of] type-checking `foo`
#3 [fn_sig] processing `foo`
#4 [collect_mod_item_types] collecting item types in top-level module
#5 [analysis] running analysis passes on this crate
```
So variance computation uses `fn_sig` (not sure why it would *need* to), which is normally harmless, as function signatures are fully explicit.
But we nowadays "allow" `_` in the signature, guaranteeing an error still, while showing the user the inferred type (this should be useful during prototyping but I keep forgetting it exists).
As a result of that, instead of `typeck_tables_of` depending on `fn_sig`, `fn_sig` depends on `typeck_tables_of` (since it needs the results of type inference from the `fn` body), so an otherwise harmless `fn_sig` turns into a cycle as soon as type-checking needs *any* variances.
|
T-compiler,A-inference,C-bug
|
low
|
Critical
|
627,118,393 |
excalidraw
|
Display the current filename somewhere in the UI
|
RE: #1668 I just realized that to help the user decide whether they need to hit "Save" or "Save as" button, we might want to display the current filename somewhere in the UI if it's not there already -- I don't remember seeing it -- maybe browser tab title on desktop, not sure about mobile.
CC @tomayac
|
enhancement
|
low
|
Major
|
627,145,153 |
terminal
|
Simulate the X11 select buffer
|
X11 provides multiple buffers (clipboards / pasteboards) with different semantics. The copy buffer is used for things that persist in the buffer. The select buffer shares some of the behaviour of copy-and-paste and some of drag-and-drop. Like drag-and-drop, the source is responsible for the storage of the buffer contents and the buffer goes away when the source changes this. Like copy-and-paste, copying (select) and pasting (middle click) are distinct operations that do not capture the mouse in the middle.
It is very useful to have access to both in a terminal. This works well in X11 terminals on Windows with VcXsrv:
- The select buffer (filled when you select text) is not copied to the Windows clipboard.
- The copy buffer (filled when you do a copy operation) is copied to the Windows clipboard.
- Changes to the Windows clipboard are mirrored into the X11 copy buffer.
- Middle click pastes from the select buffer if the select buffer contains anything, otherwise it pastes from the copy buffer.
This behaviour could be emulated by having a buffer that is internal to WT that is filled on select and used for a special paste option (which could be bound to middle-click once #1553 is resolved).
|
Issue-Feature,Area-TerminalControl,Product-Terminal
|
low
|
Major
|
627,167,748 |
create-react-app
|
eslint-loader should not cache, when process.env.EXTEND_ESLINT === 'true'
|
### Is your proposal related to a problem?
<!--
Provide a clear and concise description of what the problem is.
For example, "I'm always frustrated when..."
-->
When I change my `.eslintrc.js` the changes are not reflected in `react-scripts start`. I found a **workaround** in #9007 described by @Josema to disable the cache in `node_modules/react-scripts/config/webpack.config.js`:
> this is caused by how react-scripts handles ESLint cache. By default, cache is set to true. If you set it to false, any change to eslint rules will be honoured every time. The setting is in node_modules/react-scripts/config/webpack.config.js
### Describe the solution you'd like
Similar to what @Josema wrote (sadly this issue #9007 got closed)
>So my suggestion is to make this cache option configurable, and by default set it to false, to avoid confusion.
Currently the webpack.config.js looks like that:
```js
// First, run the linter.
// It's important to do this before Babel processes the JS.
{
test: /\.(js|mjs|jsx|ts|tsx)$/,
enforce: 'pre',
use: [
{
options: {
cache: false,
formatter: require.resolve('react-dev-utils/eslintFormatter'),
eslintPath: require.resolve('eslint'),
resolvePluginsRelativeTo: __dirname,
// @remove-on-eject-begin
ignore: isExtendingEslintConfig,
baseConfig: isExtendingEslintConfig
? undefined
: {
extends: [require.resolve('eslint-config-react-app')],
},
useEslintrc: isExtendingEslintConfig,
// @remove-on-eject-end
},
loader: require.resolve('eslint-loader'),
},
],
```
I suggest:
```
cache: !isExtendingEslintConfig,
```
As it only needs to be disabled when isExtendingEslintConfig is true (`process.env.EXTEND_ESLINT === 'true'`)
|
issue: proposal,needs triage
|
medium
|
Major
|
627,211,351 |
pytorch
|
[mobile] Running on armeabi-v7a is inconsistent with arm64-v8a
|
## ❓ Questions and Help
Hello, I run a torch model on Android, but the results on armeabi-v7a and arm64-v8a are quite different.Is there any problem? Or I need to set parameters to run different environments? Thank you
|
oncall: mobile
|
low
|
Minor
|
627,270,143 |
pytorch
|
Add numerically stable log1mexp = log(1 - exp(-|x|)) function
|
## 🚀 Feature
Add the implementation for a numerically stable `log(1 - exp(-|x|))` function.
See https://cran.r-project.org/web/packages/Rmpfr/vignettes/log1mexp-note.pdf
Ref https://www.rdocumentation.org/packages/VGAM/versions/1.1-3/topics/log1mexp
## Motivation
The function can be implemented using other pytorch functions but it might be tricky to get it right.
Some implementations found on GitHub:
[@wouterkool/estimating-gradients-without-replacement/blob/9d8bf8b/bernoulli/gumbel.py#L7-L11](https://github.com/wouterkool/estimating-gradients-without-replacement/blob/9d8bf8b/bernoulli/gumbel.py#L7-L11)
[@visinf/n3net/blob/5d5883a/src_denoising/models/non_local.py#L94-L108](https://github.com/visinf/n3net/blob/5d5883a/src_denoising/models/non_local.py#L94-L108)
cc: @wouterkool @visinf
|
module: numerical-stability,triaged,enhancement,function request
|
low
|
Major
|
627,286,217 |
flutter
|
[web]Display keyboard unable to click on other textfield on safari 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
-->
After the keyboard is displayed in the safari browser, I can't click on the other textfield,. I find this problem on both IOS11 and 12.
Example:
```dart
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
visualDensity: VisualDensity.adaptivePlatformDensity,
),
home: MyHomePage(title: 'Flutter Demo Home Page'),
);
}
}
class MyHomePage extends StatefulWidget {
MyHomePage({Key key, this.title}) : super(key: key);
final String title;
@override
_MyHomePageState createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text(widget.title),
),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
TextField(),
TextField(),
TextField(),
TextField(),
TextField(),
TextField(),
],
),
),
);
}
}
```
**Expected results:** <!-- what did you want to see? -->
You can switch between textfield and button when the keyboard is displayed.
**Actual results:** <!-- what did you see? -->
No other button or textfield can be clicked after the keyboard is displayed.
<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.
-->
```
```
<!--
Run `flutter analyze` and attach any output of that command below.
If there are any analysis errors, try resolving them before filing this issue.
-->
```
```
<!-- Finally, paste the output of running `flutter doctor -v` here. -->
```
[✓] Flutter (Channel dev, 1.19.0-0.0.pre, on Mac OS X 10.14.6 18G84, locale zh-Hans-CN)
• Flutter version 1.19.0-0.0.pre at /Users/ming/flutter
• Framework revision a849daf283 (3 weeks ago), 2020-05-07 18:59:02 -0700
• Engine revision 3953c3ccd1
• Dart version 2.9.0 (build 2.9.0-5.0.dev 4da5b40fb6)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at /Users/ming/Library/Android/sdk
• Platform android-29, build-tools 29.0.2
• ANDROID_HOME = /Users/ming/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 11.3)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.3, Build version 11C29
• CocoaPods version 1.9.1
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 3.5)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 39.0.3
• Dart plugin version 191.8423
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
[✓] VS Code (version 1.45.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.10.2
[✓] Connected device (3 available)
• SM N9700 • R58M84RVP3D • android-arm64 • Android 10 (API 29)
• Web Server • web-server • web-javascript • Flutter Tools
• Chrome • chrome • web-javascript • Google Chrome 83.0.4103.61
```
</details>
|
a: text input,platform-ios,platform-web,e: OS-version specific,has reproducible steps,P3,browser: safari-ios,team-framework,triaged-framework,found in release: 3.19,found in release: 3.20
|
low
|
Critical
|
627,310,543 |
pytorch
|
pytorch-crf model to onnx conversion
|
## 🐛 Bug
<!-- A clear and concise description of what the bug is. -->
## To Reproduce
i'd like to report an onnx conversion issue when the`pytorch-crf` library is used.
( pytorch-crf : https://github.com/kmkurn/pytorch-crf/blob/master/torchcrf/__init__.py )
**1. model i used**
- https://github.com/dsindex/ntagger/blob/master/model.py#L225
- GloVe + LSTM + CRF
**2. onnx conversion code**
- https://github.com/dsindex/ntagger/blob/master/evaluate.py#L279
- using this code, the conversion has done with no error. but some warning raise.
**3. warning**
```
/data/private/ntagger/model.py:353: TracerWarning: torch.as_tensor results are registered as constants in the trace. You can safely ignore this warning if you use this function to create tensors out of constant variables that would be the same every time you call this function. In any other case, this might cause the trace to be incorrect.
prediction = torch.as_tensor(prediction, dtype=torch.long)
/data/private/anaconda3/envs/conda_torch/lib/python3.7/site-packages/torch/onnx/symbolic_opset9.py:1577: UserWarning: Exporting a model to ONNX with a batch_size other than 1, with a variable length with LSTM can cause an error when running the ONNX model with a different batch size. Make sure to save the model with a batch size of 1, or define the initial states (h0/c0) as inputs of the model.
"or define the initial states (h0/c0) as inputs of the model. ")
```
**4. weird same prediction for every test examples using onnxruntime**
```
1, 2, 7, 7, 7, 7, 7, ...
1, 2, 7, 7, 7, 7, 7, ...
1, 2, 7, 7, 7, 7, 7, ...
...
```
**5. code position which the warning points out**
- https://github.com/dsindex/ntagger/blob/master/model.py#L353
```
# 4. Output
logits = self.linear(mha_out)
# logits : [batch_size, seq_size, label_size]
if not self.use_crf: return logits
prediction = self.crf.decode(logits)
prediction = torch.as_tensor(prediction, dtype=torch.long) <-- here!
# prediction : [batch_size, seq_size]
return logits, prediction
```
**6. onnx graph position i suspect**
```
...
%345 : Tensor = onnx::Reshape(%343, %344) # /usr/local/lib/python3.6/dist-packages/torch/nn/modules/rnn.py:585:0
%346 : Float(1:400, 180:400, 400:1, requires_grad=0, device=cuda:0) = onnx::Transpose[perm=[1, 0, 2]](%345) # /usr/local/lib/python3.6/dist-packages/torch/nn/utils/rnn.py:310:0
%347 : Float(1:72000, 180:400, 400:1, requires_grad=0, device=cuda:0) = onnx::Gather[axis=0](%346, %49) # /usr/local/lib/python3.6/dist-packages/torch/nn/functional.py:983:0
%349 : Float(1:1800, 180:10, 10:1, requires_grad=0, device=cuda:0) = onnx::MatMul(%347, %446) # /usr/local/lib/python3.6/dist-packages/torch/nn/functional.py:1692:0
%logits : Float(1:1800, 180:10, 10:1, requires_grad=0, device=cuda:0) = onnx::Add(%349, %linear.bias)
%prediction : Long(1:180, 180:1, requires_grad=0, device=cpu) = onnx::Constant[value=<Tensor>]() <-- here!
return (%logits, %prediction)
```
since `self.crf.decode()` returns `List[List[int]]`, we should use `torch.as_tensor()` in the last place of forward() method.
but, `torch.onnx.export()` indicates above warning and produces same (useless) prediction results.
what should i do for it to fix ?
any idea will be appreciated.
## Expected behavior
<!-- A clear and concise description of what you expected to happen. -->
## Environment
- PyTorch Version (e.g., 1.0): train = 1.7.1+cu101, inference/onnx conversion = 1.7.0
- OS (e.g., Linux): Ubuntu 18.04
- How you installed PyTorch (`conda`, `pip`, source): pip
- Build command you used (if compiling from source):
- Python version: 3.6.9
- CUDA/cuDNN version: 10.1
- GPU models and configuration: Tesla V100
- Any other relevant information: onnx = 1.7.0, onnxruntime = 1.4.0
## Additional context
<!-- Add any other context about the problem here. -->
* i modified this issue up-to-date.
cc @houseroad @spandantiwari @lara-hdr @BowenBao @neginraoof
|
module: onnx,triaged
|
low
|
Critical
|
627,312,510 |
godot
|
Can't change type of custom node/scene in scene tree
|
<!-- Please search existing issues for potential duplicates before filing yours:
https://github.com/godotengine/godot/issues?q=is%3Aissue
-->
**Godot version:**
<!-- Specify commit hash if using non-official build. -->
3.2.1, 3.2.2beta3, master d19257eb
**OS/device including version:**
<!-- Specify GPU model, drivers, and the backend (GLES2, GLES3, Vulkan) if graphics-related. -->
Windows 10
**Issue description:**
<!-- What happened, and what was expected. -->
If you have a custom node/scene in your scene tree and want to change it's type by right clicking and selecting "Change Type" it's not working correctly. It seems that the node it's getting changed to appears in the editor viewport, but the scene tree does not change completly (Node icon & name change; the scene icon stays). The old node also stays in the viewport (that is of course if it's a node that can be drawn like e.g. a MeshInstance)
Upon saving and closing/openening nothing changed and the original node is still there.
This reminded me of a similar issue i had a while back: #37144. I don't know if it's related but it feels similar.
**Steps to reproduce:**
1) Create a simple scene and save it
2) Create annother scene and add the scene from step 1 as child. Then save.
3) Try to replace the scene by right-click -> Change Type -> Select any node and press "Change"
|
bug,topic:editor,topic:plugin
|
low
|
Major
|
627,362,442 |
pytorch
|
SummaryWriter `add_hparams` should support adding new hyperparameters
|
## 🐛 Bug
When calling `SummaryWriter().add_hparams` with new hyperparameters, keys that do not exist in the first call do not appear in the hyperparameter dashboard output.
## To Reproduce
```python
#!/usr/bin/env python3
from torch.utils.tensorboard import SummaryWriter
with SummaryWriter() as w:
w.add_hparams({"key_A": 10}, {})
with SummaryWriter() as w:
w.add_hparams({"key_B": 10}, {})
```
When viewing the Tensorboard summary writer output on `http://localhost:6006/#hparams`:
| Trial_ID | key_A |
|-------------|----------|
| May29_09-27-46_mbp13/1590766066.254924 | 10.000 |
| May29_09-27-46_mbp13/1590766066.2567558 | |
## Expected behavior
I would expect `key_B` to also appear in the output, with a blank value for the first row.
## Environment
PyTorch version: 1.4.0
Is debug build: No
CUDA used to build PyTorch: 10.1
OS: Debian GNU/Linux 10 (buster)
GCC version: (Debian 8.3.0-6) 8.3.0
CMake version: Could not collect
Python version: 3.7
Is CUDA available: No
CUDA runtime version: No CUDA
GPU models and configuration: No CUDA
Nvidia driver version: No CUDA
cuDNN version: No CUDA
Versions of relevant libraries:
[pip3] numpy==1.17.4
[pip3] torch==1.4.0
[pip3] torchvision==0.5.0
[conda] Could not collect
## Additional context
* https://github.com/tensorflow/tensorboard/issues/3371
* https://github.com/PyTorchLightning/pytorch-lightning/issues/1217
|
enhancement,oncall: visualization
|
low
|
Critical
|
627,387,625 |
terminal
|
UX for different StartupTaskState
|
I feel like for this (and the other `StartupTaskState`) we should display a warning of some sort. But I'd be ok with just ignoring these cases for now and linking a new GitHub issue for a separate PR.
_Originally posted by @carlos-zamora in https://github.com/microsoft/terminal/pull/4908_
----
Additional context:
Specifically, StartupTaskState::DisabledByUser is the primary case to handle. The value of displaying feedback to users for the other states could be debated; I'm not aware of other applications that pop a dialog or feedback when the "start application on windows start" checkbox or whatnot is changed, but those applications generally don't have users managing settings via Notepad :)
|
Help Wanted,Area-UserInterface,Product-Terminal,Issue-Task
|
low
|
Minor
|
627,428,218 |
PowerToys
|
Persistent, sorted, filterable Action Center/Notification history
|
# Summary of the new feature/enhancement
The current Action Center is quite often frustratingly useless. Notification items may pop up and I may be in the middle of something and not look quick enough, but then it is no-where to be seen in the Action Center, or if it does show up, I click it and nothing happens(when it normally would open its parent application or similar).
I have been looking far and wide, but I cannot seem to find any sort of persistent Action Center / Notification history that can be reviewed even if an item is dismissed, or doesn't show up in the Action Center. At this point, even an ongoing text only log file would be better than nothing, which often feels like what I have now.
<!--
A clear and concise description of what the problem is that the new feature would solve.
Describe why and how a user would use this new functionality (if applicable).
-->
# Proposed technical implementation details (optional)
<!--
A clear and concise description of what you want to happen.
-->
What would be great would be either an icon within the Action Center, or a right-click context menu on the Action Center taskbar icon which reads "View History" or similar, which brings up a window which allows you to view all past notifications, either as a list sorted by date received, perhaps with a side menu allowing you to filter notifications by their originating source application or service.
|
Idea-New PowerToy
|
low
|
Minor
|
627,450,551 |
pytorch
|
Naming inconsistency: padding_mode vs pad_mode + F.conv* docs ops miss padding_mode arg at all
|
[torch.stft](https://pytorch.org/docs/stable/torch.html?highlight=stft#torch.stft) uses `pad_mode`
[grid_sample](https://pytorch.org/docs/stable/nn.functional.html#torch.nn.functional.grid_sample) uses `padding_mode`
[nn.Conv3d](https://pytorch.org/docs/stable/nn.html?highlight=conv3d#torch.nn.Conv3d) uses `padding_mode`
[F.conv3d](https://pytorch.org/docs/stable/nn.functional.html#torch.nn.functional.conv3d) misses any padding mode arg altogether
|
triaged,module: ux
|
low
|
Minor
|
627,463,571 |
terminal
|
Cannot send CTRL+C signal to remote machine while terminal is rendering text
|
<!--
🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨
I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING:
1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement.
2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement.
3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number).
4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement.
5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement.
All good? Then proceed!
-->
# Environment
```
Windows build number:
Microsoft Windows [Version 10.0.18363.836]
Windows Terminal version (if applicable):
Version: 1.0.1401.0
Any other software?
- wsl-ubuntu-18.04
- ssh using wsl to remote computer
- tmux inside the remote computer
```
# Steps to reproduce
Connected to a remote machine with ssh from wsl, running tmux on this remote.
Issue happens when application print lots of contents to the terminal, which prevents the user to send signals (CTRL-C to stop the application from printing to the terminal). You only regain control after the terminal renders EVERYTHING that is being printed.
Other signals such as CTRL+Z or tmux bindings to change the pane scope (to work on other pane or kill the running window also does not get accepted while the printing is happening.
# Expected behavior
I expected the CTRL+C to stop the application running the printing. And regain control of the terminal.
# Actual behavior
Long running applications that print lots of contents to the terminal prevent the user to send signals (CTRL-C to stop the application from printing to the terminal). You only regain control after the terminal renders everything that is being printed.
|
Area-Performance,Issue-Bug,Product-Terminal,Priority-2
|
medium
|
Critical
|
627,465,462 |
rust
|
Suboptimal debug codegen for integer division with a constant rhs
|
Codegen for division in general needs to generate code to panic if the division will panic (e.g. divide by zero or integer overflow). In the case of constants, however, it looks like rustc *almost* optimizes debug codegen but not quite. For example this code:
```rust
#[no_mangle]
pub extern fn foo(a: i32) -> i32 {
a / 256
}
```
[generates this IR](https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=754a67acfbac34f972423f4b28fa4da2) in debug mode:
```llvm
define i32 @foo(i32 %a) unnamed_addr #0 !dbg !6 {
start:
%a.dbg.spill = alloca i32, align 4
store i32 %a, i32* %a.dbg.spill, align 4
call void @llvm.dbg.declare(metadata i32* %a.dbg.spill, metadata !12, metadata !DIExpression()), !dbg !13
%_4 = icmp eq i32 %a, -2147483648, !dbg !14
%_5 = and i1 false, %_4, !dbg !14
%0 = call i1 @llvm.expect.i1(i1 %_5, i1 false), !dbg !14
br i1 %0, label %panic, label %bb1, !dbg !14
bb1: ; preds = %start
%1 = sdiv i32 %a, 256, !dbg !14
ret i32 %1, !dbg !15
panic: ; preds = %start
; call core::panicking::panic
call void @_ZN4core9panicking5panic17h8a9eda1e10298363E([0 x i8]* noalias nonnull readonly align 1 bitcast ([31 x i8]* @str.0 to [0 x i8]*), i64 31, %"core::panic::Location"* noalias readonly align 8 dereferenceable(24) bitcast (<{ i8*, [16 x i8] }>* @anon.670bbfb7b436af44f45c978390c94a0e.1 to %"core::panic::Location"*)), !dbg !14
unreachable, !dbg !14
}
```
It looks like rustc is "smart enough" to generate `%_5 = and i1 false, %_4, !dbg !14` to realize the rhs is not negative one and it's not zero, but it's not quite smart enough to know that `false && x` is always `false`, so it still generates a branch to panic.
<!-- TRIAGEBOT_START -->
<!-- TRIAGEBOT_ASSIGN_START -->
<!-- TRIAGEBOT_ASSIGN_DATA_START$${"user":"saethlin"}$$TRIAGEBOT_ASSIGN_DATA_END -->
<!-- TRIAGEBOT_ASSIGN_END -->
<!-- TRIAGEBOT_END -->
|
C-enhancement,A-codegen,T-compiler,A-mir-opt
|
low
|
Critical
|
627,482,001 |
PowerToys
|
[Image Resizer] Option to Flip images horizontally and vertically
|
Idea-Enhancement,Product-Image Resizer
|
low
|
Minor
|
|
627,498,854 |
godot
|
Editor destroys scene or sometimes crashes through cyclic reference
|
**Godot version:**
3.2.1.stable.mono.official
**Issue description:**
The editor in some cases crashes trying to serialize cyclic references when saving a scene that contains itself or produces invalid scene files.
For existing scenes that are being dragged into itself the editor already prevents it, but not for this case.
**Steps to reproduce:**
Create a scene and save it (S1). Create a new scene (S2), drag the previously saved scene (S1) into it and save it as the first one (S1).
It often actually saves without crashing, but produces a corrupt/invalid file that cannot be opened again.
Video with simple steps to reproduce:
https://streamable.com/brcyr9
|
bug,topic:editor,crash
|
low
|
Critical
|
627,510,295 |
pytorch
|
Current implementation of c10::complex does not support being used in shared memory
|
Open an issue here in case this task is forgotten.
We are unable to declare a `c10::complex` array for shared memory in a CUDA kernel. The initialization of `c10::complex` needs to be changed to fix it.
Note:
```C++
struct A {
int a = 0;
A() = default;
};
__global__ void f(A *p) {
__shared__ A s[5]; // error: error: initializer not allowed for __shared__ variable
s[0] = *p;
}
```
and
```C++
struct A {
int a;
A(): a(0){};
};
__global__ void f(A *p) {
__shared__ A s[5]; // this works!
s[0] = *p;
}
```
See discussion here: https://github.com/pytorch/pytorch/pull/39063#discussion_r431928098
cc @ezyang @anjali411 @dylanbespalko
|
triaged,module: complex
|
low
|
Critical
|
627,523,227 |
TypeScript
|
Intellisense concatenates field description from subtypes
|
<!-- 🚨 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.9.2.
<!-- Search terms you tried before logging this (so others can find this issue more easily) -->
**Search Terms:** intellisense concat concatenation
**Code**
```ts
import React from 'react';
type Base<T> = {
/**
* Original description
*/
b: T;
}
type BaseClone<T> = {
/**
* Clone description
*/
b: T;
}
type Combined = Base<boolean> & BaseClone<boolean>;
const Component: React.FC<Combined> = (props: Combined) => <div></div>;
<Component b />;
```

**Expected behavior:** Not sure, to be honest.
**Actual behavior:** Intellisense for `b` on `Component` is the concatenation of the two types: `Original description Clone description`.
**Playground Link:** [Playground](https://www.typescriptlang.org/play/?jsx=1&ssl=1&ssc=1&pln=22&pc=17#code/JYWwDg9gTgLgBAJQKYEMDG8BmUIjgcilQ3wG4AocmATzCTgCEUBnJAHgBUA+OAXjgDe5OCLgB6AFQThouBLgB5KMADmwAHYoANnAAmSZmmVgYwCOpmiJYy3ABGALjgcKAXyq16TVgGEt59m4+QVtJaVk5OD8AvQMjYBMzCwjrW0dnN0oaOijcOw0kXWDvdjsICC1UdR4AMkYWJGj1UvLKlGqKcjRzZngfXEhm9RgnZHQYADoAMR82fpB85t0efgAKMBwwZid5xcKASj4eNl1gADcuNjFTi87KOYGA4ftxLlIgA)
This doesn't seem like a huge bug, but I just wanted to flag it in case there's behavior that makes more sense here.
|
Bug,Domain: Quick Info
|
low
|
Critical
|
627,530,323 |
TypeScript
|
Intellisense does not appear in JSX attributes for union types
|
<!--
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:** Nightly
<!-- Search terms you tried before logging this (so others can find this issue more easily) -->
**Search Terms:** intellisense jsx union
**Code**
```ts
import React from 'react';
type Exclusive = {
/**
* Original description
*/
a: boolean;
b?: never;
} | {
/**
* Never description
*/
a?: never;
b: boolean;
}
const Component: React.FC<Exclusive> = () => <div></div>;
Component({
a: true
});
<Component a />;
```
**Expected behavior:** The field description for `a` shows up in intellisense.
**Actual behavior:** It does not.
Object literal at a normal function call looks good:

However, the description does not show up for JSX:

When writing using autocomplete to enter a new field:


Interestingly, JSX works in this case.
**Playground Link:** [link](https://www.typescriptlang.org/play/?jsx=1&ts=4.0.0-dev.20200528#code/JYWwDg9gTgLgBAJQKYEMDG8BmUIjgcilQ3wG4AocmATzCTgFEAPNAGwFcBnYAN3oF44Ab3JwxcAPQAqKaPFwpcAPJRgAc2AA7FKzgATJJzSqwMYBE1zxUiVbgoAXHABGECK1SaK85wH4nmkh8UBQAvnAAPsJ20rLyCnAAckFIUPqGxsCm5pbxNnYo-nCBwd7izk6u7p5hlGgWnPAAwriQgZowTsjoMAB0AGJNADzMbFy8SAB8cIIAFGA4YJxOoxzcfACUM9NDeryTQxJ7PJMUlC3gFkgdsyLyjnAwUOxI5KEbFEMXbdfwKJKnIA)
**Related Issues:**
* https://github.com/microsoft/TypeScript/issues/27211
* https://github.com/microsoft/TypeScript/issues/38848
|
Bug,Domain: Quick Info
|
low
|
Minor
|
627,530,503 |
electron
|
Standardize About window across platforms
|
<!-- As an open source project with a dedicated but small maintainer team, it can sometimes take a long time for issues to be addressed so please be patient and we will get back to you as soon as we can.
-->
### Preflight Checklist
<!-- Please ensure you've completed the following steps by replacing [ ] with [x]-->
* [x] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/master/CONTRIBUTING.md) for this project.
* [x] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md) that this project adheres to.
* [x] I have searched the issue tracker for a feature request that matches the one I want to file, without success.
### Problem Description
There is different default behaviour for About window across platforms: macOS, Windows, Linux.
### Proposed Solution
Similar default behaviour of About window without setting `app.setAboutPanelOptions`.
```
app.showAboutPanel();
```
* Open about window by click on menu item with role `about`:
* ✅ macOS: default behaviour
* ❌ Windows: pending https://github.com/electron/electron/issues/23681
* ❌ Linux: pending: https://github.com/electron/electron/issues/23681
* Call app.showAboutPanel without setting `app.setAboutPanelOptions`:
* ✅ macOS: works as expected
* ❌ Windows: opens windows without icon
* ❌ Linux: does nothing https://github.com/electron/electron/issues/23847
* `applicationName` of `setAboutPanelOptions`:
* ✅ macOS: `productName`
* ✅ Windows: `productName`
* ❌ Linux: `name`
* `applicationVersion` of `setAboutPanelOptions`:
* ✅ macOS: `version`
* ✅ Windows: `version`
* ❌ Linux: nothing
* `iconPath` of `setAboutPanelOptions`:
* ❌ Windows: icon format and image size should be documented https://github.com/electron/electron/issues/23833
* ❌ Linux: icon format and image size should be documented.
### Additional Information
Related issues:
* https://github.com/electron/electron/issues/18918
* https://github.com/electron/electron/issues/23847
* https://github.com/electron/electron/issues/23833
* https://github.com/electron/electron/issues/22456
|
enhancement :sparkles:,platform/windows
|
low
|
Minor
|
627,535,688 |
youtube-dl
|
request option '--playlist-elapsed-max'
|
## Checklist
- [x] I'm reporting a feature request
- [x] I've verified that I'm running youtube-dl version **2020.05.29**
- [x] I've searched the bugtracker for similar feature requests including closed ones
## Description
Requesting a new command line switch which specifies the ***maximum elapsed time*** allowed for downloading, ***per channel or playlist***. Any item that starts downloading before the time expires is allowed to complete, even if doing so exceeds the allocated time. This entails that a minimum of 1 video per channel/playlist will always be downloaded.
## Details
The proposed option sets a limit on the maximum elapsed time allowed, per channel or playlist, for downloading.
- A new timer starts for each playlist (or channel) when its first item begins downloading.
- Any video that starts downloading is allowed to complete.
- Before downloading each/any additional item(s) in the playlist, the timer is checked. If the allocated time has been exceeded, then download of this playlist is discontinued, and possibly continues by proceeding to the next playlist (if any).
- A suggested name and usage for the command line option could specify the desired time in seconds, such as, _i.e._, to allow a total of 3 minutes of downloading per channel or playlist:
--playlist-elapsed-max 180
|
request
|
low
|
Critical
|
627,540,491 |
flutter
|
Android PlatformView created from View of an existing Fragment does not work correctly
|
<!-- 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
-->
Android PlatformView created from View of an existing Fragment does not work correctly
## Steps to Reproduce
<!-- You must include full steps to reproduce so that we can reproduce the problem. -->
1. Running the following app:
https://github.com/PDFTron/pdftron-flutter/tree/platform-widget4/example
**Expected results:** <!-- what did you want to see? -->
Works as if running in Android native
**Actual results:** <!-- what did you see? -->
1. In the app, the overflow popup in the toolbar menu does not open, seems like any popup window cannot be opened
2. All text became white and background specified as ?android:attr/colorBackground in the original Android package became black, changing the activity theme does not help
3. None of the text input field works

<!--
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.
-->
```
```
<!--
Run `flutter analyze` and attach any output of that command below.
If there are any analysis errors, try resolving them before filing this issue.
-->
```
```
<!-- Finally, paste the output of running `flutter doctor -v` here. -->
```
```
|
c: new feature,platform-android,engine,a: platform-views,e: OS-version specific,P3,team-android,triaged-android
|
low
|
Critical
|
627,544,450 |
flutter
|
[l10n] Localization class is not generated when used in a package
|
## Steps to Reproduce
When using l10n in a project with app(s) and multiple packages, it seems that it only works (generates the localization class) if the template arb and `l10n.yaml` are located in the app.
Our project has the following structure:
```
apps/
|
--- app1
--- app2
packages
|
--- package1
--- package2
--- package3
```
Some of these packages are actually features that can be used by any of the apps and hence, have their own set of localizations. As an experiment I tried running app1 and placed the arb template and `l10n.yaml` in package2, but nothing was generated, nor did I get any exception.
In the same project, if I move the files mentioned above to app1, and run it, then the localization class is generated.
It would be great if this use case is supported since there many people using similar approach (mono repo projects).
<details>
<summary>Logs</summary>
```
% flutter doctor -v
[✓] Flutter (Channel master, 1.19.0-2.0.pre.197, on Mac OS X 10.15.4 19E287, locale en-NL)
• Flutter version 1.19.0-2.0.pre.197 at /Users/user/IdeaProjects/hue_blue/dev/flutter
• Framework revision d9144bf8fc (2 hours ago), 2020-05-29 11:55:02 -0700
• Engine revision c19459ab7d
• Dart version 2.9.0 (build 2.9.0-11.0.dev 6489a0c68d)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.0-rc3)
• Android SDK at /Users/user/Library/Android/sdk/
• Platform android-R, build-tools 29.0.0-rc3
• ANDROID_HOME = /Users/user/Library/Android/sdk/
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 11.5)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.5, Build version 11E608c
• CocoaPods version 1.8.4
[✓] Android Studio (version 3.5)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 38.2.3
• Dart plugin version 191.8423
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
[✓] IntelliJ IDEA Community Edition (version 2020.1)
• IntelliJ at /Applications/IntelliJ IDEA CE.app
• Flutter plugin version 45.1.3
• Dart plugin version 201.7223.43
[✓] Connected device (1 available)
• macOS • macOS • darwin-x64 • Mac OS X 10.15.4 19E287
• No issues found!
```
</details>
|
tool,a: internationalization,c: proposal,P3,team-tool,triaged-tool
|
low
|
Minor
|
627,556,245 |
PowerToys
|
Blur background while alt+tabbing
|
Just that
|
Idea-New PowerToy
|
low
|
Minor
|
627,556,786 |
flutter
|
Switching from master -> stable with startup lock, shlock: unlink(flutter/bin/cache/.upgrade_lock): Operation not permitted
|
On `master` [d9144bf]
```
$ flutter doctor
Waiting for another flutter command to release the startup lock...
```
Because the `flutter/bin/cache/.upgrade_lock` directory exists.
When I check out `stable` [5f21edf8b ] and run `flutter doctor` I get:
```
$ flutter doctor
shlock: unlink(/Users/magder/Projects/flutter/bin/cache/.upgrade_lock): Operation not permitted
shlock: unlink(/Users/magder/Projects/flutter/bin/cache/.upgrade_lock): Operation not permitted
```
forever spew.
|
tool,P2,team-tool,triaged-tool
|
low
|
Minor
|
627,557,629 |
node
|
OutgoingMessage should set writable false
|
In #33131 we aligned `OutgoingMessage` to properly set the `destroyed` property. We should do the same for `writable` in order to properly align with streams.
|
http,stream
|
low
|
Minor
|
627,569,146 |
rust
|
narrowing_rem, narrowing_and
|
To remove some unsafe "as" casts and keep the code safe (lossless) and nice, sometimes I'd like to use a rem+cast. So what do you think about adding this to the stdlib?
```rust
trait NarrowRem<Out> {
fn narrowing_rem(&self, den: Out) -> Out;
}
impl NarrowRem<u8> for u16 {
fn narrowing_rem(&self, den: u8) -> u8 { (*self % u16::from(den)) as u8 }
}
impl NarrowRem<u8> for u32 {
fn narrowing_rem(&self, den: u8) -> u8 { (*self % u32::from(den)) as u8 }
}
impl NarrowRem<u16> for u32 {
fn narrowing_rem(&self, den: u16) -> u16 { (*self % u32::from(den)) as u16 }
}
impl NarrowRem<u8> for u64 {
fn narrowing_rem(&self, den: u8) -> u8 { (*self % u64::from(den)) as u8 }
}
impl NarrowRem<u16> for u64 {
fn narrowing_rem(&self, den: u16) -> u16 { (*self % u64::from(den)) as u16 }
}
impl NarrowRem<u32> for u64 {
fn narrowing_rem(&self, den: u32) -> u32 { (*self % u64::from(den)) as u32 }
}
impl NarrowRem<u8> for u128 {
fn narrowing_rem(&self, den: u8) -> u8 { (*self % u128::from(den)) as u8 }
}
impl NarrowRem<u16> for u128 {
fn narrowing_rem(&self, den: u16) -> u16 { (*self % u128::from(den)) as u16 }
}
impl NarrowRem<u32> for u128 {
fn narrowing_rem(&self, den: u32) -> u32 { (*self % u128::from(den)) as u32 }
}
impl NarrowRem<u64> for u128 {
fn narrowing_rem(&self, den: u64) -> u64 { (*self % u128::from(den)) as u64 }
}
impl NarrowRem<i8> for i16 {
fn narrowing_rem(&self, den: i8) -> i8 { (*self % i16::from(den)) as i8 }
}
impl NarrowRem<i8> for i32 {
fn narrowing_rem(&self, den: i8) -> i8 { (*self % i32::from(den)) as i8 }
}
impl NarrowRem<i16> for i32 {
fn narrowing_rem(&self, den: i16) -> i16 { (*self % i32::from(den)) as i16 }
}
impl NarrowRem<i8> for i64 {
fn narrowing_rem(&self, den: i8) -> i8 { (*self % i64::from(den)) as i8 }
}
impl NarrowRem<i16> for i64 {
fn narrowing_rem(&self, den: i16) -> i16 { (*self % i64::from(den)) as i16 }
}
impl NarrowRem<i32> for i64 {
fn narrowing_rem(&self, den: i32) -> i32 { (*self % i64::from(den)) as i32 }
}
impl NarrowRem<i8> for i128 {
fn narrowing_rem(&self, den: i8) -> i8 { (*self % i128::from(den)) as i8 }
}
impl NarrowRem<i16> for i128 {
fn narrowing_rem(&self, den: i16) -> i16 { (*self % i128::from(den)) as i16 }
}
impl NarrowRem<i32> for i128 {
fn narrowing_rem(&self, den: i32) -> i32 { (*self % i128::from(den)) as i32 }
}
impl NarrowRem<i64> for i128 {
fn narrowing_rem(&self, den: i64) -> i64 { (*self % i128::from(den)) as i64 }
}
impl NarrowRem<u8> for usize {
fn narrowing_rem(&self, den: u8) -> u8 { (*self % usize::from(den)) as u8 }
}
impl NarrowRem<u16> for usize {
fn narrowing_rem(&self, den: u16) -> u16 { (*self % usize::from(den)) as u16 }
}
impl NarrowRem<i8> for isize {
fn narrowing_rem(&self, den: i8) -> i8 { (*self % isize::from(den)) as i8 }
}
impl NarrowRem<i16> for isize {
fn narrowing_rem(&self, den: i16) -> i16 { (*self % isize::from(den)) as i16 }
}
```
An example usage:
```rust
fn main() {
let _x: u8 = 152_u64.narrowing_rem(51_u8);
}
```
D language performs this lossless cast operation automatically and transparently (while it doesn't perform lossy casts silently):
```
uint foo(in ulong x) { // Error: cannot implicitly convert
return x;
}
uint bar(in ulong x) { // OK
return x % 1000;
}
void main() {}
```
|
T-libs-api,C-feature-request
|
medium
|
Critical
|
627,576,871 |
youtube-dl
|
HTTP Error 401 when downloading playlist from ufcfightpass.com
|
<!--
######################################################################
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.05.29. If it's not, see https://yt-dl.org/update on how to update. Issues with outdated version will be REJECTED.
- Make sure that all provided video/audio/playlist URLs (if any) are alive and playable in a browser.
- Make sure that all URLs and arguments with special characters are properly quoted or escaped as explained in http://yt-dl.org/escape.
- Search the bugtracker for similar issues: 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 broken site support
- [x] I've verified that I'm running youtube-dl version **2020.05.29**
- [x] I've checked that all provided URLs are alive and playable in a browser
- [x] I've checked that all URLs and arguments with special characters are properly quoted or escaped
- [x] I've searched the bugtracker for similar issues including closed ones
## Verbose log
<!--
Provide the complete verbose output of youtube-dl that clearly demonstrates the problem.
Add the `-v` flag to your command line you run youtube-dl with (`youtube-dl -v <your command line>`), copy the WHOLE output and insert it below. It should look similar to this:
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-v', u'http://www.youtube.com/watch?v=BaW_jenozKcj']
[debug] Encodings: locale cp1251, fs mbcs, out cp866, pref cp1251
[debug] youtube-dl version 2020.05.29
[debug] Python version 2.7.11 - Windows-2003Server-5.2.3790-SP2
[debug] exe versions: ffmpeg N-75573-g1d0487f, ffprobe N-75573-g1d0487f, rtmpdump 2.4
[debug] Proxy map: {}
<more lines>
-->
```
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', '--write-sub', '--playlist-reverse', '-f', 'bestvideo[height<=?1300][container=mp4_dash]+bestaudio/best[height<=?1300]', '--fragment-retries=infinite', '--username', 'PRIVATE', '--password', 'PRIVATE', 'https://ufcfightpass.com/playlist/1861']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2020.05.29
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.18362
[debug] exe versions: ffmpeg 4.2.2, ffprobe 4.2.2
[debug] Proxy map: {}
[UFCTV] Logging in
[UFCTV] 1861: Downloading JSON metadata
[download] Downloading playlist: UFC 2005 REPLAYS
[UFCTV] playlist UFC 2005 REPLAYS: Collected 10 video ids (downloading 10 of them)
[download] Downloading video 1 of 10
[UFCTV] 32534: Downloading JSON metadata
[UFCTV] 32534: Downloading JSON metadata
[UFCTV] 32534: Downloading m3u8 information
[UFCTV] 32534: Downloading MPD manifest
[download] UFC 51 - Super Saturday-32534.mp4 has already been downloaded and merged
[download] Downloading video 2 of 10
[UFCTV] 31561: Downloading JSON metadata
[UFCTV] 31561: Downloading JSON metadata
[UFCTV] 31561: Downloading m3u8 information
[UFCTV] 31561: Downloading MPD manifest
[download] TUF 1 Finale - TUF 1 Finale-31561.mp4 has already been downloaded and merged
[download] Downloading video 3 of 10
[UFCTV] 30494: Downloading JSON metadata
[UFCTV] 30494: Downloading JSON metadata
[UFCTV] 30494: Downloading m3u8 information
[UFCTV] 30494: Downloading MPD manifest
[download] UFC 52 - Couture vs Liddell 2-30494.mp4 has already been downloaded and merged
[download] Downloading video 4 of 10
[UFCTV] 30482: Downloading JSON metadata
[UFCTV] 30482: Downloading JSON metadata
[UFCTV] 30482: Downloading m3u8 information
[UFCTV] 30482: Downloading MPD manifest
[debug] Invoking downloader on 'https://dve-streams.akamaized.net/MjAxOQ/Mw/M_TQ/NzE_0NzM/REFTSA/MQ/master.mpd?hdnea=exp=1590785870~acl=/MjAxOQ/Mw/M_TQ/NzE_0NzM/REFTSA/MQ/*~id=39ceb221-d55a-422e-aa34-cdaa59d51bb1~hmac=ad1e3ed84e6c09803dce4dc14f7b09dc9784b3d5c9df31d63a62a01e719bbe55'
[dashsegments] Total fragments: 1155
[download] Destination: UFC 53 - Heavy Hitters-30482.fdash-6.mp4
[download] 100% of 2.42GiB in 42:44
[debug] Invoking downloader on 'https://dve-streams.akamaized.net/MjAxOQ/Mw/M_TQ/NzE_0NzM/REFTSA/MQ/master.mpd?hdnea=exp=1590785870~acl=/MjAxOQ/Mw/M_TQ/NzE_0NzM/REFTSA/MQ/*~id=39ceb221-d55a-422e-aa34-cdaa59d51bb1~hmac=ad1e3ed84e6c09803dce4dc14f7b09dc9784b3d5c9df31d63a62a01e719bbe55'
[dashsegments] Total fragments: 1155
[download] Destination: UFC 53 - Heavy Hitters-30482.fdash-5.m4a
[download] 100% of 108.15MiB in 10:54
[ffmpeg] Merging formats into "UFC 53 - Heavy Hitters-30482.mp4"
[debug] ffmpeg command line: ffmpeg -y -loglevel "repeat+info" -i "file:UFC 53 - Heavy Hitters-30482.fdash-6.mp4" -i "file:UFC 53 - Heavy Hitters-30482.fdash-5.m4a" -c copy -map "0:v:0" -map "1:a:0" "file:UFC 53 - Heavy Hitters-30482.temp.mp4"
Deleting original file UFC 53 - Heavy Hitters-30482.fdash-6.mp4 (pass -k to keep)
Deleting original file UFC 53 - Heavy Hitters-30482.fdash-5.m4a (pass -k to keep)
[download] Downloading video 5 of 10
[UFCTV] 31195: Downloading JSON metadata
ERROR: Unable to download JSON metadata: HTTP Error 401: Unauthorized (caused by HTTPError()); 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 call youtube-dl with the --verbose flag and include its complete output.
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpxtvjzx45\build\youtube_dl\extractor\common.py", line 627, in _request_webpage
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpxtvjzx45\build\youtube_dl\YoutubeDL.py", line 2238, in urlopen
File "C:\Python\Python34\lib\urllib\request.py", line 470, in open
File "C:\Python\Python34\lib\urllib\request.py", line 580, in http_response
File "C:\Python\Python34\lib\urllib\request.py", line 508, in error
File "C:\Python\Python34\lib\urllib\request.py", line 442, in _call_chain
File "C:\Python\Python34\lib\urllib\request.py", line 588, in http_error_default
```
## Description
<!--
Provide an explanation of your issue in an arbitrary form. Provide any additional information, suggested solution and as much context and examples as possible.
If work on your issue requires account credentials please provide them or explain how one can obtain them.
-->
Fails with an HTTP Error 401 when trying to download a playlist, but it only happens after yt-dl finished downloading the previous video on the list.
Notice in the above log there's no problem going through the previously-downloaded videos (1st-3rd out of 10), there's no problem downloading a video which wasn't previously downloaded (4th), the error only comes up with the next one (5th).
Restarting yt-dl with the exact same command will do the same thing - it'll go through the list, skip the now-downloaded video (4th), download the one which yt-dl failed at (5th), and fail with the next one (6th out of 10).
Starting yt-dl with each specific video url instead of playlist url won't have this issue whether running in series or in parallel.
Happens from both ends of the list, as in with and without --playlist-reverse.
I suspect maybe the authentication gets dropped once yt-dl finishes downloading a video for some reason, and yt-dl would have to re-authenticate after every downloaded video in a list?
Edit: Forgot to provide example url:
https://ufcfightpass.com/playlist/1861
It happens with every playlist I tried there.
|
account-needed
|
low
|
Critical
|
627,590,321 |
pytorch
|
Differentiable Optimizers
|
## 🚀 Feature
Let's design below what an API for differential optimizers would look like. The goal is to facilitate the implementation of differential optimizer for libraries such as [higher](https://github.com/facebookresearch/higher/) (e.g. [section 4](https://arxiv.org/pdf/1910.01727.pdf))
Related discussions in #12659 and #32005, and [Internal document](https://fb.quip.com/7fsdAavbPGJ0)
cc @albanD @mruberry @vincentqb @egrefen
|
feature,module: nn,module: optimizer,triaged
|
low
|
Major
|
627,590,526 |
pytorch
|
Let future.wait() take in an optional timeout
|
## 🚀 Feature
When debugging RPC-related messages under faulty scenarions, we can sometimes end up calling `future->wait()` on a future that will never be set, resulting in hard to debug issues. Allowing `wait()` to take in an optional timeout and use that in the condvar wait could be useful to ease the debugging in this situation.
## Motivation
I came across this in a call to `OwnerRRef::localValue()`, where we do a wait on the future corresponding to the RRef's value. In this case, when an `rpc.remote()` is sent to self and dropped by the network, we would wait forever on this future.
## Pitch
An optional timeout parameter that we can pass into `future.wait()`, and we change the `finished_cv.wait()` to `finished_cv.wait_for` or `wait_until`.
cc @pietern @mrshenli @pritamdamania87 @zhaojuanmao @satgera @gqchen @aazzolini @rohan-varma @xush6528 @jjlilley @osalpekar
|
triaged,enhancement,module: rpc
|
low
|
Critical
|
627,635,532 |
pytorch
|
Tensorboard,graph in pytorch 1.4 is more complicated than pytorch 1.1?
|
Hi, I encountered some difficulties while using tensorboard.
case 1 and case 2 use the same pytorch code to plot graph.
**case 1: pytorch 1.1, tensorboard 1.15, the graph is very intuitive.
case 2: pytorch 1.4, tensorboard 1.15,but the graph is very very complicated and difficult to understand. I want to know why? and how to get the intuitive graph like that in case 1?**
Thank you.
case 1 graph:

case 2 graph:

code to plot graph:
```
from torch import nn
import torch.utils.model_zoo as model_zoo
from collections import OrderedDict
import math
__all__ = ['MobileNetV2']
model_urls = {
'mobilenet_v2': 'https://download.pytorch.org/models/mobilenet_v2-b0353104.pth',
}
def _make_divisible(v, divisor, min_value=None):
"""
This function is taken from the original tf repo.
It ensures that all layers have a channel number that is divisible by 8
It can be seen here:
https://github.com/tensorflow/models/blob/master/research/slim/nets/mobilenet/mobilenet.py
:param v:
:param divisor:
:param min_value:
:return:
"""
if min_value is None:
min_value = divisor
new_v = max(min_value, int(v + divisor / 2) // divisor * divisor)
# Make sure that round down does not go down by more than 10%.
if new_v < 0.9 * v:
new_v += divisor
return new_v
class ConvBNReLU(nn.Sequential):
def __init__(self, in_planes, out_planes, kernel_size=3, stride=1, groups=1):
padding = (kernel_size - 1) // 2
super(ConvBNReLU, self).__init__(
nn.Conv2d(in_planes, out_planes, kernel_size, stride, padding, groups=groups, bias=False),
nn.BatchNorm2d(out_planes),
nn.ReLU6(inplace=True)
)
class InvertedResidual(nn.Module):
def __init__(self, inp, oup, stride, expand_ratio):
super(InvertedResidual, self).__init__()
self.stride = stride
assert stride in [1, 2]
hidden_dim = int(round(inp * expand_ratio))
self.use_res_connect = self.stride == 1 and inp == oup
layers = []
if expand_ratio != 1:
# pw
layers.append(ConvBNReLU(inp, hidden_dim, kernel_size=1))
layers.extend([
# dw
ConvBNReLU(hidden_dim, hidden_dim, stride=stride, groups=hidden_dim),
# pw-linear
nn.Conv2d(hidden_dim, oup, 1, 1, 0, bias=False),
nn.BatchNorm2d(oup),
])
self.conv = nn.Sequential(*layers)
def forward(self, x):
if self.use_res_connect:
return x + self.conv(x)
else:
return self.conv(x)
class MobileNetV2(nn.Module):
def __init__(self,width_mult=1.0,round_nearest=8,):
super(MobileNetV2, self).__init__()
block = InvertedResidual
input_channel = 32
inverted_residual_setting = [
# t, c, n, s
[1, 16, 1, 1], # 0
[6, 24, 2, 2], # 1
[6, 32, 3, 2], # 2
[6, 64, 4, 2], # 3
[6, 96, 3, 1], # 4
[6, 160, 3, 2],# 5
[6, 320, 1, 1],# 6
]
self.feat_id = [1,2,4,6]
self.feat_channel = []
# only check the first element, assuming user knows t,c,n,s are required
if len(inverted_residual_setting) == 0 or len(inverted_residual_setting[0]) != 4:
raise ValueError("inverted_residual_setting should be non-empty "
"or a 4-element list, got {}".format(inverted_residual_setting))
# building first layer
input_channel = _make_divisible(input_channel * width_mult, round_nearest)
features = [ConvBNReLU(3, input_channel, stride=2)]
# building inverted residual blocks
for id,(t, c, n, s) in enumerate(inverted_residual_setting):
output_channel = _make_divisible(c * width_mult, round_nearest)
for i in range(n):
stride = s if i == 0 else 1
features.append(block(input_channel, output_channel, stride, expand_ratio=t))
input_channel = output_channel
if id in self.feat_id :
self.__setattr__("feature_%d"%id,nn.Sequential(*features))
self.feat_channel.append(output_channel)
features = []
# weight initialization
for m in self.modules():
if isinstance(m, nn.Conv2d):
nn.init.kaiming_normal_(m.weight, mode='fan_out')
if m.bias is not None:
nn.init.zeros_(m.bias)
elif isinstance(m, nn.BatchNorm2d):
nn.init.ones_(m.weight)
nn.init.zeros_(m.bias)
def forward(self, x):
y = []
for id in self.feat_id:
x = self.__getattr__("feature_%d"%id)(x)
y.append(x)
return y
def load_model(model,state_dict):
new_model=model.state_dict()
new_keys = list(new_model.keys())
old_keys = list(state_dict.keys())
restore_dict = OrderedDict()
for id in range(len(new_keys)):
restore_dict[new_keys[id]] = state_dict[old_keys[id]]
model.load_state_dict(restore_dict)
def fill_up_weights(up):
w = up.weight.data
f = math.ceil(w.size(2) / 2)
c = (2 * f - 1 - f % 2) / (2. * f)
for i in range(w.size(2)):
for j in range(w.size(3)):
w[0, 0, i, j] = \
(1 - math.fabs(i / f - c)) * (1 - math.fabs(j / f - c))
for c in range(1, w.size(0)):
w[c, 0, :, :] = w[0, 0, :, :]
def fill_fc_weights(layers):
for m in layers.modules():
if isinstance(m, nn.Conv2d):
nn.init.normal_(m.weight, std=0.001)
if m.bias is not None:
nn.init.constant_(m.bias, 0)
class IDAUp(nn.Module):
def __init__(self, out_dim, channel):
super(IDAUp, self).__init__()
self.out_dim = out_dim
self.up = nn.Sequential(
nn.ConvTranspose2d(
out_dim, out_dim, kernel_size=2, stride=2, padding=0,
output_padding=0, groups=out_dim, bias=False),
nn.BatchNorm2d(out_dim,eps=0.001,momentum=0.1),
nn.ReLU())
self.conv = nn.Sequential(
nn.Conv2d(channel, out_dim,
kernel_size=1, stride=1, bias=False),
nn.BatchNorm2d(out_dim,eps=0.001,momentum=0.1),
nn.ReLU(inplace=True))
def forward(self, layers):
layers = list(layers)
x = self.up(layers[0])
y = self.conv(layers[1])
out = x + y
return out
class MobileNetUp(nn.Module):
def __init__(self, channels, out_dim = 24):
super(MobileNetUp, self).__init__()
channels = channels[::-1]
self.conv = nn.Sequential(
nn.Conv2d(channels[0], out_dim,
kernel_size=1, stride=1, bias=False),
nn.BatchNorm2d(out_dim,eps=0.001,momentum=0.1),
nn.ReLU(inplace=True))
self.conv_last = nn.Sequential(
nn.Conv2d(out_dim,out_dim,
kernel_size=3, stride=1, padding=1 ,bias=False),
nn.BatchNorm2d(out_dim,eps=1e-5,momentum=0.01),
nn.ReLU(inplace=True))
for i,channel in enumerate(channels[1:]):
setattr(self,'up_%d'%(i),IDAUp(out_dim,channel))
for m in self.modules():
if isinstance(m, nn.Conv2d):
nn.init.kaiming_normal_(m.weight, mode='fan_out')
if m.bias is not None:
nn.init.constant_(m.bias, 0)
elif isinstance(m, nn.BatchNorm2d):
nn.init.constant_(m.weight, 1)
nn.init.constant_(m.bias, 0)
elif isinstance(m,nn.ConvTranspose2d):
fill_up_weights(m)
def forward(self, layers):
layers = list(layers)
assert len(layers) > 1
x = self.conv(layers[-1])
for i in range(0,len(layers)-1):
up = getattr(self, 'up_{}'.format(i))
x = up([x,layers[len(layers)-2-i]])
x = self.conv_last(x)
return x
class MobileNetSeg(nn.Module):
def __init__(self, base_name,heads,head_conv=24, pretrained = True):
super(MobileNetSeg, self).__init__()
self.heads = heads
self.onnx_mode = True
self.base = globals()[base_name](pretrained=pretrained)
channels = self.base.feat_channel
self.dla_up = MobileNetUp(channels, out_dim=head_conv)
for head in self.heads:
classes = self.heads[head]
fc =nn.Conv2d(head_conv, classes,
kernel_size=1, stride=1,
padding=0, bias=True)
if 'hm' in head:
fc.bias.data.fill_(-2.19)
else:
nn.init.normal_(fc.weight, std=0.001)
nn.init.constant_(fc.bias, 0)
self.__setattr__(head, fc)
def forward(self, x):
x = self.base(x)
x = self.dla_up(x)
if self.onnx_mode:
res = []
for head in self.heads:
res.append(self.__getattr__(head)(x))
return tuple(res)
else:
ret = {}
for head in self.heads:
ret[head] = self.__getattr__(head)(x)
return [ret]
def mobilenetv2_10(pretrained=True, **kwargs):
model = MobileNetV2(width_mult=1.0)
if pretrained:
print('load pretrained model from https://download.pytorch.org/models/mobilenet_v2-b0353104.pth')
state_dict = model_zoo.load_url(model_urls['mobilenet_v2'],
progress=True)
load_model(model,state_dict)
print('Done')
return model
def mobilenetv2_5(pretrained=False, **kwargs):
model = MobileNetV2(width_mult=0.5)
if pretrained:
print('This version does not have pretrain weights.')
return model
# num_layers : [10 , 5]
def get_mobile_net(num_layers, heads, head_conv=24):
model = MobileNetSeg('mobilenetv2_{}'.format(num_layers), heads,
pretrained=True,
head_conv=head_conv)
return model
if __name__ == '__main__':
import torch
from torch.utils.tensorboard import SummaryWriter
writer = SummaryWriter()
input = torch.zeros([1,3,512,512])
model = get_mobile_net(10,{'hm':20,'reg':2,'wh':2},head_conv=24)
writer.add_graph(model,input)
writer.close()
```
|
module: tensorboard,oncall: visualization
|
low
|
Critical
|
627,657,864 |
PowerToys
|
Option to Automatically Resize File Explorer Preview Relative to Window Size
|
With my file explorer window maximized, I like to have a larger preview pane size so I can see more of my selected file's content. There is plenty of "extra space" not occupied by my folder content details, so I typically increase the preview pane size to see more my selected file's content. However, if I shrink the window size, so I'm no longer maximized, the preview pane will remain the same pixel size, which ends up covering a lot of the content details, forcing me to manually resize the pane to correct this.
My suggestion is to automatically resize the preview pane relative to the window size. It could be a feature that users enable/disable in settings.
Users with higher display resolutions will probably appreciate this feature the most (which is most of us these days)...
|
Idea-New PowerToy
|
low
|
Major
|
627,663,418 |
pytorch
|
Caffe 2 android app not working with proguard and minifyEnabled
|
## 🐛 Bug
I used this app
https://github.com/bwasti/AICamera
It ran fine when i used it without using proguard and minifyEnabled true
debug {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
After doing this it started crashing.
Edit 1:
I also noticed that the app is crashing when i changed the Build Variant from GUI it started crashing.
But when I enabled proguard directly using build.gradle file without touching build variant gui it was working fine.


|
caffe2
|
low
|
Critical
|
627,664,877 |
godot
|
Animation_begin emitter not working as expected
|
<!-- Please search existing issues for potential duplicates before filing yours:
https://github.com/godotengine/godot/issues?q=is%3Aissue
-->
**Godot version:**
<!-- Specify commit hash if using non-official build. -->
3.2.1 stable
**OS/device including version:**
<!-- Specify GPU model, drivers, and the backend (GLES2, GLES3, Vulkan) if graphics-related. -->
Windows10
**Issue description:**
<!-- What happened, and what was expected. -->
I am trying to use Animation player to go from 2 - 2.5 then -.5 to 0 using animation player and it keeps inserting a frame where it has a value of .5.
I could forgive the behavior of this if I was changing the value when the animation_finished signal emitted out of my "begin" animation (which I tried there is an alternate script you can attach to the tracker object using this method) but I am changing it at the beginning of the "end" animation. This behavior is not what I want and I don't know how to get my desired effect.
**Steps to reproduce:**
just hit play. You'll see it appear at .5 and you'll be able to read it on the print out as well.
**Minimal reproduction project:**
<!-- A small Godot project which reproduces the issue. Drag and drop a zip archive to upload it. -->
[wrap problem.zip](https://github.com/godotengine/godot/files/4705192/wrap.problem.zip)
|
discussion,topic:core,documentation
|
low
|
Minor
|
627,666,577 |
flutter
|
Warn about a non existing Class in AndroidManifest.xml application element
|
<!-- 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
If you set up a Class name that does not exists in the android:name attribute of the application element, flutter Apps builds successfull, but they just deliver a white screen for part of a second and crashes.
<!-- You must include full steps to reproduce so that we can reproduce the problem. -->
Change the application element of AndroidManifest.xml like this:

flutter run -v
**Expected results:** <!-- what did you want to see? -->
A warning or error message in the log output.
**Actual results:** <!-- what did you see? -->
Output stops at
`[ +1 ms] Waiting for observatory port to be available...`
## Background Facts
Some member of our Project Team changed this by mistake following some guide. The App didn't crashed while using Hot Reload, he finished his feature, created a PR and moved on creating a new feature while creating a new feature branch based on our master.
We missed this change while reviewing his PR and merged a few finished features together. Afterwards we spend hours of debugging to find this issue.
As far as i understood there are legal cases where someone changes this value, but if the Class mentioned there is not found, flutter should drop at least a warning.
I described this behaviour in #57966, where i am sure that OP suffers from the same error.
We are some kind of new to flutter, but we really love the environment. If someone heads me into the right direction and gives me some hints, i would love to give it a try and implement a warning.
If i can provide any more informations, just ping me and i will deliver
|
platform-android,tool,a: quality,P2,team-android,triaged-android
|
low
|
Critical
|
627,687,078 |
rust
|
Refactor improper_ctypes to separate "UCG questions" from linting decisions
|
(Elaborating on https://github.com/rust-lang/rust/issues/66220#issuecomment-557537105)
I think that the current state of `improper_ctypes` is difficult to maintain and extend -- especially once we add [more lints that are similar but distinct](https://github.com/rust-lang/rust/pull/72700) -- because it's a big pile of mud that interleaving several different concerns: UCG-ish questions about ABI and layout guarantees, plus value judgements about how these interact with "proper" FFI, plus diagnostics code and suggestions. I imagine (but have not worked out the details) that we could improve this by separating this code into two "layers":
- A module (some queries?) answering clean-cut spec questions such as: does this type have a defined memory layout? Defined ABI? If not, why not? etc.
- Several lints that use the facts from that module as basis for emitting warnings, depending on what the lint is targeted at.
I think such an organization would make it clearer what are the language-level guarantees are (including making it easier to audit and evolve) vs what's just a choice or limitation of some lint. More importantly, it would also enable us to implement (without lots of duplication and without making the visitor even more of a big ball of mud) a broader variety of lints that need similar information. For example:
- linting transmutes of types with unspecified layout (#51294, https://github.com/rust-lang/rust/issues/50842)
- separate lints for "ABI is FFI-safe" vs "C code could actually work with this type" independent of `extern` *imports* vs *definitions*
- lints for type punning via unions ~~(the `const` alternative to `transmute`)~~
- a more opinionated version of `improper_ctypes` that e.g. prohibits references (due to their aliasing implications which are rarely appropriate in FFI)
|
C-enhancement,A-lints,A-FFI,T-compiler,L-improper_ctypes
|
low
|
Minor
|
627,705,808 |
youtube-dl
|
Generic format names for Odnoklassniki don't work
|
- [x] I'm reporting a broken site support
- [x] I've verified that I'm running youtube-dl version **2020.05.29**
- [x] I've checked that all provided URLs are alive and playable in a browser
- [x] I've checked that all URLs and arguments with special characters are properly quoted or escaped
- [x] I've searched the bugtracker for similar issues including closed ones
## Verbose log
youtube-dl https://ok.ru/video/311973053873 -f mobile -v
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'https://ok.ru/video/311973053873', u'-f', u'mobile', u'-v']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2020.05.29
[debug] Python version 2.7.17 (CPython) - Linux-4.15.0-101-generic-x86_64-with-Ubuntu-18.04-bionic
[debug] exe versions: ffmpeg 3.4.6, ffprobe 3.4.6, phantomjs 2.1.1, rtmpdump 2.4
[debug] Proxy map: {}
[Odnoklassniki] 311973053873: Downloading webpage
[Odnoklassniki] 311973053873: Downloading m3u8 information
[debug] Invoking downloader on u'https://vd79.mycdn.me/?expires=1590921576014&srcIp=41.188.101.22&srcAg=CHROME&ms=185.16.245.75&type=4&sig=kUP9wv8VS0A&ct=0&urls=5.61.21.100&clientType=0&id=319081876145'
ERROR: unable to download video data: HTTP Error 400: Bad Request
Traceback (most recent call last):
File "/home/miikku/bin/youtube-dl-new/youtube_dl/YoutubeDL.py", line 1926, in process_info
success = dl(filename, info_dict)
File "/home/miikku/bin/youtube-dl-new/youtube_dl/YoutubeDL.py", line 1865, in dl
return fd.download(name, info)
File "/home/miikku/bin/youtube-dl-new/youtube_dl/downloader/common.py", line 366, in download
return self.real_download(filename, info_dict)
File "/home/miikku/bin/youtube-dl-new/youtube_dl/downloader/http.py", line 341, in real_download
establish_connection()
File "/home/miikku/bin/youtube-dl-new/youtube_dl/downloader/http.py", line 109, in establish_connection
ctx.data = self.ydl.urlopen(request)
File "/home/miikku/bin/youtube-dl-new/youtube_dl/YoutubeDL.py", line 2238, in urlopen
return self._opener.open(req, timeout=self._socket_timeout)
File "/usr/lib/python2.7/urllib2.py", line 435, in open
response = meth(req, response)
File "/usr/lib/python2.7/urllib2.py", line 548, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.7/urllib2.py", line 473, in error
return self._call_chain(*args)
File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 556, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 400: Bad Request
## Description
For each video, Odnoklassniki lists several formats when you pass the -F argument, as follows:
[Odnoklassniki] 311973053873: Downloading webpage
[Odnoklassniki] 311973053873: Downloading m3u8 information
[info] Available formats for 311973053873:
format code extension resolution note
mobile mp4 unknown
mpd-1 mp4 256x144 DASH video 118k , mp4_dash container, avc1.42C01E, 25fps, mp4a.40.2 (857761146Hz)
hls-153 mp4 256x144 153k
lowest mp4 unknown
mpd-2 mp4 426x238 DASH video 307k , mp4_dash container, avc1.42C01E, 25fps, mp4a.40.2 (857761146Hz)
hls-358 mp4 426x238 358k
low mp4 unknown
mpd-3 mp4 640x360 DASH video 652k , mp4_dash container, avc1.64001E, 25fps, mp4a.40.2 (857761146Hz)
hls-731 mp4 640x360 731k
sd mp4 unknown
mpd-4 mp4 852x478 DASH video 729k , mp4_dash container, avc1.64001E, 25fps, mp4a.40.2 (857761146Hz)
hls-817 mp4 852x478 817k (best)
The numbering of the hls-* formats is different for each video, whereas the names of the mpd-* formats stay constant with up to 5 different levels. In addition, there are generic names "mobile, lowest, low, sd, hd" which are presumably supposed to be synonymous for one of the others. Downloading a video with a specified hls-* or mpd-* format works fine but the generic names produce a "HTTP 400 Bad request". This happens with all the videos I have tested recently, though I think earlier they used to work.
|
cant-reproduce
|
low
|
Critical
|
627,718,915 |
PowerToys
|
FancyZone Can't Tell Difference Between Chrome Shortcuts
|
I use multiple Chrome Shortcuts configured to Open as a Window. This results in multiple Chrome windows that are used for a specific site/purpose. Gmail, Messages, IRC, Photos, etc. FancyZones isn't able to distinguish between those windows and drops them all into the same zone.
Example of how to create the shortcut: https://brianhaines.com/2019/06/23/google-chrome-add-application-shortcut/
|
Idea-Enhancement,Product-FancyZones
|
low
|
Minor
|
627,737,185 |
excalidraw
|
add test helpers for element manipulation
|
Current issues for clicking (but applies in general):
1. clicking elements is currently too low-level (`mouse.down(coords); mouse.up(coords)`)
2. More importantly, it's not obvious such action actually clicked on the element because it may be covered by a menu. In that case, the test may not be written in a way that would discover that (e.g. testing whether an already selected element was selected by the click won't help). We should maybe set up hooks in the application that will help us in this.
|
test
|
low
|
Minor
|
627,738,853 |
excalidraw
|
write more regression tests
|
There's still many parts of the application we have zero tests for. Please add anything to the list below that comes to mind.
- [ ] updating scene properties
- [ ] element property updating (via menu)
- [ ] contextMenu
- [ ] dialogs
- [x] comprehensive history tests
- [ ] collaborative mode
|
test
|
low
|
Minor
|
627,739,778 |
excalidraw
|
fix test cases leaks/race conditions
|
I'm not quite sure what's going on, but several times I've written a test case, it behaves differently when running it in isolation (`it.only`) as opposed to running all tests in file (`regressionTests.test.tsx`).
I'm not talking about snapshots. When the test was run in isolation, all passed, but when run with other tests, some DOM events started failing (or vice versa). 100% reproducible.
Will update this issue when I have time to investigate.
|
bug,test
|
low
|
Minor
|
627,742,781 |
rust
|
"Unnecessary" braces have an influence
|
On `1.45.0-nightly (2020-05-29 4bd32c98047a809ba5fd)`
```rust
fn f() -> usize {
{1usize} - 1usize
}
```
Intuitively, I would expect these braces to be redundant **and also have no influence**, but they do. The compiler expects a `()` type and then considers the minus sign a unary operator.
```
warning: unnecessary braces around block return value
--> src/lib.rs:6:5
|
6 | {1usize} - 1usize
| ^^^^^^^^ help: remove these braces
|
= note: `#[warn(unused_braces)]` on by default
error[E0308]: mismatched types
--> src/lib.rs:6:6
|
6 | {1usize} - 1usize
| ^^^^^^ expected `()`, found `usize`
error[E0600]: cannot apply unary operator `-` to type `usize`
--> src/lib.rs:6:14
|
6 | {1usize} - 1usize
| ^^^^^^^^ cannot apply unary operator `-`
|
= note: unsigned values cannot be negated
```
It seems to me that either the error message about the braces being redundant is incorrect or misleading, or something more nefarious seems to be going on with scopes, expressions, etc.
|
C-enhancement,A-diagnostics,T-compiler
|
low
|
Critical
|
627,769,623 |
material-ui
|
[Tabs] Improve tab panels mounting behavior
|
Based on #21241, we might have an opportunity to improve the `TabPanel` mounting behavior. We can potentially fix these problems:
- Lost states between different panels (by keeping the panels mounted)
- Improve the performance of panel transitions (by mounting the panels ahead of time)
- Improve the SEO support (by rendering all the panels' content)
I have used the following benchmark list https://trello.com/c/JM6Zh3YW/2642-tabs to look at what the others are doing
1. hidden prop with full rendering and no option to disable it https://github.com/reach/reach-ui/blob/115eb680bae13e7e097c9a6cd3047c06530ee880/packages/tabs/src/index.tsx#L643
- Reach UI
- Reakit
- Garden
- Chakra
- React Bootstrap
2. lazy render the content of the tab panels, keep them mounted when moving to a different tab
- Antd (plus a `forceRender` prop to render all the panels)
3. only render the active tab panel
- Base Web (plus a `renderAll` prop to render all the panels)
- Material-UI
- JetBrains
- Semantic UI
- AltasKit
- Polaris
4. render in two passes, first the active panel, then all the panels
- react-swipeable-views
In the future, React mentions maybe solving this in the framework: https://github.com/oliviertassinari/react-swipeable-views/issues/453#issuecomment-417939459, by providing better support for offscreen rendering.
What do you guys think about these different tradeoffs? It seems that we need, at least, a way to enable the mounting of all the panels.
|
new feature,component: tabs
|
high
|
Major
|
627,781,878 |
flutter
|
HttpException: Unexpected response (unsolicited response without request) - related to DNS Blocking software
|
Testing Flutter on Arch Linux this error happens every time a new application (generated by "flutter create") is executed for the second time, or after a second "hot reload".
The only "temporary fix" found is to delete the "~/.gradle" folder, but this cause a redownload of the gradle dist bundle at the next application run.
## command
flutter run -v
## exception
HttpException: HttpException: Unexpected response (unsolicited response without request).
```
#0 new _HttpClientConnection.<anonymous closure> (dart:_http/http_impl.dart:1704:9)
#1 _rootRunUnary (dart:async/zone.dart:1192:38)
#2 _CustomZone.runUnary (dart:async/zone.dart:1085:19)
#3 _CustomZone.runUnaryGuarded (dart:async/zone.dart:987:7)
#4 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:339:11)
#5 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:266:7)
#6 _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:779:19)
#7 _StreamController._add (dart:async/stream_controller.dart:655:7)
#8 _StreamController.add (dart:async/stream_controller.dart:597:5)
#9 _HttpParser._headersEnd (dart:_http/http_parser.dart:413:17)
#10 _HttpParser._doParse (dart:_http/http_parser.dart:739:15)
#11 _HttpParser._parse (dart:_http/http_parser.dart:328:7)
#12 _HttpParser._onData (dart:_http/http_parser.dart:850:5)
#13 _rootRunUnary (dart:async/zone.dart:1192:38)
#14 _CustomZone.runUnary (dart:async/zone.dart:1085:19)
#15 _CustomZone.runUnaryGuarded (dart:async/zone.dart:987:7)
#16 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:339:11)
#17 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:266:7)
#18 _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:779:19)
#19 _StreamController._add (dart:async/stream_controller.dart:655:7)
#20 _StreamController.add (dart:async/stream_controller.dart:597:5)
#21 _Socket._onData (dart:io-patch/socket_patch.dart:1982:41)
#22 _rootRunUnary (dart:async/zone.dart:1192:38)
#23 _CustomZone.runUnary (dart:async/zone.dart:1085:19)
#24 _CustomZone.runUnaryGuarded (dart:async/zone.dart:987:7)
#25 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:339:11)
#26 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:266:7)
#27 _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:779:19)
#28 _StreamController._add (dart:async/stream_controller.dart:655:7)
#29 _StreamController.add (dart:async/stream_controller.dart:597:5)
#30 _RawSecureSocket._sendReadEvent (dart:io/secure_socket.dart:1018:19)
#31 _rootRun (dart:async/zone.dart:1180:38)
#32 _CustomZone.run (dart:async/zone.dart:1077:19)
#33 _CustomZone.runGuarded (dart:async/zone.dart:979:7)
#34 _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1019:23)
#35 _rootRun (dart:async/zone.dart:1184:13)
#36 _CustomZone.run (dart:async/zone.dart:1077:19)
#37 _CustomZone.bindCallback.<anonymous closure> (dart:async/zone.dart:1003:23)
#38 Timer._createTimer.<anonymous closure> (dart:async-patch/timer_patch.dart:23:15)
#39 _Timer._runTimers (dart:isolate-patch/timer_impl.dart:398:19)
#40 _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:429:5)
#41 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168:12)
```
## flutter doctor
```
[✓] Flutter (Channel stable, v1.17.2, on Linux, locale en_US.UTF-8)
• Flutter version 1.17.2 at /home/alenofx/Applications/flutter
• Framework revision 5f21edf8b6 (2 days ago), 2020-05-28 12:44:12 -0700
• Engine revision b851c71829
• Dart version 2.8.3
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
• Android SDK at /home/alenofx/Android/Sdk
• Platform android-29, build-tools 29.0.3
• Java binary at: /home/alenofx/Applications/android-studio/jre/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
• All Android licenses accepted.
[✓] Android Studio (version 4.0)
• Android Studio at /home/alenofx/Applications/android-studio
• Flutter plugin version 46.0.2
• Dart plugin version 193.7361
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
[✓] Connected device (1 available)
• Android SDK built for x86 64 • emulator-5554 • android-x64 • Android 9 (API 28) (emulator)
• No issues found!
```
|
c: crash,tool,dependency: dart,P3,dependency: dart:io,team-tool,triaged-tool
|
low
|
Critical
|
627,782,579 |
PowerToys
|
New PowerToy: Alt + Tab menu customisations
|
# Summary of the new feature/enhancement
New Power Toy: Ability to control the size of the Alt+Tab menu and disable previews
It would be helpful if we could control the size of the Alt+Tab menu (having it not correspond with the screen resolution) and disable the previews as a method of saving space, much like how it was done on Windows 7 when Classic Windows Shell was enabled, instead of Win 7 Basic or Win 7 Aero Glass.
This would impact the user in a positive way because it would allow for the user to have a cleaner representation of their open applications, when using the Alt + Tab menu.
# Proposed technical implementation details (optional)
User to have a configuration menu allowing them to make the following changes to the Alt + Tab menu:
- Ability to remove previews from each window, and see just a list of open Applications.
- Group applications by their application name
- Ability to rearrange the applications in the Alt+Tab menu.
|
Idea-New PowerToy,Product-Tweak UI Design,Product-Virtual Desktop
|
low
|
Minor
|
627,783,267 |
flutter
|
When CupertinoPageScaffold is placed inside CupertinoTabScaffold, their resizeToAvoidBottomInset attributes stack and cause visual bugs with the navigation bar when the onscreen keyboard is present
|
When `CupertinoPageScaffold` is placed inside `CupertinoTabScaffold`, their `resizeToAvoidBottomInset` attributes stack and cause visual bugs with the navigation bar when the onscreen keyboard is present.
~~The workaround is setting the `resizeToAvoidBottomInset` of the `CupertinoPageScaffold` or `CupertinoTabScaffold` (whichever makes more sense) to false, but I wish Flutter could handle this automatically.~~ (This causes other visual bugs.)
Seems to be related to #28213.
Here's a gif to illustrate the problem:
1. When `Navigator.push()`-ing, the custom back button on the second page is mispositioned during the animation, it goes back to its normal position after the animation is complete.
2. When `Navigator.pop()`-ing, the navigation bar on the first page (colored in red) does not appear until the animation is complete.

Note that the bug doesn't happen if you don't use the onscreen keyboard (press ⌘K to dismiss the onscreen keyboard):

<details>
<summary>Minimal runnable reproduction as lib/main.dart</summary>
```
import 'package:flutter/cupertino.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return CupertinoApp(
title: 'TestApp',
home: HomePage()
);
}
}
class HomePage extends StatefulWidget {
@override
_HomePageState createState() => _HomePageState();
}
class _HomePageState extends State<HomePage> {
@override
Widget build(BuildContext context) {
return CupertinoTabScaffold(
tabBar: CupertinoTabBar(
items: [
BottomNavigationBarItem(icon: Container(), title: Text('Tab 1')),
BottomNavigationBarItem(icon: Container(), title: Text('Tab 2'))
]
),
tabBuilder: (context, index) {
return CupertinoTabView(
builder: (context) => FirstPage()
);
}
);
}
}
class FirstPage extends StatefulWidget {
@override
_FirstPageState createState() => _FirstPageState();
}
class _FirstPageState extends State<FirstPage> {
@override
Widget build(BuildContext context) {
return CupertinoPageScaffold(
navigationBar: CupertinoNavigationBar(
backgroundColor: Color.fromRGBO(255, 160, 160, 1),
middle: Text('First Page')
),
child: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
CupertinoTextField(autofocus: true),
CupertinoButton.filled(
child: Text('Go to Second Page'),
onPressed: () {
Navigator.of(context).push(CupertinoPageRoute(
builder: (context) => SecondPage()
));
}
)
]
)
);
}
}
class SecondPage extends StatefulWidget {
@override
_SecondPageState createState() => _SecondPageState();
}
class _SecondPageState extends State<SecondPage> {
@override
Widget build(BuildContext context) {
return CupertinoPageScaffold(
navigationBar: CupertinoNavigationBar(
backgroundColor: Color.fromRGBO(255, 255, 160, 1),
leading: CupertinoButton(
padding: EdgeInsets.zero,
child: Text('Custom Button'),
onPressed: () { Navigator.of(context).pop(); }
),
middle: Text('Second Page')
),
child: Container()
);
}
}
```
</details>
<details>
<summary>Output of running flutter doctor -v</summary>
```
[✓] Flutter (Channel beta, 1.18.0-11.1.pre, on Mac OS X 10.15.5 19F96, locale en-US)
• Flutter version 1.18.0-11.1.pre at /usr/local/flutter
• Framework revision 2738a1148b (2 weeks ago), 2020-05-13 15:24:36 -0700
• Engine revision ef9215ceb2
• Dart version 2.9.0 (build 2.9.0-8.2.beta)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
• Android SDK at /Users/zhenyi/Library/Android/sdk
• Platform android-28, build-tools 28.0.3
• Java binary at: /Users/zhenyi/Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 11.5)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.5, Build version 11E608c
• CocoaPods version 1.9.1
[✓] Android Studio (version 3.6)
• Android Studio at /Users/zhenyi/Applications/Android Studio.app/Contents
• Flutter plugin version 45.1.1
• Dart plugin version 192.8052
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)
[✓] VS Code (version 1.45.1)
• VS Code at /Users/zhenyi/Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.10.2
[!] Connected device
! No devices available
! Doctor found issues in 1 category.
```
</details>
|
platform-ios,framework,f: cupertino,has reproducible steps,P2,found in release: 3.3,found in release: 3.6,team-ios,triaged-ios
|
low
|
Critical
|
627,806,241 |
PowerToys
|
Preview of HTML file that includes pictures
|
# Environment
```
Windows build number: Microsoft Windows [Version 10.0.19041.264]
PowerToys version: v0.18.1
PowerToy module for which you are reporting the bug (if applicable): File Explorer Preview
```
# Steps to reproduce
1. Create image foo.png (I used MSPaint and screenshot)
2. Create html file: ```<html><body><img src="foo.png"/></body></html>```
3. Select file in Windows Explorer > preview page shows error icon
# Expected behavior
Not show this broken icon.
## Ultimate experience
See screenshots bellow.
The preview pane offers a user selectable, multiple viewing mode, easy to switch ex: tab, buttons
- Source view: shows the raw html content, no formatting
- Markup view: shows the html in markup, auto-formatted with indent and color, etc. (like browser's code behind view)
- Render view: render the html



## Good
Show the html with preview
## Acceptable
Show the html in markup, auto-formatted with indent and color, etc. (like browser's code behind view)
## Options:
I guess there are different "levels" of security with respect to html based on its content.
- javascript location:
- no javascript
- inline-markup javascript: (<script />)
- relative javascript file <script src="./" />
- external javascript <script src="http://" />
- what the javascript code is doing
- not referencing external content
- referencing relative content (./)
- referencing external resources (http://)
- css location:
- no css
- inline-markup css <style />
- relative css file <link href="./" />
- external css <link href="http://" />
- css and location of resources: (images)
- no external
- relative resources: ,/
- external resources: http://
The Preview Pane should choose to display or not the preview based on the different levels of security.
1. html no javascript, no external. This the safest and should be rendered.
2. html, everything is relative (./): Quite safe, and should be rendered
3. html with external content. (http;//). Ask the user: do you trust this html. if the answer is yes, render html. if not, render the markup.
# Actual behavior
The preview pane shows a [x] icon with tooltip: "Some pictures have been blocked to help prevent the sender from identifying your computer. Open this item to view the pictures."
# Screenshots
Problem reported

|
Idea-Enhancement,Product-File Explorer
|
low
|
Critical
|
627,822,321 |
terminal
|
Avoid closing window when close last tab.
|
<!--
🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨
I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING:
1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement.
2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement.
3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number).
4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement.
5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement.
All good? Then proceed!
-->
# Description of the new feature/enhancement
Avoid closing window when close last tab.
<!--
A clear and concise description of what the problem is that the new feature would solve.
Describe why and how a user would use this new functionality (if applicable).
-->
# Proposed technical implementation details (optional)
Keep terminal window when 0 tabs exist, not be concern about the last tab how to be closed.
Features/News/Terminal list, are good contents in the empty window view.
Like Firefox/Chrome/ConEmu which is popular tab manager does.
<!--
A clear and concise description of what you want to happen.
-->
|
Issue-Feature,Area-UserInterface,Product-Terminal
|
medium
|
Critical
|
627,845,798 |
pytorch
|
Compilation errors
|
Hello,
i am building Pytorch on Ubuntu 18.04 for the Titan- Black Card (Compute-Capability = 3.5).
I get the following error while compiling:
/home/csverma/Disk/Software/MLearn/Pytorch/pytorch/bld/lib/libtorch_cpu.so: undefined reference to `dnnl::impl::bfloat16_t::operator float() const'
/home/csverma/Disk/Software/MLearn/Pytorch/pytorch/bld/lib/libtorch_cpu.so: undefined reference to `dnnl::impl::cpu::simple_barrier::generate(dnnl::impl::cpu::jit_generator&, Xbyak::Reg64, Xbyak::Reg64)'
/home/csverma/Disk/Software/MLearn/Pytorch/pytorch/bld/lib/libtorch_cpu.so: undefined reference to `dnnl::impl::bfloat16_t::operator=(float)'
/home/csverma/Disk/Software/MLearn/Pytorch/pytorch/bld/lib/libtorch_cpu.so: undefined reference to `dnnl::impl::cpu::simple_barrier::barrier(dnnl::impl::cpu::simple_barrier::ctx_t*, int)'
/home/csverma/Disk/Software/MLearn/Pytorch/pytorch/bld/lib/libtorch_cpu.so: undefined reference to `dnnl::impl::add_floats_and_cvt_to_bfloat16(dnnl::impl::bfloat16_t*, float const*, float const*, unsigned long)'
/home/csverma/Disk/Software/MLearn/Pytorch/pytorch/bld/lib/libtorch_cpu.so: undefined reference to `dnnl::impl::cvt_bfloat16_to_float(float*, dnnl::impl::bfloat16_t const*, unsigned long)'
/home/csverma/Disk/Software/MLearn/Pytorch/pytorch/bld/lib/libtorch_cpu.so: undefined reference to `dnnl::impl::cvt_float_to_bfloat16(dnnl::impl::bfloat16_t*, float const*, unsigned long)'
collect2: error: ld returned 1 exit status
caffe2/lib_c10d/example/CMakeFiles/allreduce.dir/build.make:126: recipe for target 'bin/allreduce' failed
make[2]: *** [bin/allreduce] Error 1
CMakeFiles/Makefile2:5469: recipe for target 'caffe2/lib_c10d/example/CMakeFiles/allreduce.dir/all' failed
make[1]: *** [caffe2/lib_c10d/example/CMakeFiles/allreduce.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2
Any help?
cc @malfet @gujinghui @PenghuiCheng @XiaobingSuper @jianyuh @VitalyFedyunin
|
module: build,triaged,module: mkldnn
|
low
|
Critical
|
627,848,229 |
godot
|
Instance binding data on GDNativeLibrary objects never gets freed
|
Godot 3.2.2 beta3
Windows 10 64 bits
`Object` instances can hold GDNative instance binding data (for example, that data can correspond to class wrappers inside of NativeScript libraries). This data is normally freed in the destructor of `Object`... unless `ScriptServer::finish_languages();` is called before. In such case the data will leak.
Turns out that's the case I found.
In C++ bindings, we access our own `GDNativeLibrary` here: https://github.com/GodotNativeTools/godot-cpp/blob/e97e86648355cbe61c6249483c6f2a5d1b41714f/include/core/Godot.hpp#L43
This leads to instance binding data being attached (only the first time) to the object.
Unfortunately, it never gets freed, because on quit, things happen in this order:
- `ScriptServer::finish_languages();`
- Our GDNative library gets terminated
- Godot deletes the `GDNativeLibrary`
By extension, it also means if a library wants to hold a Godot object as internal singleton (like it happens sometimes in modules), the instance binding data of such objects will always leak, even if the object is freed in the terminate callback.
Eventually there should be an error printed when stuff like that happens, because currently it's completely silent and I had to investigate for a while.
In the C++ bindings we might be able to workaround this by avoiding the use of instance binding data (so, using the C API directly without any helper). Wether this should be allowed or not I don't know, but it looks like a bug from Godot.
|
bug,topic:gdextension
|
low
|
Critical
|
627,857,279 |
flutter
|
Compiler errors are really ugly
|
At some point in the last few months we ended up making compiler errors much more ugly:
```
$ flutter create dummy_compiler_error
...
$ cd dummy_compiler_error
$ sed -i '$d' lib/main.dart
$ flutter run
Launching lib/main.dart on Lenovo TB 8504F in debug mode...
Running Gradle task 'assembleDebug'...
Compiler message:
lib/main.dart:52:50: Error: Can't find '}' to match '{'.
class _MyHomePageState extends State<MyHomePage> {
^
Compiler message:
lib/main.dart:52:50: Error: Can't find '}' to match '{'.
class _MyHomePageState extends State<MyHomePage> {
^
Target kernel_snapshot failed: Exception: Errors during snapshot creation: null
build failed.
FAILURE: Build failed with an exception.
* Where:
Script '/home/ianh/dev/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 896
* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command '/home/ianh/dev/flutter/bin/flutter'' finished with non-zero exit value 1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 7s
Running Gradle task 'assembleDebug'... 8.4s
Exception: Gradle task assembleDebug failed with exit code 1
```
The very first error message happens very quickly. We should abort there. Instead we seem to try to compile again, and then try to do something else in gradle, not sure what.
cc @jonahwilliams
|
tool,t: gradle,a: quality,P2,team-tool,triaged-tool
|
low
|
Critical
|
627,867,529 |
rust
|
stdio handles (stdin, stdout, stderr) should be `Seek` at least on Unix
|
Currently, `std::io::Stdin` et al do not implement `Seek`.
It is true that a Unix program is not guaranteed that its stdin/stdout/stderr will be seekable. Often they won't be. But, they may be. If stdin is redirected from a file, for example, `lseek` (the system call) will work fine.
The `Seek` trait does not promise that `seek` actually works. `seek` returns `io::Result` (quite properly). Indeed a `std::io::File` object can easily refer to a non-seekable object, depending what path was passed.
Conversely, not implementing `Seek` makes it impossible to perform this operation in safe Rust. There are perhaps some workarounds like asking to open `/dev/stdin`, but they are non-portable and often quite horrible. Using `unsafe { libc::lseek(...) }` is quite straightforward (apart, perhaps, from a question about whether `lseek64` should be used instead) but we shouldn't expect our users to do that when we could have provided a safe way.
There are file data integrity and synchronisation issues with `Seek`. But these are not significantly worse for stdin/out/err than for `std::fs::File`. They are not a memory safety issue and we have already chosen to address this in the documentation rather than through the type system.
I come from a Unix background. I don't know what the situation is on Windows. But, the fact that in Standard C, it is legal to call `fseek` on `stdin` (for example) suggests that the correct answer for Rust is to permit the user to try to call `seek` on all platforms.
|
C-enhancement,T-libs-api
|
low
|
Major
|
627,871,085 |
deno
|
Caching and loading non-importable resources
|
## Problem
I often find myself needing to load non-JavaScript non-TypeScript assets, and various problems arise:
* Local module (in git repo) has to use `fs` but remote module has to use `fetch`.
* The assets cannot be cached.
* The assets cannot be bundled.
## Suggestion
Add some way to annotate assets using comments, and `fetch` should support those assets. For example:
```typescript
// @deno-asset './assets/foo.wasm'
// @deno-asset './assets/bar.png'
await fetch(new URL('./assets/foo.wasm', import.meta.url))
await fetch(new URL('./assets/bar.png', import.meta.url))
// --allow-net is not required since it reads from cache
```
## Alternatives
~~There is [asset reference proposal](https://github.com/tc39/proposal-asset-references) that is likely not going to get to stage 3 anytime soon.~~
[import assertion proposal](https://github.com/tc39/proposal-import-assertions) had reached stage 3.
Import types `text` and `bytes` are being discussed in https://github.com/whatwg/html/issues/9444
|
cli,suggestion
|
medium
|
Critical
|
627,929,627 |
youtube-dl
|
Possible to get the file paths of all files related to a video downloaded with youtube-dl
|
<!--
######################################################################
WARNING!
IGNORING THE FOLLOWING TEMPLATE WILL RESULT IN ISSUE CLOSED AS INCOMPLETE
######################################################################
-->
## Checklist
<!--
Carefully read and work through this check list in order to prevent the most common mistakes and misuse of youtube-dl:
- Look through the README (http://yt-dl.org/readme) and FAQ (http://yt-dl.org/faq) for similar questions
- Search the bugtracker for similar questions: http://yt-dl.org/search-issues
- Finally, put x into all relevant boxes (like this [x])
-->
- [ x] I'm asking a question
- [ x] I've looked through the README and FAQ for similar questions
- [ x] I've searched the bugtracker for similar questions including closed ones
## Question
<!--
Ask your question in an arbitrary form. Please make sure it's worded well enough to be understood, see https://github.com/ytdl-org/youtube-dl#is-the-description-of-the-issue-itself-sufficient.
-->
I'm writing a script that passes metadata and file locations for videos, thumbnails, subtitles, etc. downloaded by youtube-dl into a database. The script is run by the `--exec` option in youtube-dl and gets passed the name of the video downloaded as an argument. The video name is then used to find other files related to the video (for example, removing the video file extension and replacing it with `.info.json` to find the file created by `--write-info-json`).
However, I'm running into trouble when it comes to indexing thumbnails and subtitles. For example, thumbnails across many different extractors don't have predictable file extensions or names (if there are multiple thumbnails) making it difficult to identify which files are what type and go in what order.
In the case of my script I believe it may be possible to guess the thumbnail name with a high degree of accuracy (using information from `.info.json` check `"thumbnails"` for the thumbnail ext in the `"url"`, checking the `"url"` response header for ext, if there are more then one thumbnails add the `"id"` to the guessed file name, etc.) however this could be prone to sometimes being wrong and I hope there is a better way to do this.
I'm curious to see if there is another way of getting all of the files related to the video downloaded by youtube-dl and to tell what type of files they are (thumbnails, subtitles, metadata, etc.). I did not see a way to do this in the README or FAQ.
If there is no way of doing this a possible solution could be adding a parameter like `--write-files-list` which would write the all files downloaded by youtube-dl when downloading the video to `videoname.files.json`.
```json
"video": "path"
"thumbnails": [
"path",
"path"
]
"subtitles": [
...
```
|
question
|
low
|
Critical
|
627,938,024 |
TypeScript
|
Allow type-only named re-exports along with assigned export in the same file
|
## Search Terms
allow export types assigned =
## Suggestion
The suggestion is to allow compilation of files that do both `export =` and `export type {}`.
## Use Cases
For modules that target both TypeScript and CommonJS usage it would allow consolidating all exports for both module systems in one file (albeit with the requirement of `esModuleInterop` being `true`).
Currently, in order to do that I would have to utilize @ts-ignore (see parzh/xrange#69 for details).
## Examples
_/person.ts_:
```ts
import personValue from "./person-value";
export = personValue;
export type { default as PersonType } from "./person-type";
```
_/person-type.ts_:
```ts
export default interface Person { name: string; }
```
_/person-value.ts_:
```ts
export default { name: "John Doe" } as import("./person-type").default;
```
#### Usage:
_/usage.ts_:
```js
import personValue from "./person";
import personValue, { PersonType } from "./person";
import type { PersonType } from "./person";
import personValue = require("./person");
```
_/usage.js_:
```js
const personValue = require("./person");
```
## 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
|
Major
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.