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 |
---|---|---|---|---|---|---|
622,557,502 |
godot
|
Is a godot_uint (not) needed ?
|
PR #36163 has made `godot_int` an alias to `int64_t`, this pretty good for GDnative (before that calling methods returning uint64_t/int64_t could lead to segfault, see #34254)
However I wonder from a documentation point of view this is not perfect given the methods returning uint64_t are presented to GDnative users as returning `godot_int` (hence 64bits signed number)
I see currently three usecases for those signed values:
1) `uint64_t GDAPI godot_color_to_abgr64(const godot_color *p_self)` (see #35795)
2) `uint64_t OS::get_static_memory_usage() const;`
3) `uint64_t OS::get_unix_time () const` & `uint64_t OS::get_system_time_msecs()`
In case 1 here we return an array of 4 a/b/g/r bytes, so it's meaningless to use the return value as a number. Hence there is no trouble ;-)
In case 2&3 we are actually providing a number (and a negative value is meaningless in those contexts). However we will hit a trouble if the returned value is bigger than 2βΆΒ³ - 1.. which is really huge ! (`get_system_time_msecs` will start to have issue in year 29227899, `get_static_memory_usage` needs more than 8 Exaoctet of used RAM...)
So my guess is we don't need a `godot_uint` type (it would add complexity for a small documentation benefit), but I think it's good to have this choice documented (at least by this issue ^^).
|
discussion,topic:core
|
low
|
Minor
|
622,594,274 |
go
|
x/pkgsite: proposal for search filters: language features and possible compatibility issues
|
### What is the URL of the page with the issue?
https://pkg.go.dev/
Proposal(?) to add search filter functionality to include/exclude features when searching for packages, modules.
Usefulness in descending order (for me at least):
- cgo usage <-- this! ("cgo is not Go")
- package unsafe usage
- package reflect usage
- package sync/atomic.\*64\* usage (to detect possible 32/64bit compatibility issues, anything else to detect possible issues?)
- supported OS platforms (not sure how to check programmatically from source)
- anything else?
Most probably these are only really useful if search filters are applicable to all dependencies transitively as well (except for the standard library of course).
for reference:
https://groups.google.com/forum/#!topic/golang-dev/U27D-g9j0LA
|
NeedsInvestigation,FeatureRequest,pkgsite,pkgsite/search
|
medium
|
Major
|
622,599,575 |
godot
|
CameraServer.FeedImage: Duplicate values in Enumeration Values cause issues for language bindings like Swift and Rust
|
**Godot version:**
3.2
**OS/device including version:**
All
**Issue description:**
The enumeration for CameraServer.FeedImage has four values, three of them have the same value "0" so it is not possible to use those values:
"FEED_RGBA_IMAGE": 0,
"FEED_YCBCR_IMAGE": 0,
"FEED_Y_IMAGE": 0
|
bug,topic:core,topic:gdextension,topic:xr
|
low
|
Major
|
622,617,332 |
pytorch
|
Override `__call__` instead of `forward`
|
## π Feature
Let users override `__call__` of modules so that it works with type checking.
## Motivation
This is a [Module class](https://github.com/lab-ml/labml/blob/master/labml/helpers/pytorch/module.py) I've been using over `torch.nn.Module` so that I can override `__call__` instead of `forward`.
## Pitch
When writing modules we override `forward`, and invoke them through `__call__`. In this setup
we can neither use static analysis tools to find errors nor use editor features such as viewing method signatures.
## Additional context
Are there any side effects of using `__init_subclass__` to rename `__call__` implementations of subclasses to `forward`?.
cc @ezyang
|
module: typing,triaged
|
low
|
Critical
|
622,632,534 |
PowerToys
|
[PowerRename] Rename files based on external file list
|
# Summary of the new feature/enhancement
Import external file list of new names that will be used on the current queue.
<!--
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).
-->
Some people just want to rename with a specific list of custom names, not following the Power Rename configuration tool that consider only sequencial names and strings. for example: I have a list of files that I export from a web based application. I'd like to keep the original name or change the name to original date of file, so I export the names to an external file list.
# Proposed technical implementation details (optional)
Download files has a sequence to be list on file system. It depends of the timestamp applied when download was completed. When you load the files you want to PowerRename the list of files follow this rule. But to make it understandable to general users we need to adapt:
1. Be able to reorder the file list queue
2. Be able to reorder the new name file list
3. Be able to load an external file to make new name list column
4. Follow the system order list to make the origin file list (queue)
<!--
A clear and concise description of what you want to happen.
-->
Import external file list making possible customize the name of bulk rename process.
|
Idea-Enhancement,Help Wanted,Product-PowerRename
|
low
|
Major
|
622,632,548 |
bitcoin
|
Tor-only transaction broadcast onlynet=onion alternative
|
It would be nice if there was a way to tell core to only broadcast transactions over Tor, but use clearnet for everything else.
As far as I can tell the only way to guarantee transaction broadcast over Tor is to use onlynet=onion, which means that all network traffic goes over Tor. The problem is that this introduces latency for blocks/confirmations and transactions. Some users might only want to use Tor to try to protect "first broadcast" transaction origin analysis which can be a problem with sybil attacking clearnet nodes. This can still be a problem on Tor as well, but can be more difficult to pull off.
Some bitcoin software such as wasabi and joinmarket already implement this by establishing a new Tor circuit, broadcasting the transaction, and then disconnecting. Perhaps bitcoin could do this as well?
Some things that were brought up when I mentioned this on IRC by @naumenkogs, @luke-jr and others:
For the resistance to first-broadcast analysis to be effective, the node should treat the transaction as if it wasn't theirs to begin with. I'm not familiar with the network code, so I'm not sure if anything would have to change relay policy-wise.
Would be happy to hear other thoughts on what would be required to implement this, or if there's something I'm missing, as it's something I would be interested in implementing if there are enough concept acks.
TL;DR rationale:
- A nodes wants to recieve blocks/confirmations/transactions as soon as possible with the lowest latency
- A node wants increased broadcast privacy without paying the full cost of onlynet=tor latency
|
Feature
|
low
|
Major
|
622,671,471 |
vscode
|
Resize Pane actions for all panes
|

I just discovered these, why are they just for the terminal and not for the panel in general? They would be useful anywhere.
|
feature-request,accessibility,layout,workbench-views
|
low
|
Minor
|
622,690,806 |
create-react-app
|
Use react-scripts outside of a CRA project
|
### 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..."
-->
My team developer a couple of CRA applications from a Lerna monorepo. And to make life easier, we don't install Jest, Webpack, etc. so we don't upset `CRA` with having different versions or use the `SKIP_PREFLIGHT_CHECK` flag .
So for our non-CRA packages in the monorepo, we use run tests with `react-script test` in non-CRA packages.
The issue is that the function [verifyTypeScriptSetup.js](https://github.com/facebook/create-react-app/blob/30fc0bf5ed566d9b42194d56541d278013d7928c/packages/react-scripts/scripts/utils/verifyTypeScriptSetup.js) forces an override our `tsconfig.json`, and is invoked every time the test script is running [scripts/test.js#L31](https://github.com/facebook/create-react-app/blob/30fc0bf5ed566d9b42194d56541d278013d7928c/packages/react-scripts/scripts/test.js#L31). In our case, adding `"noEmit": true`.
### Describe the solution you'd like
<!--
Provide a clear and concise description of what you want to happen.
-->
Similar to `verifyPackageTree()`, have a environment variable to skip this step
```javascript
if (process.env.SKIP_TYPESCRIPT_SETUP_CHECK !== 'true') {
verifyTypeScriptSetup();
}
```
We need it for `react-scripts test`, but it is the same issue in all the other scripts
### Describe alternatives you've considered
<!--
Let us know about other solutions you've tried or researched.
-->
We currently have a `posttest` npm script invoking a node script to revert the change. Not scalable when we have N amount of new packages.
### Additional context
<!--
Is there anything else you can add about the proposal?
You might want to link to related issues here, if you haven't already.
-->
I will love get feedback on this and to add this piece of code!
Thank you CRA team for all your great work!
|
issue: proposal,needs triage
|
low
|
Minor
|
622,700,320 |
terminal
|
conhost: evaluate continued collection of connected process stats
|
Are we still using the list of connected processes and their VT statistics? If not, we can declutter our lives and remove a potential source of community consternation.
https://github.com/microsoft/terminal/blob/master/src/host/telemetry.cpp#L287
|
Product-Conhost,Issue-Task,Area-CodeHealth,Priority-2
|
low
|
Minor
|
622,716,359 |
flutter
|
hot_mode_dev_cycle__benchmark needs a more capable benchmark/regression tracking
|
The hot reload/restart cycle is critical to the Flutter developer workflow, but our benchmarks that measure it don't tell the whole story. Unfortunately, when one of these benchmarks regresses it is extremely difficult to pinpoint the cause via bisecting due to:
1. The benchmark performs a large number of operations, making the possible candidate range quite large. That is, it could be a change to the tool, to the framework, to the gallery, to skia, to Dart...
2. The benchmark has a high variance on the device lab machines. This may be due to fundamental hardware constraints inherent in our benchmark setup. This also makes it difficult to reproduce locally.
These both lead to:
3. bisecting will not yield clear candidates, since the tests _must_ be repeated n times to gain an accurate measurement of the mean. But the number of test runs needed depends on the variance of the benchmark itself.
Now, we cannot simply _give up_ on these benchmarks, or accept arbitrary regressions. But if we're having trouble pinpointing the regression clearly some work needs to be done. Based on my experience bisecting https://github.com/flutter/flutter/issues/57323 I believe the following needs to be done:
1. Create several smaller reference benchmarks for each large scale smoke test. In the case of hot reload/restart it would be something like measuring the execution time N times for:
* hot reload, no invalidation.
* hot reload, 1 invalidated file.
* hot restart
* runFromSource time (hot restart vm service request)
These numbers will provide guidance to the engineer bisecting. If the benchmark regresses and compile time does not, then we can rule out CFE/compiler changes. If runFromSource time regresses, it could be a VM issue. If none of them regress, it might be delay in render or it might be a hardware defect.
Most importantly, each of these operations is small enough that they could be run N times automatically, making the bisection process if they regress easier.
2. We need a framework for measuring the "Certainty" of our benchmark values that can allow us to auto-bisect.
Bisecting a change is fairly straightforward when its pass/fail. For benchmark regressions with variance it isn't so clear. While running each of the microbenchmarks above N times will help, in the case where the overall benchmark regresses we need tool assistance to find the culprit.
This could be done by evaluation of the hypothesis with N % (likely 95%) certainty, are the measurements at these two commits different. I'm not quite sure on the correct model here, we might need a non-parametric process but maybe something like a chi-squared test would be good enough.
|
c: new feature,team,tool,c: performance,P2,team-tool,triaged-tool
|
low
|
Major
|
622,732,436 |
terminal
|
Scenario: TerminalControl Interactivity Improvements
|
This is a comprehensive list of improvements to our interactivity model for v2. This is not finalized and may be updated as new issues come in or we make cuts for v2.
## (Hidden) Refactors
- [ ] #5099: mouse selection should begin/end at nearest cell boundary (and be inclusive start exclusive end like accessibility!)
- [x] #5814: Use `til::point`
- [x] #3538: GenRTF() and GenHTML() should use shared components
- [ ] #4423: Refactor Word Expansion (shared between accessibility/selection)
- [x] #6842: Interactivity layer
## Selection
### Features
- [x] #4557: Shift+Multi-Click selection expansion
- [ ] #3884: persistent selection on copy
- [ ] Word Selection Improvements
- [ ] #3077: Unicode character categories
- [ ] #3077: regex support
- [ ] #6178: double-click should line wrap if the word was broken across lines
- [ ] #4993: Scenario: Keyboard Selection
- refer to the GitHub issue above for more details
- [x] Copy Formatted Text
- #4191: add array support
- #5262: add keybinding arg
### Bugs
- [x] #5626: start selection from padding
- [x] #5766: Shift+Click initial click doesn't work
- [ ] #11751
## Touch Interactions
### Features
- [ ] #3149: Touch Zoom
- [ ] #3109: Inertial Scrolling
- [ ] #5159: Touch Selection
## Miscellaneous Major Features
- [ ] SnapOnOutput:
- [x] #980: pause scrolling when a selection exists
- [x] #3863: pause scrolling when not at bottom
- [ ] also add a keybinding for that (ScrollLock)
- [ ] #1553: Pointer Bindings
## Clipboard
- [ ] #6134 strip tabs when pasting, perhaps
|
Area-Input,Area-TerminalControl,Product-Terminal,Issue-Scenario
|
low
|
Critical
|
622,761,389 |
three.js
|
Gamepad Support
|
Is it possible to add Gamepad support for controllers.
It is well documented and I guess quite useful to get interaction for all buttons, touch pad, thumbstick on controllers.
https://immersive-web.github.io/webxr-gamepads-module/
PS: It looks like I don't have permission to add label Enhancement
|
Enhancement,Design
|
low
|
Minor
|
622,780,117 |
three.js
|
SkinnedMesh.clone doesn't work properly, results in undefined skeleton property
|
When cloning `SkinnedMesh`, the resulting `SkinnedMesh` instance doesn't have `skeleton` property defined.
I'm not sure if this is also a bug, but having a `SkinnedMesh` with undefined `skeleton` crashes the renderer with:
```
Uncaught TypeError: Cannot read property 'frame' of undefined
```
at
https://github.com/mrdoob/three.js/blob/f177bce88ea3ff48818a30ff09d871133fcd245b/src/renderers/WebGLRenderer.js#L1343
##### Example
https://jsfiddle.net/pwonz6gd/
##### Three.js version
- [x] dev
- [x] r115
##### Browser
- [x] All of them
##### OS
- [x] All of them
#### Solution?
EDIT: _(removed my horrible solution)_
As mentioned, one is supposed to use [SkeletonUtils.clone](https://threejs.org/docs/index.html#examples/en/utils/SkeletonUtils.clone). I'd still expect some kind of warning about this, instead of the whole renderer crashing.
|
Bug
|
low
|
Critical
|
622,780,333 |
deno
|
Installed scripts can't know their own name
|
There's no way for a `deno install`ed script to know its own name.
```
$ deno install -n cmdname https://url.to/script.ts
^^^^^^^
```
This has a significant impact on CLI modules, that may need it for various reasons such as showing help messages and usage examples, registering shell completions etc.
Are there any plans to introduce this functionality somehow?
|
cli,suggestion
|
low
|
Major
|
622,802,313 |
flutter
|
Remove all "await Future.delayed" logic from tests
|
Having a test just wait a few seconds is a race condition waiting to happen.
We should remove all occurrences of `Future<void>.delayed` in our tests.
For example:
https://github.com/flutter/flutter/blob/master/dev/integration_tests/ui/test_driver/keyboard_resize_test.dart#L36
|
a: tests,team,framework,P2,c: flake,team-framework,triaged-framework
|
low
|
Major
|
622,802,548 |
go
|
runtime: move tests for runtime-gdb.py to a separate package and do not run them during all.bash
|
The tests in `runtime-gdb_test.go`, for the GDB bindings in `runtime-gdb.py`, have historically been very flaky. They are currently skipped on a large fraction of platforms due to:
* #15603
* #17366
* #18784
* #20821
* #21380 / #22021 / #22687
* #22893
* #25939
* #28558
* #29508
* #35710
* and what appears to be an untracked issue for 'darwin': a skip was added in [CL 20193](https://golang.org/cl/20193), but neither the code itself nor any of the commentary I could find on the code review explains why `gdb` does or did not work on that platform.
If we had an incoming change to add a test with this many skips today, I suspect that we would turn it down: it tests what is supposed to be cross-platform code, but only checks the actual behavior of that code for a narrow subset of users β _because_ that behavior does not work reliably across platforms.
But it doesn't work reliably on the remaining tested platforms either: despite all of those skips, the tests are still flaky today:
* #24616
* Possibly fixed in [CL 233942](https://golang.org/cl/233942), which notes:
> This part of the test has been flaky despite repeated attempts to fix it,
> and it is unclear what exactly it is testing. Remove it.
* #25697
* #35743
* #37366
* #37405
* #37794
* #39021
* #39025
* #39228
* #43068
* #43825
* #48874
* #53431
* #58698
* #58932
* #61487
* #63728
* #64752
* #65176
#39021 in particular describes a regression during the 1.15 cycle that is interfering with the SlowBots and TryBots on pending CLs, will likely interfere with release testing as well, and so far has resisted attempts at bisection because the test (and its failure mode) is highly nondeterministic.
If we consider the runtime βincorrectβ if it does not work with `gdb`, then we should take the time to fix and maintain the Go bindings properly and portably β **not** just `Skip` their tests! β in the same way that we fix and maintain other features of the runtime across platforms. Otherwise, it is not appropriate to run the tests for those bindings as part of the tests for the `runtime` package, which is a dependency of most Go binaries (and is therefore likely to have its tests run in users' CI systems).
Most of the other Go project tests for integration with third-party tools are in the `misc` subdirectory. I propose that we move the `gdb` integration tests there.
I further propose that we should not run these tests as part of `all.bash`, `run.bash`, or on the Go project builders until such time as they can be made reliable, with only one `Skip` based on a check for a `gdb` executable at a sufficiently recent version.
|
Testing,NeedsDecision,Debugging,compiler/runtime
|
low
|
Critical
|
622,809,632 |
godot
|
Listener3D will override hearing location even if not current
|
**Godot version:**
3.2.1
**Issue description:**
So docs say that Listener
```
Once added to the scene tree and enabled using [method make_current], this node will override the location sounds are heard from.
```
However this is not true. You don't need to make it current, it will automatically become current if it's the first listener in the SceneTree.
Just check the code
https://github.com/godotengine/godot/blob/9239412027b6c25009efab69dc39650e0d76c56d/scene/3d/listener_3d.cpp#L82-L87
Either it should not behave like that or the documentation should be updated. Also this overrides Camera hearing even if it's added after it.
|
discussion,topic:core
|
low
|
Minor
|
622,815,705 |
PowerToys
|
[Run] Allow open of bitlocker encrypted drives like windows search does
|
On the windows search (start menu) I can enter the drive letter of an encrypted drive and after press enter I will be asked for the password.
In launcher this won't work.
Please add this functionality to launcher.
**Note:**
In start menu this command is marked as type "command".
|
Idea-Enhancement,Product-PowerToys Run
|
low
|
Minor
|
622,817,761 |
terminal
|
Add a explorer context menu entry to let the user pick the profile they want to "open here"
|
Follow up from #6100
We should add another entry to the explorer context menu to let the user select which profile.
This is the _only_ other option I'm considering at this time, I don't want to clutter that UI too badly.
#### notes:
* We could maybe allow arbitrary customization akin to what we're planning for #1571.
* #9749, #11348: people want to use `startupActions` in the specified directory
* #9991 maybe also relevant
|
Product-Terminal,Issue-Task,Area-ShellExtension
|
medium
|
Critical
|
622,819,110 |
terminal
|
The explorer context menu should only appear on shift+click
|
Follow-up from #6100.
The Explorer context menu is notoriously cluttered. We shouldn't add to that clutter if we can avoid it. This issue represents me taking the time to investigate how exactly to make the menu only appear on shift+right click, not _just_ right click.
|
Help Wanted,Product-Terminal,Issue-Task,Area-ShellExtension
|
low
|
Major
|
622,851,847 |
rust
|
Make core::panic::Location available from another module?
|
I scanned the history but didn't see this question mentioned. Has there been any discussion about moving the Location type out of the std::panic module, or even just re-exporting under a different name if it needs to stay there for backwards compatibility?
I'm really looking forward to track_caller, but almost none of my use cases are panic related and panic is a pretty eye-catching word in code that causes me to do a double-take every time I encounter it. It seems like a superficial thing to discuss compared with all the implementation details, but I just wanted to provide my experience in case that aspect has been overlooked.
_Originally posted by @ggriffiniii in https://github.com/rust-lang/rust/issues/47809#issuecomment-618955432_
---
@anp's thoughts: I also have non-panicking uses in mind for `Location::caller` and have thought a couple of times about proposing an alias like `core::source::Location` or similar.
|
C-enhancement,T-libs-api,F-track_caller
|
low
|
Minor
|
622,854,899 |
node
|
errorMonitor be emitted consistently
|
<!--
Thank you for suggesting an idea to make Node.js better.
Please fill in as much of the template below as you're able.
-->
**Is your feature request related to a problem? Please describe.**
No
In an event callback, the current way to capture an error in an `async` function is to have the `captureRejectionSymbol` defined. If that is not available, the `error` callback is executed. (Given `captureRejections` is true)
If we also place an `EventEmitter.errorMonitor`, then the `errorMonitor` is emitted when `captureRejectionSymbol` is not defined and the `error` is set. However, if the `captureRejectionSymbol` is available, then the `errorMonitor` is not invoked and only the `captureRejectionsSymbol` method is executed.
Here's a demo:-
```js
class MyEmitter extends EventEmitter {
constructor() {
super({ captureRejections: true });
}
}
const myEmitter = new MyEmitter();
myEmitter.on(EventEmitter.errorMonitor, (err) => {
console.log('Error monitor');
});
myEmitter.on('data', async () => {
throw new Error();
})
myEmitter.on('error', (err) => {
console.log('error handler');
})
myEmitter.emit('data');
//=> Error monitor
//=> error handler
```
**Describe the solution you'd like**
I was thinking that, for consistency, the `errorMonitor` event be emitted even when a `captureRejectionSymbol` method is available, just like `error`. The reason being that `captureRejectionSymbol` can be considered an alternative way of setting an `error`.
```js
class MyEmitter extends EventEmitter {
constructor() {
super({ captureRejections: true });
}
[captureRejectionSymbol]() {
console.log('rejection');
}
}
const myEmitter = new MyEmitter();
myEmitter.on(EventEmitter.errorMonitor, (err) => {
console.log('Error monitor');
});
myEmitter.on('data', async () => {
throw new Error();
})
myEmitter.on('error', (err) => {
console.log('error handler');
})
myEmitter.emit('data');
//=> rejection
```
but the proposed output should be
```js
//=> Error monitor
//=> rejection
```
I tested the code on Node v14.2.0 (macOS).
I am not sure whether this is already implemented in some PR. I was not able to find one. I am also not sure of any backward compatibility that might be broken. So would like feedback on this. :)
|
events
|
low
|
Critical
|
622,859,035 |
flutter
|
Back swipe crash if deep linking into routes that contain hero widget.
|
<!-- 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
```dart
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return CupertinoApp(
initialRoute: '/page2',
routes: <String, WidgetBuilder>{
'/': (BuildContext context) {
return Scaffold(
body: Center(
child: Hero(
tag: 'tag',
transitionOnUserGestures: true,
child: GestureDetector(
onTap: () => Navigator.of(context).pushNamed('/page2'),
child: Container(height: 150.0, width: 150.0, color: Colors.red),
)
),
)
);
},
'/page2': (BuildContext context) {
return Scaffold(
body: Center(
child: Padding(
padding: EdgeInsets.fromLTRB(100.0, 0.0, 0.0, 0.0),
child: Hero(
tag: 'tag',
transitionOnUserGestures: true,
child: Container(height: 150.0, width: 150.0, color: Colors.red)
)
),
)
);
}
},
);
}
}
```
1. run the above code
2. use back swipe gesture to pop page2
## Logs
```
I/flutter (18341): βββ‘ EXCEPTION CAUGHT BY GESTURE ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
I/flutter (18341): The following assertion was thrown while handling a gesture:
I/flutter (18341): 'package:flutter/src/widgets/heroes.dart': Failed assertion: line 349 pos 12: 'box != null &&
I/flutter (18341): box.hasSize': is not true.
I/flutter (18341):
I/flutter (18341): Either the assertion indicates an error in the framework itself, or we should provide substantially
I/flutter (18341): more information in this error message to help you determine and fix the underlying cause.
I/flutter (18341): In either case, please report this assertion by filing a bug on GitHub:
I/flutter (18341): https://github.com/flutter/flutter/issues/new?template=BUG.md
I/flutter (18341):
I/flutter (18341): When the exception was thrown, this was the stack:
I/flutter (18341): #2 _HeroState.startFlight (package:flutter/src/widgets/heroes.dart:349:12)
I/flutter (18341): #3 _HeroFlight.start (package:flutter/src/widgets/heroes.dart:583:21)
I/flutter (18341): #4 HeroController._startHeroTransition (package:flutter/src/widgets/heroes.dart:861:60)
I/flutter (18341): #5 HeroController._maybeStartHeroTransition (package:flutter/src/widgets/heroes.dart:794:9)
I/flutter (18341): #6 HeroController.didStartUserGesture (package:flutter/src/widgets/heroes.dart:733:5)
I/flutter (18341): #7 NavigatorState.didStartUserGesture (package:flutter/src/widgets/navigator.dart:3782:18)
I/flutter (18341): #8 new _CupertinoBackGestureController (package:flutter/src/cupertino/route.dart:630:15)
I/flutter (18341): #9 CupertinoPageRoute._startPopGesture (package:flutter/src/cupertino/route.dart:280:12)
I/flutter (18341): #10 CupertinoPageRoute.buildPageTransitions.<anonymous closure> (package:flutter/src/cupertino/route.dart:327:36)
I/flutter (18341): #11 _CupertinoBackGestureDetectorState._handleDragStart (package:flutter/src/cupertino/route.dart:542:54)
I/flutter (18341): #12 DragGestureRecognizer._checkStart.<anonymous closure> (package:flutter/src/gestures/monodrag.dart:384:52)
I/flutter (18341): #13 GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:182:24)
I/flutter (18341): #14 DragGestureRecognizer._checkStart (package:flutter/src/gestures/monodrag.dart:384:7)
I/flutter (18341): #15 DragGestureRecognizer.acceptGesture (package:flutter/src/gestures/monodrag.dart:308:7)
I/flutter (18341): #16 GestureArenaManager._resolveByDefault (package:flutter/src/gestures/arena.dart:250:25)
I/flutter (18341): #17 GestureArenaManager._tryToResolveArena.<anonymous closure> (package:flutter/src/gestures/arena.dart:231:31)
I/flutter (18341): (elided 12 frames from class _AssertionError and dart:async)
I/flutter (18341):
I/flutter (18341): Handler: "onStart"
I/flutter (18341): Recognizer:
I/flutter (18341): HorizontalDragGestureRecognizer#f3b19
I/flutter (18341): ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
I/flutter (18341): Another exception was thrown: 'package:flutter/src/cupertino/route.dart': Failed assertion: line 547 pos 12: '_backGestureController != null': is not true.
I/chatty (18341): uid=10148(flutterissuessample.flutter_issues_sample) Thread-2 identical 7 lines
I/flutter (18341): Another exception was thrown: 'package:flutter/src/cupertino/route.dart': Failed assertion: line 547 pos 12: '_backGestureController != null': is not true.
I/flutter (18341): Another exception was thrown: 'package:flutter/src/cupertino/route.dart': Failed assertion: line 547 pos 12: '_backGestureController != null': is not true.
I/chatty (18341): uid=10148(flutterissuessample.flutter_issues_sample) Thread-2 identical 42 lines
I/flutter (18341): Another exception was thrown: 'package:flutter/src/cupertino/route.dart': Failed assertion: line 547 pos 12: '_backGestureController != null': is not true.
I/flutter (18341): Another exception was thrown: 'package:flutter/src/cupertino/route.dart': Failed assertion: line 553 pos 12: '_backGestureController != null': is not true.
```
|
c: crash,framework,f: cupertino,f: routes,has reproducible steps,found in release: 2.10,found in release: 2.13,team-design,triaged-design
|
low
|
Critical
|
622,879,189 |
PowerToys
|
[KBM] Allow users to map only modifier key shortcuts
|
# Summary of the new feature/enhancement
Right now, if we try to set either the original shortcut or the new shortcut to finish on a modifier key (<kbd>Ctrl</kbd>, <kbd>Shift</kbd>, <kbd>Alt</kbd>, <kbd>Win</kbd>), the error message "Some of the keys could not be remapped. Do you want to continue anyway?" appears. Allowing users to remap shortcuts that end with a modifier key would allow users to have a bigger pool of shortcuts to modify (e.g. changing input keyboard layouts and input languages).
<!--
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.
-->
|
Idea-Enhancement,Product-Keyboard Shortcut Manager
|
low
|
Critical
|
622,899,342 |
vscode
|
Strange bug in PHP files with HTML and Emmet parser because conditionals are been mistaken as opening and/or closing tags
|
Issue Type: <b>Bug</b>
1. Open or create a PHP file
2. Type the following example code:
```php
<?php
$looping = 1;
$while = [];
while ($looping <= 5) {
//here you can't use emmet or html! give it a try!
$while[] = $looping;
$looping++;
}
var_dump($while);
$looping = 5;
$while = [];
do {
$while[] = $looping;
$looping--;
} while ($looping >= 1);
var_dump($while);
//here you can use emmet and html
for ($i = 1; $i <= 10; ) {
//here you can't use emmet or html. give it a try!
}
```
**Expected result**: Emmet and HTML should continue working and the parser should correctly identify conditionals as not part of an opening or ending tag statement.
Tested without any extensions enabled. It is a core php bug in the editor.
**Screenshots** to illustrate the actual results with current stable version:
Emmet and HTML parsing does not work after using the conditional, because it is trying to parse it as an opening tag

Here the parsing works, because the while and do-while have complement conditionals, thus opening and closing a tag, for the html parser

Just to make it more clear about the opening/closing tag described above

It is a parsing bug because it will resume working after typing the matched closing tag even in a comment

I love VSCode and it has been really productive in my daily PHP work. I hope the issue gets addressed and fixed. Thank you for your time and attention on reading this lengthy report.
VS Code version: Code 1.45.1 (5763d909d5f12fe19f215cbfdd29a91c0fa9208a, 2020-05-14T08:27:35.169Z)
OS version: Windows_NT x64 10.0.18363
<details>
<summary>System Info</summary>
|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i7-3770K CPU @ 3.50GHz (8 x 3492)|
|GPU Status|2d_canvas: enabled<br>flash_3d: enabled<br>flash_stage3d: enabled<br>flash_stage3d_baseline: enabled<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>oop_rasterization: disabled_off<br>protected_video_decode: unavailable_off<br>rasterization: enabled<br>skia_renderer: disabled_off_ok<br>video_decode: enabled<br>viz_display_compositor: enabled_on<br>viz_hit_test_surface_layer: disabled_off_ok<br>webgl: enabled<br>webgl2: enabled|
|Load (avg)|undefined|
|Memory (System)|11.95GB (7.36GB free)|
|Process Argv||
|Screen Reader|no|
|VM|0%|
</details><details><summary>Extensions (4)</summary>
Extension|Author (truncated)|Version
---|---|---
vscode-intelephense-client|bme|1.3.11
vscode-toggle-quotes|Bri|0.3.2
path-autocomplete|ion|1.13.6
google-fonts|lio|0.0.1
</details>
<!-- generated by issue reporter -->
|
bug,upstream,php,emmet,upstream-issue-linked
|
low
|
Critical
|
622,902,980 |
flutter
|
[Feature request] control padding on a ThemeData level
|
I was just looking for a padding property for CardTheme, but there was none. I would like a uniform padding across all my cards in the app...
<!-- 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
-->
## Use case
<!--
Please tell us the problem you are running into that led to you wanting
a new feature.
Is your feature request related to a problem? Please give a clear and
concise description of what the problem is.
Describe alternative solutions you've considered. Is there a package
on pub.dev/flutter that already solves this?
-->
## Proposal
<!--
Briefly but precisely describe what you would like Flutter to be able to do.
Consider attaching images showing what you are imagining.
Does this have to be provided by Flutter directly, or can it be provided
by a package on pub.dev/flutter? If so, maybe consider implementing and
publishing such a package rather than filing a bug.
-->
|
c: new feature,framework,f: material design,c: proposal,team-design,triaged-design
|
low
|
Critical
|
622,940,032 |
PowerToys
|
[Run] Apps don't launch proper folder (link target)
|
From #3422, a user requested copy file path, we have open containing folder however.
When trying out "word", this actually opens up the LNK folder, not the exe folder.
Example: I search for word and i get C:\ProgramData\Microsoft\Windows\Start Menu\Programs
In reality it should be: "C:\Program Files\Microsoft Office\root\Office16\"
|
Idea-Enhancement,Help Wanted,Product-PowerToys Run
|
low
|
Minor
|
622,940,797 |
pytorch
|
Memory Leak with Docker GPU
|
## π Bug
I built a custom image based on `pytorch/pytorch:1.5-cuda10.1-cudnn7-runtime`, but it has memory leak once ran using docker with gpus. As an example, this ran (https://app.wandb.ai/cleanrl/cleanRL/runs/1giu2q8i?workspace=user-costa-huang) has its memory risen from 9% to 80% of 64 GB memory in minutes. In comparison, I rolled back to build the custom image based on `pytorch/pytorch:1.4-cuda10.1-cudnn7-runtime` and there is no such issues.

## To Reproduce
Steps to reproduce the behavior:
Obtain a wandb key from https://www.wandb.com/ and run the following
```
docker run --gpus all -d --cpuset-cpus="0" -e WANDB={YOUR_WANDB_KEY} vwxyzjn/cleanrl:1.5-cuda10.1-cudnn7-runtime-cleanrl-0.2.1 python dqn_atari_visual.py --gym-id BreakoutNoFrameskip-v4 --total-timesteps 10000000 --wandb-project-name cleanrl.benchmark --prod-mode --capture-video --seed 2
```
Should reproduce the results where the memory blows up about 10 mins in. While the following script that uses the previous docker image of pytorch 1.4 should not have its memory blow up
```
docker run --gpus all -d --cpuset-cpus="0" -e WANDB={YOUR_WANDB_KEY} vwxyzjn/cleanrl:1.4-cuda10.1-cudnn7-runtime-cleanrl-0.2.1 python dqn_atari_visual.py --gym-id BreakoutNoFrameskip-v4 --total-timesteps 10000000 --wandb-project-name cleanrl.benchmark --prod-mode --capture-video --seed 2
```
And this is the Dockerfile
```
FROM pytorch/pytorch:1.5-cuda10.1-cudnn7-runtime
RUN apt-get update && \
apt-get -y install xvfb ffmpeg git build-essential
RUN pip install gym[box2d,atari] pybullet==2.7.9
RUN git clone https://github.com/vwxyzjn/cleanrl && \
cd cleanrl && pip install -e .
RUN apt-get -y install python-opengl
RUN pip install opencv-python
RUN pip install seaborn pandas
WORKDIR /workspace/cleanrl/cleanrl
COPY entrypoint.sh /usr/local/bin/
RUN chmod 777 /usr/local/bin/entrypoint.sh
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
CMD python ppo2_continuous_action.py --capture-video --total-timesteps 200
```
<!-- If you have a code sample, error messages, stack traces, please provide it here as well -->
## Expected behavior
The following image is the expected behavior, which is produced by the previous pytorch 1.4 docker image(https://app.wandb.ai/cleanrl/cleanrl/runs/3az3ndy1?workspace=)

In particular, the memory didn't blow up.
<!-- A clear and concise description of what you expected to happen. -->
## Environment
The experiments are ran using AWS batch at a GPU instance, and the docker image is based on `pytorch/pytorch:1.5-cuda10.1-cudnn7-runtime` that produces the memory explosion.
cc @ezyang @gchanan @zou3519 @ngimel @csarofeen @ptrblck
|
high priority,module: cudnn,module: cuda,module: memory usage,triaged,module: regression
|
low
|
Critical
|
622,942,753 |
flutter
|
Add BoxConstraints.screen()
|
I tried to place a `Scaffold` with a `NestedScrollView` inside a `AnimatedCrossFade` that's inside a `FutureBuilder` and I got several rendering errors saying:
(`FutureBuilder` > `AnimatedCrossFade` > `Scaffold` > `NestedScrollView`)
```
RenderCustomMultiChildLayoutBox object was given an infinite size during layout.
This probably means that it is a render object that tries to be as big as possible, but it was put inside another render object that allows its children to pick their own size.
```
I could fix it using:
```dart
AnimatedCrossFade(
...
secondChild: ConstrainedBox(
constraints: BoxConstraints(maxHeight: MediaQuery.of(context).size.height),
child: Scaffold(
body: NestedScrollView(
...
```
Since wanting to constrain by the screen dimensions should be a common thing I think it would be nice to have a `BoxConstraints.screen()` that would be just a `MediaQuery.of(context).size` call internally.
|
c: new feature,framework,f: material design,c: proposal,a: layout,team-design,triaged-design
|
low
|
Critical
|
622,963,295 |
pytorch
|
[FR] cuda.comm.broadcast/reduce_add support `out=`
|
## π Feature
It would be easy for `broadcast` and `reduce_add` to support `out=`. Such a functionality would be useful when users want to optimize customize intraprocess communication. For me this comes up when I code a SyncBatchNorm variant for DataParallel.
cc @ngimel @pietern @mrshenli @pritamdamania87 @zhaojuanmao @satgera @rohan-varma @gqchen @aazzolini @xush6528 @osalpekar
|
oncall: distributed,feature,module: cuda,triaged
|
low
|
Minor
|
622,983,592 |
TypeScript
|
`moduleResolution: node` doesn't align with Node's module resolution when targeting ES2015.
|
**TL;DR**: When resolving CommonJS modules in NodeJS, it will implicitly look for an `index.js` file within a folder if the folder matches the import path. When resolving ES2015 modules in NodeJS however, this is not true. Currently, TypeScript will always implicitly resolve `index.js` in a folder matching the provided import path, even if module is ES2015. This results in TypeScript spitting out JS without error when there is no runtime that will execute the code.
<!--
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.3
<!-- Search terms you tried before logging this (so others can find this issue more easily) -->
**Search Terms:**
moduleResolution node es modules
**Code**
```json
// tsconfig.json
{
"compilerOptions": {
"module": "ES2015",
"moduleResolution": "node",
}
}
```
```ts
// apple/index.ts
export const apple = 'red'
// index.ts
import { apple } from './apple'
```
**Expected behavior:**
An error indicating that module `./apple` could not be found.
**Actual behavior:**
No error and it emits `import { apple } from './apple'`.
**Related Issues:** <!-- Did you find other bugs that looked similar? -->
The opposite request (declined): #32432
Tangentially related to all of the discussions around TypeScript appending `.js` extensions.
Thanks to @bouzuya for the following script showing module resolution in NodeJS when resolving ES2015 modules vs CommonJS modules:
```bash
#!/bin/bash
if [ -z "$1" ]; then echo 'Usage: ./node-esm-test.sh <0|1|2|3|4|5>'; exit 1; fi
echo 'node --version'
node --version # v14.2.0
case $1 in
0)
echo "case 0: Node.js CJS resolves './add' -> './add/index.js'"
mkdir node-esm-test
cd node-esm-test
mkdir add
echo 'exports.add = function(a, b) { return a + b; };' > add/index.js
echo 'const { add } = require("./add"); console.log(add(1, 2) === 3 ? "OK" : "NG");' > mod.js
# OK
node mod.js || true
cd ..
rm -rf node-esm-test
;;
1)
echo "case 1: Node.js ESM resolves './add/index.js' -> './add/index.js'"
mkdir node-esm-test
cd node-esm-test
mkdir add
echo 'export function add(a, b) { return a + b; }' > add/index.js
echo 'import { add } from "./add/index.js"; console.log(add(1, 2) === 3 ? "OK" : "NG");' > mod.js
echo '{"type":"module"}' > package.json
# OK
node mod.js || true
cd ..
rm -rf node-esm-test
;;
2)
echo "case 2: Node.js ESM doesn't resolve './add/index' -> './add/index.js'"
mkdir node-esm-test
cd node-esm-test
mkdir add
echo 'export function add(a, b) { return a + b; }' > add/index.js
echo 'import { add } from "./add/index"; console.log(add(1, 2) === 3 ? "OK" : "NG");' > mod.js
echo '{"type":"module"}' > package.json
# cannot find module ... Did you mean to import ../add/index.js?
node mod.js || true
cd ..
rm -rf node-esm-test
;;
3)
echo "case 3: Node.js ESM doesn't resolve './add' -> './add/index.js'"
mkdir node-esm-test
cd node-esm-test
mkdir add
echo 'export function add(a, b) { return a + b; }' > add/index.js
echo 'import { add } from "./add"; console.log(add(1, 2) === 3 ? "OK" : "NG");' > mod.js
echo '{"type":"module"}' > package.json
# cannot find module ... Did you mean to import ../add/index.js?
node mod.js || true
cd ..
rm -rf node-esm-test
;;
4)
echo "case 4: Node.js ESM doesn't resolve './add.js' -> './add/index.js'"
mkdir node-esm-test
cd node-esm-test
mkdir add
echo 'export function add(a, b) { return a + b; }' > add/index.js
echo 'import { add } from "./add.js"; console.log(add(1, 2) === 3 ? "OK" : "NG");' > mod.js
echo '{"type":"module"}' > package.json
# cannot find module
node mod.js || true
cd ..
rm -rf node-esm-test
;;
5)
echo "case 5: Node.js ESM doesn't resolve './add' -> './add/index.mjs'"
mkdir node-esm-test
cd node-esm-test
mkdir add
echo 'export function add(a, b) { return a + b; }' > add/index.mjs
echo 'import { add } from "./add"; console.log(add(1, 2) === 3 ? "OK" : "NG");' > mod.mjs
# cannot find module
node mod.mjs || true
cd ..
rm -rf node-esm-test
;;
esac
```
|
Needs Investigation,Rescheduled
|
low
|
Critical
|
623,018,693 |
go
|
Missing support for arm64e
|
<!--
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.14.3 darwin/amd64
</pre>
### Does this issue reproduce with the latest release?
Yes
### What did you do?
I was wondering if arm64e is supported but I didn't see any reference to this architecture after check with `go tool dist list` and try to build with `GOARCH=arm64e` I see is not supported yet. Even if is a new architecture, does someone know when or if this arch will be supported by Go?
Kind regards
|
ExpertNeeded,NeedsInvestigation,arch-arm64
|
low
|
Major
|
623,034,541 |
TypeScript
|
Use TypeScript declaration files alongside JavaScript
|
**TypeScript Version:** 3.9.3
**Search Terms:**
TypeScript along side JavaScript
**Code**
Button.jsx
```js
const Button = ({ text, onClick }) => {
return <button onClick={onClick}>{text}</button>
}
```
Button.d.ts
```ts
interface Props {
text: string
onClick: () => void
}
declare const Button: (props: Props) => Element
```
**Expected behavior:**
TypeScript should apply the types described in `Button.d.ts` and use them on `Button.jsx`.
**Actual behavior:**
The prop types in `Button.jsx` are `any` and are ignoring the typed written in `Button.d.ts`.
**Playground Link:** https://codesandbox.io/s/loving-mclaren-dvefd?file=/src/button/Button.jsx
**Related Issues:** https://stackoverflow.com/questions/53074172/typescript-declaration-files-for-local-js-files
**Other Info:**
I made a stackoverflow question about this but it doesn't seem to be known there. https://stackoverflow.com/questions/61932377/use-typescript-declaration-files-alongside-javascript
|
Suggestion,Awaiting More Feedback
|
low
|
Minor
|
623,084,263 |
terminal
|
Show a warning if the background image can't be loaded
|
Hi,
The `backgroundImage` parameter in `settings.json` has a somewhat permissive path, for example all the following examples work:
- **Windows directory separators:** `C:\\<username>\\Pictures\\some image.png`
- **Unix directory separators:** `C:/<username>/Pictures/some image.png`
- **A mix of both Windows/Unix directory separators:** ``C:\\<username>\\Pictures/some image.png``
- **URI using file scheme for filesystem access:** `file://C:/<username>/Pictures/some image.png`
- **HTTP URI:** `https://somesite.xyz/image.jpg`
**Other related issue:**
- when `backgroundImage` points to a non existing file/URI, Windows terminal does not show a warning or error, it could be handled this way:
- on a non existing file on the filesystem: throw an warning/error that the file for the given file path does not exist
- HTTP URI: if the resource returns a status code other than `200` throw an warning/error that the URI is incorrect
- if the file format is unsupported/unreadable: throw an appropriate error
Since users can both use Unix/Windows separators I thought It was the best to describe this issue before filing a documentation feedback.
**Configuration:**
- **Windows version:** 10 - 1909 (18363.836) - 64 bits
- **Distribution method:** compiled for master branch/deployed manually using Visual Studio 2019 (16.5.4)
- **Compilation settings:** Release/64 bits / all submoduled needed to be checked out in order for compilation to work
- **Project compiled:** CascadiaCode
- **Windows terminal version:** - Slightly ahead of v1.0.1401.0 (first public release) pointing to commit: 8265d941b7fbea8b702d3381fa93a92417dec2ce
**Terminal configuration:**
- **settings.json location:** `C:\Users\<username>\AppData\Local\Packages\WindowsTerminalDev_8wekyb3d8bbwe\LocalState\settings.json`
|
Help Wanted,Area-Settings,Product-Terminal,Issue-Task,Priority-3
|
low
|
Critical
|
623,087,000 |
flutter
|
Memory leak when switch route too fast
|
<details>
<summary>flutter doctor -v</summary>
```
$ flutter doctor -v
[β] Flutter (Channel stable, v1.17.1, on Microsoft Windows [Version 6.1.7601], locale en-US)
β’ Flutter version 1.17.1 at C:\flutter
β’ Framework revision f7a6a7906b (9 days 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 28.0.3)
β’ Android SDK at C:\Users\jchenx2\AppData\Local\Android\sdk
β’ Platform android-28, build-tools 28.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.7761
β’ Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)
**Dart DevTools
```
</details>
3 instances of TestPage2 remain in memory**
Test code snippet
<details>
<summary>Code Sample</summary>
``` dart
void main() {
runApp(
MaterialApp(
home: TestPage1(),
),
);
}
class TestPage1 extends StatefulWidget {
@override
_TestPage1State createState() => _TestPage1State();
}
class _TestPage1State extends State<TestPage1> {
@override
void initState() {
super.initState();
Future.delayed(Duration(seconds: 1), () {
_goPgae2(1);
});
Future.delayed(Duration(seconds: 2), () {
_goPgae2(2);
});
Future.delayed(Duration(seconds: 3), () {
_goPgae2(3);
});
Future.delayed(Duration(seconds: 4), () {
_goPgae2(4);
});
Future.delayed(Duration(seconds: 5), () {
_goPgae2(5);
});
}
@override
Widget build(BuildContext context) {
return Container(
color: Colors.red,
child: GestureDetector(
onTap: () => _goPgae2(100),
child: Center(
child: Image.asset(
'assets/gpdl/status_safe.png',
width: 100,
height: 100,
),
),
),
);
}
_goPgae2(int index) {
Navigator.of(context).push(
MaterialPageRoute(
builder: (BuildContext context) {
return TestPage2(index);
},
),
);
}
}
class TestPage2 extends StatefulWidget {
final int index;
TestPage2(this.index);
@override
_TestPage2State createState() => _TestPage2State();
}
class _TestPage2State extends State<TestPage2> {
@override
Widget build(BuildContext context) {
return GestureDetector(
onTap: () {
Navigator.of(context).popUntil((route) => route.isFirst);
},
child: Container(
color: Colors.blue,
),
);
}
}
```
</details>
|
framework,c: performance,f: routes,d: devtools,perf: memory,P2,team-framework,triaged-framework
|
low
|
Major
|
623,109,694 |
flutter
|
keyboard in dialog resizes scaffold in background
|
Steps to Reproduce
<!-- You must include full steps to reproduce so that we can reproduce the problem. -->
Got a scaffold and inside that I open a dialog using [showDialog](https://api.flutter.dev/flutter/material/showDialog.html). In that I have a text field. When the keyboard is showing the content in background resizes. Would be nice if only the dialog in foreground resizes. Unfortunately setting resizeToAvoidBottomInset to false is not an option. Is there maybe another possibilty?
**Actual results:** <!-- what did you see? -->

<details>
<summary>Logs</summary>
<!--
Run your application with `flutter run --verbose` and attach all the
log output below between the lines with the backticks. If there is an
exception, please see if the error message includes enough information
to explain how to solve the issue.
-->
```
```
[β] Flutter (Channel stable, v1.17.0, on Microsoft Windows [Version 10.0.18363.836], locale de-DE)
β’ Flutter version 1.17.0 at C:\src\flutter_windows_v1.9.1+hotfix.5-stable\flutter
β’ Framework revision e6b34c2b5c (3 weeks ago), 2020-05-02 11:39:18 -0700
β’ Engine revision 540786dd51
β’ Dart version 2.8.1
[β] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
β’ Android SDK at C:\Users\pschu\AppData\Local\Android\Sdk
β’ Platform android-29, build-tools 29.0.2
β’ ANDROID_HOME = C:\Users\pschu\AppData\Local\Android\Sdk
β’ 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.7761
β’ Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)
[!] IntelliJ IDEA Ultimate Edition (version 2019.3)
β’ IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA 2019.2.4
X Flutter plugin not installed; this adds Flutter specific functionality.
X Dart plugin not installed; this adds Dart specific functionality.
β’ For information about installing plugins, see
https://flutter.dev/intellij-setup/#installing-the-plugins
[!] VS Code (version 1.43.1)
β’ VS Code at C:\Users\pschu\AppData\Local\Programs\Microsoft VS Code
X Flutter extension not installed; install from
https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[β] Connected device (1 available)
β’ AOSP on IA Emulator β’ emulator-5554 β’ android-x86 β’ Android 9 (API 28) (emulator)
! Doctor found issues in 2 categories.
```
```
</details>
|
framework,f: material design,c: proposal,P3,team-design,triaged-design
|
low
|
Critical
|
623,193,752 |
terminal
|
Strip or replace tabs when pasting
|
<!--
π¨π¨π¨π¨π¨π¨π¨π¨π¨π¨
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!
-->
<!--
This bug tracker is monitored by Windows Terminal development team and other technical folks.
**Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**.
Instead, send dumps/traces to [email protected], referencing this GitHub issue.
If this is an application crash, please also provide a Feedback Hub submission link so we can find your diagnostic data on the backend. Use the category "Apps > Windows Terminal (Preview)" and choose "Share My Feedback" after submission to get the link.
Please use this form and describe your issue, concisely but precisely, with as much detail as possible.
-->
# Environment
Microsoft Windows [Version 10.0.18363.836]
Windows Terminal Version: 1.0.1401.0
Any other software?
Google Sheets or any other software that delimits columns in clipboard by TAB character
```
# Steps to reproduce
Have multiple commands written in google sheets one per row but with parts of it in different cells
# Expected behavior
When you paste in normal cmd window the TAB caracter gets ignored.
# Actual behavior
When you paste commands containing TAB caracter autocompletition triggers and the command gets corrupted
<img width="810" alt="Annotation 2020-05-22 160454" src="https://user-images.githubusercontent.com/14089766/82670799-7bfc5680-9c46-11ea-84aa-e3eec4e22286.png">
|
Help Wanted,Area-TerminalControl,Product-Terminal,Issue-Task
|
low
|
Critical
|
623,199,609 |
PowerToys
|
[System tray] Update colored icon to an outlined version
|
This was discussed in various issues - this one can be used to track this request and post ideas.
# Summary of the new feature/enhancement
The current icon that shows up in the system tray uses the PowerToys app icon. To feel as native as possible, it would be nice to use a black/white icon that are similar to system icons such as network, sound and network.
# Proposed technical implementation details
An outlined version of the PowerToys icon will feel more native to the user. Some requirements:
- Theme support (white with dark theme, black with light theme) (Must)
- Should look very similar to the app icon so users recognize it (Must)
- It could be used to show e.g. machine states (Could)
@Elttob made some nice concepts in #1118:
Monochrome:

Using the icon to display e.g. status:

|
Help Wanted,Area-User Interface
|
medium
|
Major
|
623,201,141 |
go
|
x/build/cmd/gopherbot: released things get marked Unreleased
|
Any issue in an x/ package that is vendored into the release should not be milestoned Unreleased by Gopherbot.
Issue #32441 was left alone for a long time in part because it was in the Unreleased milestone.
And it appears to have ended up in the Unreleased milestone because Gopherbot put it there.
And Gopherbot appears to have put it there because the title said "x/net/http".
My assumption is that Gopherbot has a rule that issues with titles beginning with "x/" (or maybe a specific list of repos) get placed in the Unreleased milestone.
This rule is too aggressive: x/net/http is included in releases, so it is wrong to mark its issues Unreleased.
In addition to fixing Gopherbot, we may want to investigate potentially mis-milestoned issues.
A quick scan turns up the following issues in release-vendored packages which are in the Unreleased milestone but perhaps should not be:
#24870 x/net/dns/dnsmessage: cannot parse mDNS SRV records
#24288 x/net/dns: invalid assumptions about domain names and character strings
#38064 x/net/http2/h2c: POST from Java 11 client code causing error in h2cUpgrade
#37089 x/net/http2/h2c: http BaseContext/ConnContext methods are not used
#26682 x/net/http2/h2c: support closure of all connections and graceful shutdown
#29187 x/net/http2/hpack: Regression in dynamic table size updates
#20574 x/net/http2/hpack: Write customer-header into HPACK byName Map rather than byNameValue
#30407 x/net/http2: Expose isBadCipher
#13434 x/net/http2: TestServer_RejectsLargeFrames fails with "An existing connection was forcibly closed by the remote host" on windows
#18273 x/net/http2: TestTransportFlowControl takes 31 seconds on OpenBSD
#25793 x/net/http2: Transport ignores net/http.Transport.Proxy once connected
#18341 x/net/http2: Transport should handle 421
#17265 x/net/http2: access to maxConcurrentStreams
#17776 x/net/http2: add a MarkComplete method to ClientConnPool
#35860 x/net/http2: cannot create 'MaxConcurrentStreams' streams with a single ClientConn
#37505 x/net/http2: data race in onSameConn test helper
#15998 x/net/http2: data race on DebugGoroutines
#16029 x/net/http2: deal with half-closed remote in Transport, flaky TestTransportResPattern_c0h1d0t0, TestTransportResPattern_c1h2d0t0
#17775 x/net/http2: expose CloseIfIdle and ClientConnPoolIdleCloser
#32388 x/net/http2: pool deadlock
#16581 x/net/http2: rename and export Transport's t1 field
#31170 x/net/http2: sendWindowUpdate may send invalid window size increment
#25117 x/net/http2: steady performance degeneration seen with HTTP/2 over recent releases
#15592 x/net/http2: toggle HPACK dynamic table indexing for header
#29125 x/net/http: PROTOCOL_ERROR with HTTP2
#19603 x/net/idna: support label separators other than ASCII dot
#33508 x/sys/cpu: add support for ARM
#30239 x/sys/cpu: report core information and speed
#33963 x/sys/cpu: respect CPU feature overrides specified in GODEBUG
#9055 x/text/unicode/norm: LastBoundary is inconsistent
|
Builders,NeedsInvestigation
|
low
|
Critical
|
623,207,900 |
PowerToys
|
TGA and SBSAR preview (and as many more image/visual formats possible)
|
Creative people use Windows on a daily basis to create content.
TGA among other image formats is one used a lot in game development, 3D Animation, Visualization, VFX, Video Editing and more.
Another set of tools that has fast become the standard in visual arts is Substance. Substance Painter is the most popular one. Substance Designer is the authoring tool. Entire materials are contained in archive files, with the extension .sbsar (for most end users) or .sbs (for both end users and Substance Material developers.) Most of these files typically contain a thumbnail.
This will save a lot of time having to open the file in some tool just to preview the content and select which one to use for your project.
In the Windows explorer the user should be able to view thumbnails of these popular image and material files. If this is not technically possible out of the box, then perhaps you should talk with the makers of the tool to provide a way for you to access and display that image.
|
Idea-Enhancement,Product-File Explorer
|
low
|
Major
|
623,215,216 |
godot
|
CustomNode in VisualShader gets replaced with Null box
|
**Godot version:**
3.2.0-stable (until latest beta)
**Issue description:**
One of the custom visual shader nodes gets replaced with Null node, rendering the shader useless.
When I saved, the shader looked like this:

Next time I open the project, it looks like this:

Initially, I was trying to reproduce an issue I had with VisualShaders in the game I'm working on, where the shader (the one that's included in the reproduction project) would show properly in the game when started from the editor, but in the exported game, the shader would render completely black and the console showed an error some function (`pnoise4d` in this case) would not exist, and it indeed was missing from the shader code. The generated code in the visual shader editor however would generate the shader code just fine.
So I created a copy of my project, removed everything that was not related, and my shader would export just fine now, but now I'm having issues with the shader save and load properly. I don't know if I'm chasing ghosts here, so maybe you can shed some light.
**Steps to reproduce:**
1. Open the project provided
2. Observe the screen being black in editor and a Null box in the shader.
It should render like this:

(Please help, I'm going insane over this.)
**Minimal reproduction project:**
https://github.com/eiszfuchs/godot-vs-issue
|
bug,confirmed,topic:shaders
|
low
|
Critical
|
623,232,084 |
terminal
|
Insert mode indication
|
<!--
π¨π¨π¨π¨π¨π¨π¨π¨π¨π¨
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
Old console has taller cursor when insert mode activated. I want to see something like that(may be wider cursor) in WT.
<!--
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).
-->
|
Help Wanted,Area-TerminalControl,Area-Settings,Product-Terminal,Issue-Task
|
low
|
Critical
|
623,233,449 |
neovim
|
Append and Insert on multiple lines from line-selection
|
- `nvim --version`: NVIM v0.5.0-445-gca02db1f9
- Operating system/version: Windows 10 + Windows Subsystem for Linux (Ubuntu)
- `$TERM`: `printenv TERM` = `screen`
### Steps to reproduce using `nvim -u NORC`
Start with this buffer content:
```
line1
longer line2
line3
```
Select all three lines with linewise selection (shift-v), and use `A` to append "append" (`<s-v>ipAappend`)
### Actual behaviour
Resulting text is:
```
line1
longer line2
appendline3
```
### Expected behaviour
```
line1append
longer line2append
line3append
```
|
enhancement,visual-mode
|
low
|
Major
|
623,240,193 |
PowerToys
|
[Preview Panes] Ability to select text in any text type file on preview
|
# Summary of the new feature/enhancement
I would like to have the ability to select the text on the selected file in the preview.
I can do the same feature using the keyboard with SHIFT+ Arrow Keys, but to improve the UX it would be nice to also be able to do the same with mouse (and maybe touch?)
Here is a gif of what currently happens when I try to select the text in the preview

# Proposed technical implementation details (optional)
I would like to be able to select previewed text of selected file, if the file is text-typed (txt,csv...)
|
Idea-New PowerToy,Product-File Explorer
|
low
|
Critical
|
623,281,751 |
godot
|
Usage of included functions resulting in `.dll` not being found
|
**Godot version:** 3.2.1
**OS/device including version:** Windows 10, build 1903
### The issue
Hey, I hope I'm in the right place with this, I've followed the example in the docs for c++: https://docs.godotengine.org/en/stable/tutorials/plugins/gdnative/gdnative-cpp-example.html. This went all right, my next step was to include opencv, so I appended additonal locations to `CPPPath`, `LIBPATH` and `LIBS` in SConstruct: https://github.com/S3B4S/opencv-gdnative/blob/gdnative/SConstruct#L165-L184
When my code _only_ includes the opencv libraries, it will compile and run fine in Godot (below example would have modified `src/gdexample.cpp` in the [example repository](https://github.com/BastiaanOlij/gdnative_cpp_example));
```cpp
// This will run fine
#include "gdexample.h"
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc.hpp>
#include <iostream>
using namespace godot;
using namespace cv;
void GDExample::_register_methods() { ... }
GDExample::GDExample() { ... }
GDExample::~GDExample() { ... }
void GDExample::_init() {
// initialize any variables here
time_passed = 0.0;
time_emit = 0.0;
amplitude = 10.0;
// Mat image = Mat::zeros(300, 600, CV_8UC3);
}
// other unrelated code
```
But when I do want to use a method from the imported code (so it's the exact same code snippet as above, but the `Mat image = Mat::zeros(300, 600, CV_8UC3);` line is uncommented), I run into the following error:
```cmd
ERROR: get_symbol: No valid library handle, can't get symbol from GDNative object
At: modules/gdnative/gdnative.cpp:483
debugger-agent: Unable to listen on 7020
ERROR: terminate: No valid library handle, can't terminate GDNative object
At: modules/gdnative/gdnative.cpp:388
ERROR: _update_placeholder: Condition "!script_data" is true.
At: modules/gdnative/nativescript/nativescript.cpp:92
Running: D:\Program Files (x86)\Godot\Godot_v3.2.1-stable_mono_win64.exe --path C:/Users/kevin/Development/contextproject/Godot --remote-debug 127.0.0.1:6007 --allow_focus_steal_pid 9776 --position 768,420
Godot Engine v3.2.1.stable.mono.official - https://godotengine.org
OpenGL ES 3.0 Renderer: AMD Radeon RX 5700 XT
Mono: Logfile is: C:\Users\kevin\AppData\Roaming/Godot/mono/mono_logs/2020_05_10 21.36.40 (14996).txt
ERROR: Can't open dynamic library: C:/Users/kevin/Development/contextproject/Godot/bin/win64/libgdexample.dll, error: Error 126: The specified module could not be found.
.
At: platform/windows/os_windows.cpp:2269
ERROR: get_symbol: No valid library handle, can't get symbol from GDNative object
At: modules/gdnative/gdnative.cpp:483
ERROR: init_library: No nativescript_init in "res://bin/win64/libgdexample.dll" found
At: modules/gdnative/nativescript/nativescript.cpp:1506
```
I'm honestly confused by the fact that it's saying it cannot find `libgdexample.dll` anymore, it's definitely there. When the lines that include `OpenCV` are commented out it does find the `.dll` file.
I'm new to this kind of stuff, so I'm not sure if I've overlooked something or that this is unexpected behaviour.
___
### Additional information in case it's needed
I've pushed the project I'm working on to [here](https://github.com/S3B4S/opencv-gdnative/tree/gdnative).
### Steps to reproduce:
Assuming that OpenCV is installed & `OPENCV_DIR` environment variable is set.
1. I've followed the instructions described in [the documentation](https://docs.godotengine.org/en/stable/tutorials/plugins/gdnative/gdnative-cpp-example.html).
2. Apply adjustments described above.
3. Run `scons platform=windows`, this should output a `libgdexample.dll` among other files in `<Godotproject>/bin/win64`
4. Open the godot project and run the main scene
5. In case OpenCV functions are used, above errors should appear.
|
bug,topic:gdextension
|
low
|
Critical
|
623,375,937 |
youtube-dl
|
wykop.pl support
|
<!--
######################################################################
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.08. If it's not, see https://yt-dl.org/update on how to update. Issues with outdated version will be REJECTED.
- Make sure that all provided video/audio/playlist URLs (if any) are alive and playable in a browser.
- Make sure that site you are requesting is not dedicated to copyright infringement, see https://yt-dl.org/copyright-infringement. youtube-dl does not support such sites. In order for site support request to be accepted all provided example URLs should not violate any copyrights.
- Search the bugtracker for similar site support requests: http://yt-dl.org/search-issues. DO NOT post duplicates.
- Finally, put x into all relevant boxes (like this [x])
-->
- [x] I'm reporting a new site support request
- [x] I've verified that I'm running youtube-dl version **2020.05.08**
- [x] I've checked that all provided URLs are alive and playable in a browser
- [x] I've checked that none of provided URLs violate any copyrights
- [x] I've searched the bugtracker for similar site support requests including closed ones
## Example URLs
<!--
Provide all kinds of example URLs support for which should be included. Replace following example URLs by yours.
-->
- Link (youtube.com): https://www.wykop.pl/link/5515619/prof-obirek-o-pedofilii-wsrod-duchownych-jan-pawel-2-wiedzial-i-nic-nie-zrobil/
- Link (youtube.com): https://www.wykop.pl/link/5515619/
- Link comment (youtube.com): https://www.wykop.pl/link/5504073/#comment-77196337
- Link comment (youtube.com): https://www.wykop.pl/link/5504073/comment/77196337/#comment-77196337
- Entry (youtu.be): https://www.wykop.pl/wpis/49583479/o-hui-xd-sosnierz-konfederacja-hot16challenge2-kor/
- Entry (gfycat.com): https://www.wykop.pl/wpis/49579089/kiedy-skryptujesz-zaczynajac-tablice-od-1-programo/
- Entry (wykop.pl gif): https://www.wykop.pl/wpis/49585319/
- [NSFW] Entry (wykop.pl gif, note the nsfw lock for unlogged users): https://www.wykop.pl/wpis/49586527/
- Entry comment (youtube.com): https://www.wykop.pl/wpis/49583499/#comment-175441409
- Entry comment (youtube.com): https://www.wykop.pl/wpis/49583499/dzien-dobry-serdecznie-chcialbym-dzis-zaprezentowa/#comment-175441409
## Description
<!--
Provide any additional information.
If work on your issue requires account credentials please provide them or explain how one can obtain them.
-->
The portal is has 2 types of content: links (znaleziska; digg/reddit-like) and microblog (well, microblog). They are completely separate entities. It doesn't provide any videos itself (users only can upload photos, including animated .gif), but it allows users to embed medias (mostly videos) from external services like youtube, streamable, gfycat, coub, soundcloud, instagram, which are already supported by youtube-dl. The only content availability limitaton is a requirement to log in (with any account) to see nsfw content on the web version.
There is a JSON REST API available, pretty simple to use:
Official ~~documentation~~ index of request endpoints: https://www.wykop.pl/dla-programistow/apiv2docs/
Example URLs (made out of the ones above):
https://a2.wykop.pl/links/link/5515619/appkey/aNd401dAPp
https://a2.wykop.pl/links/comment/77196337/appkey/aNd401dAPp
https://a2.wykop.pl/entries/entry/49583479/appkey/aNd401dAPp
https://a2.wykop.pl/entries/entry/49579089/appkey/aNd401dAPp
https://a2.wykop.pl/entries/entry/49585319/appkey/aNd401dAPp (note that you need to replace `.jpg` with `.gif` manually if `embed.animated === true`)
[NSFW] https://a2.wykop.pl/entries/entry/49586527/appkey/aNd401dAPp (note there is no nsfw lock for unlogged users)
https://a2.wykop.pl/entries/comment/175441409/appkey/aNd401dAPp
|
site-support-request
|
low
|
Critical
|
623,379,629 |
TypeScript
|
Pre-Compiler Plugin Proposal
|
## Search Terms
Extension, Plugin, Vue, Custom extensions
I found some issues but no proposal :/
## Suggestion
Hi! I'm an author of the [`fork-ts-checker-webpack-plugin`](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin). Last few months I was busy with [rewriting this plugin to pay off the technological debt](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/pull/404).
One of the features that this plugin provides is support for the [_Vue.js Single File Components_](https://vuejs.org/v2/guide/single-file-components.html). I was able to implement it but in order to work with the `Watch` program and `SolutionBuilder` [I had to do some workarounds](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/blob/feature/refactor-to-version-5/src/typescript-reporter/extension/TypeScriptEmbeddedExtension.ts). It's because there is an assertion in the TypeScript source code that files cannot have a custom extension.
The main issue with this approach is that you have to implement these workarounds in every TypeScript's API client and they can behave differently (like [`appendTsSuffixTo`](https://github.com/TypeStrong/ts-loader#appendtssuffixto) in the `ts-loader`). I know that there are already Language Service Plugins, but they don't work if you use different API, like `Watch`.
### The proposal
A new type of TypeScript plugins that can pre-compile custom source code to the format that TypeScript understands. The simplified interface would be:
```typescript
////////////////////////////////////////////////
// update existing implementation and typings //
/**
* Keep it for the backward compatibility
* @deprecated
*/
interface PluginCreateInfo {
project: Project;
languageService: LanguageService;
languageServiceHost: LanguageServiceHost;
serverHost: ServerHost;
config: any;
}
// the new name for this type
type LanguageServicePluginCreateInfo = PluginCreateInfo;
/**
* Keep it for the backward compatibility
* @deprecated
*/
interface PluginModule {
type?: 'language-service-plugin'; // not required due to backward compatibility
getExternalFiles?(project: Project): string[];
onConfigurationChanged?(config: any): void;
create(createInfo: PluginCreateInfo): LanguageService;
}
// the new name for this type
type LanguageServicePluginModule = PluginModule & {
type: 'language-service-plugin'; // required in the new type
}
/////////////////////////////
// add new type of plugins //
interface PreCompilerPluginModuleCreateInfo {
moduleResolutionHost: ModuleResolutionHost;
sourceMapHost: SourceMapHost;
config: any;
}
interface PreCompilerPluginModule {
type: 'pre-compiler-plugin'; // to distinguish between LanguageServicePlugin and PreCompilerPlugin
onConfigurationChanged?(config: any): void;
create(createInfo: PreCompilerPluginModuleCreateInfo): PreCompilerPlugin;
}
interface PreCompilerPlugin {
extensions: string[]; // list of supported extensions, for example ['.vue'] or ['.mdx']
createPreCompiledSourceFile(
fileName: string,
sourceText: string,
languageVersion: ScriptTarget,
setParentNodes?: boolean
): PreCompiledSourceFile;
}
// we need to define an extended version of the SourceFile to support additional sourceMap
interface PreCompiledSourceFile extends SourceFile {
preSourceMapText: string; // we need to provide source map to calculate diagnostics positions and source maps
}
// we need to define a function to create a PreCompiledSourceFile
// (as we can't infer ScriptKind so it's not an optional parameter)
function createPreCompiledSourceFile(
fileName: string,
sourceText: string,
languageVersion: ScriptTarget,
scriptKind: ScriptKind,
setParentNodes?: boolean,
sourceMapText?: string
): PreCompiledSourceFile
// this will help with source map generation
interface SourceTextNavigator {
getLineAndCharacterOfPosition(position: number): LineAndCharacter;
getPositionOfLineAndCharacter(line: number, character: number): number;
getLineEndOfPosition(position: number): number;
getLineStarts(): number[];
}
interface SourceMapHost {
createSourceMapGenerator(fileName: string): SourceMapGenerator;
createSourceTextNavigator(text: string): SourceTextNavigator;
}
////////////////////////////////////////////////
// update existing implementation and typings //
type AnyPluginModule = PluginModule | PreCompilerPluginModule;
interface PluginModuleWithName {
name: string;
module: AnyPluginModule;
}
type PluginModuleFactory = (mod: {
typescript: typeof ts;
}) => AnyPluginModule
```
This architecture would allow adding new plugin types in the future (so we could add `ModuleResolutionPlugin` to support Yarn PnP in the future)
The maintenance cost of this feature should be low because the exposed API is pretty simple.
There is a point in the [TypeScript Design Goals](https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals)
> 4. Provide an end-to-end build pipeline. Instead, make the system extensible so that external tools can use the compiler for more complex build workflows.
If you think that this feature is incompatible with this point, we could limit it to emitting only `.d.ts` files.
I could try to implement it, but first I need to know if it's something that you would like to add to the TypeScript and if this API is a good direction :)
## Use Cases
I imagine that community would create `PreCompilerPlugin`s for a lot of use cases. For example:
* `vue-typescript-plugin` - support for the Single File Components
* `mdx-typescript-plugin` - support for embedded TypeScript in the MDX files
* `graphql-typescript-pluging` - support for generation of GraphQL types / clients in the runtime (so we don't have to use generators anymore)
* `css-modules-typescript-plugin` - support for typed css modules (instead of `declare module '*.css';`)
## Examples
#### tsconfig.json
```json
{
"compilerOptions": {
"target": "ES6",
"module": "CommonJS",
"lib": ["ES6"],
"moduleResolution": "Node",
"resolveJsonModule": true,
"esModuleInterop": true,
"baseUrl": "./src",
"outDir": "./lib",
"plugins": [{ "name": "vue-typescript-plugin" }]
},
"include": ["./src"],
"exclude": ["node_modules"]
}
```
#### node_modules/vue-typescript-plugin/index.ts
It's a pseudo-code based on the `fork-ts-checker-webpack-plugin` implementation. It adds support for the `.vue` files.
```typescript
import compiler from 'vue-template-compiler';
function init(modules: { typescript: typeof import("typescript/lib/typescript") }) {
const ts = modules.typescript;
function create({ sourceMapHost }: ts.PreCompilerPluginModuleCreateInfo): ts.PreCompilerPlugin {
function getScriptKindByLang(lang: string | undefined) {
switch (lang) {
case 'ts':
return ts.ScriptKind.TS;
case 'tsx':
return ts.ScriptKind.TSX;
case 'jsx':
return ts.ScriptKind.JSX;
case 'json':
return ts.ScriptKind.JSON;
case 'js':
default:
return ts.ScriptKind.JS;
}
}
function createNoScriptSourceFile(
fileName: string,
sourceText: string,
languageVersion: ts.ScriptTarget,
setParentNodes: boolean | undefined
): ts.PreCompilerSourceFile {
const compiledText = 'export default {};';
// generate source map
const sourceMap = sourceMapHost.createSourceMapGenerator(fileName);
const sourceIndex = sourceMap.addSource(fileName);
sourceMap.setSourceContent(sourceIndex, sourceText);
const sourceTextNavigator = sourceMapHost.createSourceTextNavigator(sourceText);
const sourceStart = sourceTextNavigator.getLineAndCharacterOfPosition(0);
const sourceEnd = sourceTextNavigator.getLineAndCharacterOfPosition(sourceText.length);
sourceMap.addMapping(0, 0, sourceIndex, sourceStart.line, sourceStart.character);
sourceMap.addMapping(0, compiledText.length, sourceIndex, sourceEnd.line, sourceEnd.character);
// create source file
return ts.createPreCompiledSourceFile(
fileName,
'export default {};',
languageVersion,
ts.ScriptKind.JS,
setParentNodes
);
}
function createSrcScriptSourceFile(
fileName: string,
sourceText: string,
languageVersion: ts.ScriptTarget,
setParentNodes: boolean | undefined,
sourceStartPosition: number,
sourceEndPosition: number,
scriptTagSrc: string,
scriptTagLang: string | undefined,
): ts.PreCompilerSourceFile {
// import path cannot be end with '.ts[x]'
const compiledText = `export * from "${scriptTagSrc.replace(/\.tsx?$/i, '')}";`;
// generate source map
const sourceMap = sourceMapHost.createSourceMapGenerator(fileName);
const sourceIndex = sourceMap.addSource(fileName);
sourceMap.setSourceContent(sourceIndex, sourceText);
const sourceTextNavigator = sourceMapHost.createSourceTextNavigator(sourceText);
const sourceStart = sourceTextNavigator.getLineAndCharacterOfPosition(sourceStartPosition);
const sourceEnd = sourceTextNavigator.getLineAndCharacterOfPosition(sourceEndPosition);
sourceMap.addMapping(0, 0, sourceIndex, sourceStart.line, sourceStart.character);
sourceMap.addMapping(0, compiledText.length, sourceIndex, sourceEnd.line, sourceEnd.character);
// create source file
return ts.createPreCompiledSourceFile(
fileName,
compiledText,
languageVersion,
getScriptKindByLang(scriptTagLang),
setParentNodes,
sourceMap.toString()
);
}
function createInlineScriptSourceFile(
fileName: string,
sourceText: string,
languageVersion: ts.ScriptTarget,
setParentNodes: boolean | undefined,
sourceStartPosition: number,
scriptTagContent: string,
scriptTagLang: string | undefined
): ts.PreCompilerSourceFile {
const compiledText = sourceTagContent;
// generate source map
const sourceMap = sourceMapHost.createSourceMapGenerator(fileName);
const sourceIndex = sourceMap.addSource(fileName);
sourceMap.setSourceContent(sourceIndex, sourceText);
const sourceTextNavigator = sourceMapHost.createSourceTextNavigator(sourceText);
const compiledTextNavigator = sourceMapHost.createSourceTextNavigator(compiledText);
const compiledLineStarts = compiledTextNavigator.getLineStarts();
compiledLineStarts.forEach((compiledLineStart) => {
// map line by line
const sourceStart = sourceTextNavigator.getLineAndCharacterOfPosition(sourceStartPosition + compiledLineStart);
const sourceEnd = sourceTextNavigator.getLineAndCharacterOfPosition(sourceTextNavigator.getLineEndOfPosition(sourceStartPosition + compiledLineStart));
const compiledStart = compiledTextNavigator.getLineAndCharacterOfPosition(compiledLineStart);
const compiledEnd = compiledTextNavigator.getLineAndCharacterOfPosition(compiledTextNavigator.getLineEndOfPosition(compiledLineStart));
sourceMap.addMapping(compiledStart.line, compiledStart.character, sourceIndex, sourceStart.line, sourceStart.character);
sourceMap.addMapping(compiledEnd.line, compiledEnd.character, sourceIndex, sourceEnd.line, sourceEnd.character);
});
// create source file
return ts.createPreCompiledSourceFile(
fileName,
compiledText,
languageVersion,
getScriptKindByLang(scriptTagLang),
setParentNodes,
sourceMap.toString()
);
}
return {
extensions: ['.vue'],
createPreCompiledSourceFile(fileName, sourceText, languageVersion, setParentNodes) {
const { script } = compiler.parseComponent(sourceText, { pad: 'space' });
if (!script) {
// No <script> block
return createNoScriptSourceFile(fileName, sourceText, languageVersion, setParentNodes);
} else if (script.attrs.src) {
// <script src="file.ts" /> block
return createSrcScriptSourceFile(
fileName,
sourceText,
languageVersion,
setParentNodes,
script.start,
script.end,
script.attrs.src,
script.attrs.lang
);
} else {
// <script lang="ts"></script> block
return createInlineScriptSourceFile(
fileName,
sourceText,
languageVersion,
setParentNodes,
script.start,
sourceText.slice(script.start, script.end),
script.attrs.lang
);
}
}
}
}
return {
type: 'pre-compiler-plugin',
create
};
}
export = init;
```
## 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
|
high
|
Critical
|
623,383,629 |
TypeScript
|
Document how (lazy) type checking works
|
Before the whole compiler and its API is documented, could you add a few details about the type checker:
* What normally forces the type checking and inference of a name?
* How TSC forces all types to be checked?
* What are the options for an application using the compiler API to control/force type checking?
Potentially relevant wiki pages for this information:
* https://github.com/microsoft/TypeScript/wiki/Architectural-Overview
* https://github.com/microsoft/TypeScript/wiki/Using-the-Compiler-API
* https://github.com/microsoft/TypeScript/wiki/Compiler-Internals
## Search Terms
documentation, type check, laziness, architecture, compiler API
|
Docs
|
low
|
Minor
|
623,397,322 |
rust
|
rustdoc should add repository links automatically
|
It's handy to jump from docs to a repo, e.g. to explore/open issues, find examples, etc.
As an example of what this might look like, see [anyhow](https://docs.rs/anyhow/1.0.31/anyhow/).

Can the repository field be extracted from `Cargo.toml` easily enough so this wouldn't require any user changes to enable?
|
T-rustdoc,C-feature-request
|
low
|
Minor
|
623,399,150 |
pytorch
|
[FR] DataParallel arg rename device_ids->devices
|
## π Feature
It already accepts a list of devices. So this would make the argument consistent with the rest of the codebase. We can keep both / do a deprecation cycle / just put a warning for device_ids permanently for BC reasons.
|
triaged,enhancement,module: data parallel
|
low
|
Minor
|
623,431,383 |
rust
|
Lifetime issues: assigning to a mutable reference with part of its current value
|
**Edit: simplified reproducer as well as workaround available at https://github.com/rust-lang/rust/issues/72477#issuecomment-632890675**
Hello,
While trying to implement an AsyncRead wrapper, I have hit something that I think is the borrow-checker being too restrictive with `&mut` inside `Pin`.
I originally thought it was an issue in `pin-project`, but @taiki-e pointed out that the issue also happens with raw `Pin`, in https://github.com/taiki-e/pin-project/issues/226#issuecomment-632832485 (thank you!)
Copying the example here (with an explicit lifetime):
```rust
pub struct Foo<'a> {
buf: &'a mut [u8],
}
impl<'a> Foo<'a> {
fn foo<'b>(self: std::pin::Pin<&'b mut Self>) {
self.buf = &mut self.buf[1..];
}
}
```
[(playground)](https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=5c53998d9b9bbc8795127f8b197af74b)
This is potentially related to https://github.com/rust-lang/rust/issues/54934 ; but seeing as it manifests in a completely different way (ie. it doesn't manifest with just `&` references in the original example with pin-project linked above, though the example code here is incorrect indeed), I thought it'd be better to open another issue, as at worst it'd be fixed at the same time as https://github.com/rust-lang/rust/issues/54934 and would just add another test.
As usual, thank you for all you do on this great language!
|
A-lifetimes,T-compiler,C-bug
|
low
|
Critical
|
623,446,666 |
youtube-dl
|
Is there a way to download only Youtube videos that have english subtitles?
|
<!--
######################################################################
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 am watching a Korean Youtuber who is native Korean. His videos are all in his native tongue, but he occasionally updates some videos with some English subtitles. Is there a way to **ONLY** download videos where they have ENG subtitles? And if I rerun the script at a later date, is there also a way for youtube-dl to update my folder to include any new videos that has English subtitles uploaded?
Here is an example channel:
https://www.youtube.com/channel/UC0VR2v4TZeGcOrZHnmwbU_Q/videos
Here is an example video that has ENG subtitles:
https://www.youtube.com/watch?v=EQCE6KfZgtg
|
question
|
low
|
Critical
|
623,456,132 |
godot
|
Label with bottom alignment draws outside of its boundaries with the editor theme
|
Godot 3.2.1
I am making an editor plugin in which I designed a custom list of items. Each item has a label inside, and to handle the case of varying font sizes easily, I decided to simply make the label cover the item and use `bottom` alignment. This works great when designed in the scene editor:

So I expected that since the editor's font can be different (also due to DPI changes), it would reposition naturally without having to fiddle with margins or containers... nope, it even overlaps outside its boundaries :(

The result in my plugin:

This is very inconvenient because otherwise, I have to fiddle with margins, which means I have to manually adjust things if the font is different, because larger fonts push the label downwards, never upwards, and the scene editor uses a different font so the feedback doesn't line up (normally it should not matter precisely because of these UI rules we can apply, sadly they fail here). DPI scaling also has to be dealt with.
I also tried with a `VBoxContainer`, got the same result. The label clearly got outside of its container.
I wish this simplest setup just worked correctly by taking line height and ascent properly into account?
Test project with plugin inside:
[LabelAlignmentEditor.zip](https://github.com/godotengine/godot/files/4670175/LabelAlignmentEditor.zip)
|
bug,topic:gui
|
low
|
Minor
|
623,462,119 |
pytorch
|
[FR] Support SyncBatchNorm in DataParallel
|
## π Feature
Since all kernels are there, we only need to replace the distributed primitives with NCCL / `copy_` based ones, and a couple `threading.Barrier.wait` calls to synchronize. I implemented the NCCL version in this gist and it seems to work well for me https://gist.github.com/SsnL/386ac93eab9ebbaf12eeef2060da3c4e.
|
triaged,enhancement,module: nccl,module: data parallel
|
low
|
Minor
|
623,469,245 |
PowerToys
|
[Image Resizer] Allow to select multiple presets when resizing
|
Having some default presets of image sizes already, it would be great to have checkboxes instead of radio buttons, so user can resize each image to several specific files at once.
Side note:
- it should probably only create copies of an image.
|
Idea-Enhancement,Product-Image Resizer
|
low
|
Minor
|
623,476,365 |
youtube-dl
|
Request for support for learnenglish.britishcouncil.org
|
<!--
######################################################################
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.08. If it's not, see https://yt-dl.org/update on how to update. Issues with outdated version will be REJECTED.
- Make sure that all provided video/audio/playlist URLs (if any) are alive and playable in a browser.
- Make sure that site you are requesting is not dedicated to copyright infringement, see https://yt-dl.org/copyright-infringement. youtube-dl does not support such sites. In order for site support request to be accepted all provided example URLs should not violate any copyrights.
- Search the bugtracker for similar site support requests: http://yt-dl.org/search-issues. DO NOT post duplicates.
- Finally, put x into all relevant boxes (like this [x])
-->
- [X] I'm reporting a new site support request
- [X] I've verified that I'm running youtube-dl version **2020.05.08**
- [X] I've checked that all provided URLs are alive and playable in a browser
- [X] I've checked that none of provided URLs violate any copyrights
- [X] I've searched the bugtracker for similar site support requests including closed ones
## Example URLs
<!--
Provide all kinds of example URLs support for which should be included. Replace following example URLs by yours.
-->
- Single video: https://learnenglish.britishcouncil.org/episode-01-they-meet
- Single video: https://learnenglish.britishcouncil.org/episode-02-toms-party
## Description
<!--
Provide any additional information.
If work on your issue requires account credentials please provide them or explain how one can obtain them.
-->
WRITE DESCRIPTION HERE
|
site-support-request
|
low
|
Critical
|
623,489,254 |
go
|
go/printer: CommentedNode behavior is partially undocumented
|
### What did you do?
I read the documentation of package `go/printer` in order to understand how to use `printer.CommentedNode`.
`CommentedNode` is currently defined as:
```Go
// A CommentedNode bundles an AST node and corresponding comments.
// It may be provided as argument to any of the Fprint functions.
//
type CommentedNode struct {
Node interface{} // *ast.File, or ast.Expr, ast.Decl, ast.Spec, or ast.Stmt
Comments []*ast.CommentGroup
}
```
It is also mentioned in the documentation of the `Config.Fprint` method:
```Go
// Fprint "pretty-prints" an AST node to output for a given configuration cfg.
// Position information is interpreted relative to the file set fset.
// The node type must be *ast.File, *CommentedNode, []ast.Decl, []ast.Stmt,
// or assignment-compatible to ast.Expr, ast.Decl, ast.Spec, or ast.Stmt.
//
func (cfg *Config) Fprint(output io.Writer, fset *token.FileSet, node interface{}) error
```
As well as the `format.Node` function, but there isn't additional information there.
### What did you expect to see?
Documentation that would allow me to learn an answer to the question of "what happens to comments that are already a part of the `Node` being wrapped in a `printer.CommentedNode`?" without having to also read the source code.
### What did you see instead?
Insufficient documentation to know what the intended behavior is.
/cc @griesemer @josharian
|
Documentation,NeedsInvestigation
|
low
|
Critical
|
623,511,295 |
terminal
|
Prevent flickering due to scrolling when terminal is resized and cursor is off-screen
|
I've opened an issue about this before, but I still don't understand how to solve this problem (if it's solvable at all). It seems to me that, if a resize happens and the cursor gets pushed off-screen, then that will always trigger a scroll, which the application can detect and scroll the viewport back up and redraw the screen. The problem is this will introduce flickering as the application states before and after the resize will be separated by a third intermediary state in which the viewport was scrolled down. So far I see no way to have smooth, non-layout-breaking resizing if resizing can cause the viewport to scroll. So I have a couple questions:
1. Is there a way to prevent this flickering from happening?
2. If it is impossible to prevent auto scrolling when cursor is pushed off-screen, would always having the cursor at the next to last line and maybe polling frequently enough mitigate this issue?
3. Couldn't an application just opt-out of this behavior. Maybe there could be a console mode that you could set to always have the cursor within the screen if the window is resized that would work only when an application switches to the alternate screen buffer.
|
Issue-Question,Product-Meta,Needs-Tag-Fix
|
low
|
Major
|
623,522,313 |
TypeScript
|
TSServer Completions - Context Needed
|
## Search Terms
- completions
- tsserver
- completionsInfo
- completionEntryDetails
## Suggestion
I know this may need to go through the lengthy process of going through lsp spec then implementation etc etc but figured I would bring it up here first in case I am missing something.
I was recently working on improvements to the vscode handling of linking in the documentation hovers and completions to support relative linking (from the defined documentation: @see https://github.com/microsoft/vscode/pull/98238 ) among other things.
For the most part, this entailed supplementing the requests being made with a request for the `definition` so that I could get the path of the file that actually is providing a given documentation value.
This worked fine for hovers and even completions in SOME cases but in others it was impossible to reliably capture the definition information - namely during completions.
It seems like it makes sense that we would want to be able to know where the information being provided is actually coming from. This would allow quite a few improvements to the UX of the editor to give even richer information.
For example, a completion popup could provide information & potentially doocumentation of the actual enclosing type, file, and linking using the new features added in the PR given.
Currently when I can not get the path I just have to render as regular text which provides an inconsistent user experience (and actually breaks things in current vscode releases).
With vscode, say you have imported a value and you are building an object that implements the imported type:
```typescript
import type { ButtonProps } from 'components/Button'
const props: ButtonProps = {
| <--- cursor is here
}
```
Now the user opens the completions context or starts typing. The problem is that we can capture the completionsInfo and everything else, but based on the current cursor position it is impossible to actually know what actually is providing the type itself.

You will notice that the right side of the popup is actually blank here as well due to this. Ideally we could render the name of the type there and potentially in the actual hover allow the user to get the documentation of the `ButtonProps` itself.
## Examples
Essentially either allow providing of an argument to `completionEntryDetails` and/or `completionsInfo` to return the location of the type providing the definition so that a call to `definition` or `quickInfo` could be made to capture more context if desired, or just provide that by default.
## Checklist
My suggestion meets these guidelines:
* [x] This wouldn't be a breaking change in existing TypeScript/JavaScript code
* [x] This wouldn't change the runtime behavior of existing JavaScript code
* [x] This could be implemented without emitting different JS based on the types of the expressions
* [x] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)
* [x] This feature would agree with the rest of [TypeScript's Design Goals](https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals).
|
Suggestion,Awaiting More Feedback
|
low
|
Minor
|
623,526,516 |
go
|
x/tools/go/analysis/passes/asmdecl: false error report for 16 byte move
|
The following assembly
```s
#include "textflag.h"
// func Shuffle(mask []byte, data []byte) [4]uint32
// Requires: SSE2, SSSE3
TEXT Β·Shuffle(SB), NOSPLIT, $0-64
MOVQ mask_base+0(FP), AX
MOVQ data_base+24(FP), CX
MOVOU (CX), X0
PSHUFB (AX), X0
MOVOU X0, ret+48(FP)
RET
```
produces the following error report from `asmdecl`:
```
[amd64] Shuffle: invalid MOVOU of ret+48(FP); [4]uint32 is 16-byte value
```
Since [`MOVOU` is a 128-bit move](https://x86.puri.sm/html/file_module_x86_id_184.html), this is a false positive.
The error is produced here: https://github.com/golang/tools/blob/73554e0f78058c37e5421bc48273a72400172221/go/analysis/passes/asmdecl/asmdecl.go#L781
Inspecting this code, it's clear that the move size detection does not handle sizes of 16 bytes and up.
|
NeedsInvestigation,Tools,Analysis
|
low
|
Critical
|
623,563,299 |
tensorflow
|
Unable to log scalar summaries in XLA
|
**System information**
- Have I written custom code (as opposed to using a stock example script provided in TensorFlow): yes
- OS Platform and Distribution (e.g., Linux Ubuntu 16.04): macOS 10.15.5 Beta
- Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: n/a
- TensorFlow installed from (source or binary): binary
- TensorFlow version (use command below): 2.2.0
- Python version: 3.8.2
- Bazel version (if compiling from source): n/a
- GCC/Compiler version (if compiling from source): n/a
- CUDA/cuDNN version: n/a
- GPU model and memory: n/a
**Describe the current behavior**
Forcing XLA compilation via `experimental_compile=True` in a `tf.function` raises `tensorflow.python.framework.errors_impl.InvalidArgumentError` when the function contains `tf.summary.scalar` (I haven't tried other summaries).
**Describe the expected behavior**
Passing `experimental_compile=True` should log the scalar without raising any errors.
**Standalone code to reproduce the issue**
```python
import tensorflow as tf
@tf.function(
experimental_compile=True,
)
def test_summaries():
tf.summary.scalar('testing', 12.3)
with tf.summary.create_file_writer('./logs').as_default():
tf.summary.experimental.set_step(0)
test_summaries()
```
**Other info / logs**
```
2020-05-22 22:30:57.072264: I tensorflow/core/platform/cpu_feature_guard.cc:143] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
2020-05-22 22:30:57.091548: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x7f99eef80060 initialized for platform Host (this does not guarantee that XLA will be used). Devices:
2020-05-22 22:30:57.091590: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): Host, Default Version
Traceback (most recent call last):
File "testsum.py", line 12, in <module>
test_summaries()
File "/private/tmp/venv/lib/python3.8/site-packages/tensorflow/python/eager/def_function.py", line 576, in __call__
result = self._call(*args, **kwds)
File "/private/tmp/venv/lib/python3.8/site-packages/tensorflow/python/eager/def_function.py", line 650, in _call
return self._concrete_stateful_fn._filtered_call(canon_args, canon_kwds) # pylint: disable=protected-access
File "/private/tmp/venv/lib/python3.8/site-packages/tensorflow/python/eager/function.py", line 1661, in _filtered_call
return self._call_flat(
File "/private/tmp/venv/lib/python3.8/site-packages/tensorflow/python/eager/function.py", line 1745, in _call_flat
return self._build_call_outputs(self._inference_function.call(
File "/private/tmp/venv/lib/python3.8/site-packages/tensorflow/python/eager/function.py", line 593, in call
outputs = execute.execute(
File "/private/tmp/venv/lib/python3.8/site-packages/tensorflow/python/eager/execute.py", line 59, in quick_execute
tensors = pywrap_tfe.TFE_Py_Execute(ctx._handle, device_name, op_name,
tensorflow.python.framework.errors_impl.InvalidArgumentError: Function invoked by the following node is not compilable: {{node __inference_test_summaries_22}} = __inference_test_summaries_22[_XlaMustCompile=true, config_proto="\n\007\n\003GPU\020\000\n\007\n\003CPU\020\0012\002J\0008\001", executor_type=""](dummy_input).
Uncompilable nodes:
testing/write_summary/tag: unsupported op: Const op with type DT_STRING is not supported by XLA.
Stacktrace:
Node: __inference_test_summaries_22, function:
Node: testing/write_summary/tag, function: __inference_test_summaries_22
testing/write_summary/summary_metadata: unsupported op: Const op with type DT_STRING is not supported by XLA.
Stacktrace:
Node: __inference_test_summaries_22, function:
Node: testing/write_summary/summary_metadata, function: __inference_test_summaries_22
testing/write_summary: unsupported op: No registered 'WriteSummary' OpKernel for XLA_CPU_JIT devices compatible with node {{node testing/write_summary}}
Stacktrace:
Node: __inference_test_summaries_22, function:
Node: testing/write_summary, function: __inference_test_summaries_22
[Op:__inference_test_summaries_22]
```
|
comp:tensorboard,stat:awaiting tensorflower,type:bug,comp:xla,TF 2.11
|
low
|
Critical
|
623,572,256 |
PowerToys
|
New Folder with Selection
|
# Summary of the new feature/enhancement
Provide a means to select files then put them into a new folder created at the time the operation is executed.
# Proposed technical implementation details (optional)
Essentially this is a Windows Explorer implementation of the similarly named function in (Apple's) macOS Finder. Effectively this is a reverse sequence of events from what is required in Windows Explorer currently.
Select files in Explorer. Right click and select from a context menu, or click a button on the toolbar to launch the operation. A new folder is created within the current folder one is in/viewing in Windows Explorer. Once the folder is named, the selected files are moved into that folder.
**@crutkas edit**
FROM #6405 by @zeealeid
## "Hopper" β Easier way to create new folders from files located two or more locations.
Here's an idea for (potentially) a new PowerToy:
**Introducing Hopper:**
Imagine if you want to create a new folder containing files from two different locations. The process would take some time right?
But with Hopper, just hit a keystroke, select the files and drop them in the Hopper. Select the files from the second directory and drop them in the Hopper too.


Then hopper would ask you a few questions about the name of the folder and it would ask, would the files be copied from the locations or be moved from the locations.


And voila! Here's your new folder!
|
Help Wanted,Idea-New PowerToy,Status-In progress
|
medium
|
Critical
|
623,598,899 |
godot
|
Image.FORMAT_R8 uses Alpha in GLES2 instead of Red channel, this is not reflected in docs
|
**Godot version:** v3.2.1.stable.official, though relevant code appears to be the same in master
**OS/device including version:**
**Issue description:** Using `Image.FORMAT_R8` in GLES3 correctly produces `ImageTexture`s that have your given data in the *Red* channel. In GLES2, the data is not in the *Red* channel but the *Alpha* channel, breaking compatibility between the two backends and also breaking expectations.
The documentation does not specify this behavior which can cause confusion.
Relevant GLES3 code: https://github.com/godotengine/godot/blob/00949f0c5fcc6a4f8382a4a97d5591fd9ec380f8/servers/rendering/rasterizer_rd/rasterizer_storage_rd.cpp#L56-L61
Relevant GLES2 code: https://github.com/godotengine/godot/blob/00949f0c5fcc6a4f8382a4a97d5591fd9ec380f8/drivers/gles2/rasterizer_storage_gles2.cpp#L156-L158
Relevant documentation: https://github.com/godotengine/godot/blob/master/doc/classes/Image.xml#L506-L507
**Steps to reproduce:** Create an `Image` with format `Image.FORMAT_R8`, add data to it either by drawing pixels or supplying it with an existing `PoolByteArray`, create an `ImageTexture` from that `Image` and draw it.
**Minimal reproduction project:**
Make a scene based off a Control, add a TextureRect as a child with the following script:
```
extends TextureRect
func _ready() -> void:
rect_scale = Vector2(100, 100)
var image = Image.new()
image.create_from_data(3, 3, false, Image.FORMAT_R8, PoolByteArray([0, 20, 40, 60, 80, 100, 128, 180, 255]))
var image_texture = ImageTexture.new()
image_texture.create_from_image(image, 0)
texture = image_texture
```
**Proposed fixes:**
1. Least disruptive to existing projects - add a note to the documentation specifying that `Image.FORMAT_R8` will store data in the Alpha channel in GLES2.
2. Make the GLES2 backend use `GL_LUMINANCE` instead of `GL_APLHA` for the format and internal format. The OpenGL ES2.0 reference card states that the red channel is used to access the data in this format, which will ensure compatibility with godot shaders written for the GLES3 backend, and not break expectations for users who aren't already working around the current behavior. It won't draw the same pure-red gradient that the GLES3 backend might, but it will give more expected behavior for shader code.
https://www.khronos.org/opengles/sdk/docs/reference_cards/OpenGL-ES-2_0-Reference-card.pdf

|
bug,discussion,topic:core,good first issue,documentation
|
low
|
Minor
|
623,603,377 |
terminal
|
When WSL is slow to respond, and a WSL profile is default, we throw a weird error message
|
<!--
π¨π¨π¨π¨π¨π¨π¨π¨π¨π¨
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!
-->
<!--
This bug tracker is monitored by Windows Terminal development team and other technical folks.
**Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**.
Instead, send dumps/traces to [email protected], referencing this GitHub issue.
If this is an application crash, please also provide a Feedback Hub submission link so we can find your diagnostic data on the backend. Use the category "Apps > Windows Terminal (Preview)" and choose "Share My Feedback" after submission to get the link.
Please use this form and describe your issue, concisely but precisely, with as much detail as possible.
-->
# Environment
```none
Windows build number: Microsoft Windows [Version 10.0.19628.1]
Windows Terminal version (if applicable): Windows Terminal Version: 1.0.1401.0
Any other software?
```
# Steps to reproduce
After booting completes. Open terminal. And error pops up. Close the terminal and reopen, then the terminal open the shell in `/mnt/c/Users/being$` directory.
After again closing the terminal and reopen it starts working normally.
# Expected behavior
Load all the settings listed in `C:\Users\being\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json` file correctly
And open in just 1 time.
# Actual behavior
- After first opening the terminal this error pops up.
Encountered errors while loading user settings

- After second opening the terminal. It starts in `/mnt/c/Users/being$` irrespective of starting directory mentioned in the setting.json
- After 3 time opening the terminal it works correctly.
- Actual json file.
```bash
// This file was initially generated by Windows Terminal 0.11.1333.0
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{2c4de342-38b7-51cf-b940-2309a097f518}",
// You can add more global application settings here.
// To learn more about global settings, visit https://aka.ms/terminal-global-settings
// If enabled, selections are automatically copied to your clipboard.
"copyOnSelect": false,
// If enabled, formatted data is also copied to your clipboard
"copyFormatting": false,
// A profile specifies a command to execute paired with information about how it should look and feel.
// Each one of them will appear in the 'New Tab' dropdown,
// and can be invoked from the commandline with `wt.exe -p xxx`
// To learn more about profiles, visit https://aka.ms/terminal-profile-settings
"profiles":
{
"defaults":
{
// Put settings here that you want to apply to all profiles.
},
"list":
[
{
"guid": "{2c4de342-38b7-51cf-b940-2309a097f518}",
"hidden": false,
"name": "Ubuntu",
"source": "Windows.Terminal.Wsl",
"startingDirectory": "\\\\wsl$\\Ubuntu\\home\\dark",
"icon" : "C:\\Users\\being\\ubuntu.png"
},
{
// Make changes here to the powershell.exe profile.
"guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"name": "Windows PowerShell",
"commandline": "powershell.exe",
"hidden": false
},
{
// Make changes here to the cmd.exe profile.
"guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
"name": "Command Prompt",
"commandline": "cmd.exe",
"hidden": false
},
{
"guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}",
"hidden": false,
"name": "Azure Cloud Shell",
"source": "Windows.Terminal.Azure"
}
]
},
// Add custom color schemes to this array.
// To learn more about color schemes, visit https://aka.ms/terminal-color-schemes
"schemes": [],
// Add custom keybindings to this array.
// To unbind a key combination from your defaults.json, set the command to "unbound".
// To learn more about keybindings, visit https://aka.ms/terminal-keybindings
"keybindings":
[
// Copy and paste are bound to Ctrl+Shift+C and Ctrl+Shift+V in your defaults.json.
// These two lines additionally bind them to Ctrl+C and Ctrl+V.
// To learn more about selection, visit https://aka.ms/terminal-selection
{ "command": {"action": "copy", "singleLine": false }, "keys": "ctrl+c" },
{ "command": "paste", "keys": "ctrl+v" },
// Press Ctrl+Shift+F to open the search box
{ "command": "find", "keys": "ctrl+shift+f" },
// Press Alt+Shift+D to open a new pane.
// - "split": "auto" makes this pane open in the direction that provides the most surface area.
// - "splitMode": "duplicate" makes the new pane use the focused pane's profile.
// To learn more about panes, visit https://aka.ms/terminal-panes
{ "command": { "action": "splitPane", "split": "auto", "splitMode": "duplicate" }, "keys": "alt+shift+d" }
] }
```
|
Help Wanted,Issue-Bug,Area-Settings,Product-Terminal
|
low
|
Critical
|
623,614,250 |
youtube-dl
|
Parentheses for meta fields in format selection syntax
|
<!--
######################################################################
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.08. If it's not, see https://yt-dl.org/update on how to update. Issues with outdated version will be REJECTED.
- Search the bugtracker for similar feature requests: http://yt-dl.org/search-issues. DO NOT post duplicates.
- Finally, put x into all relevant boxes (like this [x])
-->
- [x] I'm reporting a feature request
- [x] I've verified that I'm running youtube-dl version **2020.05.08**
- [x] I've searched the bugtracker for similar feature requests including closed ones
## Description
<!--
Provide an explanation of your issue in an arbitrary form. Please make sure the description is worded well enough to be understood, see https://github.com/ytdl-org/youtube-dl#is-the-description-of-the-issue-itself-sufficient. Provide any additional information, suggested solution and as much context and examples as possible.
-->
Currently, format selection allows doing things like `(bestvideo+bestaudio/best)[protocol^=http]` which is a handy shortcut for `bestvideo+bestaudio[protocol^=http]/best[protocol^=http]`
Unfortunately, this is currently only allowed for formats and not meta field filters.
Below is an example of how this would work:
`bestvideo[height>=1080][height<1440][fps>30]([vcodec^=av01]/[vcodec=vp9.2]/[vcodec^=vp9])+bestaudio/best`
would be equivalent to
`(bestvideo[vcodec^=av01][height>=1080][height<1440][fps>30]/bestvideo[vcodec=vp9.2][height>=1080][height<1440][fps>30]/bestvideo[vcodec^=vp9][height>=1080][height<1440][fps>30])+bestaudio/best`
|
request
|
low
|
Critical
|
623,621,618 |
create-react-app
|
public ,src, script directory is not creating while installing create-react-app
|
on run command npx create-react-app my-app not creating public, src and script folder, only node-modules, package.json and yarn.lock file is coming
OS: windows10
node: V12.14.0
npm/npx : 6.13.4
C:\Users\vivek_Vishu\Desktop\project>npx create-react-app my-app
Creating a new React app in C:\Users\vivek_Vishu\Desktop\project\my-app.
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...
yarn add v1.22.0
[1/4] Resolving packages...
[2/4] Fetching packages...
info [email protected]: The platform "win32" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
info [email protected]: The platform "win32" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning "react-scripts > @typescript-eslint/eslint-plugin > [email protected]" has unmet peer dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta".
[4/4] Building fresh packages...
success Saved lockfile.
success Saved 13 new dependencies.
info Direct dependencies
ββ [email protected]
ββ [email protected]
ββ [email protected]
ββ [email protected]
info All dependencies
ββ @babel/[email protected]
ββ @babel/[email protected]
ββ @babel/[email protected]
ββ @babel/[email protected]
ββ [email protected]
ββ [email protected]
ββ [email protected]
ββ [email protected]
ββ [email protected]
ββ [email protected]
ββ [email protected]
ββ [email protected]
ββ [email protected]
Done in 223.41s.
|
issue: needs investigation
|
medium
|
Critical
|
623,624,367 |
terminal
|
Box drawing characters are not antialiased
|
# Environment
```none
Windows build number: Microsoft Windows [Version 10.0.18362.592]
Windows Terminal version (if applicable): Version: 1.0.1401.0
Any other software? No.
```
# Steps to reproduce
1. Install the latest 1.x version of Windows Terminal and open a WSL terminal.
2. Download and display the [UTF-8 Demo Text](https://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-demo.txt), for an example
`$ curl https://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-demo.txt`
# Expected behavior
The box drawings are properly rasterized with antialiasing in similar fashion to the rest of the text. Here is an example from Fluent Terminal using the Inconsolata font:

(Note: I'm not necessarily saying this is perfect either, but it's at least _closer_ to what would be an acceptable and more consistent result.)
# Actual behavior
The box drawing glyphs are severely aliased, unlike any other text, with visible pixel gaps in diagonal elements, and generally just look _really_ bad. Rendered in the latest stable Windows Terminal version using the Inconsolata font (size 10pt):

This behavior is not just limited to Inconsolata, but happens with every font, and every size. Here is for an example **Cascadia Mono** in different sizes:
8pt

10pt

12pt

This behavior was introduced recently in the RC versions, and I assume `0.11.1333.0` in specific since it included #5743 which altered the way box drawing glyphs were handled. Prior versions had alignment issues with these glyphs that the PR aimed to fix, but at least the glyphs were still rendered nicely individually, with a similar, comparable output to what Fluent Terminal produces.
|
Area-Rendering,Issue-Bug,Product-Terminal,Priority-3
|
medium
|
Major
|
623,642,482 |
rust
|
Incorrect error message, βcan't call method on ambiguous numeric type `{integer}`β
|
```rust
// use std::ops::AddAssign;
fn foo() {
1.add_assign(1);
}
```
Uncomment the `use` and it compiles, QED.
([Playground](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=a9ade89e2201a31813f3c3c56ac117a0))
Errors:
```
Compiling playground v0.0.1 (/playground)
error[E0689]: can't call method `add_assign` on ambiguous numeric type `{integer}`
--> src/lib.rs:4:7
|
4 | 1.add_assign(1);
| ^^^^^^^^^^
|
help: you must specify a concrete type for this numeric value, like `i32`
|
4 | 1_i32.add_assign(1);
| ^^^^^
error: aborting due to previous error
For more information about this error, try `rustc --explain E0689`.
error: could not compile `playground`.
To learn more, run the command again with --verbose.
```
<hr>
After following the compilerβs hint, we get:
```rust
// use std::ops::AddAssign;
fn foo() {
1_i32.add_assign(1);
}
```
([Playground](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=120e045f5c7dd1e6025bf9458d3e569a))
Errors:
```
Compiling playground v0.0.1 (/playground)
error[E0599]: no method named `add_assign` found for type `i32` in the current scope
--> src/lib.rs:4:11
|
4 | 1_i32.add_assign(1);
| ^^^^^^^^^^ method not found in `i32`
|
= help: items from traits can only be used if the trait is in scope
help: the following trait is implemented but not in scope; perhaps add a `use` for it:
|
3 | use std::ops::AddAssign;
|
error: aborting due to previous error
For more information about this error, try `rustc --explain E0599`.
error: could not compile `playground`.
To learn more, run the command again with --verbose.
```
So, I suppose, at least 2 steps do currently lead to a compiling program.
@rustbot modify labels: T-compiler, A-diagnostics, D-incorrect, C-bug.
|
C-enhancement,A-diagnostics,T-compiler,A-suggestion-diagnostics,D-papercut
|
low
|
Critical
|
623,652,927 |
PowerToys
|
Disable "Alt+underlined letter" menu
|
it's super annoying when i'm using ALL KINDS OF APPLICATIONS (like photoshop,powerpoint etc.),and there is no official way to fix it,maybe we can fix it by PWT

ps: unofficial solutionοΌ
https://www.youtube.com/watch?v=vRld4bVFrpU
|
Idea-New PowerToy
|
low
|
Major
|
623,653,914 |
godot
|
GLES2.0 shader time precision error
|
**Godot version:**
3.2.2 Beta 3 Official
**OS/device including version:**
Android (Xiaomi Poccophone)
**Issue description:**
When using time uniform in shaders for trigonometrical functions it will mess up the calculations after a time, even when using modulo to prevent precision errors. This will not happen in the editor or on desktop.
It does look like for example displacement (for water) is having low fps after a time, but the fps of the game are okay, so my guess is, that after a time there are some **precision errors despite using modulo functions**.
**Steps to reproduce:**
I've been using canvas items combined with using a screen texture to calculate some displacement.
Using a simple expression like this, with vector `uv`, scalar `time` input and `uv_out` vector output:
```
float x = sin(mod(time, 6.28318530718));
float y = cos(mod(time, 6.28318530718));
uv_out.xy = uv.xy + vec2(x, y) * 0.0025;
```
is already enough that the time value will start to messing up the shader after a short time (one minute or two is enough for me)
**Minimal reproduction project:**
I will add one lateron.
|
platform:android,topic:shaders
|
low
|
Critical
|
623,655,378 |
godot
|
Material UI not responding when updating shader params in tool mode
|
**Godot version:**
3.2.2 Beta 3 Official
**OS/device including version:**
Windows 10
**Issue description:**
Having a `sprite node` with a tool script attached to it:
```
tool
extends Sprite
func _process(delta: float) -> void:
material["shader_param/Uniform"] = ArbitraryValue
```
And having a material which is using a `VisualShader`, the editor UI for the material shader will not be clickable anymore. This is preventing the shader being opened via the sprites material property panel.
**Steps to reproduce:**
add a sprite to the scene.
add a new material to the sprite with a visual shader.
Add a uniform to the visual shader and use it somehow. (a color uniform for example)
also attach a new script with tool mode in which updates a material uniform in the process function.
Reopen the scene, so that the tool starts processing.
Try opening the Visual script via the sprite's property panels.
**Minimal reproduction project:**
|
bug,topic:editor,topic:shaders
|
low
|
Minor
|
623,662,406 |
PowerToys
|
[Run] Add option for custom locations, custom commands, workflow
|
Hi,
First of all let me say I absolutely love PowerToys and use it on a daily basis.
The new app launcher is great and since it works more smoothly and lag free for me compared to other third-party programs is what attracted me to it. But the only thing, at least in my workflow, is the ability to create custom commands.
For example, a custom command to open a specific file or a folder (which is not within the Users folder, or is hidden), will make a monumental change in my workflow.
|
Idea-Enhancement,Product-PowerToys Run
|
high
|
Critical
|
623,663,889 |
flutter
|
[web ]Tab label shows white and text overflows when using long text
|
## Steps to Reproduce
1. Put a few tabs into a `DefaultTabController` with relatively long labels.
2. Make sure you reduce the width of your browser window so that the tabs have no room to display in full.
**Expected results:**
Correct display.
**Actual results:**
Labels with overflown texts will show an extra white background.

<details>
<summary>Doc</summary>
```
[β] Flutter (Channel beta, 1.18.0-11.1.pre, on Microsoft Windows [Version 10.0.18363.836], locale en-US)
β’ Flutter version 1.18.0-11.1.pre at E:\Android\flutter-beta
β’ Framework revision 2738a1148b (10 days 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.1)
β’ Android SDK at e:\Android\Sdk
β’ Platform android-29, build-tools 29.0.1
β’ 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.
[β] Chrome - develop for the web
β’ CHROME_EXECUTABLE = e:\Android\chrome.bat
[β] 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 (2 available)
β’ Web Server β’ web-server β’ web-javascript β’ Flutter Tools
β’ Chrome β’ chrome β’ web-javascript β’ Google Chrome 81.0.4044.138
β’ No issues found!
```
</details>
|
engine,platform-web,e: web_html,has reproducible steps,customer: web10,P2,customer: june,found in release: 3.3,found in release: 3.6,team-web,triaged-web
|
low
|
Major
|
623,669,256 |
pytorch
|
fold variation
|
current scenario -
the current nn.Fold module adds all the overlalpping values, would it be a good idea to add `mode` to nn.Fold, for example,
```
x = torch.randn(5, 5)
x = x.unfold(0, 3, 1).unfold(1, 3, 1)
x = x.reshape(1, 9, 9)
x
```
gives
```
tensor([[[-0.6498, 0.0957, 0.0787, 0.8407, -2.1366, 0.4104, 1.2258,
1.3592, 2.0226],
[ 0.0957, 0.0787, -0.5516, -2.1366, 0.4104, 0.8823, 1.3592,
2.0226, -2.2944],
[ 0.0787, -0.5516, 1.2226, 0.4104, 0.8823, 0.5543, 2.0226,
-2.2944, -1.3409],
[ 0.8407, -2.1366, 0.4104, 1.2258, 1.3592, 2.0226, -1.6431,
-0.3634, 0.8279],
[-2.1366, 0.4104, 0.8823, 1.3592, 2.0226, -2.2944, -0.3634,
0.8279, -0.0448],
[ 0.4104, 0.8823, 0.5543, 2.0226, -2.2944, -1.3409, 0.8279,
-0.0448, -0.0296],
[ 1.2258, 1.3592, 2.0226, -1.6431, -0.3634, 0.8279, 0.2688,
-0.4359, -0.9921],
[ 1.3592, 2.0226, -2.2944, -0.3634, 0.8279, -0.0448, -0.4359,
-0.9921, 1.3234],
[ 2.0226, -2.2944, -1.3409, 0.8279, -0.0448, -0.0296, -0.9921,
1.3234, -0.6501]]])
```
when we do,
```
a = nn.Fold((5, 5), (3))
a(x)
```
then it gives,
```
tensor([[[[ -0.6498, 0.1913, 0.2362, -1.1031, 1.2226],
[ 1.6814, -8.5464, 2.4621, 3.5293, 1.1086],
[ 3.6775, 8.1553, 18.2035, -13.7661, -4.0226],
[ -3.2862, -1.4536, 4.9672, -0.1792, -0.0592],
[ 0.2688, -0.8718, -2.9763, 2.6468, -0.6501]]]])
```
overlapping values got added, like, ```0.0957*2``` gives ```0.1913```, ```0.0787*3``` gives ```0.2362``` and so on
expected scenario -
there is a mode option in nn.Fold, something like,
```
a = nn.Fold((5, 5), 3, mode='mul/sum/mean')
```
so that these variations of overlapping values could be obtained, or a custom function option, to manipulate overlapping values, for example, if user wants to not do ```mul/sum/mean``` but instead get overlapping value added by 1, or something like that.
cc @albanD @mruberry
|
feature,module: nn,triaged,function request
|
low
|
Major
|
623,695,922 |
terminal
|
Settings might not load correctly if file is saved as ANSI, not UTF-8 (WAS: No background image displayed if set to a path that contains accented chars.)
|
<!--
π¨π¨π¨π¨π¨π¨π¨π¨π¨π¨
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!
-->
<!--
This bug tracker is monitored by Windows Terminal development team and other technical folks.
**Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**.
Instead, send dumps/traces to [email protected], referencing this GitHub issue.
If this is an application crash, please also provide a Feedback Hub submission link so we can find your diagnostic data on the backend. Use the category "Apps > Windows Terminal (Preview)" and choose "Share My Feedback" after submission to get the link.
Please use this form and describe your issue, concisely but precisely, with as much detail as possible.
-->
# Environment
```none
Windows build number: 10.0.18363.836
Windows Terminal version (if applicable): 1.0.1401.0
Any other software? No.
```
# Steps to reproduce
<!-- A description of how to trigger this bug. -->
Set `$.profiles.defaults.backgroundImage` to a path that contains accented chars.
For example `Pictures` in Hungarian is `KΓ©pek`, so my path setting is like:
`"backgroundImage": "C:\\Users\\Gabor\\KΓ©pek\\picture.png"`
# Expected behavior
<!-- A description of what you're expecting, possibly containing screenshots or reference material. -->
The selected image is expected to be displayed as the background image.
# Actual behavior
<!-- What's actually happening? -->
No background image is dispayed as if I did not set `$.profiles.defaults.backgroundImage`.
**Please note:**
if the same image is in my `Desktop` directory which is `Asztal` in Hungarian (`"backgroundImage": "C:\\Users\\Gabor\\Asztal\\picture.png"`) then the picture is displayed correctly.
|
Help Wanted,Issue-Bug,Area-TerminalControl,Area-Settings,Product-Terminal,Priority-2
|
medium
|
Critical
|
623,703,295 |
PowerToys
|
[KBM] Use Tab or Space as modifier key
|
# Use Tab or Space as modifier key
Normally, only Shift, Alt, Ctrl are modifier keys. But if who is a fanboy of AutoHotKey will know the well-known mapping of using Tab or Space as modifier, especially to use Tab + W/A/S/D as arrow keys
|
Idea-Enhancement,Product-Keyboard Shortcut Manager
|
low
|
Major
|
623,714,220 |
rust
|
Audit uses of `skip_binder` in diagnostics code
|
As discussed in #71618, `skip_binder` is called very often in diagnostics code. In general, this is incorrect for types with late-bound regions, e.g. function pointers. We should audit uses of `skip_binder` and replace them with `no_bound_vars` + early return or `unwrap`. If there are uses of `skip_binder` that are benign, for example debug printing or comparing with a known type, we should abstract this behind a function to minimize the number of calls to `skip_binder` that need to be checked.
|
C-cleanup,A-diagnostics,A-trait-system,T-compiler,T-types
|
low
|
Critical
|
623,721,231 |
PowerToys
|
[Run][Calculator Plugin] Add functions (bin2dec,hex2dec,oct2dec)
|
<!--
**Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**.
Instead, send dumps/traces to [email protected], referencing this GitHub issue.
-->
# Environment
```
Windows build number: 10.0.18363.836
PowerToys version: 0.18.1
PowerToy module for which you are reporting the bug (if applicable): Microsoft.Plugin.Calculator
```
# Steps to reproduce
<!-- A description of how to trigger this bug. -->
1. Open Launcher (alt+space)
2. write in the windows "hex2dec(20)"
# Expected behavior
<!-- A description of what you're expecting, possibly containing screenshots or reference material. -->
UI should show 32
# Actual behavior
<!-- What's actually happening? -->
UI showing nothing
# Screenshots
<!-- If applicable, add screenshots to help explain your problem. -->

|
Idea-Enhancement,Product-PowerToys Run,Run-Plugin
|
low
|
Critical
|
623,724,009 |
excalidraw
|
Canvas background color is not synced in collaborative mode
|
Right now we only sync the elements in the drawing in collaborative mode. We also need to sync the background color from appState or figure out another way to do it.
|
bug,collaboration
|
low
|
Minor
|
623,724,224 |
rust
|
Consider making `cfg(feature = "crt-static")` available *only* for link-time configuration
|
`cfg` predicates used for link-time configuration (`#[link(cfg(predicate))]` https://github.com/rust-lang/rust/issues/37406 https://github.com/rust-lang/rust/issues/72059) may want to use data that is available only long after the regular `cfg` expansion happens.
For example,
- whether we are linking an executable or library (that's the case for `crt-static`)
- whether we use dynamic linking (in some sense) (that's the case for https://github.com/rust-lang/rust/issues/72241#issuecomment-633053281)
We can come up with some predicate value during regular `cfg` expansion, but it may be different from the predicate value that we really want at link time.
Is `cfg(feature = "crt-static")` ever used for regular `cfg` expansion?
It was created mostly with link-time configuration in mind.
We probably need to check it with crater.
|
A-linkage,C-enhancement,T-lang,T-compiler
|
low
|
Minor
|
623,730,675 |
rust
|
No warning when trait extension fn's conflict with pre-existing fn's
|
When trying to use a trait extension for the Result type, I found that calling code seemed to not be using my implemented methods at all. Turns out, I was defining `or(self, Self) -> Self`, which Result already has an implementation of - so any code calling a.or(b) was calling Result's `or`, not my `or`. I know this is why it's best practice to use a newtype in these situations, but it would be awesome to have a warning message or some sign that your traits impls aren't going to be used.
Repro code:
```rust
pub trait IntResultExt {
fn or(self, then: Result<i32, ()>) -> Result<i32, ()>;
}
impl IntResultExt for Result<i32, ()> {
fn or(self, then: Result<i32, ()>) -> Result<i32, ()> {
match (self, then) {
(Ok(l), Ok(r)) => Ok(l+r),
_ => Err(())
}
}
}
fn main() {
let a: Result<i32, ()> = Ok(1);
let b: Result<i32, ()> = Ok(2);
println!("{:?}", a.or(b)); // Expected Ok(3), got Ok(1)
}
```
([Playground](https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=1d0de59cfd6c9ca2caa2b8763eb48306))
|
A-type-system,T-libs-api,C-bug,T-types
|
low
|
Critical
|
623,732,009 |
create-react-app
|
ES7 features support & export-ns-from support
|
Is CRA planning to support this proposal from stage 4?
https://github.com/tc39/proposal-export-ns-from
|
tag: underlying tools
|
low
|
Minor
|
623,732,832 |
TypeScript
|
Function parameter that has inferred type has no intellisense in the return , while it has in the rest of the function body
|
**TypeScript Version:** 3.9.2
**Search Terms:** generic , intellisense , infered type
**Code**:
```typescript
/*
This function will be used in javascript projects.
I want its intellisense to work in javascript projects.
*/
function component<T>(p: {
actions : () => T,
htmlTemplate: <S extends T>(actions : S) => any
}) {
return p;
}
component({
actions : () => ({
a : (x,y) => x+y
}),
htmlTemplate : (actions) => {
/*try to dot into the actions and you will get intellisense*/
actions;
/*but if you dot here you will get no intellisense*/
return actions;
/*
Intellisense appears in the `return actions` If I type `x` and `y`.
Strangely it works if I explicitly type them with `any`
but it does not work if I they are implicilty typed with `any` .
How can I have no problem with intellisense with implicit `any`?
*/
}
})
```
**Expected behavior:** Implicit `any` should have the same effect on intellisense with explicit `any` .
**Actual behavior:** Implicit `any` is different from explicit `any` .
**Playground Link:** [link](https://www.typescriptlang.org/play?ts=3.9.2#code/PQKgUAKgFglgzgAgGYFcB2BjALjA9mhAdxgBsSEAjAUwRTioBMEYCArAQwDd24MAnGAAcsCQX1ysq2OADowASSLs0ImFkQssVMvCpp6CLLiK4+Aa2ZsuPfkJFiJU9XJDAwqTDnwIMuALaC+HpYADwQAHwAFIIAXAgA3mAAkOzYePoIcZEAlAgAvOEIEAA0yVBYfiQQVAEk7FpxIQDKCFQAHlpoDIgRkaleGXFNuQUIygCeYAC+uYlJfFRYKHwEggDc02BgvgFBKpFz-emIWSOFB8kpmQiRbcXjZwhtANSTSTOlSeWV1bX1NFkjvg4I94ghLqAsHxxoZjAxcKoVMYsFAaECMsomONcCgiKRyABzRaWLQ6ej6KiucFJFJpYEbGmgCgoVRIBDY3HwkSohbsnF4sgIIkiNDGTTaEi6ClUy4LJYrMZ0-QMpKgS7yFQSqUGdiCQRUdh8DQEFE0AAGcuWBHRcDNCHkbMUWHG+oQZradsxbvGZrkNKaUOURJIMLUJnMGkdrTagklGDUIcMLpopr8eJRbomZsuzNUInhVEQopEhFMFhgUdNMMNNBgtRg8ZIzqT+qYxAzZqzCD9SQAErhCD5lPaEFAuDRRaJxBQSDV01ASVryQZ2wu67GG2HO2gfQB+S6uZJTabZIA)
|
Bug
|
low
|
Minor
|
623,746,191 |
rust
|
Clarify stages of MIR pipeline, and make MIR lints consistent
|
The [`rustc_mir::transform`](https://github.com/rust-lang/rust/blob/master/src/librustc_mir/transform/mod.rs) module defines the pipeline of analysis passes and transformations that run on the MIR after it is lowered but before it is passed to codegen. However, it's not always clear whether certain invariants apply to each stage of the pipeline. For example, some terminators (`FalseEdges`, `DropAndReplace`) are removed entirely and do not appear beyond a certain point and the `Return` terminator, which initially appears only once in the entire MIR body may appear multiple times after the `generator` transform.
Additionally, it can be hard to find the right place for new error-emitting passes like the lint in #72270 or #71824. Is there a point at which the MIR is no longer meant for analysis but only for codegen? Should these be part of a specific query? Finally, the names of the `mir_*` queries have lost their meaning over time: `mir_const` can probably be removed entirely, and `optimized_mir` and `promoted_mir` should probably be renamed to `mir_optimized` and `mir_promoted_fragments_optimized` respectively.
I've listed quite a few issues above, but to resolve them I think we first need to figure out who the stakeholders are. Is there anyone who "owns" the current structure and has a clear idea of how things should look?
|
C-cleanup,T-compiler,A-MIR
|
low
|
Critical
|
623,751,624 |
create-react-app
|
Development server errors due to emacs file lock
|
<!--
Please note that your issue will be fixed much faster if you spend about
half an hour preparing it, including the exact reproduction steps and a demo.
If you're in a hurry or don't feel confident, it's fine to report bugs with
less details, but this makes it less likely they'll get fixed soon.
In either case, please use this template and fill in as many fields below as you can.
Note that we don't provide help for webpack questions after ejecting.
You can find webpack docs at https://webpack.js.org/.
-->
### Describe the bug
When running the development server using `npm start`, it throws an error and exits whenever a src file is edited in emacs. Emacs creates a file lock in the same directory as the file being edited. The file lock is a symlink to a non-existant file that has the same name as the file being edited, except it is preprended with `.#`. The server sees this file, tries to compile it and throws an error because the file doesn't actually exist.
In `babel.config.json` I have
```
{
"ignore": [ "**/.#*"]
}
```
and in `tsconfig.json` I have
```
{
"compilerOptions": {
"target": "es5",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"module": "esnext",
"moduleResolution": "node",
"noImplicitAny": true,
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react"
},
"include": [
"src"
],
"exclude": ["**/.#*"]
}
```
which is the default generated by create-react-app with the exception of the `exclude` option. Both the `ignore` and `exclude` options have no affect.
### Did you try recovering your dependencies?
<!--
Your module tree might be corrupted, and that might be causing the issues.
Let's try to recover it. First, delete these files and folders in your project:
* node_modules
* package-lock.json
* yarn.lock
Then you need to decide which package manager you prefer to use.
We support both npm (https://npmjs.com) and yarn (http://yarnpkg.com/).
However, **they can't be used together in one project** so you need to pick one.
If you decided to use npm, run this in your project directory:
npm install -g npm@latest
npm install
This should fix your project.
If you decided to use yarn, update it first (https://yarnpkg.com/en/docs/install).
Then run in your project directory:
yarn
This should fix your project.
Importantly, **if you decided to use yarn, you should never run `npm install` in the project**.
For example, yarn users should run `yarn add <library>` instead of `npm install <library>`.
Otherwise your project will break again.
Have you done all these steps and still see the issue?
Please paste the output of `npm --version` and/or `yarn --version` to confirm.
-->
I still see the issue.
```
$ npm --version
6.14.5
```
### Which terms did you search for in User Guide?
<!--
There are a few common documented problems, such as watcher not detecting changes, or build failing.
They are described in the Troubleshooting section of the User Guide:
https://facebook.github.io/create-react-app/docs/troubleshooting
Please scan these few sections for common problems.
Additionally, you can search the User Guide itself for something you're having issues with:
https://facebook.github.io/create-react-app/
If you didn't find the solution, please share which words you searched for.
This helps us improve documentation for future readers who might encounter the same problem.
-->
I searched the docs and issues for problems created by lock files and how to exclude files from building. I also searched the docs for typescript and babel.
### Environment
<!--
To help identify if a problem is specific to a platform, browser, or module version, information about your environment is required.
This enables the maintainers quickly reproduce the issue and give feedback.
Run the following command in your React app's folder in terminal.
Note: The result is copied to your clipboard directly.
`npx create-react-app --info`
Paste the output of the command in the section below.
-->
```
$ npx create-react-app --info
npx: installed 98 in 6.797s
Environment Info:
current version of create-react-app: 3.4.1
running from /path/to/.npm/_npx/20905/lib/node_modules/create-react-app
System:
OS: Linux 4.19 Debian GNU/Linux 10 (buster) 10 (buster)
CPU: (4) x64 Intel(R) Core(TM) i7-6600U CPU @ 2.60GHz
Binaries:
Node: 10.19.0 - /usr/bin/node
Yarn: Not Found
npm: 6.14.5 - /usr/local/bin/npm
Browsers:
Chrome: Not Found
Firefox: 68.8.0esr
npmPackages:
react: ^16.13.1 => 16.13.1
react-dom: ^16.13.1 => 16.13.1
react-scripts: 3.4.1 => 3.4.1
npmGlobalPackages:
create-react-app: Not Found
```
### Steps to reproduce
<!--
How would you describe your issue to someone who doesnβt know you or your project?
Try to write a sequence of steps that anybody can repeat to see the issue.
-->
1. Create a a typescript project with `create-react-app`.
2. Start the dev server with `npm start`.
3. Edit a `ts`/`tsx` file
### Expected behavior
<!--
How did you expect the tool to behave?
Itβs fine if youβre not sure your understanding is correct.
Just write down what you thought would happen.
-->
I expect the tool to either ignore the lock files because they aren't being imported by anything or to honor the rules in `tsconfig.json` or `babel.config.json`. Before migrating to `create-react-app` I was using just webpack and typescript for development/bundling and there were no issues with emacs lock files.
### Actual behavior
<!--
Did something go wrong?
Is something broken, or not behaving as you expected?
Please attach screenshots if possible! They are extremely helpful for diagnosing issues.
-->
The dev server starts properly and compiles the project fine, but once a source file is edited it throws an error and exits.
```
> [email protected] front-end /path/to/project
> react-scripts start
βΉ ο½’wdsο½£: Project is running at http://192.168.0.19/
βΉ ο½’wdsο½£: webpack output is served from
βΉ ο½’wdsο½£: Content not from webpack is served from /path/to/project/public
βΉ ο½’wdsο½£: 404s will fallback to /
Starting the development server...
Files successfully emitted, waiting for typecheck results...
Compiled with warnings.
...
Search for the keywords to learn more about each warning.
To ignore, add // eslint-disable-next-line to the line before.
/path/to/project/node_modules/react-scripts/scripts/start.js:19
throw err;
^
Error: ENOENT: no such file or directory, stat '/path/to/project/src/components/.#view.ts'
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] front-end: `react-scripts start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] front-end script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /path/to/debug.log
```
### Reproducible demo
<!--
If you can, please share a project that reproduces the issue.
This is the single most effective way to get an issue fixed soon.
There are two ways to do it:
* Create a new app and try to reproduce the issue in it.
This is useful if you roughly know where the problem is, or canβt share the real code.
* Or, copy your app and remove things until youβre left with the minimal reproducible demo.
This is useful for finding the root cause. You may then optionally create a new project.
This is a good guide to creating bug demos: https://stackoverflow.com/help/mcve
Once youβre done, push the project to GitHub and paste the link to it below:
-->
<!--
What happens if you skip this step?
We will try to help you, but in many cases it is impossible because crucial
information is missing. In that case we'll tag an issue as having a low priority,
and eventually close it if there is no clear direction.
We still appreciate the report though, as eventually somebody else might
create a reproducible example for it.
Thanks for helping us help you!
-->
|
issue: bug report
|
high
|
Critical
|
623,753,313 |
go
|
x/tools/gopls: consider using &S form instead of *S for pointer type struct field autocompletion
|
Currently autocompletion for a struct field uses the field's type as the placeholder text. For example,
```
type F struct {...}
type S struct {
Field *F
}
```
The autocompletion for the `Field` will return `"newText":"Field: ${1:*F},"`.
`gopls` uses the type info for placeholder text, so I don't think the choice is incorrect nor invalid.
But if the suggestion used `&F` instead, it would be more convenient when users want to use composite literals. Especially, if the type name is long to type, reusing what's already in the placeholder will save many keystrokes.
(Based on https://github.com/golang/vscode-go/issues/85)
|
help wanted,NeedsDecision,gopls,Tools
|
low
|
Major
|
623,780,498 |
opencv
|
Inference speed on GPU is much slower than that on CPU.
|
##### System information (version)
<!-- Example
- OpenCV => 4.2
- Operating System / Platform => Windows 64 Bit
- Compiler => Visual Studio 2017
-->
- OpenCV => :4.2 and 4.3
- Operating System / Platform => :Windows 10 64 Bit
- Compiler => : VS 2017 and VS 2015
- GPU => : RTX 2080Ti Γ 2
##### Detailed description
<!-- your description -->
When I test my model using OpenCV DNN modules on CUDA backend and OPENCV backend, I find that the inference speed of my model on GPU is much slower than that on CPU.
And my net is just like a Siamese Network, It has two inputs and four outputs. @YashasSamaga finds that one of inputs may makes the model initialize more than once. There may be some bug in initialization ligic.
##### Steps to reproduce
<!-- to add code example fence it with triple backticks and optional file extension
```.cpp
// C++ code example
```
or attach as .txt or .zip file
-->
##### Issue submission checklist
- I report the issue, it's not a question
<!--
OpenCV team works with answers.opencv.org, Stack Overflow and other communities
to discuss problems. Tickets with question without real issue statement will be
closed.
-->
- I checked the problem with documentation, FAQ, open issues,
answers.opencv.org, Stack Overflow, etc and have not found solution
<!--
Places to check:
* OpenCV documentation: https://docs.opencv.org
* FAQ page: https://github.com/opencv/opencv/wiki/FAQ
* OpenCV forum: https://answers.opencv.org
* OpenCV issue tracker: https://github.com/opencv/opencv/issues?q=is%3Aissue
* Stack Overflow branch: https://stackoverflow.com/questions/tagged/opencv
-->
- I updated to latest OpenCV version and the issue is still there
<!--
master branch for OpenCV 4.x and 3.4 branch for OpenCV 3.x releases.
OpenCV team supports only latest release for each branch.
The ticket is closed, if the problem is not reproduced with modern version.
-->
- [x] There is reproducer code and related data files: videos, images, onnx, etc
<!--
The best reproducer -- test case for OpenCV that we can add to the library.
Recommendations for media files and binary files:
* Try to reproduce the issue with images and videos in opencv_extra repository
to reduce attachment size
* Use PNG for images, if you report some CV related bug, but not image reader
issue
* Attach the image as archite to the ticket, if you report some reader issue.
Image hosting services compress images and it breaks the repro code.
* Provide ONNX file for some public model or ONNX file with with random weights,
if you report ONNX parsing or handling issue. Architecture details diagram
from netron tool can be very useful too. See https://lutzroeder.github.io/netron/
-->
code and .pb file.
https://drive.google.com/open?id=1Wsx4JOKvn6Xn2Rr7m0VX2HTXEvUBvWm3
|
bug,optimization,category: dnn,confirmed,Hackathon
|
low
|
Critical
|
623,782,791 |
deno
|
security: mixed content blocking subleties
|
Many thanks @bartlomieju for adding an initial implementation of mixed content blocking (#1064).
I noticed a few subtle security issues with the logic in pull #5680, compared to [how browsers do this](https://developers.google.com/web/fundamentals/security/prevent-mixed-content/what-is-mixed-content) which has been [gradually refined](https://w3c.github.io/webappsec-mixed-content/) over the years:
### 1. Redirect handling
#5680 blocks https modules from importing http urls, but it doesn't seem to prevent https modules from importing https urls that redirect to http urls (or https urls that redirect to http urls that redirect back to https urls).
Browsers block all three (equally dangerous) cases, since the [Mixed Content spec's "Insecure Content in Secure Contexts" section](https://w3c.github.io/webappsec-mixed-content/#algorithms) notes that user agents must do a [mixed content check](https://w3c.github.io/webappsec-mixed-content/#should-block-fetch) before every fetch of a subresource, and the Fetch standard [handles redirects by triggering a nested fetch](https://fetch.spec.whatwg.org/#http-fetch) and hence an additional mixed content check per redirect.
### 2. Response handling
Another subtle case is https urls whose TLS encryption is bad. The [Fetch standard's "HTTP-network fetch" algorithm](https://fetch.spec.whatwg.org/#http-network-fetch) recommends
> User agents are strongly encouraged to only succeed HTTPS connections with strong security properties and return network errors otherwise.
Presumably that's what Deno would already do if a MITM attacker sends you a self-signed certificate for an https import? (https://badssl.com/ by the Chrome & Firefox security teams might be helpful for manually testing a variety of different kinds of SSL error.)
### 3. Import protocol
#5680 only blacklists the http protocol as insecure. But,
1. this unnecessarily blacklists local origins like "http://127.0.0.1" that browsers do not consider to be mixed content (as the connection from the browser to a local server does not go over the network).
2. the codepath that loads modules might now or in the future support other insecure protocols such as ftp. So it'd be safer to have a whitelist of secure protocols, and block everything else.
You can solve both of these by using the whitelist defined for the Mixed Content spec's [a priori authenticated URL algorithm](https://w3c.github.io/webappsec-mixed-content/#a-priori-authenticated-url), which roughly allows:
- any origin with the {'https', 'wss', 'file', 'data'} schemes
- any origin whose host is localhost - but there are important subtleties here in [the Secure Contexts spec's "Is origin potentially trustworthy?" algorithm](https://w3c.github.io/webappsec-secure-contexts/#is-origin-trustworthy), since localhost can sometimes hit the network(!).
- > The origin of blob: and filesystem: URLs is the origin of the context in which they were created. Therefore, blobs created in a trustworthy origin will themselves be potentially trustworthy.
### 4. Referrer protocol
#5680 only blocks mixed content if the referrer's scheme is https. But now or in the future there are likely to be other secure contexts from which mixed content should be blocked, for example if an https module imports a module using a data/blob/filesystem/etc URL (as requested in #5059/#2726/#5683), and that module in turn attempts to import an http module, that should count as mixed content and be blocked.
The [Mixed Content spec's "Does settings prohibit mixed security contexts?" algorithm](https://w3c.github.io/webappsec-mixed-content/#categorize-settings-object) defines this to be based on the context's _HTTPS state_, which in turn is set by the [Fetch standard's "scheme fetch" algorithm](https://fetch.spec.whatwg.org/#scheme-fetch) when loading the context. Roughly, it will be "modern" (or "deprecated") for resources retrieved over HTTPS, "none" for responses retrieved over FTP, and for the {"about", "blob", "data"} schemes they copy the _HTTPS state_ of the context that made the request - so in the example above the data/blob/filesystem URL would have an HTTPS State of "modern" (or "deprecated") and so mixed content would be blocked.
Unfortunately ["scheme fetch"](https://fetch.spec.whatwg.org/#scheme-fetch) doesn't specify how to calculate _HTTPS state_ for the _file_ scheme:
> For now, unfortunate as it is, file URLs are left as an exercise for the reader.
but the safest route would probably be to default to blocking mixed content in them, unless a command line flag like "--unsafe-allow-mixed-content-in-files" is passed (something similar was proposed in #5318). Note that http://127.0.0.1 URLs shouldn't count as mixed content (see Import protocol above), so such a flag wouldn't be necessary for local development, only when importing modules hosted on non-https intranet servers. And it would go a long way toward avoiding users accidentally putting themselves at risk by including http modules into Deno processes they've granted powerful permissions to.
### 5. Workers
It wasn't clear to me from the code whether #5680 also affects loading Workers from URLs, but presumably the same mixed content blocking should apply there too, and it would be nice to share the code between both places.
|
bug,cli
|
low
|
Critical
|
623,827,433 |
excalidraw
|
Import geographic geometries and or SVGs
|
Hello there, big fan here π .
I was wondering if you would be interested in supporting importing geographic geometry files such as GeoJSON and TopoJSON. I made an experiment and already got it working:
You can see a video [here](https://twitter.com/sorodrigo/status/1264481839466586112?s=20) and the code is available [here](https://github.com/excalidraw/excalidraw/compare/master...sorodrigo:feat/geometry-element?expand=1).
<img width="1301" alt="Screen Shot 2020-05-24 at 11 15 05" src="https://user-images.githubusercontent.com/12124839/82750348-dd8c0480-9daf-11ea-8dec-038fd29e8553.png">
The ux and other details still need to be worked out. There's things where I could use some guidance.
This works by uploading the geometry file and converting it into an SVG path that RoughJS can paint. So maybe it could be splitted into two things: Support SVGs and support geometry files.
**Missing things**
- Detecting the size of the geometry automatically
- Be able to resize it.
- Improve collisions
**Cool things it could have**
- Importing wizard that allows the user to choose the way to convert the geometry: [feature](https://github.com/topojson/topojson-client#feature), [merge](https://github.com/topojson/topojson-client#merge), [mesh](https://github.com/topojson/topojson-client#mesh).
- Ability to choose the projection, currently it uses Equal Earth.
- UI to build a [choropleth](https://en.wikipedia.org/wiki/Choropleth_map) based on geometry file's data π€― .
|
discussion
|
low
|
Major
|
623,827,985 |
PowerToys
|
[KBM] Mapping ALT GR to ALT doesn't work
|
# Environment
```
Windows build number: 10.0.18363.836
PowerToys version: 0.18.1
PowerToy module for which you are reporting the bug (if applicable): Keyboard Manager
```
# Background
ALT GR is a special key that appears on a number of international keyboard layouts, including US-International and UK layout. In Windows, CTRL + ALT is equivalent to ALT GR.
I wish to remap ALT GR so it behaves like regular ALT.
I will use '@' as an example as it is typed by pressing ALT GR + 2 (or CTRL + ALT + 2) on a Norwegian keyboard.
# Steps to reproduce
1. Remap ALT GR to ALT, as shown in the screenshot below.

(The key auto-detect recognizes ALT GR as Alt (Right) so that's what I'm going with here.)
# Expected behavior
ALT GR now behaves as regular ALT.
Example: Pressing ALT GR + 2 on a Norwegian keyboard should **not** yield '@' any more. (You will now have to press CTRL + ALT GR + 2 to get that result, as ALT GR now behaves like regular ALT).
# Actual behavior
Pressing ALT GR + 2 still yields '@' on a Norwegian keyboard. In other word, the ALT GR key still behaves like ALT GR.
Other keyboard mappings do work as expected.
# Additional context
I have in the past successfully used SharpKeys to do the exact same mapping. Here's a screenshot from what it looks like in SharpKeys:

Why do I want to map ALT GR to ALT? It facilitates better touch typing and better load distribution between the two hands when typing, as you now have two identical ALT keys on both sides of the keyboard instead of one of each type. The downside is now you have to train yourself to type CTRL+ALT instead to access the special characters formerly accessible with ALT GR.
|
Issue-Bug,Product-Keyboard Shortcut Manager,Priority-1
|
low
|
Critical
|
623,867,431 |
godot
|
Stack underflow on yielding
|
**Godot version:**
3.2.1
**OS/device including version:**
Windows 10
**Issue description:**
Stack underflow on yielding
Throws error:
`E 0:00:12.232 _disconnect: Disconnecting nonexistent signal 'checkpoint_reached', slot: 1305:_signal_callback.
<C++ Error> Condition "!s->slot_map.has(target)" is true.
<C++ Source> core/object.cpp:1522 @ _disconnect()`
I am unsure whether this error occurs because of the stack underflow or causes the stack underflow.
**Steps to reproduce:**
Running the following script attached to a node:
```
extends Spatial
export (Array) var checkpointPaths
export var moveSpeed := 100
onready var tween : Tween = $Tween
onready var rotate : Tween = $Rotate
signal checkpoint_reached
var moveToObjective = null
func _ready():
print("Ready:", checkpointPaths)
moveToObjective = move_to_objective()
func move_to_objective():
var nav = get_node("../")
for checkpointPath in checkpointPaths:
var checkpointObject = get_node(checkpointPath)
var navPoint = nav.get_closest_point(checkpointObject.translation)
var path = Array(nav.get_simple_path(transform.origin, navPoint, true))
follow_current_path(path)
yield(self, "checkpoint_reached")
print("Here")
func lookAtTarget(target):
if (target != transform.origin):
look_at(target, Vector3.UP)
self.rotate_object_local(Vector3.UP, PI);
func follow_current_path(path) -> void:
for p in path:
p.y = 0
print("Going to:", p)
var duration = translation.distance_to(p) / (moveSpeed * get_physics_process_delta_time())
lookAtTarget(p)
tween.interpolate_property(self, 'translation', translation, p, duration, Tween.TRANS_LINEAR, Tween.EASE_IN)
tween.start()
yield(tween, "tween_completed")
emit_signal("checkpoint_reached")
```
**Minimal reproduction project:**
[3DTowerDefense.zip](https://github.com/godotengine/godot/files/4722489/3DTowerDefense.zip)
|
bug,topic:gdscript
|
low
|
Critical
|
623,879,258 |
neovim
|
Prevent cursor from moving after using an operator
|
<!-- Before reporting: search existing issues and check the FAQ. -->
- `nvim --version`: v0.4.3
- `vim -u DEFAULTS` (version: ) behaves differently? vim behaves the same (all version I'm aware of)
- Operating system/version: Ubuntu 19.10
- Terminal name/version: yakuake
- `$TERM`: xterm-256color
### Steps to reproduce using `nvim -u NORC`
```
nvim -u NORC
```
Copy the following paragraph in a buffer and position the cursor somewhere on line2:
```
line1
line2
```
Type `yip` to copy the whole paragraph in the unnamed register.
### Actual behaviour
cursor **moves** to line1
### Desired behaviour
cursor should **stay** in the same position it was typing `yip`
Above is only an example for yank. This behaviour is the same for other operators as well and it would be ideal to have an global option or flag to prevent the cursor from moving.
### Further info
Having asked a [question](https://vi.stackexchange.com/questions/25503/keep-cursor-from-moving-when-using-operators/25507?noredirect=1#comment44904_25507) on stackexchange, it turns out this feature is not available in (n)vim. It's a behaviour that has annoyed me for quite some time.
|
enhancement
|
low
|
Major
|
623,883,281 |
pytorch
|
[JIT] jit can not recognize the imported function
|
## π Bug
JIT can not recognize the imported function when I want to script a class outside the file where it is defined.
## To Reproduce
Suppose we have the following file structureοΌ
```
main.py
files/
__init__.py
a.py
b.py
```
and each file contains:
``` python
# a.py
from .b import f
class MyObj(object):
def __init__(self):
pass
def __call__(self, x):
return f(x)
# b.py
def f(x):
return x
# __init__.py
from .a import *
from .b import *
# main.py:
import torch
from files import MyObj
torch.jit.script(MyObj)
```
then we will get:
```
RuntimeError:
undefined value f:
File "a.py", line 8
def __call__(self, x):
return f(x)
~ <--- HERE
```
function `f` must be imported explicitly in `main.py` to let jit know what is `f`
```
from files import f
```
## Expected behavior
There is no need to import function `f` explicitly
## Environment
- PyTorch Version (e.g., 1.0): master
- OS (e.g., Linux): Linux
- How you installed PyTorch (`conda`, `pip`, source): source
- Build command you used (if compiling from source): as described in [here](https://github.com/pytorch/pytorch#from-source)
- Python version: 3.7.6
- CUDA/cuDNN version: 10.0 / 7.6.5
cc @suo
|
oncall: jit,triaged
|
low
|
Critical
|
623,885,772 |
create-react-app
|
Add fable-fsharp support to create react app
|
### Is your proposal related to a problem?
Would be nice to have a template in create react app with Fable.js (F#) instead of Typescript as a transpiled language
(Write your answer here.)
### Describe the solution you'd like
A similar approach exists for typescript, but instead would be nice to have one for F#/ Fable.js (which can happilly run on react as well)
https://create-react-app.dev/docs/adding-typescript/
### Describe alternatives you've considered
A simple alternative is using the fable template, but most people use the create-react-app package, so this would be nicer : )
### Additional context
https://fable.io/
|
issue: proposal,needs triage
|
low
|
Minor
|
623,900,854 |
node
|
http2: add checks and test for `state.headRequest`
|
Though I think `headRequest` is slightly broken or maybe I don't understand it. There is special handling for it in `Http2ServerResponse.end()` but not in `Http2ServerResponse.write()`? Not sure who is a good ping there. @jasnell?
_Originally posted by @ronag in https://github.com/nodejs/node/pull/33506_
|
http2
|
low
|
Critical
|
623,949,522 |
vscode
|
Allow to modify hardcoded quick open keybinding shortcuts
|
Issue Type: <b>Bug</b>
When I step through the the VSCode Quick Open menu, I want it not to automatically switch between editors until I've selected the file I'm interested in (and hit enter). But with a recent (April?) change to VSCode, it automatically shows me each file as I step through the menu. Furthermore, it doesn't show the currently selected file. Instead, it shows each file as it becomes UNselected.
---
Here's my motivation, for those who are interested:
One of the (common?) ways to use VSCode's "Quick Open" menu is to use it like the "last channel" button on a TV remote. I want to open one editor, then open another, and then quickly toggle back and forth between the two. Since they are my current and most-recent editors, they should appear at the top of the Quick Open Menu, so toggling between them is fast.
This used to work just fine, but a recent (April?) change to the Quick Open menu seems to have broken this functionality. Now, it automatically activates the editor for every file that I step through in the menu, changing my "most recent" ordering. It can no longer be used like a "last channel" button.
Here's a short video demonstrating the problem. Here, I'm starting with `one.txt`. I want to select `five.txt` via the Quick Open menu, and then quickly toggle between the two. But it opens all the other files along the way! Instead of toggling between `one.txt` and `five.txt`, it toggles between `four.txt` and `five.txt`.
(In fact, if you watch closely, the behavior is even weirder: It doesn't show me the currently selected file -- it opens the editor for each file as it becomes UN-selected. Maybe this is just a bug?)
[![quick menu behavior animation][1]][1]
FWIW, here are the the relevant parts of my `keybindings.json`, to make it clear which commands I'm referring to:
```javascript
// keybindings.json
[
// Trigger quick open menu and pre-select the previously used editor.
// (With either cmd+left/cmd+right)
{
"key": "cmd+left",
"command": "workbench.action.quickOpenPreviousRecentlyUsedEditorInGroup",
"when": "!inEditorsPicker"
},
{
"key": "cmd+right",
"command": "workbench.action.quickOpenPreviousRecentlyUsedEditorInGroup",
"when": "!inEditorsPicker"
},
// Once the menu is open, scan through the choices.
// (Forward with cmd+right, backward with cmd+left)
{
"key": "cmd+left",
"command": "workbench.action.quickOpenNavigatePreviousInEditorPicker",
"when": "inEditorsPicker && inQuickOpen"
},
{
"key": "cmd+right",
"command": "workbench.action.quickOpenNavigateNextInEditorPicker",
"when": "inEditorsPicker && inQuickOpen"
}
]
```
[1]: https://i.stack.imgur.com/hkDk4.gif
VS Code version: Code - Insiders 1.46.0-insider (2591ede95a52400d5d22989b16706f9b8b4831da, 2020-05-22T21:12:04.233Z)
OS version: Darwin x64 19.4.0
<details>
<summary>System Info</summary>
|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz (16 x 2300)|
|GPU Status|2d_canvas: enabled<br>flash_3d: enabled<br>flash_stage3d: enabled<br>flash_stage3d_baseline: enabled<br>gpu_compositing: enabled<br>metal: disabled_off<br>multiple_raster_threads: enabled_on<br>oop_rasterization: disabled_off<br>opengl: enabled_on<br>protected_video_decode: unavailable_off<br>rasterization: enabled<br>skia_renderer: disabled_off_ok<br>video_decode: enabled<br>viz_display_compositor: enabled_on<br>webgl: enabled<br>webgl2: enabled|
|Load (avg)|2, 2, 2|
|Memory (System)|32.00GB (2.19GB free)|
|Process Argv||
|Screen Reader|no|
|VM|0%|
</details><details><summary>Extensions (21)</summary>
Extension|Author (truncated)|Version
---|---|---
vscode-bazel|Baz|0.3.0
kill-ring|dvk|0.2.3
json-tools|eri|1.0.2
workspacesort|ici|1.5.9
error-gutters|Igo|1.0.1
restructuredtext|lex|128.0.0
autoconf|mae|0.1.0
vscode-docker|ms-|1.2.0
python|ms-|2020.5.80290
remote-containers|ms-|0.117.1
remote-ssh|ms-|0.51.0
remote-ssh-edit|ms-|0.51.0
remote-wsl|ms-|0.44.2
vscode-remote-extensionpack|ms-|0.20.0
cmake-tools|ms-|1.4.0
cpptools|ms-|0.28.1
vscode-json-editor|nic|0.2.3
vscode-singularity|onn|0.5.0
trailing-spaces|sha|0.3.1
gitblame|wad|4.0.1
vscode-proto3|zxh|0.4.2
</details>
<!-- generated by issue reporter -->
|
feature-request,quick-pick
|
medium
|
Critical
|
623,970,870 |
youtube-dl
|
change how the program records dates in a video file's description.
|
Windows has the option to sort content within a folder based on "date archived" and "date created".
It would make sense to log within the file's description when a file was downloaded in the "date archived", and the date the author uploaded the video file to the website where the content was downloaded from in the "date created" description field.
https://i.imgur.com/enxwoTP.png
|
request
|
low
|
Minor
|
623,999,713 |
flutter
|
Show adb log when flutter attach
|
## Proposal
I think we need log(logcat) when we use `flutter attach -d <deviceID>` to debug flutter application, is there any plan to do this?
|
c: new feature,platform-android,tool,a: debugging,c: proposal,P3,team-android,triaged-android
|
low
|
Critical
|
623,999,896 |
youtube-dl
|
Power Nation TV
|
<!--
######################################################################
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.08. If it's not, see https://yt-dl.org/update on how to update. Issues with outdated version will be REJECTED.
- Make sure that all provided video/audio/playlist URLs (if any) are alive and playable in a browser.
- Make sure that site you are requesting is not dedicated to copyright infringement, see https://yt-dl.org/copyright-infringement. youtube-dl does not support such sites. In order for site support request to be accepted all provided example URLs should not violate any copyrights.
- Search the bugtracker for similar site support requests: http://yt-dl.org/search-issues. DO NOT post duplicates.
- Finally, put x into all relevant boxes (like this [x])
-->
- [x ] I'm reporting a new site support request
- [x ] I've verified that I'm running youtube-dl version **2020.05.08**
- [x ] I've checked that all provided URLs are alive and playable in a browser
- [x ] I've checked that none of provided URLs violate any copyrights
- [x ] I've searched the bugtracker for similar site support requests including closed ones
## Example URLs
<!--
Provide all kinds of example URLs support for which should be included. Replace following example URLs by yours.
-->
- Single video:https://www.powernationtv.com/episode/TT2020-06/boosted-classic-292-straight-six
- Single video: https://www.powernationtv.com/episode/HP2013-01/parade-of-ls-power
## Description
<!--
Provide any additional information.
If work on your issue requires account credentials please provide them or explain how one can obtain them.
-->
Hi,
I was just wondering if you wouldn't mind supporting powernation tv downloads, there is no drm as I am currently able to download them manually be finding the playlist file and feeding it into FFMPEG but that is time consuming and difficult. Thanks for all your great work,
|
site-support-request
|
low
|
Critical
|
624,007,534 |
rust
|
Slicing after `str::starts_with` performs unnecessary checks
|
Without unsafe ([playground](https://play.rust-lang.org/?version=stable&mode=release&edition=2018&gist=46367ccb1081dd81d8b1fa36d053922d))
```rust
pub struct Foo<'a> {
string: &'a str,
}
impl Foo<'_> {
pub fn bar(&mut self) -> Option<&str> {
if self.string.starts_with("[[") {
let bracket = &self.string[..1];
self.string = &self.string[2..];
Some(bracket)
} else {
None
}
}
}
```
With unsafe ([playground](https://play.rust-lang.org/?version=stable&mode=release&edition=2018&gist=53c10732399bd715b1b3d63b85e1488b))
```rust
pub struct Foo<'a> {
string: &'a str,
}
impl Foo<'_> {
pub fn bar(&mut self) -> Option<&str> {
if self.string.starts_with("[[") {
let bracket = unsafe { self.string.get_unchecked(..1) };
self.string = unsafe { self.string.get_unchecked(2..) };
Some(bracket)
} else {
None
}
}
}
```
I'm not terribly familiar with assembly, but the compiler is clearly performing checks where they aren't necessary. Given the knowledge that the string starts with a literal (in this case two ASCII bytes), we should be able to slice without any additional performance costs.
|
I-slow,C-enhancement,T-compiler,A-str,C-optimization
|
low
|
Major
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.