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 |
---|---|---|---|---|---|---|
439,241,690 | flutter | Allow configuration of Flutter CLI colors | look like in android studio
_red:error_
_brown:debug_
_green:info_
...etc..
and can custom color | c: new feature,tool,good first issue,P3,team-tool,triaged-tool | low | Critical |
439,253,989 | create-react-app | Performance with SVG as ReactComponent and eslint with React.memo missing display name | I'm using this component in a `create-react-app` app:
```js
import { ReactComponent as ProfileIcon } from "./icons/profile.svg";
...
render(){
<ProfileIcon {...props}/>
}
```
Using also `why-did-you-render` (https://github.com/welldone-software/why-did-you-render) I got this warning:
```log
SvgProfileIcon
whyDidYouRender.min.js:1191 {SvgProfileIcon: ƒ} "Re-rendered because the props object itself changed but it's values are all equal." "This could of been avoided by making the component pure, or by preventing it's father from re-rendering." "more info at http://bit.ly/wdyr02"
whyDidYouRender.min.js:1191 prev props: {svgRef: null, className: "icon", height: "24", width: "24"} !== {svgRef: null, className: "icon", height: "24", width: "24"} :next props
```
So I made a custom `PureComponent` like this:
```js
import React from "react";
export default WrappedComponent =>
React.memo(props => <WrappedComponent {...props} />, () => true);
```
**FIRST QUESTION**: Is this performances-correct?
I'm using it like this:
```js
import { ReactComponent as ProfileIcon } from "./icons/profile.svg";
import PureComponent from "./PureComponent";
const PureProfileIcon = PureComponent(ProfileIcon);
...
render(){
<PureProfileIcon {...props}/>
}
```
**SECOND QUESTION**: Can I avoid this component at all using React.memo (or something else) differently?
Now eslint is complaining about:
```error
Component definition is missing display name eslint(react/display-name)
```
**THIRD QUESTION**: How can I fix this?
| issue: needs investigation | low | Critical |
439,258,333 | pytorch | Precision of sparse float embeddings differs from dense embeddings on CPU | ## 🐛 Bug
In test/test_nn.py we skip 'backward' for low-precision types (float, half) because the precision is often too low to get reliable results on large embeddings. The same test doesn't fail for dense embeddings. There's a limit to how much precision we can expect with float and half types, but it would be preferable if they were consistent or if the difference was clearer.
## To Reproduce
Steps to reproduce the behavior:
in test/test_nn.py run this with test_backward=True and dtype=torch.float.
self._test_EmbeddingBag(False, 'sum', True, test_backward=test_backward, dtype=dtype)
Run a number of times and it will occasionally fail. With the third parameter (sparse) set to False, we don't see failures.
## Expected behavior
Limitations on precision are consistent between sparse and dense implementations of Embedding/EmbeddingBag.
## Environment
[[email protected] ~/repos/pytorch] ./collect_env.sh
bash: ./collect_env.sh: No such file or directory
[[email protected] ~/repos/pytorch] python ./collect_env.py
Collecting environment information...
PyTorch version: N/A
Is debug build: N/A
CUDA used to build PyTorch: N/A
OS: CentOS Linux 7 (Core)
GCC version: (GCC) 4.8.5 20150623 (Red Hat 4.8.5-28)
CMake version: version 3.12.2
Python version: 3.7
Is CUDA available: N/A
CUDA runtime version: 9.2.88
GPU models and configuration:
GPU 0: Tesla M40
GPU 1: Tesla M40
GPU 2: Tesla M40
GPU 3: Tesla M40
GPU 4: Tesla M40
GPU 5: Tesla M40
GPU 6: Tesla M40
GPU 7: Tesla M40
Nvidia driver version: 396.69
cuDNN version: /usr/local/cuda-9.2/targets/x86_64-linux/lib/libcudnn.so.7.4.2
Versions of relevant libraries:
[pip3] numpy==1.15.4
[pip3] numpydoc==0.8.0
[pip3] torch==1.1.0a0+3900816
[pip3] torchvision==0.2.1
[conda] magma-cuda92 2.4.0 1 pytorch
[conda] mkl 2019.1 144
[conda] mkl-include 2019.1 144
[conda] mkl-service 1.1.2 py37h90e4bf4_5
[conda] mkl_fft 1.0.4 py37h4414c95_1
[conda] mkl_random 1.0.1 py37h4414c95_1
[conda] mkldnn 0.16.1 0 mingfeima
[conda] torch 1.0.0a0+aaf6e36 <pip>
[conda] torch 1.1.0a0+0676ba0 <pip>
[conda] torch 1.0.0a0+c2f1811 <pip>
[conda] torch 1.0.0a0+e387d94 <pip>
[conda] torch 1.0.0a0+298b775 <pip>
[conda] torch 1.0.0a0+8de9564 <pip>
[conda] torch 1.0.0a0+b15242f <pip>
[conda] torch 1.0.0a0+df022f8 <pip>
[conda] torch 1.0.0a0+9c20546 <pip>
[conda] torch 1.0.0a0+35a24a9 <pip>
[conda] torch 1.0.0a0+d4f9dbf <pip>
[conda] torch 1.0.0a0+4a4cc13 <pip>
[conda] torch 1.0.0a0+e03136f <pip>
[conda] torch 1.0.0a0+c715fcc <pip>
[conda] torch 1.0.0a0+b8da44d <pip>
[conda] torch 1.0.0a0+5c51f65 <pip>
[conda] torch 1.1.0a0+227c4e9 <pip>
[conda] torch 1.0.0a0+66a0447 <pip>
[conda] torch 1.0.0a0+fb8745e <pip>
[conda] torch 1.0.0a0+a7445ad <pip>
[conda] torch 1.0.0a0+6e0c5a8 <pip>
[conda] torch 1.1.0a0+71bdfe8 <pip>
[conda] torch 1.1.0a0+3900816 <pip>
[conda] torch 1.0.0a0+607094c <pip>
[conda] torch 1.0.0a0+3ff7071 <pip>
[conda] torch 1.0.0a0+24c43e2 <pip>
[conda] torchvision 0.2.1 <pip>
[[email protected] ~/repos/pytorch]
## Additional context
encountered while working on:
https://github.com/pytorch/pytorch/pull/19695
| module: nn,triaged,module: numerical-reproducibility | low | Critical |
439,269,663 | TypeScript | Configurable import suggestions to override global types | <!-- 🚨 STOP 🚨 𝗦𝗧𝗢𝗣 🚨 𝑺𝑻𝑶𝑷 🚨
Half of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker. Please read the FAQ first, especially the "Common Feature Requests" section.
-->
## Search Terms
<!-- List of keywords you searched for before creating this issue. Write them down here so that others can find this suggestion more easily -->
## Suggestion
In our code base we have a module export called `Option` which we use very often.
However, if we try to reference `Option` in a module where it's not currently imported, we will not get import suggestions/fixes for this.
This is because there is already a (different) global type of the same name, provided by the `dom` `lib` types.
I would like to be able to configure TypeScript and/or VS Code so that I do have import suggestions for `Option`.
Suggestion: any time a module references a global value, and the project has a module export of the same name, provide an import suggestion for that.
Potential caveat of this suggestion: what happens when you select "add all missing imports"? Ideally I would want it to import my `Option`, but what if I intentionally wanted to use the global version instead?
## 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,Needs Proposal,Domain: Quick Fixes | low | Critical |
439,283,344 | TypeScript | strictNullCheck False Posivitve when access propery on created object. | <!-- 🚨 STOP 🚨 𝗦𝗧𝗢𝗣 🚨 𝑺𝑻𝑶𝑷 🚨
Half of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker. Even if you think you've found a *bug*, please read the FAQ first, especially the Common "Bugs" That Aren't Bugs section!
Please help us by doing the following steps before logging an issue:
* Search: https://github.com/Microsoft/TypeScript/search?type=Issues
* Read the FAQ: https://github.com/Microsoft/TypeScript/wiki/FAQ
Please fill in the *entire* template below.
-->
<!-- Please try to reproduce the issue with `typescript@next`. It may have already been fixed. -->
**TypeScript Version:** 3.5.0-dev.20190501
<!-- Search terms you tried before logging this (so others can find this issue more easily) -->
**Search Terms:**
strict false positive object
**Code**
```ts
import * as azure from "@azure/storage-blob";
interface ISaveBlobOptions {
blobName: string;
contentDisposition?: {
fileName: string;
type: "inline" | "attachment";
};
contentType: string;
fileData: Buffer;
}
const saveBlobBase = async (input: ISaveBlobOptions): Promise<void> => {
this.validateSaveBlobBase(input);
await this.createStorage();
const options: azure.IBlockBlobUploadOptions = {
blobHTTPHeaders: {
blobContentType: input.contentType
}
};
if(input.contentDisposition) {
// Getting Object is possibly 'undefined'.
options.blobHTTPHeaders.blobContentDisposition = `${input.contentDisposition.type}; filename="${input.contentDisposition.fileName}"`;
}
if (input.fileData instanceof Buffer) {
await this.saveBlobBuffer(input.blobName, input.fileData, options);
} else if(this.isMulterFile(input.fileData)) {
await this.saveBlobMulterFile(input.blobName, input.fileData, options);
} else {
throw new Error("Unknown type for param file");
}
}
saveBlobBase({
blobName: "myBlobName",
contentDisposition: {
fileName: "foo.bar",
type: "inline"
},
contentType: "text/plain",
fileData: Buffer.from("SOME TEXT")
});
```
tsconfig
```json
{
"compilerOptions": {
"target": "es2017",
"module": "commonjs",
"sourceMap": true,
"strictPropertyInitialization": true,
"strictNullChecks": true
}
}
```
**Expected behavior:**
since when the creating the ```options``` variable the property ```blobHTTPHeaders``` is also defined. I would expect that accessing properties off of ```blobHTTPHeaders``` should not throw a "Object is possibly 'undefined'."
**Actual behavior:**
Getting Object is possibly 'undefined'.
**Playground Link:** <!-- A link to a TypeScript Playground "Share" link which demonstrates this behavior -->
**Related Issues:** <!-- Did you find other bugs that looked similar? -->
| Suggestion,Experience Enhancement,Domain: Control Flow | low | Critical |
439,292,499 | godot | GIProbe based GI is wrong for child scene | **Godot version:**
Godot master (#25670)
**OS/device including version:**
Windows 10 (up to date)
**Issue description:**
GI of GIProbe of child scene is used incorrectly for lighting
https://youtu.be/r5ANEgKRu40
**Steps to reproduce:**
* build a scene with a GIprobe and some geometry
* bake GIprobe
* save scene
* create a scene which references the scene from above
* add script to rate it at the node
* run
(see demo project)
**Minimal reproduction project:**
[testTranslatedGi0.zip](https://github.com/godotengine/godot/files/3135757/testTranslatedGi0.zip)
| discussion,topic:rendering,topic:3d | low | Major |
439,344,267 | rust | Use of unknown feature gates should be a deny-by-default lint | #52644 made it an error to specify a `#![feature(...)]` that the compiler doesn't know about. It could be a deny-by-default lint instead. @varkor in https://github.com/rust-lang/rust/pull/52644#issuecomment-488445125:
> I don't see a strong reason not to make the unknown feature error a deny-by-default lint instead, which would allow you to silence it. | A-lints,T-lang,T-compiler | low | Critical |
439,394,223 | flutter | Add the ability to programmatically change mouse cursors. | On desktop platforms with a mouse or trackpad, the pointer cursor typically changes in response to context.
This isn't yet possible on Flutter, and it should be possible.
The types of cursors and detectors that are needed for this feature are:
- [x] "pointing finger" 👆cursors for controls and detectors for controls
- [x] I-beam cursors for text fields and detectors for text fields
- [x] Resize cursors for handles and detectors for resize handles.
- [x] "Processing" spinner cursors and detectors.
- [ ] Custom cursors (including an "empty" cursor for hiding).
----
Progression tracker:
- [x] Basic mouse cursor framework (https://github.com/flutter/flutter/pull/54171)
- Basic mouse cursor engines
- [x] Android (https://github.com/flutter/engine/pull/18569)
- [x] macOS (https://github.com/flutter/engine/pull/18131)
- [ ] GLFW (very low priority)
- [x] Windows (https://github.com/flutter/engine/pull/19459)
- [x] Web (https://github.com/flutter/engine/pull/17718)
- [x] GTK (https://github.com/flutter/engine/pull/18888)
- [x] Support all system mouse cursors (https://github.com/flutter/flutter/issues/60641)
- [ ] Add the last cursor `IDC_UPARROW` (Low priority; suggestion appreciated https://github.com/flutter/flutter/issues/61397)
- Add mouse cursor API to widgets
- [x] Phase 1: https://github.com/flutter/flutter/pull/57628
- [ ] Remaining: https://github.com/flutter/flutter/issues/58192
- [ ] Image cursor framework https://github.com/flutter/flutter/issues/89351
- iPadOS support: See https://github.com/flutter/flutter/issues/55809 | c: new feature,framework,customer: crowd,a: desktop,customer: octopod,customer: webeap,customer: web10,P3,team-framework,triaged-framework | high | Critical |
439,447,419 | rust | Refactor away `TraitRef::trait_def_id` | The function
https://github.com/rust-lang/rust/blob/9b67bd42b7cbf97f72d039afcba02f5177d0d68c/src/librustc/hir/mod.rs#L2150-L2155
can abort compilation in case of errors. We're trying to eliminate as many (if not all) early aborts, so this needs to go. I haven't looked into how to fix this yet at all.
Originally reported in https://github.com/rust-lang/rust/pull/60462/files#r280262620
cc @estebank | C-enhancement,A-diagnostics,T-compiler,E-medium | low | Critical |
439,480,311 | pytorch | Creation of too big multidimensional array returns empty tensor. | ## 🐛 Bug
When trying to create a tensor of too many dimensions it simply returns an empty tensor with its shape is the dimensions I passed even though it should have contained the value `1`.
## To Reproduce
Steps to reproduce the behavior:
Number of 2's in the following example is `>63`.
```Python
torch.ones((2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2),
dtype=torch.uint8)
```
Output:
```Python
tensor([],
size=(2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2),
dtype=torch.uint8)
```
Another related issue
```Python
torch.ones((2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2),
dtype=torch.uint8)
```
These are `62` 2's.
Output:
```Python
RuntimeError: $ Torch: not enough memory: you tried to allocate 0GB. Buy new RAM! at /opt/conda/conda-bld/pytorch_1549628766161/work/aten/src/TH/THGeneral.cpp:201
```
When they're `63` 2's. The output changes to:
```Python
RuntimeError: $ Torch: invalid memory size -- maybe an overflow? at /opt/conda/conda-bld/pytorch_1549628766161/work/aten/src/TH/THGeneral.cpp:188
```
<!-- If you have a code sample, error messages, stack traces, please provide it here as well -->
## Expected behavior
I expected to see the aforementioned dimensions filled with `1` if it's possible, or an exception that says a value error.
## Environment
Please copy and paste the output from our
[environment collection script](https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py)
(or fill out the checklist below manually).
You can get the script and run it with:
```
wget https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py
# For security purposes, please check the contents of collect_env.py before running it.
python collect_env.py
```
```
PyTorch version: 1.0.1.post2
Is debug build: No
CUDA used to build PyTorch: 9.0.176
OS: Arch Linux
GCC version: (crosstool-NG 1.23.0.449-a04d0) 7.3.0
CMake version: Could not collect
Python version: 3.6
Is CUDA available: Yes
CUDA runtime version: 10.1.105
GPU models and configuration: GPU 0: GeForce GTX 1050 Ti with Max-Q Design
Nvidia driver version: 418.56
cuDNN version: /usr/lib/libcudnn.so.7.5.0
Versions of relevant libraries:
[pip3] numpy==1.16.2
[pip3] torch==1.0.1.post2
[pip3] torchvision==0.2.2.post3
[conda] _tflow_select 2.3.0 mkl
[conda] blas 1.0 mkl
[conda] mkl 2019.1 144
[conda] mkl_fft 1.0.10 py36ha843d7b_0
[conda] mkl_random 1.0.2 py36hd81dba3_0
[conda] pytorch 1.0.1 py3.6_cuda9.0.176_cudnn7.4.2_2 pytorch
[conda] tensorflow 1.12.0 mkl_py36h69b6ba0_0
[conda] tensorflow-base 1.12.0 mkl_py36h3c3e929_0
[conda] torchvision 0.2.1 py_2 pytorch
```
## Additional context
I suspect that the desired behavior is not happening because tensors seem to be basing on NumPy `ndarray` which accepts only `32` dims.
Also, I have just found this [line](https://github.com/pytorch/pytorch/blob/7ddd5d06ed07a50b94aa6b2fdffa2f667d677c4b/aten/src/TH/THGeneral.cpp#L184).
```cpp
THError("$ Torch: not enough memory: you tried to reallocate %dGB. Buy new RAM!", size/1073741824);
```
I think the integer division of those two elements results in the error. | module: error checking,triaged,module: tensor creation | medium | Critical |
439,505,200 | youtube-dl | iPlayer some subtiles not able to be downloaded | <!--
######################################################################
WARNING!
IGNORING THE FOLLOWING TEMPLATE WILL RESULT IN ISSUE CLOSED AS INCOMPLETE
######################################################################
-->
## Checklist
<!--
Carefully read and work through this check list in order to prevent the most common mistakes and misuse of youtube-dl:
- First of, make sure you are using the latest version of youtube-dl. Run `youtube-dl --version` and ensure your version is 2019.04.30. If it's not, see https://yt-dl.org/update on how to update. Issues with outdated version will be REJECTED.
- Make sure that all provided video/audio/playlist URLs (if any) are alive and playable in a browser.
- Make sure that all URLs and arguments with special characters are properly quoted or escaped as explained in http://yt-dl.org/escape.
- Search the bugtracker for similar issues: http://yt-dl.org/search-issues. DO NOT post duplicates.
- Finally, put x into all relevant boxes (like this [x])
-->
- [x ] I'm reporting a broken site support
- [ x] I've verified that I'm running youtube-dl version **2019.04.30**
- [ ] I've checked that all provided URLs are alive and playable in a browser
- [ x] I've checked that all URLs and arguments with special characters are properly quoted or escaped
- [x ] I've searched the bugtracker for similar issues including closed ones
## Verbose log
<!--
Provide the complete verbose output of youtube-dl that clearly demonstrates the problem.
Add the `-v` flag to your command line you run youtube-dl with (`youtube-dl -v <your command line>`), copy the WHOLE output and insert it below. It should look similar to this:
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-v', u'http://www.youtube.com/watch?v=BaW_jenozKcj']
[debug] Encodings: locale cp1251, fs mbcs, out cp866, pref cp1251
[debug] youtube-dl version 2019.04.30
[debug] Python version 2.7.11 - Windows-2003Server-5.2.3790-SP2
[debug] exe versions: ffmpeg N-75573-g1d0487f, ffprobe N-75573-g1d0487f, rtmpdump 2.4
[debug] Proxy map: {}
<more lines>
-->
```
With commands that will get the subtitles from this service.
youtube-dl.exe --geo-bypass-country "GB" --ignore-config -v --fixup "never" --all-subs --sub-format "ttml" --sub-lang "en" -f "stream-uk-iptv_streaming_concrete_combined_sd_mf_limelight_uk_hls-1836" "https://www.bbc.co.uk/iplayer/episode/p008wm4y/the-league-of-gentlemen-series-2-2-lust-for-royston-vasey"
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--geo-bypass-country', 'GB', '--ignore-config', '-v
', '--fixup', 'never', '--all-subs', '--sub-format', 'ttml', '--sub-lang', 'en',
'-f', 'stream-uk-iptv_streaming_concrete_combined_sd_mf_limelight_uk_hls-1836',
'https://www.bbc.co.uk/iplayer/episode/p008wm4y/the-league-of-gentlemen-series-
2-2-lust-for-royston-vasey']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2019.04.30
[debug] Python version 3.4.4 (CPython) - Windows-XP-5.1.2600-SP3
[debug] exe versions: ffmpeg N-91691-g962c931-Reino, ffprobe N-91691-g962c931-Re
ino, rtmpdump 2.4
[debug] Proxy map: {}
[debug] Using fake IP 25.159.164.175 (GB) as X-Forwarded-For.
[bbc.co.uk] p008wm4y: Downloading video page
[bbc.co.uk] p008wm4y: Downloading playlist JSON
[bbc.co.uk] b000yxgs: Downloading media selection XML
[bbc.co.uk] b000yxgs: Downloading m3u8 information
[bbc.co.uk] b000yxgs: Downloading m3u8 information
[bbc.co.uk] b000yxgs: Downloading m3u8 information
[bbc.co.uk] b000yxgs: Downloading m3u8 information
[bbc.co.uk] b000yxgs: Downloading MPD manifest
[bbc.co.uk] b000yxgs: Downloading MPD manifest
[bbc.co.uk] b000yxgs: Downloading m3u8 information
[bbc.co.uk] b000yxgs: Downloading m3u8 information
[bbc.co.uk] b000yxgs: Downloading m3u8 information
[bbc.co.uk] b000yxgs: Downloading m3u8 information
[bbc.co.uk] b000yxgs: Downloading m3u8 information
[bbc.co.uk] b000yxgs: Downloading m3u8 information
[bbc.co.uk] b000yxgs: Downloading MPD manifest
[bbc.co.uk] b000yxgs: Downloading MPD manifest
[bbc.co.uk] b000yxgs: Downloading m3u8 information
[bbc.co.uk] b000yxgs: Downloading m3u8 information
[bbc.co.uk] b000yxgs: Downloading captions
WARNING: [bbc.co.uk] b000yxgs: Failed to parse XML not well-formed (invalid toke
n): line 7, column 27
[bbc.co.uk] b000yxgs: Downloading captions
WARNING: [bbc.co.uk] b000yxgs: Failed to parse XML not well-formed (invalid toke
n): line 7, column 27
[bbc.co.uk] b000yxgs: Downloading captions
WARNING: [bbc.co.uk] b000yxgs: Failed to parse XML not well-formed (invalid toke
n): line 7, column 27
[debug] Invoking downloader on 'http://bbcfmt-ic-c2237400-13f598-vodhlsuklive.s.
loris.llnwd.net/usp/auth/vod/piff_abr_full_sd/f46614-b000yxgs/vf_b000yxgs_1969bf
eb-1f75-4c8a-ba32-8c2b315f3a52.ism/vf_b000yxgs_1969bfeb-1f75-4c8a-ba32-8c2b315f3
a52-audio_eng_1=128000-video=1604000.m3u8'
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 226
[download] Destination: The League of Gentlemen, Series 2, Lust for Royston Vase
y-b000yxgs.mp4
[download] 6.9% of ~363.79MiB at 3.33MiB/s ETA 02:09
ERROR: Interrupted by user
%%%%%%%%%%%%%%%
With commands to get subs without --all-subs command.
youtube-dl.exe --geo-bypass-country "GB" --ignore-config -v --fixup "never" --sub-format "ttml" --sub-lang "en" -f "stream-uk-iptv_streaming_concrete_combined_sd_mf_limelight_uk_hls-1836" "https://www.bbc.co.uk/iplayer/episode/p008wm4y/the-league-of-gentlemen-series-2-2-lust-for-royston-vasey"
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--geo-bypass-country', 'GB', '--ignore-config', '-v
', '--fixup', 'never', '--sub-format', 'ttml', '--sub-lang', 'en', '-f', 'stream
-uk-iptv_streaming_concrete_combined_sd_mf_limelight_uk_hls-1836', 'https://www.
bbc.co.uk/iplayer/episode/p008wm4y/the-league-of-gentlemen-series-2-2-lust-for-r
oyston-vasey']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2019.04.30
[debug] Python version 3.4.4 (CPython) - Windows-XP-5.1.2600-SP3
[debug] exe versions: ffmpeg N-91691-g962c931-Reino, ffprobe N-91691-g962c931-Re
ino, rtmpdump 2.4
[debug] Proxy map: {}
[debug] Using fake IP 25.8.32.138 (GB) as X-Forwarded-For.
[bbc.co.uk] p008wm4y: Downloading video page
[bbc.co.uk] p008wm4y: Downloading playlist JSON
[bbc.co.uk] b000yxgs: Downloading media selection XML
[bbc.co.uk] b000yxgs: Downloading m3u8 information
[bbc.co.uk] b000yxgs: Downloading m3u8 information
[bbc.co.uk] b000yxgs: Downloading m3u8 information
[bbc.co.uk] b000yxgs: Downloading m3u8 information
[bbc.co.uk] b000yxgs: Downloading MPD manifest
[bbc.co.uk] b000yxgs: Downloading MPD manifest
[bbc.co.uk] b000yxgs: Downloading m3u8 information
[bbc.co.uk] b000yxgs: Downloading m3u8 information
[bbc.co.uk] b000yxgs: Downloading m3u8 information
[bbc.co.uk] b000yxgs: Downloading m3u8 information
[bbc.co.uk] b000yxgs: Downloading m3u8 information
[bbc.co.uk] b000yxgs: Downloading m3u8 information
[bbc.co.uk] b000yxgs: Downloading MPD manifest
[bbc.co.uk] b000yxgs: Downloading MPD manifest
[bbc.co.uk] b000yxgs: Downloading m3u8 information
[bbc.co.uk] b000yxgs: Downloading m3u8 information
[debug] Invoking downloader on 'http://bbcfmt-ic-c2237400-13f598-vodhlsuklive.s.
loris.llnwd.net/usp/auth/vod/piff_abr_full_sd/f46614-b000yxgs/vf_b000yxgs_1969bf
eb-1f75-4c8a-ba32-8c2b315f3a52.ism/vf_b000yxgs_1969bfeb-1f75-4c8a-ba32-8c2b315f3
a52-audio_eng_1=128000-video=1604000.m3u8'
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 226
[download] Destination: The League of Gentlemen, Series 2, Lust for Royston Vase
y-b000yxgs.mp4
[download] 6.9% of ~363.79MiB at 3.22MiB/s ETA 02:09
ERROR: Interrupted by user
%%%%%%%%%%%%%%%
With the all-subs command but with without title filename in the url
youtube-dl.exe --geo-bypass-country "GB" --ignore-config -v --fixup "never" --all-subs --sub-format "ttml" --sub-lang "en" -f "stream-uk-iptv_streaming_concrete_combined_sd_mf_limelight_uk_hls-1836" "https://www.bbc.co.uk/iplayer/episode/p008wm4y/"
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--geo-bypass-country', 'GB', '--ignore-config', '-v
', '--fixup', 'never', '--all-subs', '--sub-format', 'ttml', '--sub-lang', 'en',
'-f', 'stream-uk-iptv_streaming_concrete_combined_sd_mf_limelight_uk_hls-1836',
'https://www.bbc.co.uk/iplayer/episode/p008wm4y/']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2019.04.30
[debug] Python version 3.4.4 (CPython) - Windows-XP-5.1.2600-SP3
[debug] exe versions: ffmpeg N-91691-g962c931-Reino, ffprobe N-91691-g962c931-Re
ino, rtmpdump 2.4
[debug] Proxy map: {}
[debug] Using fake IP 25.18.77.77 (GB) as X-Forwarded-For.
[bbc.co.uk] p008wm4y: Downloading video page
[bbc.co.uk] p008wm4y: Downloading playlist JSON
[bbc.co.uk] b000yxgs: Downloading media selection XML
[bbc.co.uk] b000yxgs: Downloading captions
WARNING: [bbc.co.uk] b000yxgs: Failed to parse XML not well-formed (invalid toke
n): line 7, column 27
[bbc.co.uk] b000yxgs: Downloading captions
WARNING: [bbc.co.uk] b000yxgs: Failed to parse XML not well-formed (invalid toke
n): line 7, column 27
[bbc.co.uk] b000yxgs: Downloading captions
WARNING: [bbc.co.uk] b000yxgs: Failed to parse XML not well-formed (invalid toke
n): line 7, column 27
[bbc.co.uk] b000yxgs: Downloading m3u8 information
[bbc.co.uk] b000yxgs: Downloading m3u8 information
[bbc.co.uk] b000yxgs: Downloading m3u8 information
[bbc.co.uk] b000yxgs: Downloading m3u8 information
[bbc.co.uk] b000yxgs: Downloading MPD manifest
[bbc.co.uk] b000yxgs: Downloading MPD manifest
[bbc.co.uk] b000yxgs: Downloading m3u8 information
[bbc.co.uk] b000yxgs: Downloading m3u8 information
[bbc.co.uk] b000yxgs: Downloading m3u8 information
[bbc.co.uk] b000yxgs: Downloading m3u8 information
[bbc.co.uk] b000yxgs: Downloading m3u8 information
[bbc.co.uk] b000yxgs: Downloading m3u8 information
[bbc.co.uk] b000yxgs: Downloading MPD manifest
[bbc.co.uk] b000yxgs: Downloading MPD manifest
[bbc.co.uk] b000yxgs: Downloading m3u8 information
[bbc.co.uk] b000yxgs: Downloading m3u8 information
[debug] Invoking downloader on 'http://bbcfmt-ic-c2237400-13f598-vodhlsuklive.s.
loris.llnwd.net/usp/auth/vod/piff_abr_full_sd/f46614-b000yxgs/vf_b000yxgs_1969bf
eb-1f75-4c8a-ba32-8c2b315f3a52.ism/vf_b000yxgs_1969bfeb-1f75-4c8a-ba32-8c2b315f3
a52-audio_eng_1=128000-video=1604000.m3u8'
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 226
[download] Destination: The League of Gentlemen, Series 2, Lust for Royston Vase
y-b000yxgs.mp4
[download] 4.6% of ~358.13MiB at 3.32MiB/s ETA 03:14
ERROR: Interrupted by user
%%%%%%%%%%%%%%%%%%%%
Without the -all-subs command without title filename in the url
youtube-dl.exe --geo-bypass-country "GB" --ignore-config -v --fixup "never" --sub-format "ttml" --sub-lang "en" -f "stream-uk-iptv_streaming_concrete_combined_sd_mf_limelight_uk_hls-1836" "https://www.bbc.co.uk/iplayer/episode/p008wm4y/"
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--geo-bypass-country', 'GB', '--ignore-config', '-v
', '--fixup', 'never', '--sub-format', 'ttml', '--sub-lang', 'en', '-f', 'stream
-uk-iptv_streaming_concrete_combined_sd_mf_limelight_uk_hls-1836', 'https://www.
bbc.co.uk/iplayer/episode/p008wm4y/']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2019.04.30
[debug] Python version 3.4.4 (CPython) - Windows-XP-5.1.2600-SP3
[debug] exe versions: ffmpeg N-91691-g962c931-Reino, ffprobe N-91691-g962c931-Re
ino, rtmpdump 2.4
[debug] Proxy map: {}
[debug] Using fake IP 25.96.122.140 (GB) as X-Forwarded-For.
[bbc.co.uk] p008wm4y: Downloading video page
[bbc.co.uk] p008wm4y: Downloading playlist JSON
[bbc.co.uk] b000yxgs: Downloading media selection XML
[bbc.co.uk] b000yxgs: Downloading m3u8 information
[bbc.co.uk] b000yxgs: Downloading m3u8 information
[bbc.co.uk] b000yxgs: Downloading m3u8 information
[bbc.co.uk] b000yxgs: Downloading m3u8 information
[bbc.co.uk] b000yxgs: Downloading MPD manifest
[bbc.co.uk] b000yxgs: Downloading MPD manifest
[bbc.co.uk] b000yxgs: Downloading m3u8 information
[bbc.co.uk] b000yxgs: Downloading m3u8 information
[bbc.co.uk] b000yxgs: Downloading m3u8 information
[bbc.co.uk] b000yxgs: Downloading m3u8 information
[bbc.co.uk] b000yxgs: Downloading m3u8 information
[bbc.co.uk] b000yxgs: Downloading m3u8 information
[bbc.co.uk] b000yxgs: Downloading MPD manifest
[bbc.co.uk] b000yxgs: Downloading MPD manifest
[bbc.co.uk] b000yxgs: Downloading m3u8 information
[bbc.co.uk] b000yxgs: Downloading m3u8 information
[debug] Invoking downloader on 'http://bbcfmt-ic-c2237400-13f598-vodhlsuklive.s.
loris.llnwd.net/usp/auth/vod/piff_abr_full_sd/f46614-b000yxgs/vf_b000yxgs_1969bf
eb-1f75-4c8a-ba32-8c2b315f3a52.ism/vf_b000yxgs_1969bfeb-1f75-4c8a-ba32-8c2b315f3
a52-audio_eng_1=128000-video=1604000.m3u8'
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 226
[download] Destination: The League of Gentlemen, Series 2, Lust for Royston Vase
y-b000yxgs.mp4
[download] 4.9% of ~358.13MiB at 3.41MiB/s ETA 02:09
ERROR: Interrupted by user
%%%%%%%%%%%%%%%%%%%%%%
With the --write-sub command with title filename in the url
youtube-dl.exe --geo-bypass-country "GB" --ignore-config -v --fixup "never" --write-sub --sub-format "ttml" --sub-lang "en" -f "stream-uk-iptv_streaming_concrete_combined_sd_mf_limelight_uk_hls-1836" "https://www.bbc.co.uk/iplayer/episode/p008wm4y/the-league-of-gentlemen-series-2-2-lust-for-royston-vasey"
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--geo-bypass-country', 'GB', '--ignore-config', '-v
', '--fixup', 'never', '--write-sub', '--sub-format', 'ttml', '--sub-lang', 'en'
, '-f', 'stream-uk-iptv_streaming_concrete_combined_sd_mf_limelight_uk_hls-1836'
, 'https://www.bbc.co.uk/iplayer/episode/p008wm4y/the-league-of-gentlemen-series
-2-2-lust-for-royston-vasey']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2019.04.30
[debug] Python version 3.4.4 (CPython) - Windows-XP-5.1.2600-SP3
[debug] exe versions: ffmpeg N-91691-g962c931-Reino, ffprobe N-91691-g962c931-Re
ino, rtmpdump 2.4
[debug] Proxy map: {}
[debug] Using fake IP 25.238.131.250 (GB) as X-Forwarded-For.
[bbc.co.uk] p008wm4y: Downloading video page
[bbc.co.uk] p008wm4y: Downloading playlist JSON
[bbc.co.uk] b000yxgs: Downloading media selection XML
[bbc.co.uk] b000yxgs: Downloading captions
WARNING: [bbc.co.uk] b000yxgs: Failed to parse XML not well-formed (invalid toke
n): line 7, column 27
[bbc.co.uk] b000yxgs: Downloading captions
WARNING: [bbc.co.uk] b000yxgs: Failed to parse XML not well-formed (invalid toke
n): line 7, column 27
[bbc.co.uk] b000yxgs: Downloading captions
WARNING: [bbc.co.uk] b000yxgs: Failed to parse XML not well-formed (invalid toke
n): line 7, column 27
[bbc.co.uk] b000yxgs: Downloading m3u8 information
[bbc.co.uk] b000yxgs: Downloading m3u8 information
[bbc.co.uk] b000yxgs: Downloading m3u8 information
[bbc.co.uk] b000yxgs: Downloading m3u8 information
[bbc.co.uk] b000yxgs: Downloading MPD manifest
[bbc.co.uk] b000yxgs: Downloading MPD manifest
[bbc.co.uk] b000yxgs: Downloading m3u8 information
[bbc.co.uk] b000yxgs: Downloading m3u8 information
[bbc.co.uk] b000yxgs: Downloading m3u8 information
[bbc.co.uk] b000yxgs: Downloading m3u8 information
[bbc.co.uk] b000yxgs: Downloading m3u8 information
[bbc.co.uk] b000yxgs: Downloading m3u8 information
[bbc.co.uk] b000yxgs: Downloading MPD manifest
[bbc.co.uk] b000yxgs: Downloading MPD manifest
[bbc.co.uk] b000yxgs: Downloading m3u8 information
[bbc.co.uk] b000yxgs: Downloading m3u8 information
[debug] Invoking downloader on 'http://bbcfmt-ic-c2237400-13f598-vodhlsuklive.s.
loris.llnwd.net/usp/auth/vod/piff_abr_full_sd/f46614-b000yxgs/vf_b000yxgs_1969bf
eb-1f75-4c8a-ba32-8c2b315f3a52.ism/vf_b000yxgs_1969bfeb-1f75-4c8a-ba32-8c2b315f3
a52-audio_eng_1=128000-video=1604000.m3u8'
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 226
[download] Destination: The League of Gentlemen, Series 2, Lust for Royston Vase
y-b000yxgs.mp4
[download] 6.9% of ~363.79MiB at 3.33MiB/s ETA 02:07
ERROR: Interrupted by user
%%%%%%%%%%%%%%%%%%%
With --write-sub command without title filename in the url
youtube-dl.exe --geo-bypass-country "GB" --i
gnore-config -v --fixup "never" --write-sub --sub-format "ttml" --sub-lang "en" -f "stream-uk-iptv_streaming_concrete_combined_sd_mf_limelight_uk_hls-1836" "https://www.bbc.co.uk/iplayer/episode/p008wm4y"
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--geo-bypass-country', 'GB', '--ignore-config', '-v
', '--fixup', 'never', '--write-sub', '--sub-format', 'ttml', '--sub-lang', 'en'
, '-f', 'stream-uk-iptv_streaming_concrete_combined_sd_mf_limelight_uk_hls-1836'
, 'https://www.bbc.co.uk/iplayer/episode/p008wm4y']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2019.04.30
[debug] Python version 3.4.4 (CPython) - Windows-XP-5.1.2600-SP3
[debug] exe versions: ffmpeg N-91691-g962c931-Reino, ffprobe N-91691-g962c931-Re
ino, rtmpdump 2.4
[debug] Proxy map: {}
[debug] Using fake IP 25.61.140.72 (GB) as X-Forwarded-For.
[bbc.co.uk] p008wm4y: Downloading video page
[bbc.co.uk] p008wm4y: Downloading playlist JSON
[bbc.co.uk] b000yxgs: Downloading media selection XML
[bbc.co.uk] b000yxgs: Downloading captions
WARNING: [bbc.co.uk] b000yxgs: Failed to parse XML not well-formed (invalid toke
n): line 7, column 27
[bbc.co.uk] b000yxgs: Downloading captions
WARNING: [bbc.co.uk] b000yxgs: Failed to parse XML not well-formed (invalid toke
n): line 7, column 27
[bbc.co.uk] b000yxgs: Downloading captions
WARNING: [bbc.co.uk] b000yxgs: Failed to parse XML not well-formed (invalid toke
n): line 7, column 27
[bbc.co.uk] b000yxgs: Downloading m3u8 information
[bbc.co.uk] b000yxgs: Downloading m3u8 information
[bbc.co.uk] b000yxgs: Downloading m3u8 information
[bbc.co.uk] b000yxgs: Downloading m3u8 information
[bbc.co.uk] b000yxgs: Downloading MPD manifest
[bbc.co.uk] b000yxgs: Downloading MPD manifest
[bbc.co.uk] b000yxgs: Downloading m3u8 information
[bbc.co.uk] b000yxgs: Downloading m3u8 information
[bbc.co.uk] b000yxgs: Downloading m3u8 information
[bbc.co.uk] b000yxgs: Downloading m3u8 information
[bbc.co.uk] b000yxgs: Downloading m3u8 information
[bbc.co.uk] b000yxgs: Downloading m3u8 information
[bbc.co.uk] b000yxgs: Downloading MPD manifest
[bbc.co.uk] b000yxgs: Downloading MPD manifest
[bbc.co.uk] b000yxgs: Downloading m3u8 information
[bbc.co.uk] b000yxgs: Downloading m3u8 information
[debug] Invoking downloader on 'http://bbcfmt-ic-c2237400-13f598-vodhlsuklive.s.
loris.llnwd.net/usp/auth/vod/piff_abr_full_sd/f46614-b000yxgs/vf_b000yxgs_1969bf
eb-1f75-4c8a-ba32-8c2b315f3a52.ism/vf_b000yxgs_1969bfeb-1f75-4c8a-ba32-8c2b315f3
a52-audio_eng_1=128000-video=1604000.m3u8'
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 226
[download] Destination: The League of Gentlemen, Series 2, Lust for Royston Vase
y-b000yxgs.mp4
[download] 6.2% of ~361.38MiB at 3.30MiB/s ETA 02:08
ERROR: Interrupted by user
```
## Description
<!--
Provide an explanation of your issue in an arbitrary form. Provide any additional information, suggested solution and as much context and examples as possible.
If work on your issue requires account credentials please provide them or explain how one can obtain them.
-->
Subtitles for some videos available but are unable to be downloaded.
A few debugs above for different commands I have tried to get the subs.
Each of the above debugs are separated by %%%%%%%%%%%%%%%%% with comment below each to explain each debug tried. | subtitles | low | Critical |
439,515,289 | youtube-dl | Download to MKV Direct instead of MP4 without muxing process after download. | <!--
######################################################################
WARNING!
IGNORING THE FOLLOWING TEMPLATE WILL RESULT IN ISSUE CLOSED AS INCOMPLETE
######################################################################
-->
## Checklist
<!--
Carefully read and work through this check list in order to prevent the most common mistakes and misuse of youtube-dl:
- 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.
-->
Download to MKV Direct instead of MP4 without muxing process after download. The videos I download are in a TS container but when use --fixup "never" the download completes and always is in a mp4 container which is great.
Today many videos are not malformed audio but have timestamps errors all the way through from many broadcaster services. If take the mp4 video and do mp4 > mkv then back to mp4 everything is fixed and playable without errors. These errors have been present for over a year now and mkv is the only fix I know of so far.
So what I need is instead of TS to mp4 is TS to mkv with using also the --fixup "never" command and have no aac malformed audio or any muxing after download not happen.
To download as is now instead but of mp4 video we have option to have mkv. Without any post processing to do this. | question | low | Critical |
439,527,751 | godot | Crashed thread give wrong flag for is_active true until call wait to finish. | <!-- Please search existing issues for potential duplicates before filing yours:
https://github.com/godotengine/godot/issues?q=is%3Aissue
-->
**Godot version:** 3.1 stable GDSCRIPT
<!-- Specify commit hash if non-official. -->
**OS/device including version:** ubuntu windows10 android.
<!-- Specify GPU model and drivers if graphics-related. -->
**Issue description:**
<!-- What happened, and what was expected. -->
**Steps to reproduce:** just crash a thread an call is_active but always return true. until you call wait to finish then it return false. i think this is so broken.
**Minimal reproduction project:** -
<!-- Recommended as it greatly speeds up debugging. Drag and drop a zip archive to upload it. -->
| bug,topic:core,confirmed | low | Critical |
439,536,959 | flutter | Allow any Route to be offstage for an undetermined period of time | Note: I plan on implementing this feature myself, but it will likely require a breaking change, and the change is not trivial.
## Use case
A package I'm working on needs to act as a man in the middle between a `Navigator.push` and the appearance of the route on the screen.
The idea is, a `NavigatorObserver` may force pushed routes to be in an offstage state similarly to how `Hero` works. But that offstage status may last for a lot longer than one frame. In the meantime, the previous route should stay visible and interactive.
Currently, doing so leads to a black screen.
## Proposal
- move `offstage` property from `ModalRoute` to `Route`.
- `offstage` routes do not make the previous route invisible even if they are `opaque`.
- `offstage` routes don't capture clicks.
- going from offstage to onstage must not destroy the `Route` state.
- a route that was never rendered as onstage before should correctly start its transition animation from 0 when it appears
- routes may be popped when offstage
Misc:
- HeroController may mess up with the `opaque` variable.
- We'll probably want to move the "animation should start only when the route becomes onstage" out of `HeroController` and into `Route` itself.
| framework,f: routes,c: proposal,P3,team-framework,triaged-framework | low | Minor |
439,548,136 | godot | 3D Different Lightning Rendering OSX != Windows output | **Godot version:**
3.1.1
**OS/device including version:**
OSX Macbook Version 10.14.4
Intel Iris Plus Graphics 640
**Issue description:**
Actually I updated my project from 3.0.6 stable to 3.1.1 stable. Everything worked fine! The issue I encounter now is that my rendering scene is looking different on OSX and Windows and this shouldn't be the case by same configuration / objects etc. The Windows one is how it should look like
Windows look: https://ibb.co/S362T7C

OSX look: https://ibb.co/t2C5qc0

It seems like it is missing some light information or something. I deleted the .import folder and reimported everything still same issue. Maybe some one has a clue? | bug,topic:rendering,confirmed | low | Major |
439,558,609 | pytorch | Implement noise_shape keyword for Dropout layers | ## 🚀 Feature
Tensorflow has a noise_shape keyword for tf.nn.dropout, which specifies which dimensions should have dropout masks calculated independently and which dimensions should have shared dropout masks. PyTorch should have a similar feature too.
## Motivation
This is a very useful feature to have (for example, if we process the same example multiple times, we may want to tie dropout masks for each time we see that example), and while easy to implement independently, would be good to have common functionality for.
## Pitch
Include extra kwarg to torch.nn.Dropout called ``noise_shape``, with the same functionality as tf.nn.dropout.
## Alternatives
Fairly easy to implement independently, but would save hassle for many people if there was a core implementation.
| feature,module: nn,triaged | low | Major |
439,570,566 | godot | Refactor code editors | <!-- Please search existing issues for potential duplicates before filing yours:
https://github.com/godotengine/godot/issues?q=is%3Aissue
-->
**Godot version:**
3.1.x
**Steps to reproduce:**
script_text_editor.cpp
shader_editor_plugin.cpp
text_editor.cpp
What these 3 files have in common is that they implement literally the same thing 3 times. Some examples:
Same set of enums:
https://github.com/godotengine/godot/blob/21e2419e24b9b868fe5da2735784f31366bd1629/editor/plugins/script_text_editor.h#L99-L104
https://github.com/godotengine/godot/blob/21e2419e24b9b868fe5da2735784f31366bd1629/editor/plugins/shader_editor_plugin.h#L72-L77
https://github.com/godotengine/godot/blob/21e2419e24b9b868fe5da2735784f31366bd1629/editor/plugins/text_editor.h#L64-L69
Same edit menu:
https://github.com/godotengine/godot/blob/21e2419e24b9b868fe5da2735784f31366bd1629/editor/plugins/shader_editor_plugin.cpp#L502-L508
https://github.com/godotengine/godot/blob/21e2419e24b9b868fe5da2735784f31366bd1629/editor/plugins/text_editor.cpp#L577-L584
https://github.com/godotengine/godot/blob/21e2419e24b9b868fe5da2735784f31366bd1629/editor/plugins/script_text_editor.cpp#L1581-L1587
Same menu actions:
https://github.com/godotengine/godot/blob/21e2419e24b9b868fe5da2735784f31366bd1629/editor/plugins/shader_editor_plugin.cpp#L245-L250
https://github.com/godotengine/godot/blob/21e2419e24b9b868fe5da2735784f31366bd1629/editor/plugins/text_editor.cpp#L358-L365
https://github.com/godotengine/godot/blob/21e2419e24b9b868fe5da2735784f31366bd1629/editor/plugins/script_text_editor.cpp#L924-L931
There's muuuch more of it. And the worst part is when you want to add some feature to code editor. You basically need to repeat the code 3 times.
IMO the editors should be refactored to cut the repetitions as much as possible. There are differences here and there, but I bet it's possible to rewrite them in a way that doesn't repeat 80% of lines 3 times. | enhancement,topic:editor,topic:codestyle | medium | Major |
439,592,686 | rust | Tracking issue for "Lazy normalization" | # What is this?
"Lazy normalization" is a change to how we handle associated types (and constants) so that we wait until we have to equate an associated type (or constant) has to be equated or processed to normalize it (i.e., figure out if there is an impl we can use to find its definition), rather than doing so eagerly. This has a number of advantages, and in particular for const generics it can prevent a large number of cyclic errors.
# Subissues
* https://github.com/rust-lang/rust/issues/72219 -- Lazy normalization for constants
# Further background reading
## What is this "lazy normalization"? (see https://github.com/rust-lang/rust/issues/60471#issuecomment-523394151)
> @Aaron1011 Normalization is replacing "projections" (such as `<T as Trait>::AssocType` or unevaluated constant expressions - a better name than "projection" might be "expression" or "call" - something that only says how to get to a final "value", not what it is) with what they resolve/evaluate to.
> E.g. `&<Rc<str> as Deref>::Target` becomes `&str`, and `[T; {1+1}]` becomes `[T; 2]`.
>
> Right now all of this is done "eagerly", i.e. as soon as possible, and always (during typeck, or whenever there is enough information to normalize further), but that causes some issues:
>
> * for associated types it's HRTB-related (IIRC)
>
> * for type-level constants it's cyclic dependencies between the constant and the parent definition it's found in, which is why we can't fix #43408 (it's a one-line change, but then not even libcore compiles anymore)
>
>
> Lazy normalization would simply defer the work of resolving/evaluating such type-level constructs until the very moment they are needed (such as when requiring that two types are the same, or when computing the low-level layout of a type for miri/codegen).
> The associated type problem is more subtle (at least from what I've heard), but for constant expressions in types, it will simply break the cyclic dependencies because definitions will no longer force the evaluation of constant expressions they contain.
| A-type-system,A-trait-system,T-compiler,C-tracking-issue,A-const-generics,A-lazy-normalization,T-types | high | Critical |
439,607,096 | create-react-app | Failed to exec start script | <!--
PLEASE READ THE FIRST SECTION :-)
-->
### Is this a bug report?
Yes
<!--
If you answered "Yes":
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 fill as many fields below as you can.
If you answered "No":
If this is a question or a discussion, you may delete this template and write in a free form.
Note that we don't provide help for webpack questions after ejecting.
You can find webpack docs at https://webpack.js.org/.
-->
### 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.
-->
(Write your answer here.)
yarn --version
1.15.2
### 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.
-->
(Write your answer here if relevant.)
Failed to exec start script
react-scripts
### 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.
-->
(paste the output of the command here)
System:
OS: Linux 5.0 Antergos Linux
CPU: (8) x64 Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz
Binaries:
Node: 11.14.0 - /usr/bin/node
Yarn: 1.15.2 - /usr/bin/yarn
npm: 6.9.0 - /usr/bin/npm
Browsers:
Chrome: Not Found
Firefox: 66.0.3
npmPackages:
react: ^16.8.6 => 16.8.6
react-dom: ^16.8.6 => 16.8.6
react-scripts: 3.0.0 => 3.0.0
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.
-->
(Write your steps here:)
1. I have tried to use (again) the project starter for React (react-create-app) and after following the first 3steps of the official documentation the terminal throws an error when I try to start the project
2.
3.
### 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.
-->
(Write what you thought would happen.)
Compiled successfully!
You can now view project in the browser.
Local: http://localhost:3000/
On Your Network: http://10.1.0.116:3000/
Note that the development build is not optimized.
To create a production build, use yarn build.
### 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.
-->
(Write what happened. Please add screenshots!)
Starting the development server...
events.js:170
throw er; // Unhandled 'error' event
^
Error: spawn /usr/bin/chromium ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:247:19)
at onErrorNT (internal/child_process.js:429:16)
at processTicksAndRejections (internal/process/task_queues.js:81:17)
Emitted 'error' event at:
at Process.ChildProcess._handle.onexit (internal/child_process.js:253:12)
at onErrorNT (internal/child_process.js:429:16)
at processTicksAndRejections (internal/process/task_queues.js:81:17)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `react-scripts start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start 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! /home/florin/.npm/_logs/2019-05-02T13_52_24_047Z-debug.log
**And the log is**
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'start' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle [email protected]~prestart: [email protected]
6 info lifecycle [email protected]~start: [email protected]
7 verbose lifecycle [email protected]~start: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]~start: PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/florin/WebstormProjects/project/node_modules/.bin:/home/florin/.local/bin:/home/florin/bin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
9 verbose lifecycle [email protected]~start: CWD: /home/florin/WebstormProjects/project
10 silly lifecycle [email protected]~start: Args: [ '-c', 'react-scripts start' ]
11 silly lifecycle [email protected]~start: Returned: code: 1 signal: null
12 info lifecycle [email protected]~start: Failed to exec start script
13 verbose stack Error: [email protected] start: `react-scripts start`
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16)
13 verbose stack at EventEmitter.emit (events.js:193:13)
13 verbose stack at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:193:13)
13 verbose stack at maybeClose (internal/child_process.js:999:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:266:5)
14 verbose pkgid [email protected]
15 verbose cwd /home/florin/WebstormProjects/project
16 verbose Linux 5.0.10-arch1-1-ARCH
17 verbose argv "/usr/bin/node" "/usr/bin/npm" "start"
18 verbose node v11.14.0
19 verbose npm v6.9.0
20 error code ELIFECYCLE
21 error errno 1
22 error [email protected] start: `react-scripts start`
22 error Exit status 1
23 error Failed at the [email protected] start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
**END**
### 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:
-->
(Paste the link to an example project and exact instructions to reproduce the issue.)
Since i haven't added nothing extra to the react starter project I can't share you a link, is just the starting project that it has issues on my machine.
It is working if I change the version of the "react-scripts" from _3.0.0_ - to _2.1.8_
<!--
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,issue: needs investigation | low | Critical |
439,714,484 | flutter | Gaining/losing focus and opening/closing the keyboard must not be strongly coupled | As of now, gaining/losing focus and opening/closing the keyboard are strongly coupled, and they shouldn't be. Please see: https://github.com/flutter/flutter/issues/16863.
One good solution is a change in `FocusNode`. It could have a few more methods besides `unfocus` (https://github.com/flutter/flutter/issues/7247). to maintain backwards compatibility I suggest:
- `closeKeyboard()` which would close the keyboard without removing focus from the TextField.
- `openKeyboard()` which would open the keyboard and connect it to the textField even if the TextField previously had focus already (please note `focus` doesn't open the keyboard if the keyboard already has focus).
- `shouldOpenKeyboard` is a mutable field which is `true` by default. When the `TextField` gains focus by the user tapping it, or by the calling of `FocusScope.of(context).requestFocus(focusNode);` it would check this field to decide if it should open the keyboard or not. | a: text input,c: new feature,framework,customer: crowd,c: proposal,f: focus,P3,team-framework,triaged-framework | medium | Critical |
439,727,692 | flutter | Exception in debugFillProperties causes Flutter tool to exit | Steps to reproduce:
```dart
import 'package:flutter/foundation.dart';
import 'package:flutter/widgets.dart';
void main() => runApp(MyWidget());
class MyWidget extends StatelessWidget {
List<int> aList;
@override
Widget build(BuildContext context) => Placeholder();
@override
void debugFillProperties(DiagnosticPropertiesBuilder properties) {
super.debugFillProperties(properties);
properties.add(IntProperty('name', aList[0]));
}
}
```
Do `flutter run`, press `w` to print the widget hierarchy.
Result:
```
I/flutter ( 5395): WidgetsFlutterBinding - CHECKED MODE
I/flutter ( 5395): ══╡ EXCEPTION CAUGHT BY FLUTTER FRAMEWORK ╞══════════════════
═══════════════════════════════════════
I/flutter ( 5395): The following NoSuchMethodError was thrown during a service extension callback for
I/flutter ( 5395): "ext.flutter.debugDumpApp":
I/flutter ( 5395): The method '[]' was called on null.
I/flutter ( 5395): Receiver: null
I/flutter ( 5395): Tried calling: [](0)
I/flutter ( 5395):
I/flutter ( 5395): When the exception was thrown, this was the stack:
...
Error -32000 received from application: Server error
JSON-RPC error -32000: Server error
package:json_rpc_2/src/client.dart 110:64 Client.sendRequest
package:json_rpc_2/src/peer.dart 79:15 Peer.sendRequest
...
Application finished.
```
Can we handle this better?
(As an aside, I ran into this because I had a `debugFillProperties` implementation on a `State`-derived class that accidentally accessed something that hadn't been set yet. I wonder if maybe we should consider making debug builds automatically call `debugFillProperties()` whenever calling `State.build` (or perhaps recommend that people do it)?) | tool,d: api docs,a: error message,P3,team-tool,triaged-tool | low | Critical |
439,731,175 | vscode | Regex pattern to clear all problems of a task owner | Some compilers or build pipelines (e.g. create-react-app) emit different output if there are no errors vs. if there are 1+ errors or warnings. This makes it difficult to build problem matchers because start/end patterns need to have both a "errors" and a "no errors" version inside the same regex.
It would be better if there were a new pattern in task config (e.g. `clearAllPattern`) that, if found, would clear all existing problems from the current owner.
For non-background tasks this would be straightforward-- if the pattern is matched, then clear all problems from the owner and ignore all problems from the currently-executing task until the task exits.
For background tasks, it'd be a little more complicated:
1) clear all problems from the owner
2) reset the state if it's currently after a `beginsPattern` but before an `endsPattern`
3) wait until the next `beginsPattern` before logging more problems.
As a side effect, this feature would provide an escape hatch for users who want to clear problems by running a task (#50448), because you could create a task with a `clearAllPattern` that always matches. | feature-request,tasks | low | Critical |
439,731,374 | flutter | [platform_views] VirtualDisplay need only be the worst case size of the screen | We should be able to pass in the offset and other information from the framework to composit only the visible part of the platform view in Android.
see: https://github.com/flutter/flutter/issues/28978 for an example use case. | framework,a: platform-views,c: proposal,P2,team-framework,triaged-framework | low | Minor |
439,754,316 | rust | Compiler-internal lint for public libcore items not reexported in libstd | Inspired by #60185. | C-enhancement,A-lints,P-medium,T-compiler | low | Major |
439,759,317 | flutter | RenderPointerListener should send onExit before it is detached | Right now, when the `RenderPointerListener` is detached, it notifies the `MouseTracker` that it needs to detach an annotation. This is correct behavior, since the `onExit` for the annotation needs to be called whenever the annotation is removed, but because it's being called from `detach`, it is possible that the `onExit` will call a `setState` for a widget during the wrong build phase.
It's not clear what the fix for this is: the only idea I had was to introduce a "preDetach" pass that lets everything that is about to be detached know that it will shortly be detached, and then the `MouseTracker` can invoke the `onExit` during that phase instead. It seems like an oversize hammer for this problem, though. | framework,f: gestures,c: proposal,P2,team-framework,triaged-framework | low | Minor |
439,779,331 | rust | rustdoc type-based search appears to not support searching by built-in types | You can search for functions that appear to satisfy some sort of a shape/type as such `input -> output`, however that will not work for more complicated searches involving built-in types, including:
* slices `[T] -> *`;
* pointers `*mut T -> *`;
* tuples `(*, *)`;
* and similarly multiple arguments
* probably more.
Instead of attempting to guess a what kind of search this is based on `->` I propose that we add another "type" indicating that this is a signature we’re looking for and take a type of the function pointer as an argument, so something like this would work:
* `sig:fn([T]) -> *`
* `sig:fn(*mut T) -> T`
* `sig:(A, B)
* `sig:...` | T-rustdoc,C-bug,A-type-based-search | low | Minor |
439,814,725 | go | net/http: have DefaultTransport support all_proxy (SOCKS5) by default | Now that https://go-review.googlesource.com/c/net/+/168921 is in, we have good context support for doing SOCKS5 dials in x/net/proxy.
We should use it from net/http.DefaultTransport so the $ALL_PROXY (and $all_proxy) environment variable lets users configure SOCKS5.
| NeedsInvestigation,FeatureRequest | low | Minor |
439,821,363 | pytorch | CosineAnnealingLR giving unexpected learning rates on PyTorch 1.1. | ## 🐛 Bug
`CosineAnnealingLR` (and probably others) are giving unexpected learning rates.
## To Reproduce
Code:
```
import torch
model = torch.nn.Linear(1, 1)
optim = torch.optim.SGD(model.parameters(), lr=1.)
l = torch.optim.lr_scheduler.CosineAnnealingLR(optim, 3)
for _ in range(10):
print(l.last_epoch, l.get_lr()[0])
l.step()
```
Output of PyTorch 1.0.1:
```
-1 0.75
0 1.0
1 0.75
2 0.2500000000000001
3 0.0
4 0.24999999999999978
5 0.75
6 1.0
7 0.7500000000000002
8 0.2500000000000004
```
Output of PyTorch 1.1:
```
0 1.0
1 0.5625
2 0.08333333333333341
3 0.0
4 0.4999999999999999
5 2.2500000000000036
6 1.333333333333334
7 0.5625000000000006
8 0.0833333333333336
9 0.0
```
## Expected behavior
I was expecting almost the exact same output as PyTorch 1.0.1. The only difference would be that PyTorch 1.1 should start with `last_epoch = 0`.
## Environment
- PyTorch Version (e.g., 1.0): 1.1 and 1.0.1
- OS (e.g., Linux): Linux
- How you installed PyTorch (`conda`, `pip`, source): pip
- Build command you used (if compiling from source): -
- Python version: 3.6
- CUDA/cuDNN version: 10
- GPU models and configuration: Titan Xp
- Any other relevant information: | module: optimizer,triaged | low | Critical |
439,831,589 | flutter | Better error response from Flutter testing/driver APIs | Currently when the error occurs when talking to the Flutter testing/driver APIs, the API returns a text containing error message and traces. It would be brittle if Espresso/EarlGrey relies on passing the error text to interpret the error.
Two examples:
1) When no matching UI element is found:
JSON-RPC Request sent to uri ws://127.0.0.1:45257/Q-Bxibr0quE=/ws:
```json
{
"id": "message-2",
"method": "ext.flutter.driver",
"params": {
"isolateId": "isolates/root",
"text": "Increment2",
"finderType": "ByTooltipMessage",
"command": "tap",
"timeout": 10000
},
"jsonrpc": "2.0"
}
```
JSON-RPC response received:
```json
{
"jsonrpc": "2.0",
"result": {
"isError": true,
"response": "Timeout while executing tap: TimeoutException after 0:00:10.000000: Future not completed\n#0 FlutterDriverExtension.call (package:flutter_driver/src/extension/extension.dart:184:31)\n<asynchronous suspension>\n#1 BindingBase.registerServiceExtension.<anonymous closure> (package:flutter/src/foundation/binding.dart:512:32)\n<asynchronous suspension>\n#2 _runExtension (dart:developer-patch/developer.dart:84:23)\n",
"type": "_extensionType",
"method": "ext.flutter.driver"
},
"id": "message-2"
}
```
2) When there are multiple UI element matches:
JSON-RPC Request sent to uri ws://127.0.0.1:38582/Bc3XMX9_8wk=/ws:
```json
{
"id": "message-2",
"method": "ext.flutter.driver",
"params": {
"isolateId": "isolates/root",
"text": "Increment",
"finderType": "ByTooltipMessage",
"command": "tap",
"timeout": 10000
},
"jsonrpc": "2.0"
}
```
JSON-RPC response received:
```json
{
"jsonrpc": "2.0",
"result": {
"isError": true,
"response": "Uncaught extension error while executing tap: Bad state: Too many elements\n#0 Iterable.single (dart:core/iterable.dart:554:24)\n#1 WidgetController._getElementPoint (package:flutter_test/src/controller.dart:612:47)\n#2 WidgetController.getCenter (package:flutter_test/src/controller.dart:584:12)\n#3 WidgetController.tap (package:flutter_test/src/controller.dart:256:18)\n#4 FlutterDriverExtension._tap (package:flutter_driver/src/extension/extension.dart:324:19)\n<asynchronous suspension>\n#5 FlutterDriverExtension.call (package:flutter_driver/src/extension/extension.dart:181:53)\n<asynchronous suspension>\n#6 BindingBase.registerServiceExtension.<anonymous closure> (package:flutter/src/foundation/binding.dart:512:32)\n<asynchronous suspension>\n#7 _runExtension (dart:developer-patch/developer.dart:84:23)\n",
"type": "_extensionType",
"method": "ext.flutter.driver"
},
"id": "message-2"
}
```
Proposal:
1) Using error codes in the responses to better present the errors;
2) Possibly clean up the error messages to make it more user-readable.
| a: tests,c: new feature,tool,framework,t: flutter driver,customer: espresso,P3,team-framework,triaged-framework | low | Critical |
439,839,498 | rust | Inconsistent literal escaping in proc macros | Proc macros operate on tokens, including string/character/byte-string/byte literal tokens, which they can get from various sources.
- Source 1: Lexer.
This is the most reliable source, the token is passed to a macro *precisely* like it was written in source code.
`"C"` will be passed as `"C"`, but the same C in escaped form `"\x43"` will be passed as `"\x43"`.
Proc macros can observe the difference because `ToString` (the only way to get the literal contents in proc macro API) also prints the literal precisely.
- Source 2: Proc macro API.
`Literal::string(s: &str)` will make you a string literal containing data `s`, approximately.
The precise token (returned by `ToString`) will contain:
- `escape_debug(s)` for string literals (`Literal::string`)
- `escape_unicode(s)` for character literals (`Literal::character`)
- `escape_default(s)` for byte string literals (`Literal::byte_string`)
- Source 3: Recovered from non-attribute AST
AST goes through pretty-printing first, then re-tokenized.
The precise token (returned by `ToString`) will contain:
- precise `s` for raw AST strings
- `escape_debug(s)` for non-raw AST strings
- `escape_default(s)` for AST characters, bytes and byte strings (both raw and non-raw)
- Source 4: Recovered from attribute AST
Just an ad-hoc recovery without pretty-printing.
The precise token (returned by `ToString`) will contain:
- precise `s` for raw AST strings
- `escape_default(s)` for non-raw AST strings, AST characters, bytes and byte strings (both raw and non-raw)
EDIT: Also doc comments go through `escape_debug` when converted to `#[doc = "content"]` tokens for proc macros.
It would be nice to
- Figure out what escaping we actually want (perhaps none?) and document the motivation behind the escaping choices.
- Get rid of the escaping differences between token sources, so that at least literals of the same kind are escaped identically. | A-frontend,A-macros,T-compiler,C-bug,A-proc-macros | low | Critical |
439,853,644 | flutter | Support selectableTimePredicate in TimePicker | An optional selectableTimePredicate function can be passed in to customize the times to enable for selection. If provided, only the times that selectableTimePredicate returned true for will be selectable.
This can be the same idea as datePicker. As for a use case. I'm selecting a range of time with a **from:** and a **to:** and I need to make sure the **to** time comes after the from. | c: new feature,framework,f: material design,P3,team-design,triaged-design | low | Minor |
439,867,807 | flutter | switch macOS dark mode KVO to effectiveAppearance/NSAppearance | Currently these are using the String APIs | engine,platform-mac,c: proposal,a: desktop,P2,team-macos,triaged-macos | low | Minor |
439,879,522 | rust | Values created by const fns aren't rvalue static promoted | This function compiles due to rvalue static promotion:
```rust
fn bar() -> &'static i32 {
&1
}
```
This, however, does not:
```rust
struct Foo(i32);
impl Foo {
const fn new(n: i32) -> Foo {
Foo(n)
}
}
fn foo() -> &'static Foo {
&Foo::new(1)
}
```
```
error[E0515]: cannot return reference to temporary value
--> src/lib.rs:10:5
|
10 | &Foo::new(1)
| ^-----------
| ||
| |temporary value created here
| returns a reference to data owned by the current function
error: aborting due to previous error
```
Explicitly creating a static does work, however:
```rust
struct Foo(i32);
impl Foo {
const fn new(n: i32) -> Foo {
Foo(n)
}
}
fn foo() -> &'static Foo {
static FOO: Foo = Foo::new(1);
&FOO
}
``` | C-enhancement,A-diagnostics,A-lifetimes,T-compiler,A-const-eval | low | Critical |
440,018,077 | go | cmd/link: support internal linking for Android and iOS | We're about to run self-hosted Android and iOS builders (#31722). It would be nice if Go could produce internally linked binaries for those platforms, for a less hacky bootstrapping and for being able to build x/build/cmd/buildlet and stage0 everywhere. Depends on #31343 Android. | NeedsInvestigation,mobile,compiler/runtime | low | Major |
440,043,811 | flutter | [video_player] [iOS] Add possibility to specify mime type for player | Hello, there's a bug in AVKit, where it cannot play videos from url which does not specify the extension. As a workaround for the plugin, it is possible to specify the mime type directly for it.
https://stackoverflow.com/questions/5501670/how-to-play-movie-files-with-no-file-extension-on-ios-with-mpmovieplayercontroll
```
NSString * mimeType = @"video/mp4";
// or even with codecs
mimeType = @"video/mp4; codecs=\"avc1.42E01E, mp4a.40.2\"";
// create asset
AVURLAsset * asset = [[AVURLAsset alloc] initWithURL:url options:@{@"AVURLAssetOutOfBandMIMETypeKey": mimeType}];
// create AVPlayer with AVURLAsset
AVPlayer * player = [AVPlayer playerWithPlayerItem:[AVPlayerItem playerItemWithAsset:asset]];
``` | c: new feature,platform-ios,p: video_player,package,c: proposal,P2,team-ios,triaged-ios | low | Critical |
440,073,314 | pytorch | LSTM forget bias must be initialized properly | ## 🚀 Feature
LSTM forget bias must be initialized to 1 or 2 for better training.
## Motivation
Please see:
https://pdfs.semanticscholar.org/1154/0131eae85b2e11d53df7f1360eeb6476e7f4.pdf
http://proceedings.mlr.press/v37/jozefowicz15.pdf
"This problem is addressed by simply initializing the forget
gates bf to a large value such as 1 or 2. By doing so, the
forget gate will be initialized to a value that is close to 1,
enabling gradient flow. This idea was present in Gers et al.
(2000), but we reemphasize it since we found many practitioners to not be familiar with it."
| module: bc-breaking,module: nn,module: rnn,triaged,module: initialization | low | Major |
440,107,491 | TypeScript | TSServer should expose tsconfig | ## Search Terms
TSServer TSconfig ProjectInfo
## Suggestion
```
export interface ProjectInfo {
configFileName: string;
fileNames?: string[];
languageServiceDisabled?: boolean;
}
```
TSServer should also include the project config (the final form of tsconfig.json with all the extends resolved) in the ProjectInfo response
## Use Cases
Currently, the editor is expected to send `compileOnSaveEmitFile` command on each save if `compileOnSave` flag is set. To figure that out, the editor has to parse the tsconfig.json file and check if the flag is set. The initial version of `extend` was relatively easy to implement. But now with the support for package name, it's complex to implement correctly.
Why can't you use `tsc --showConfig`?
Currently we bundle the `tsserver.js` file along the plugin. So the only dependency is nodejs. This also makes it easier to use it in js projects which don't have typescript dependency. If we depend on `tsc`, we would also have to bundle tsc file etc.
see https://github.com/ananthakumaran/tide/issues/310 | Suggestion,Needs Proposal,API | low | Minor |
440,124,802 | flutter | Access to flavors on pubspec.yaml to gain more granular control over my artifacts | ## Use case
As a developer, I'd like to have access to my Android/iOS flavors in my pubspec.yaml, so I can have more control over what's included in the final artifacts.
For example:
In an application that relies on using maps, I might want to use Google Maps everywhere except for China, where I would want to use a different provider, such as Autonavi. With the existing setup, I would end up including both Google Maps and Autonavi in my final apk/ipa. However, if I was able to access the flavors at the pubspec level, I could define a common API as a common module, and include Autonavi only on the chinese flavor, and GMaps on the other ones.
## Proposal
### Ideal solution:
I would have one `pubspec.yaml` that would look like this:
```yaml
name: flavors
description: flavors
version: 1.0.0
environment:
sdk: ">=2.0.0 <3.0.0"
dependencies:
common:
flutter:
sdk: flutter
common_map_api: 1.0.0
china:
autonavi_map: 1.0.0
rest_of_the_wrold:
google_maps: 1.0.0
flutter:
uses-material-design: true
```
where `china` and `rest_of_the_world` would be my build flavors.
### Alternative solution:
As a transition plan, we could have a "pubspec generator". This generator would receive a different yaml with a format like this:
```yaml
common:
flutter:
sdk: flutter
common_map_api: 1.0.0
china:
autonavi_map: 1.0.0
rest_of_the_wrold:
google_maps: 1.0.0
```
and when running the flutter application, it would generate a pubspec.yaml with only the necessary content depending on which flavor you are running.
This solution is far from ideal, though, since your pubspec would change its content depending on which flavor you run, creating, IMO, a lot of confusion for developers.
| c: new feature,framework,c: proposal,P3,team-framework,triaged-framework | medium | Critical |
440,134,245 | flutter | Assets are not found during test runs on Windows when using path.join() due to slash direction | When running tests on Windows, if I have code that reads assets like:
```dart
final foo = await rootBundle.loadString(path.join('assets', mapName));
```
It works fine when I run my app on Android or in the Android emulator, but when I run using `flutter test` I get an error like this:
```
FlutterError (Unable to load asset: assets\beach_tileset.json)
```
If I add `.replaceAll(r'\', '/')` to the end of the path, it works fine in tests. | a: tests,framework,d: api docs,a: assets,P2,team-framework,triaged-framework | low | Critical |
440,177,915 | flutter | Flutter clipboard should support images | ## Use case
It would be nice to also support videos and binary data in general. But having images would already be a big help.
## Proposal
I can write a plugin but such basic behavior should be part of the Flutter framework. Having it in the framework also allows integrating it with Flutter widgets like TextField.
## Related issues
https://github.com/flutter/flutter/issues/30719 | c: new feature,framework,customer: crowd,a: images,c: proposal,P3,team-framework,triaged-framework | high | Critical |
440,203,886 | rust | macro_rules gives up early when parsing keywords in `expr` contexts | I'm sorry for the vague title; I'm not sure how to summarize this issue, or pin down it's root cause.
I'm also sorry if this is intended behavior, i just find it very confusing.
I found this while playing around with the limits of the macro_rules parser, trying to narrow down an edge case i noticed while working on adding flexibility to the `py-comp` crate.
Given the definition:
```rust
macro_rules! m {
($e:expr) => {"expr"};
($t:tt) => {"tt"};
}
```
we get the following behaviours:
```rust
m!(1+1) // expr
m!(foo) // expr
m!(=) // tt
```
which is reasonable, but writing:
```rust
m!(for)
```
(or any keyword like `while`, `if`, `match`, `box` and probably others)
we get:
```
error: expected pattern, found `<eof>`
--> src/main.rs:7:23
|
7 | println!("{}", m!(for));
| ^^^ expected pattern
error: aborting due to previous error
```
Importantly, removing the first case (`($e:expr) => {"expr"};`) allows that last example to be translated to `"tt"`
This is confusing to me: I though that the parser tries each option until it finds one that matches, or fails the macro if none did, but in this case it obviously bails the macro parsing early without exhausting all options.
You can play around with it here:
https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=374709ef7516dfee7b5df2bca278764b | A-parser,A-macros,T-lang,T-compiler | low | Critical |
440,211,136 | flutter | Potential Matrix4Tween.lerp performance improvement | The third benchmark here demonstrates how to modify `Matrix4.lerp` to run about 25% faster by reusing objects rather than allocating new ones.
https://github.com/google/vector_math.dart/commit/4e83308a916339fa2f404945ca4efd994e1c5830#diff-1465efa00171ab51942972af0e358965R92
This works because of Dart's microtask execution model - the reuse all happens during the same microtask.
You could do better than this by lazy pre-decomposition if the begin and end are stationary, but that would require each Tween to hold the decomposition. | framework,c: performance,c: proposal,perf: speed,P2,team-framework,triaged-framework | low | Major |
440,211,422 | flutter | Tab _warpToCurrentIndex causing pages to build and dispose immediately | When warping in `TabBarView`, pages that are not shown on the Viewport can improperly be built and immediately disposed. This behavior is undesired, as it may have performance implications from attempting to build and dispose of a widget unnecessarily. To reproduce:
1. Tap on a tab that is adjacent to a tab containing a nested TabBarView
2. The nested tab has to be in between the initial tab and the tab that was tapped on
(ie. current index = 0, tap on tab at index 3 when tab at index 2 has nested TabBarView)
See https://github.com/flutter/flutter/pull/31581 for context | framework,f: material design,c: performance,a: quality,P2,c: tech-debt,team-design,triaged-design | low | Major |
440,215,505 | pytorch | Split libtorch binary build CI job into separate variants | We should move this loop https://github.com/pytorch/builder/blob/master/manywheel/build_common.sh#L120 into separate jobs.
Right now the libtorch job can take a ridiculous amount of time. This should help greatly. | module: ci,triaged | low | Minor |
440,217,661 | flutter | Accessibility guideline tests do not work with `flutter run test` | Initially because the elements we are looking for are not hitTestable, and then because we seemingly do not find the correct Rect.
cc @HansMuller | a: tests,framework,a: accessibility,P2,team-framework,triaged-framework | low | Minor |
440,230,931 | youtube-dl | Add uscreen.tv 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 2019.04.30. 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 **2019.04.30**
- [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.
-->
This URL is the container where the video player sits:
https://www.unauthorized.tv/programs/live-on-stage?cid=201227
When the user clicks play a POST is sent to this URL with JSON payload (plus various session headers):
https://www.unauthorized.tv/stats/play
`{"video_id":"211831","chapter_id":"201227","started":true}`
## Description
<!--
Provide any additional information.
If work on your issue requires account credentials please provide them or explain how one can obtain them.
-->
Uscreen.tv is a video hosting platform where the content owner can skin the interface and use their own domain name. Videos can be protected by login (the URL supplied above is not) in which case the user must first sign in at: `https://<custom domain>/sign_in` | site-support-request | low | Critical |
440,242,877 | pytorch | [FR] [RFC] add Sequential.append & .extend | A common pattern people use in `__init__` of a `nn.Module` is to build a `list` first and then feed it into `nn.Sequential` because `Sequential` doesn't support many handy methods existing on `list`. E.g.,
```py
def __init__(self, logres):
super().__init__():
layers = [
nn.Conv2d(3, 64, kernel_size=11, stride=4, padding=2),
nn.ReLU(inplace=True),
nn.MaxPool2d(kernel_size=3, stride=2),
]
for _ in range(logres):
layers.extend([
nn.Conv2d(3, 64, kernel_size=11, stride=4, padding=2),
nn.ReLU(inplace=True),
nn.MaxPool2d(kernel_size=3, stride=2),
])
self.layers = nn.Sequential(*layers)
```
This is totally unnecessary if we can just provide `.append` and `.extend` on `Sequential`. | feature,module: nn,triaged | low | Major |
440,244,746 | godot | Export issue using different renderers per platform via feature tags | <!-- Please search existing issues for potential duplicates before filing yours:
https://github.com/godotengine/godot/issues?q=is%3Aissue
-->
**Godot version:**
<!-- Specify commit hash if non-official. -->
Godot 3.1.2-devel
**OS/device including version:**
<!-- Specify GPU model and drivers if graphics-related. -->
MacOSX 10.13.6
iOS 12.1.2
**Issue description:**
<!-- What happened, and what was expected. -->
As I described in #28621, I many times changed export compression mode for my graphics files. One time I disabled S3TC compression format and when I try to reimport files I get a lot of errors about loading images on PC (I don't export for PC/Mac so I tried to ignore this error).
Finally I enabled S3TC compression because it bloated me by error messages.
So I reimport my images again (as vram compression) and now them can not be loaded on my iOS device. It doesn't show any error when reimport images or when making export package. But in runtime game crashed and showed in logs messages about that problem files:
```
2019-05-04 01:10:25.474821+0300 galactic-adventure-2[7799:5271607] **ERROR**: res://GUI/Presenting/Presenting.tscn:3 - Parse Error: [ext_resource] referenced nonexistent resource at: res://LevelScreen/backgrounds/paralax-1.png
```
I tried to reimport that images in Lossy compression mode - it works!
I changed compression format to video ram - it doesn't work.
I closed godot, removed *.import files and all related files in my .import folder. Then I started godot again, it imported my images. While them in lossless/lossy format - they works. As I change them to video ram format - the game can not find them in runtime.
What should I clean in order to restore the original state? These files worked yesterday and iOS build worked flawlessly.
**Steps to reproduce:**
**Minimal reproduction project:**
<!-- Recommended as it greatly speeds up debugging. Drag and drop a zip archive to upload it. --> | enhancement,platform:ios,platform:android,topic:editor | low | Critical |
440,253,593 | opencv | Integer overflow in cvInitImageHeader leading to incorrectly sized imageData allocation and likely causing vulnerabilities in code using this API | In OpenCV you can create an image with cvCreateImage, passing a size, number of channels and depth. Internally OpenCV calls cvInitImageHeader to initialise the IplImage structure. When it does this there is an integer overflow when calculating widthStep. This leads to imageSize being calculated incorrectly and ultimately cvCreateData calling cvAlloc with the incorrect imageSize. If the code using this API checks the imageSize field of the IplImage struct appropriately then it could avoid any vulnerability, however if the code blindly assumes that there has been enough space allocated for imageData based on the parameters passed to cvCreateImage (which is a reasonable assumption) then it could ultimately lead to out of bounds memory read/write.
The code can be found in modules/core/src/array.cpp
```c
CV_IMPL IplImage*
cvInitImageHeader( IplImage * image, CvSize size, int depth,
int channels, int origin, int align )
{
[...]
image->nChannels = MAX( channels, 1 );
image->depth = depth;
image->align = align;
image->widthStep = (((image->width * image->nChannels *
(image->depth & ~IPL_DEPTH_SIGN) + 7)/8)+ align - 1) & (~(align - 1));
image->origin = origin;
const int64 imageSize_tmp = (int64)image->widthStep*(int64)image->height;
image->imageSize = (int)imageSize_tmp;
if( (int64)image->imageSize != imageSize_tmp )
CV_Error( CV_StsNoMem, "Overflow for imageSize" );
return image;
}
```
Although the imageSize is checked for overflow, widthStep is not checked for overflow, which is the thing that actually overflows.
After this, imageData is initialised in cvCreateData:
```c
CV_IMPL void
cvCreateData( CvArr* arr )
{
[...]
if( !CvIPL.allocateData )
{
const int64 imageSize_tmp = (int64)img->widthStep*(int64)img->height;
if( (int64)img->imageSize != imageSize_tmp )
CV_Error( CV_StsNoMem, "Overflow for imageSize" );
img->imageData = img->imageDataOrigin =
(char*)cvAlloc( (size_t)img->imageSize );
}
[...]
}
```
This bug still exists in the latest version of OpenCV and appears to have been there for at least the last 9 years. This bug will very likely lead to a security vulnerability wherever some code uses this API and assumes that there has been sufficient space allocated for the image. There may also be some code internal to OpenCV which makes the same assumption about the allocation size from width and height etc. and doesn't explicitly check imageSize thus leading to an exploitable vulnerability within the OpenCV code.
This bug could be triggered with a piece of code like:
```c
int width = 0x1fffffff;
int height = 2;
int channels = 3;
int depth = 8;
IplImage *im = cvCreateImage(cvSize(width, height), depth, channels);
// This is writing beyond the end of the imageData buffer which it shouldn't be
im->imageData[0x40000010] = 1;
``` | RFC | low | Critical |
440,255,822 | TypeScript | checkJs can't correctly determine type of generic function parameter | <!-- Please try to reproduce the issue with `typescript@next`. It may have already been fixed. -->
**TypeScript Version:** 3.4.5
<!-- Search terms you tried before logging this (so others can find this issue more easily) -->
jsdoc
checkJs
template
function
parameter
```ts
/**
* @template T
* @param {(left: T, right: T) => boolean} equals
* @returns {(xs: T[]) => T[]}
*/
const uniq = equals => xs => {
/** @type {T[]} */
const seen = []
const out = []
const len = xs.length
let j = 0
for(let i = 0; i < len; i++) {
const item = xs[i]
if(!seen.some(s => equals(s, item))) {
seen.push(item)
out[j++] = item
}
}
return out;
}
uniq((x, y) => x == y)([1, 3, 3, 7])
```
**Expected behavior:**
Typechecks fine
**Actual behavior:**
Type 'number' is not assignable to type 'T
**Playground Link:** <!-- A link to a TypeScript Playground "Share" link which demonstrates this behavior -->
https://www.typescriptlang.org/play/#src=%2F**%0D%0A%20*%20%40template%20T%0D%0A%20*%20%40param%20%7B(left%3A%20T%2C%20right%3A%20T)%20%3D%3E%20boolean%7D%20equals%0D%0A%20*%20%40returns%20%7B(xs%3A%20T%5B%5D)%20%3D%3E%20T%5B%5D%7D%0D%0A%20*%2F%0D%0Aconst%20uniq%20%3D%20equals%20%3D%3E%20xs%20%3D%3E%20%7B%0D%0A%09%2F**%20%40type%20%7BT%5B%5D%7D%20*%2F%0D%0A%09const%20seen%20%3D%20%5B%5D%0D%0A%09const%20out%20%3D%20%5B%5D%0D%0A%09const%20len%20%3D%20xs.length%0D%0A%09let%20j%20%3D%200%0D%0A%09for(let%20i%20%3D%200%3B%20i%20%3C%20len%3B%20i%2B%2B)%20%7B%0D%0A%09%09const%20item%20%3D%20xs%5Bi%5D%09%09%0D%0A%09%09if(!seen.some(s%20%3D%3E%20equals(s%2C%20item)))%20%7B%09%09%09%0D%0A%09%09%09seen.push(item)%0D%0A%09%09%09out%5Bj%2B%2B%5D%20%3D%20item%0D%0A%09%20%20%20%7D%0D%0A%09%7D%0D%0A%0D%0A%09return%20out%3B%0D%0A%7D%0D%0A%0D%0Auniq((x%2C%20y)%20%3D%3E%20x%20%3D%3D%20y)(%5B1%2C%203%2C%203%2C%207%5D)
**Related Issues:** <!-- Did you find other bugs that looked similar? -->
This seems related, but I don't think it's it
https://github.com/Microsoft/TypeScript/issues/26883
| Suggestion | low | Critical |
440,260,505 | flutter | Remove sources_assignment_filters in GN. | They are a relic of GYP and only cause confusion. | engine,P2,team-engine,triaged-engine | low | Minor |
440,263,469 | pytorch | [JIT] Source highlighting doesn't line up when tabs are used for indentation | ```
import torch
@torch.jit.script
def foo(x):
return torch.neg(x).foo()
```
```
Traceback (most recent call last):
File "tabs.py", line 3, in <module>
@torch.jit.script
File "/Users/jamesreed/onnx-fairseq/pytorch/torch/jit/__init__.py", line 826, in script
fn = torch._C._jit_script_compile(ast, _rcb, get_default_args(obj))
RuntimeError:
unknown builtin op: aten::foo
Here are some suggestions:
aten::pop
aten::to
aten::cos
aten::pow
aten::dot
aten::floor
aten::fmod
aten::log
aten::fft
:
@torch.jit.script
def foo(x):
return torch.neg(x).foo()
~~~~~~~~~~~~~~~~ <--- HERE
```
cc @suo | oncall: jit,triaged,enhancement,jit-backlog | low | Critical |
440,264,371 | godot | Viewport size returning incorrect values after resizing window and using stretch settings "2d" and "expand" | **Godot version:** v3.1.stable.official
**OS:** macOS Mojave 10.14.4
**Device:** 13" 2017 MacBook Pro w/ 4 Thunderbolt 3 Ports
**GPU:** Intel Iris Plus Graphics 650
**Display:** 2560x1600 Retina
**Issue description:**
When using stretch settings 2d and expand, `get_viewport().size` appears to return an incorrect value **after resizing the window**. If you look at the reported mouse position or move an object around in the scene and track its position, the x and y values at the edges of the window do not match the size of the viewport. It's almost as if objects are using a different coordinate system than the viewport. This was causing issues when I was trying to use the viewport's height in a project. I ended up having to manually calculate the actual size of the viewport used to position objects in scenes.
If I didn't explain this well enough, please look at the attached minimal reproduction project. It simply displays the following values to highlight the discrepancies between them:
- The viewport size as reported by `get_viewport().size`
- The size defined in the project settings file
- The actual size of the viewport as calculated by the `get_actual_viewport_size()` function inside of `InfoUI.gd`
- The position of the mouse
- The position of a square that you can move around using the arrow keys or WASD
I hope that this project gets the issue across more clearly.
Take notice of how both the mouse and square positions at the right and bottom sides of the window do not match the size reported by the viewport. This can cause issues if, for example, you wanted to place an object at the right side of the window. Setting its x position to `get_viewport().size.x` would place it in the wrong location.
I'm fairly new to Godot, so perhaps I'm misunderstanding how viewports work and this isn't an issue. However, I could not find a way to get the actual size of the viewport as calculated in the example project, which I what I needed for a project of mine.
I don't have another machine at the moment, so I'm not sure if this is macOS-specific or not or if it has something to do with having a retina display. For reference, I'm using the lowest display scale setting in macOS (to make the screen as high-res as possible).
**Steps to reproduce:**
1. Create a Godot project with stretch settings "2d" and "expand".
2. Run the project and resize the window.
3. Notice that the viewport size does not match the coordinate system used to position objects.
**Minimal reproduction project:** [ViewportBugProject.zip](https://github.com/godotengine/godot/files/3143865/ViewportBugProject.zip)
| bug,discussion,topic:core | low | Critical |
440,267,109 | godot | Viewport size conflictingly doubled when using "Allow Hidpi" and stretch settings "2d" and "expand" | **Godot version:** v3.1.stable.official
**OS:** macOS Mojave 10.14.4
**Device:** 13" 2017 MacBook Pro w/ 4 Thunderbolt 3 Ports
**GPU:** Intel Iris Plus Graphics 650
**Display:** 2560x1600 Retina
**Issue description:**
This is sort of related to issue #28665, but I figured this issue was different enough to post separately.
When using "Allow Hidpi" and stretch settings "2d" and "expand", the viewport size returned by `get_viewport().size` is always double the size defined in the project settings file. However, the mouse position and objects in the scene are positioned using the non-doubled size. For example, placing an object at `get_viewport().size.x` would move it completely out of view of the window, however placing it at `get_viewport().size.x / 2.0` would properly place it on the right edge of the window.
I'm not sure whether this is intended or not, but I find this behavior odd as it appears that objects in the scene are not positioned using the Hidpi setting.
The attached minimal reproduction project displays the following values to highlight the discrepancies between them:
- The viewport size as reported by get_viewport().size
- The size defined in the project settings file
- The actual size of the viewport as calculated by the get_actual_viewport_size() function inside of InfoUI.gd
- The position of the mouse
- The position of a square that you can move around using the arrow keys or WASD
Notice how the positions of the mouse and square when moving them to the right or bottom edges of the window do not match the width/height reported by `get_viewport().size`.
**Steps to reproduce:**
1. Create a Godot project with "Allow Hidpi" and stretch settings "2d" and "expand".
2. Run the project.
3. Notice that the viewport size is double the defined size and does not match the coordinate system used to position objects.
**Minimal reproduction project:** [ViewportBugHidpiProject.zip](https://github.com/godotengine/godot/files/3143880/ViewportBugHidpiProject.zip)
(This is the exact same project from issue #28665, except "Allow Hidpi" is checked in the project settings)
| bug,platform:web,platform:android,topic:core,topic:porting | low | Critical |
440,283,837 | create-react-app | Environment variables not injected if starting on different port | Steps to reproduce:
Run a project in dev mode on a port that is already used. It will prompt a different port. Hit "Y" to continue.
Custom .env variables will be missing on this project. | issue: needs investigation | low | Minor |
440,285,964 | material-ui | Improve form library integration | Perhaps Material UI should maintain their own integrations?
In your documentation you list
- final-form-material-ui
- formik-material-ui
- redux-form-material-ui
as related projects for integrating with the associated form libraries. I've started a project and gone from one to the next to the next in absolute annoyance as i've discovered they are all in a state of disrepair. None have been updated in nearly a year. Most are still on v <1.0.0. All have a laundry list of outstanding bugs. I've thrown a day away trying to integrate with each of them and run into issue after issue. I'm wondering if it would make sense for Material UI to maintain their own integration layer with these form libs?
<!-- Checked checkbox should look like this: [x] -->
- [x] This is not a v0.x issue. <!-- (v0.x is no longer maintained) -->
- [x] I have searched the [issues](https://github.com/mui-org/material-ui/issues) of this repository and believe that this is not a duplicate.
| new feature | low | Critical |
440,286,891 | go | x/build: use Cloud Run | There are a lot of interesting things we could do with [Cloud Run](https://cloud.google.com/run/) for the Go build system.
The make.bash step would be great, but at Cloud Run's 1 vCPU, that takes 4.5 minutes. If they add support for cranking that up, we plateau pretty flatly around 4 vCPUs (1m45s). It doesn't get much better than 1m15s even with 96 CPUs. So 4 vCPUs would be great. But that's not available.
But we could also wrap each make.bash tool invocation (compile, link, etc) with a toolexec wrapper, and run each step remotely as its own Cloud Run call. We'd need to inject a VFS into the remote call with some private syscall and/or os package hooks, as Cloud Run doesn't permit FUSE or NFS or anything in the kernel. (It's gVisor)
So Cloud Run for make.bash naively is too slow today with its 1 vCPU (4.5 minutes) and doing make.bash quickly on Cloud Run today requires some time consuming (but straight forward) work for the VFS and wrappers.
But tests today are easy...
We can do make.bash elsewhere, and then use Cloud Run to massively shard the test execution.
With a make.bash snapshot,
* first run `go tool dist test --list` to find all the tests
* then run each of those tests as its own Cloud Run call
* but for standard package "testing" tests, shard further... `go test -list . unicode/utf8` to get all the `TestFoo` names, then:
* separate call for each `utf8.test -short -vet=off -run=^TestEncodeRune$`, etc.
[Cloud Run's default quota](https://cloud.google.com/run/quotas) (before asking for it to be raised) permits 1,000 instances. We'd need to lock down concurrency to 1 call per service (probably), but 1,000 test executions in parallel SGTM.
I hacked up a super rough prototype today that's promising.
/cc @dmitshur | Performance,Builders,NeedsInvestigation | low | Major |
440,290,022 | godot | ResourceSaver cant trigger EditorPlugin "resource_save" signal | **Godot version: 3.1**
In EditorPlugin:
```
func _enter_tree():
connect("resource_saved", self, "resource_save")
func resource_save(_source):
if _source is PackedScene:
print("PackedScene Saved")
else:
print("Something saved")
```
In another tool:
```
func save():
print("save")
var p_scene = PackedScene.new()
var result = p_scene.pack(scene)
if result == OK:
var path = scene.filename
ResourceSaver.save(path, p_scene)
scene.property_list_changed_notify()
p_scene.emit_signal("changed")
print("save succeed")
```
I found that call the save function cannot trigger the "resource_save" function, thought I use the resource.changed, or that signal just work on editor internal save process? | topic:core | low | Minor |
440,292,752 | TypeScript | Comparison targets are reversed (regression) | The similar problem #30118 had been fixed, but appeared again.
**TypeScript Version:** 3.4.0-dev.20190504
<!-- Search terms you tried before logging this (so others can find this issue more easily) -->
**Search Terms:**
**Code**
```ts
export abstract class Supervisor<N extends string, P = unknown, R = unknown> {
private static instances_: Set<Supervisor<string, unknown, unknown>>;
private static get instances(): typeof Supervisor.instances_ {
return this.hasOwnProperty('instances_')
? this.instances_
: this.instances_ = new Set();
}
constructor() {
void (this.constructor as typeof Supervisor).instances.add(this);
}
public abstract call(name: N | ('' extends N ? undefined : never), param: P, timeout?: number): Promise<R>;
}
```
**Expected behavior:**
pass
**Actual behavior:**
```
Argument of type 'this' is not assignable to parameter of type 'Supervisor<string, unknown, unknown, unknown>'.
Type 'Supervisor<N, P, R, S>' is not assignable to type 'Supervisor<string, unknown, unknown, unknown>'.
Type 'string' is not assignable to type 'N'.
'string' is assignable to the constraint of type 'N', but 'N' could be instantiated with a different subtype of constraint 'string'.ts(2345)
```
**Playground Link:** <!-- A link to a TypeScript Playground "Share" link which demonstrates this behavior -->
**Related Issues:** <!-- Did you find other bugs that looked similar? -->
| Needs Investigation,Fix Available,Rescheduled | low | Critical |
440,305,663 | vue-element-admin | 侧边栏收缩情况下,子菜单全部展开却无法同步收缩 | <!--
注意:为更好的解决你的问题,请参考模板提供完整信息,准确描述问题,信息不全的 issue 将被关闭。
Note: In order to better solve your problem, please refer to the template to provide complete information, accurately describe the problem, and the incomplete information issue will be closed.
-->
## Bug report(问题描述)
#### Steps to reproduce(问题复现步骤)
1.收缩左侧sidebar
2. 点击打开nested所有子目录
3. 移开鼠标,前面的菜单不会随之收缩
#### Screenshot or Gif(截图或动态图)

#### Link to minimal reproduction(最小可在线还原demo)
<!--
Please only use Codepen, JSFiddle, CodeSandbox or a github repo
-->
#### Other relevant information(格外信息)
- Your OS:
- Node.js version:
- vue-element-admin
| enhancement :star:,not vue-element-admin bug | low | Critical |
440,308,108 | nvm | Info needed when curl without https protocol | #### The problem
When curl is installed without https protocol there is no information about underlying problem. Nvm task is executed and N/A output is returned.
#### Expectation
As a user i want to know what the problem occurred or maybe just possible hints should be outputed.
#### Operating system and version:
macOs High Sierra
10.13.6
nvm
0.34.0 | needs followup | low | Minor |
440,311,457 | flutter | Expose ImageStream on Image | ## 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.dartlang.org that already solves this?
-->
I'm looking to wrap the Image widget in a widget that will allow having a placerholder image that will be displayed until image is loaded, and an error image that will be displayed if there was an error obtaining the image (for any reason).
## Proposal
The official image widget already has a state with an `_imageSteram`. Would be great if we could do something with it and expose a property on the Image class of Stream<Image>, so one could simply do:
```
class _WrapperClassState extends State<WrapperClass> {
@override
void initState() {
super.initState();
widget.image.stream.addListener(_onImageChanged);
}
@override
void dispose() {
widget.image.stream.removeListener(_onImageChanged);
super.dispose();
}
void _onImageChanged(ImageInfo imageInfo, bool synchronousCall) {
// change the state, showing actual image instead of placeholder widget
}
void _onImageError(exception, StackTrace stackTrace) {
// change the state, showing error widget instead of placeholder widget
}
}
```
Unless there's another way I'm not aware of, to achieve similar result? | c: new feature,framework,a: images,P3,team-framework,triaged-framework | low | Critical |
440,357,296 | youtube-dl | Add support for radioeins.de | <!--
######################################################################
WARNING!
IGNORING THE FOLLOWING TEMPLATE WILL RESULT IN ISSUE CLOSED AS INCOMPLETE
######################################################################
-->
## Checklist
<!--
Carefully read and work through this check list in order to prevent the most common mistakes and misuse of youtube-dl:
- First of, make sure you are using the latest version of youtube-dl. Run `youtube-dl --version` and ensure your version is 2019.04.30. 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 **2019.04.30**
- [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 audio: https://www.radioeins.de/programm/sendungen/roots/
- Single audio: https://www.radioeins.de/programm/sendungen/sendungen/163/1905/190501_05_00_king_s_hour_whg_4834.html
## Description
<!--
Provide any additional information.
If work on your issue requires account credentials please provide them or explain how one can obtain them.
-->
Radioeins is a public radio station from Berlin/Germany. They offer Audio streams for selected shows for a period of seven days. The mp3 file is located within the player data-jsb. For <https://www.radioeins.de/programm/sendungen/roots/> the variable is "https://www.radioeins.de/programm/sendungen/sendungen/33/vorlagen/v_include_sendeplatz/_jcr_content/teaserListCenter/72285/teaserList/automaticteaser.mediajsn.jsn/layout=middleColumn.top/path=8bc874e1-e3f9-4af5-9cf1-76d732b287b3/cpp=823eb44b-e7b8-44fb-9d7a-b93bc1e817d0.jsn" which leads to the stream URL <https://rbbmediapmdp-a.akamaihd.net/content/b5/55/e125a50f-2c2c-430c-894a-2c6dc73f944b/8bc874e1-e3f9-4af5-9cf1-76d732b287b3_5f7fcebe-52bf-4bca-8583-8f0f3c326620.mp3>. | site-support-request | low | Critical |
440,368,936 | go | x/mobile: gomobile cross-device link error on final .app mv | <!-- Please answer these questions before submitting your issue. Thanks! -->
### What version of Go are you using (`go version`)?
<pre>
$ go version
go version go1.12.4 darwin/amd64
</pre>
### Does this issue reproduce with the latest release?
Yes.
### What operating system and processor architecture are you using (`go env`)?
<details><summary><code>go env</code> Output</summary><br><pre>
$ go env
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/kts/Library/Caches/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/kts/go"
GOPROXY=""
GORACE=""
GOROOT="/usr/local/go"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/m_/fjkzltc90_53qbckvq23bync0000gn/T/go-build675724674=/tmp/go-build -gno-record-gcc-switches -fno-common"
</pre></details>
### What did you do?
<!--
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
-->
Ran `gomobile build -target ios`.
The full command I ran is `env __IPHONEOS__=1 env CGO_CPPFLAGS="-I/usr/local/include/SDL2/ -DSDL_DISABLE_IMMINTRIN_H=1 -DTARGET_OS_IPHONE -D__IPHONEOS__" gomobile build -target=ios/arm -tags static -x -v -bundleid net.kettek.gosdlrender` but this is inconsequential to the reason why the failure occurred.
### What did you expect to see?
A successful `mv` operation before removal of the `$WORK` directory.
### What did you see instead?
```
** BUILD SUCCEEDED **
mv $WORK/build/Release-iphoneos/main.app render.app
rm -r -f "$WORK"
gomobile: rename /var/folders/m_/fjkzltc90_53qbckvq23bync0000gn/T/gomobile-work-342798608/build/Release-iphoneos/main.app render.app: cross-device link
```
** The `cross-device link` error, as far as I know, has to do with the fact my root partition is on a different filesystem than my `Users` partition -- the root is HFS+ and the Users is ZFS. This should be fixable by issuing a cp command rather than a mv. ** | help wanted,NeedsInvestigation,mobile | low | Critical |
440,372,324 | angular | Supporting [formArray] without a [formGroup] parent | <!--🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅
Oh hi there! 😄
To expedite issue processing please search open and closed issues before submitting a new one.
Existing issues often contain information about workarounds, resolution, or progress updates.
🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅-->
# 🚀 feature request
### Relevant Package
<!-- Can you pin-point one or more @angular/* packages the are relevant for this feature request? -->
<!-- ✍️edit: --> This feature request is for @angular/forms
### Description
<!-- ✍️--> There should be a [formArray] directive to create a form. Currently, we can defined formArrayName only if has a parent [formGroup] directive.
### Describe alternatives you've considered
<!-- ✍️--> No work around to do this as of now. If we need a formArray, then a parent formGroup is needed.
| feature,effort2: days,state: Needs Design,freq2: medium,area: forms,risk: medium,feature: under consideration | high | Critical |
440,383,964 | godot | AtlasTexture saved with region 0,0,0,0 (no region) spams error in console | <!-- Please search existing issues for potential duplicates before filing yours:
https://github.com/godotengine/godot/issues?q=is%3Aissue
-->
**Godot version:**
<!-- Specify commit hash if non-official. -->
7018de8425e8c2781071595fdcf565acdfde2be4
**OS/device including version:**
<!-- Specify GPU model and drivers if graphics-related. -->
win 7 64
**Issue description:**
<!-- What happened, and what was expected. -->
Saving an Atlas texture with not region (x=0, y=0, w=0,h=0) will allways spam thit at the project open:

Problem is not the warning... problem is that you don´t know what texture is failing, so in a big project you can have that mensage allways spamming at open and you will never find what is causing that.
**Steps to reproduce:**
Save an atlas texture to a tres file with no region.
Edit: i will copy error in text for googling help purpose:
Image::create: Index p_widht - 1=-1 out of size (MAX_WIDTH=16384)
At: core\image.cpp:1443
Image::blit_rect: Condition ' dsize == 0 ' is true.
At: core\image.cpp:1927
| enhancement,topic:core | low | Critical |
440,390,093 | rust | Associated constants in traits can not be used in const generics | Initially reported [here](https://github.com/rust-lang/rust/issues/44580#issuecomment-489294181).
The following code:
```rust
trait Foo {
const N: usize;
fn foo() -> [u8; Self::N];
}
```
[Playground](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=849ea34c4690f0b9baab9328679ea0d3)
Results in a "no associated item named `N` found for type `Self` in the current scope" compilation error on current Nightly.
Note that associated constants in `impl` blocks [work](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=ecc943d64d35c2cde6f50603d30731c5) without any issues.
cc @varkor @yodaldevoid | A-associated-items,T-compiler,C-bug,A-const-generics | high | Critical |
440,390,211 | rust | pub(in) visibility doesn't allow `use`d paths, unless macro-expanded | Paths usually respect `use` aliases of modules, but paths in `pub(in)` not.
https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=a6c5906c564f63850530fcd28c64379c
```rust
mod m1 {
pub(in crate::m2) fn f() {}
//~^ERROR cannot find module `m2` in module `crate`
}
use m1 as m2;
```
This seems to be a matter of the order of evaluation, hence the following variant compiles:
https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=a1b35f783b9c0aa35e58df3b7d4f41d5
```rust
mod m1 {
crate::id! {
pub(in crate::m2) fn f() {}
}
}
use m1 as m2;
#[macro_export]
macro_rules! id {
($($x:tt)*) => { $($x)* };
}
```
I expect these behaviors to match. | A-resolve,A-visibility,A-macros,T-lang,T-compiler | low | Critical |
440,397,743 | pytorch | ERROR: Command "python setup.py egg_info" when dockerfile build | ## 🐛 Bug
## To Reproduce
Steps to reproduce the behavior:
`docker build -t pytorch -f Dockerfile .`
```shell
['cmake',
'-GNinja',
'-DBUILDING_WITH_TORCH_LIBS=ON',
'-DBUILD_BINARY=False',
'-DBUILD_CAFFE2_OPS=True',
'-DBUILD_PYTHON=True',
'-DBUILD_SHARED_LIBS=ON',
'-DBUILD_TEST=True',
'-DBUILD_TORCH=ON',
'-DCAFFE2_STATIC_LINK_CUDA=False',
'-DCMAKE_BUILD_TYPE=Release',
'-DCMAKE_CXX_FLAGS= ',
'-DCMAKE_C_FLAGS= ',
'-DCMAKE_EXE_LINKER_FLAGS=',
'-DCMAKE_INSTALL_PREFIX=/tmp/pip-req-build-keauxx9z/torch',
'-DCMAKE_PREFIX_PATH=/opt/conda/bin/../',
'-DCMAKE_SHARED_LINKER_FLAGS=',
'-DINSTALL_TEST=True',
'-DNCCL_EXTERNAL=True',
'-DNCCL_INCLUDE_DIR=/usr/include',
'-DNCCL_ROOT_DIR=/usr/',
'-DNCCL_SYSTEM_LIB=/usr/lib/x86_64-linux-gnu/libnccl.so.2.4.2',
'-DNUMPY_INCLUDE_DIR=/opt/conda/lib/python3.6/site-packages/numpy/core/include',
'-DONNX_ML=False',
'-DONNX_NAMESPACE=onnx_torch',
'-DPYTHON_EXECUTABLE=/opt/conda/bin/python',
'-DPYTHON_INCLUDE_DIR=/opt/conda/include/python3.6m',
'-DPYTHON_LIBRARY=/opt/conda/lib/libpython3.6m.so.1.0',
'-DTHD_SO_VERSION=1',
'-DTORCH_BUILD_VERSION=1.1.0a0+fc00bfd',
'-DUSE_CUDA=True',
'-DUSE_DISTRIBUTED=True',
'-DUSE_FBGEMM=True',
'-DUSE_FFMPEG=False',
'-DUSE_LEVELDB=False',
'-DUSE_LMDB=False',
'-DUSE_MKLDNN=True',
'-DUSE_NCCL=True',
'-DUSE_NNPACK=True',
'-DUSE_NUMPY=True',
'-DUSE_OPENCV=False',
'-DUSE_QNNPACK=True',
'-DUSE_ROCM=False',
'-DUSE_SYSTEM_EIGEN_INSTALL=OFF',
'-DUSE_SYSTEM_NCCL=True',
'-DUSE_TENSORRT=False',
'-DMKLDNN_ENABLE_CONCURRENT_EXEC=ON',
'/tmp/pip-req-build-keauxx9z']
Cleaning up...
Removing source in /tmp/pip-req-build-keauxx9z
Removed file:///opt/pytorch from build tracker '/tmp/pip-req-tracker-27yyn7rz'
Removed build tracker '/tmp/pip-req-tracker-27yyn7rz'
ERROR: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-req-build-keauxx9z/
Exception information:
Traceback (most recent call last):
File "/opt/conda/lib/python3.6/site-packages/pip/_internal/cli/base_command.py", line 178, in main
status = self.run(options, args)
File "/opt/conda/lib/python3.6/site-packages/pip/_internal/commands/install.py", line 352, in run
resolver.resolve(requirement_set)
File "/opt/conda/lib/python3.6/site-packages/pip/_internal/resolve.py", line 131, in resolve
self._resolve_one(requirement_set, req)
File "/opt/conda/lib/python3.6/site-packages/pip/_internal/resolve.py", line 294, in _resolve_one
abstract_dist = self._get_abstract_dist_for(req_to_install)
File "/opt/conda/lib/python3.6/site-packages/pip/_internal/resolve.py", line 242, in _get_abstract_dist_for
self.require_hashes
File "/opt/conda/lib/python3.6/site-packages/pip/_internal/operations/prepare.py", line 368, in prepare_linked_requirement
abstract_dist.prep_for_dist(finder, self.build_isolation)
File "/opt/conda/lib/python3.6/site-packages/pip/_internal/operations/prepare.py", line 177, in prep_for_dist
self.req.prepare_metadata()
File "/opt/conda/lib/python3.6/site-packages/pip/_internal/req/req_install.py", line 539, in prepare_metadata
self.run_egg_info()
File "/opt/conda/lib/python3.6/site-packages/pip/_internal/req/req_install.py", line 617, in run_egg_info
command_desc='python setup.py egg_info')
File "/opt/conda/lib/python3.6/site-packages/pip/_internal/utils/misc.py", line 776, in call_subprocess
% (command_desc, proc.returncode, cwd))
pip._internal.exceptions.InstallationError: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-req-build-keauxx9z/
The command '/bin/sh -c TORCH_CUDA_ARCH_LIST="3.5 5.2 6.0 6.1 7.0+PTX" TORCH_NVCC_FLAGS="-Xfatbin -compress-all" CMAKE_PREFIX_PATH="$(dirname $(which conda))/../" pip install -v .' returned a non-zero code: 1
```
## Expected behavior
This will be issue, How i can fix it?
```dockerfile
RUN TORCH_CUDA_ARCH_LIST="3.5 5.2 6.0 6.1 7.0+PTX" TORCH_NVCC_FLAGS="-Xfatbin -compress-all" \
CMAKE_PREFIX_PATH="$(dirname $(which conda))/../" \
pip install -v .
```
## Environment
- PyTorch Version (e.g., 1.0): lastest
- OS (e.g., Linux): Window10 Home
- How you installed PyTorch (`conda`, `pip`, source): source
- Build command you used (if compiling from source): `docker build -t pytorch -f Dockerfile .`
- Python version: master
- CUDA/cuDNN version: None
- GPU models and configuration: None
- Any other relevant information:
## Additional context
My dockerfile has been modified very little.
```dockerfile
FROM nvidia/cuda:10.0-cudnn7-devel-ubuntu16.04
ARG PYTHON_VERSION=3.6
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
cmake \
git \
curl \
vim \
ca-certificates \
libjpeg-dev \
libpng-dev &&\
rm -rf /var/lib/apt/lists/*
RUN curl -o ~/miniconda.sh -O https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh && \
chmod +x ~/miniconda.sh && \
~/miniconda.sh -b -p /opt/conda && \
rm ~/miniconda.sh && \
/opt/conda/bin/conda install -y python=$PYTHON_VERSION numpy pyyaml scipy ipython mkl mkl-include cython typing && \
/opt/conda/bin/conda install -y -c pytorch magma-cuda100 && \
/opt/conda/bin/conda clean -ya
ENV PATH /opt/conda/bin:$PATH
RUN pip install ninja
WORKDIR /opt
RUN git clone https://github.com/pytorch/pytorch
# This must be done before pip so that requirements.txt is available
WORKDIR /opt/pytorch
COPY . .
RUN git submodule update --init
RUN TORCH_CUDA_ARCH_LIST="3.5 5.2 6.0 6.1 7.0+PTX" TORCH_NVCC_FLAGS="-Xfatbin -compress-all" \
CMAKE_PREFIX_PATH="$(dirname $(which conda))/../" \
pip install -v .
RUN git clone https://github.com/pytorch/vision.git && cd vision && pip install -v .
WORKDIR /workspace
RUN chmod -R a+w /workspace
```
| needs reproduction,module: build,triaged | low | Critical |
440,405,805 | TypeScript | Allow custom keywords to make it easy for children in different languages to contact typescript for simple computational experiments | <!-- 🚨 STOP 🚨 𝗦𝗧𝗢𝗣 🚨 𝑺𝑻𝑶𝑷 🚨
Half of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker. Please read the FAQ first, especially the "Common Feature Requests" section.
-->
## Search Terms
<!-- List of keywords you searched for before creating this issue. Write them down here so that others can find this suggestion more easily -->
`custome keywords`
## Suggestion
<!-- A summary of what you'd like to see added or changed -->
Allow custom keywords to make it easy for children in different languages to contact typescript for simple computational experiments
This requires a keyword standard in different language environments.
Unfortunately, no standardization organization has set standards for it, and because of the inaccuracy of translation, there is not even a recognized standard.
## Use Cases
<!--
What do you want to use this for?
What shortcomings exist with current approaches?
-->
Let children play with programming.
eg:
[lingascript (Multilingual Javascript, based on Typescript)](https://github.com/gasolin/lingascript)
[chinese keywords typescript](https://github.com/program-in-chinese/CTS), [use cases of chinese keywords typescript ](https://github.com/program-in-chinese/cts_in_5_min)
[Japanese keyword javascript nadesiko3](https://github.com/kujirahand/nadesiko3)
## Examples
<!-- Show how this would be used and what the behavior would be -->
```ts
//English
function sum(a:number,b:number):number{
return a+b;
}
//Chinese
函数 加和( a:数字, b:数字) :数字{
返回 a+b
}
//Russian
функция суммировать( a:цифра, b:цифра) :цифра{
возвращение a+b
}
//Japanese
関数 和を加える( a:数字, b:数字) :数字{
戻る a+b
}
... etc.
```
## Checklist
My suggestion meets these guidelines:
* [x] This wouldn't be a breaking change in existing TypeScript/JavaScript code
* [x] This wouldn't change the runtime behavior of existing JavaScript code
* [x] This could be implemented without emitting different JS based on the types of the expressions
* [x] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)
* [x] This feature would agree with the rest of [TypeScript's Design Goals](https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals).
| Suggestion,Awaiting More Feedback | low | Critical |
440,414,181 | godot | TextureButton can't press when InputEventScreenTouch or InputEventScreenDrag happened at the same time. | **Godot version:**
3.1
**OS/device including version:**
Android
**Issue description:**
When I use this demo for [VirtualAnalog](https://github.com/CantaloupeStudios/VirtualAnalogGodot) Stick,
I add a TextureButton to fire skill, the TextureButton can not press when the InputEventScreenTouch or InputEventScreenDrag is happened.
Means that I can not move the player and fire skill at the same time, must move stick touch up then can press skill button.
How can I implement this? | discussion,topic:input | low | Minor |
440,421,764 | pytorch | Inconsistant values of lr_scheduler.get_lr and lr in optimizer.param_groups | ## 🐛 Bug
After upgrading to 1.1.0, the value returned by `lr_scheduler.get_lr` is confusing comparing to the lr value inside `optimizer.param_groups`.
## To Reproduce
Here I follow the new convention putting the `lr_scheduler.step()` at the end of each iteration, see the new documents and #7889 (which is probably the root of this issue).
Code:
```python
# 1.1.0
import torch
net = torch.nn.Conv2d(1, 1, 1)
optimizer = torch.optim.SGD(net.parameters(), lr=0.1)
lr_scheduler = torch.optim.lr_scheduler.ExponentialLR(optimizer, gamma=0.9)
for i in range(5):
print(i, lr_scheduler.get_lr(), optimizer.param_groups[0]['lr'])
lr_scheduler.step()
```
Output:
```
0 [0.1] 0.1
1 [0.08100000000000002] 0.09000000000000001
2 [0.07290000000000002] 0.08100000000000002
3 [0.06561000000000002] 0.07290000000000002
4 [0.05904900000000002] 0.06561000000000002
```
We got inconsistant values. The two values are the **same in the first line**, but **different in following lines** by lr decay factor `gamma = 0.9`.
## Expected behavior
At least we should have consistant values of the two, right?
In the old version 1.0.1, if we follow the previous convention putting the `lr_scheduler.step()` at the beginning of each iteration, the output values are reasonable and consistant:
Code:
```python
# 1.0.1
import torch
net = torch.nn.Conv2d(1, 1, 1)
optimizer = torch.optim.SGD(net.parameters(), lr=0.1)
lr_scheduler = torch.optim.lr_scheduler.ExponentialLR(optimizer, gamma=0.9)
for i in range(5):
lr_scheduler.step()
print(i, lr_scheduler.get_lr(), optimizer.param_groups[0]['lr'])
```
Output:
```
0 [0.1] 0.1
1 [0.09000000000000001] 0.09000000000000001
2 [0.08100000000000002] 0.08100000000000002
3 [0.0729] 0.0729
4 [0.06561] 0.06561
```
## Environment
I'll skip this part since it can be easily reproduced from a fresh 1.1.0 installation. | module: optimizer,triaged | low | Critical |
440,436,347 | opencv | DNN, readNetFromTensorflow | - OpenCV => 3.4
- Operating System / Platform => Linux 16.04
- Compiler => python
##### Detailed description
Firstly I got a graph.pb file
`python3 -m tensorflow.python.tools.freeze_graph --input_graph graph.pb --input_checkpoint fcn8s_mobilenet/checkpoints/best/-200021 --output_graph graph_frozen.pb --output_node_names=network/output/ArgMax`
`python3 -m tensorflow.python.tools.optimize_for_inference --input graph_frozen.pb --output graph_optimized.pb --input_names=network/input/Placeholder --output_names=network/output/ArgMax`
I got a graph_optimized.pb
[graph_optimized.pb](https://pan.baidu.com/s/1hQJPw7d_1w4Iq7pGyW02lw )
password:isoz
And then generated the .pbtxt file
`import tensorflow as tf`
`from tensorflow.python.platform import gfile`
`with gfile.GFile('graph_optimized.pb','rb') as f:`
----`graph_def = tf.GraphDef()`
----`graph_def.ParseFromString(f.read())`
----`tf.import_graph_def(graph_def, name='')`
----`tf.train.write_graph(graph_def, './', 'protobuf.pbtxt', as_text=True)`
Then I loaded it to cv python script to see if it is compatible with the library or not:
import cv2
cvNet = cv2.dnn.readNetFromTensorflow ('graph_optimized.pb','protobuf.pbtxt')
But it gives me this error:
cvNet = cv2.dnn.readNetFromTensorflow('graph_optimized.pb','protobuf.pbtxt')
cv2.error: OpenCV(3.4.2) /io/opencv/modules/dnn/src/tensorflow/tf_importer.cpp:613: error: (-215:Assertion failed) const_layers.insert(std::make_pair(name, li)).second in function 'addConstNodes'
Could you give me some suggestion. Thank you! #
| feature,category: dnn | medium | Critical |
440,436,496 | flutter | Animation listeners should be called on value changes only | According to documentation, animation listeners should be called on value changes:
> Calls the listener every time the value of the animation changes.
However, listeners whose parent is an animation controller seem to be called every time the controller ticks, as the following example shows:
```dart
import 'package:flutter/material.dart';
void main() => runApp(MaterialApp(home: Scaffold(body: AnimationIssue())));
class AnimationIssue extends StatefulWidget {
@override
State<StatefulWidget> createState() {
return AnimationIssueState();
}
}
class AnimationIssueState extends State<StatefulWidget>
with TickerProviderStateMixin {
AnimationController _controller;
Animation<int> _constantAnimation;
int _listenerCalls;
@override
void initState() {
super.initState();
_listenerCalls = 0;
_controller =
AnimationController(duration: Duration(seconds: 10), vsync: this);
_constantAnimation = StepTween(begin: 0, end: 0).animate(_controller)
..addListener(() {
setState(() {
_listenerCalls++;
debugPrint('Animation listener called. Value: $_constantAnimation');
});
});
_controller.forward();
}
@override
Widget build(BuildContext context) {
return Center(
child: Text('Listener called $_listenerCalls times',
style: TextStyle(fontSize: 24)));
}
}
```
| framework,a: animation,has reproducible steps,P2,found in release: 2.5,found in release: 2.6,team-framework,triaged-framework | low | Critical |
440,438,099 | flutter | Allow to set the logical pixel size programmatically | ## Use case
Sometimes there is a need to simply scale a widget on a device with a bigger screen instead of changing its layout. A simple example is to show bigger images, bigger fonts or bigger custom widgets on tablets comparing to how they are shown on a smartphone. Putting it in other words, I don't want more information to be shown an a bigger screen, but simply want to make things bigger.
Currently there is nice utility library
https://pub.dartlang.org/packages/flutter_screenutil
which may help with scaling, but it's not as convenient as using just doubles for sizes and definitely doesn't work when using third party or native flutter widgets where sizes are hardcoded. Performance of this approach could be also a concern.
I tried Transform.scale(), but can't achieve the desired result as it scales its child after child's layout is already processed.
## Proposal
According to this documentation
https://docs.flutter.io/flutter/dart-ui/Window/devicePixelRatio.html
flutter uses a non changeable physical size of the logical pixel, which corresponds to "roughly 38 logical pixels per centimeter".
It would be great, if I can wrap any widget with a new "render widget" to provide this ratio programmatically for the widget sub-tree underneath.
I'm thinking about something like
```dart
@override
Widget build(BuildContext context) {
final bool isTablet = MediaQuery
.of(context)
.size
.shortestSide > 600;
return DevicePixelRatio( // <--- it's what I called a new "render widget"
pixelsPerCm: isTablet ? 30 : 38,
child: MyChild()
);
}
```
| framework,customer: posse (eap),c: proposal,a: layout,P3,team-framework,triaged-framework | high | Major |
440,440,783 | rust | OpenBSD: current_exe() fails when bin resolved through $PATH | I've noticed `std::env::current_exe()` on openbsd depends on argv[0], which means the resolution only works if the binary was started with a relative or absolute path, but not when it was resolved by the shell using $PATH.
https://github.com/rust-lang/rust/blob/9ebf47851a357faa4cd97f4b1dc7835f6376e639/src/libstd/sys/unix/os.rs#L260-L286 | T-libs-api,O-openbsd,C-bug | low | Minor |
440,441,309 | electron | Mac Menu: orange bubbles | An awesome feature would be to create these orange "pills" on mac application menus like this:

| enhancement :sparkles: | low | Minor |
440,455,298 | flutter | Add option to smoothly animate stepped mouse scroll deltas | _Update 12/12/23_
- Scrolling with trackpads is smooth except on web. Physical mouse wheels match platform physics, but do not have option to override with a smoothing animation.
- comment: https://github.com/flutter/flutter/issues/32120#issuecomment-1517332098
- What remains here is blocked on https://github.com/flutter/flutter/issues/139990, we need to know what is a mouse or trackpad.
- Once resolved, an adaptation of the Chromium SmoothScroller is in https://github.com/flutter/flutter/pull/115314 (full history) or https://github.com/flutter/flutter/pull/139392
- There are existing workarounds and packages available
- https://pub.dev/packages?q=smooth+scroll
---
## Steps to Reproduce
1. Use a desktop embedder, or another platform that allows you to scroll with a mouse's scroll wheel.
2. Scroll any scrollable content (e.g. list demo in Flutter Gallery)
3. Observe how the scroll offset abruptly jumps between scroll notches instead of smoothly transitioning (like Chrome, Firefox, UWP apps, etc.)
Gif example:

| c: new feature,framework,a: fidelity,f: scrolling,a: quality,customer: crowd,a: desktop,has reproducible steps,P2,workaround available,found in release: 3.7,found in release: 3.10,team-framework,triaged-framework | low | Critical |
440,461,424 | godot | ragdoll simulation twitches in simple humanoid ragdoll | **Godot version:**
v3.2.dev.custom_build.2931b4d
**OS/device including version:**
OS: Ubuntu 18.04.2
**Issue description:**
ragdoll simulation twitches in simple humanoid ragdoll with conejoint as constraint (except for the head with hingejoint), and default settings for the physical bones and the joint constraint (except swing span) [video with the issue](https://streamable.com/yh958)
**Minimal reproduction project:**
[testr.zip](https://github.com/godotengine/godot/files/3145742/testr.zip)
(Run simulation from playground scene. Ignore actor_def scene)
| bug,topic:core,topic:physics | low | Minor |
440,476,880 | material-ui | [RFC] Improve accessibility via support for composite widgets | This is a continuation of the discussion started by @mbrookes in #15334 and #15421. I have not yet made any attempts at an implementation, but I wanted to go ahead and document my thoughts about the problem space.
## What is a composite widget?
WAI-ARIA describes a composite widget as having the [following characteristics](https://www.w3.org/TR/wai-aria-practices/#grid):
* Always contains multiple focusable elements.
* Only one of the focusable elements contained by the widget is included in the page tab sequence.
* Requires the author to provide code that manages focus movement inside it.
## What are examples of composite widgets?
WAI-ARIA [describes](https://www.w3.org/TR/wai-aria-practices/#kbd_generalnav) the following design patterns and widgets as composite widgets:
* Combo Box: https://www.w3.org/TR/wai-aria-practices/#combobox
* Grids: https://www.w3.org/TR/wai-aria-practices/#grid
* Listbox: https://www.w3.org/TR/wai-aria-practices/#Listbox
* Menus: https://www.w3.org/TR/wai-aria-practices/#menu
* Radio Group: https://www.w3.org/TR/wai-aria-practices/#radiobutton
* Tabs: https://www.w3.org/TR/wai-aria-practices/#tabpanel
* Toolbar: https://www.w3.org/TR/wai-aria-practices/#toolbar
* Tree View: https://www.w3.org/TR/wai-aria-practices/#TreeView
* Treegrid: https://www.w3.org/TR/wai-aria-practices/#treegrid
## What is the accessibility benefit of composite widgets?
Composite widgets allow keyboard users to navigate quickly between different interactive portions of the page. <kbd>tab</kbd> and <kbd>shift</kbd>+<kbd>tab</kbd> can be used to skip between different composite widgets and to any focusable elements that are not part of a composite, and then the arrow keys can be used to navigate within a composite widget.
## What is the current state of support for composite widgets in Material-UI?
The following widgets are already treated as composites in their Material-UI counterparts:
* Combo Box: https://material-ui.com/demos/autocomplete/
* Listbox: https://material-ui.com/demos/selects/
* Menus: https://material-ui.com/demos/menus/
* Radio Group: https://material-ui.com/demos/selection-controls/#radio-buttons
The following widgets have a Material-UI counterpart that is **not** treated as a composite widget (i.e. <kbd>tab</kbd> navigates within these widgets rather than skipping to the next focusable element outside the widget):
* Grids: https://material-ui.com/demos/lists/
* Tabs: https://material-ui.com/demos/tabs/
* Toolbar: https://material-ui.com/demos/app-bar/
The Tree View and Treegrid patterns do not currently have any direct Material-UI counterpart, however nested Lists can be used to create tree widgets. The [Grid pattern](https://www.w3.org/TR/wai-aria-practices/#grid) can also be implemented in Material-UI using components other than Lists, for instance a grouping of [Cards](https://material-ui.com/demos/cards/) could be considered a WAI-ARIA Grid. If each Card has multiple focusable elements, then each Card in a group of Cards would represent a row in the grid.
## What should be done to improve support for composite widgets in Material-UI?
### Adding composite widget support for Lists
In the pull requests by @mbrookes that preceded this issue, the main idea was to move the keyboard focus navigation from MenuList down into List so that the focus logic could be used more broadly. While I think something along these lines is possible, there are a number of challenges to address:
* In order for a composite widget to add benefit, it is not enough to simply add arrow key navigation. It is also necessary to **remove** all focusable elements within the composite widget from the tab sequence by specifying a `tabindex` of -1, so that <kbd>tab</kbd> and <kbd>shift</kbd>+<kbd>tab</kbd> can be used reliably to skip out of the composite widget.
* The current MenuList focus navigation assumes that the focusable elements are all direct children of the list. Lists, however, can have a much more varied structure including secondary actions and nested lists. Any solution for treating Lists as composite widgets should handle secondary actions, and ideally support nested lists as well.
* The accessibility benefits of composite widgets are most important for long lists, so virtualized lists should be supported as well (though potentially with a more complex DX than for regular lists). It may not be practical to try to support text navigation for virtualized lists, but the solution should have an approach for handling <kbd>home</kbd> and <kbd>end</kbd> within a virtualized list. I wouldn't expect the arrow keys to pose any special difficulties with virtualized lists.
* For Lists, it will be important to support a roving tabindex: https://www.w3.org/TR/wai-aria-practices/#kbd_roving_tabindex. This concept was recently removed from MenuList as part of improving performance. In MenuList it added very little value since <kbd>tab</kbd> generally closes the Menu, so there is no reason to retain where the focus was. For composite widgets that persist on the page, the roving tabindex is much more important. If a user tabs out of the composite widget and then uses <kbd>shift</kbd>+<kbd>tab</kbd>, they should return to the same point in the composite widget. In order to avoid the performance issues that the roving tabindex caused within MenuList, it is important to manage this without leveraging state in the parent. Focus navigation should not cause re-rendering of the List; at most only the two list items involved in the focus change should be re-rendered. This means that changing of the tabindex (such that the current focus element in the composite has a tabindex of zero) should be done via the DOM property rather than via the attribute.
### Adding composite widget support for other components
I think it would be worthwhile to consider other scenarios (e.g. group of Cards, AppBar, Tabs) at the same time to explore which implementation aspects might make sense to be shared and to work towards a more general solution for composite widgets, but I'm not sure if a general solution will actually make sense in the end. | accessibility,discussion,RFC | low | Major |
440,495,581 | youtube-dl | EC-3 codec 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 2019.04.30. If it's not, see https://yt-dl.org/update on how to update. Issues with outdated version will be REJECTED.
- Search the bugtracker for similar feature requests: http://yt-dl.org/search-issues. DO NOT post duplicates.
- Finally, put x into all relevant boxes (like this [x])
-->
- [x] I'm reporting a feature request
- [x] I've verified that I'm running youtube-dl version **2019.04.30**
- [ ] 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.
-->
WRITE DESCRIPTION HERE
Here is a sample link i want to download https://smstr01.dmm.t-online.de/smooth24/smoothstream_m1/streaming/sony/9221438342941275747/636887760842957027/25_km_h-Trailer-9221571562372022953_deu_20_1300k_HD_H_264_ISMV.ism/Manifest
Download is working but only with AAC Audio. EC-3 (eac3) gives error: WARNING: [generic] EC-3 is not a supported codec. Is it possible to support that codec? | request | low | Critical |
440,501,508 | rust | type parameters expect camel case, but shouting case is also common | I am not sure why type parameters are checked to be upper camel case.
Type parameter names are not part of public API. Shouting case for type parameters is a convention followed by such popular crates as [rayon](https://docs.rs/rayon/1.0.3/rayon/?search=ParallelIterator), and it is the only way I know of to make something like the following not look confusing:
```rust
#[derive(Debug, Clone, PartialEq)]
pub enum Data<
INTEGER = Vec<i32>,
CHARACTER = Vec<u8>,
COMPLEX = Vec<(f64, f64)>,
> {
Integer(INTEGER),
Character(CHARACTER),
Complex(COMPLEX),
}
```
Furthermore, due to limitations of the check for upper camel case, you could write a whole crate using shouting case and not even know about the lint, because it will only hit you when you write an underscore:
```rust
pub fn zip<
INTEGER_1, CHARACTER_1, COMPLEX_1,
INTEGER_2, CHARACTER_2, COMPLEX_2,
>(
data_1: Data<INTEGER_1, CHARACTER_1, COMPLEX_1>,
data_2: Data<INTEGER_2, CHARACTER_2, COMPLEX_2>,
) -> Data<
(INTEGER_1, INTEGER_2),
(CHARACTER_1, CHARACTER_2),
(COMPLEX_1, COMPLEX_2),
> { unimplemented!() }
```
```
warning: type parameter `INTEGER_1` should have a camel case name
--> lib.rs:3:9
|
3 | INTEGER_1, CHARACTER_1, COMPLEX_1,
| ^^^^^^^^^ help: convert the identifier to camel case: `Integer1`
|
= note: #[warn(non_camel_case_types)] on by default
```
Given how rarely underscores should be needed, it's tempting to just change this to `INTEGER1` so that it slips by unnoticed like the rest of the crate. | A-lints,T-lang,T-compiler | low | Critical |
440,510,956 | flutter | Use builder for DropdownMenuButton | `DropdownMenuButton` should use (or allow use of) `ListView.builder` rather than `ListView`'s default constructor. I have a `DropdownMenuButton` that displays a dynamic amount of items and I'm running into performance issues when there is a large amount of items. Maybe a dropdown menu isn't the right choice if you have many items to display, but I think it would still be a good idea to perhaps provide a `DropdownMenuButton.builder` constructor like `ListView`. | c: new feature,framework,f: material design,c: performance,P2,team-design,triaged-design | low | Major |
440,530,600 | go | x/net/websocket: add ability to replace Dialer with DialContext in the Config struct, like http.Transport | I run websocket server on the windows namepipe, so hope replace Dialer with my Dialer, but it is a interface. so Can replace Dialer with DialContext in the Config struct, like http.Transport
similar, I run tls conn on other conn also, like serial port ...
https://github.com/golang/go/issues/31849 | NeedsInvestigation,FeatureRequest | low | Minor |
440,536,941 | pytorch | Advanced indexing with uint8 tensor versus int64 tensor is inconsistent | ## 🐛 Bug
<!-- A clear and concise description of what the bug is. -->
different behavior of slicing tensor with slices in different tensor type
## To Reproduce
Steps to reproduce the behavior:
```
import torch
a = torch.randint(low=1, high=10, size=(2, 3))
print(a)
b = torch.randint(2, (3,), dtype=torch.uint8)
print(b)
a[0, b] = 0
print(a)
```
<!-- If you have a code sample, error messages, stack traces, please provide it here as well -->
## Expected behavior
<!-- A clear and concise description of what you expected to happen. -->
if dtype of b is torch.uint8, it works normally like:
```
tensor([[9, 5, 3],
[1, 3, 9]])
tensor([1, 0, 1], dtype=torch.uint8)
tensor([[0, 5, 0],
[1, 3, 9]])
```
if I change dtype to torch.int64, it woks differently like:
```
tensor([[3, 9, 9],
[8, 7, 7]])
tensor([1, 0, 1])
tensor([[0, 0, 9],
[8, 7, 7]])
```
it seems that the value of slices act as slices instead of the position of no-zero elements
## Environment
- PyTorch Version (e.g., 1.0): 1.1.0
- OS (e.g., Linux): Mac os 10.14.3
- How you installed PyTorch (`conda`, `pip`, source): pip
- Build command you used (if compiling from source):
- Python version: 3.6
- CUDA/cuDNN version: None
- GPU models and configuration: None
- Any other relevant information: None
## Additional context
<!-- Add any other context about the problem here. -->
| module: bc-breaking,triaged,module: advanced indexing,module: boolean tensor | low | Critical |
440,546,639 | godot | [Bullet] Seemingly inaccurate kinematic collision remainders in Bullet physics but not GodotPhysics | <!-- Please search existing issues for potential duplicates before filing yours:
https://github.com/godotengine/godot/issues?q=is%3Aissue
-->
**Godot version:** 3.1.1 Stable 64-bit
**Issue description:** I made a simple character controller in 3D using a kinematic body and the `move_and_slide()` method, but when I look at the collision information from the slides, it seems as though a vast majority of the time the collision remainder is a zero-length vector, and if I increase the safe margin it's a zero-length vector 100% of the time. If I swap to GodotPhysics, the remainder is never a zero-length vector, if I increase the safe margin this remains true but it exhibits a bouncing behavior shown below (using a safe margin of 0.1).

**Minimal reproduction project:** [3D Physics Issues.zip](https://github.com/godotengine/godot/files/3146588/3D.Physics.Issues.zip) | bug,confirmed,topic:physics | low | Major |
440,548,186 | pytorch | RuntimeError: Given input size: (2048x1x1). Calculated output size: (2048x-5x-5). Output size is too small at /pytorch/aten/src/THNN/generic/SpatialAveragePooling.c:48 | ```
import torch
import torchvision
from torch.utils.tensorboard import SummaryWriter
from torchvision import datasets, transforms
```
# Writer will output to ./runs/ directory by default
```
writer = SummaryWriter()
transform = transforms.Compose([transforms.ToTensor(), transforms.Normalize((0.5,), (0.5,))])
trainset = datasets.MNIST('mnist', train=True, download=True, transform=transform)
trainloader = torch.utils.data.DataLoader(trainset, batch_size=64, shuffle=True)
model = torchvision.models.resnet50(False)
# Have ResNet model take in grayscale rather than RGB
model.conv1 = torch.nn.Conv2d(1, 64, kernel_size=7, stride=2, padding=3, bias=False)
images, labels = next(iter(trainloader))
grid = torchvision.utils.make_grid(images)
writer.add_image('images', grid, 0)
writer.add_graph(model, images)
writer.close()
```
> Downloading http://yann.lecun.com/exdb/mnist/train-images-idx3-ubyte.gz
> Downloading http://yann.lecun.com/exdb/mnist/train-labels-idx1-ubyte.gz
> Downloading http://yann.lecun.com/exdb/mnist/t10k-images-idx3-ubyte.gz
> Downloading http://yann.lecun.com/exdb/mnist/t10k-labels-idx1-ubyte.gz
> Processing...
> Done!
> Error occurs, No graph saved
> Traceback (most recent call last):
> File "/home/tian/.conda/envs/jiqi/lib/python3.6/site-packages/torch/utils/tensorboard/_pytorch_graph.py", line 276, in graph
> trace, _ = torch.jit.get_trace_graph(model, args)
> File "/home/tian/.conda/envs/jiqi/lib/python3.6/site-packages/torch/jit/__init__.py", line 231, in get_trace_graph
> return LegacyTracedModule(f, _force_outplace, return_inputs)(*args, **kwargs)
> File "/home/tian/.conda/envs/jiqi/lib/python3.6/site-packages/torch/nn/modules/module.py", line 493, in __call__
> result = self.forward(*input, **kwargs)
> File "/home/tian/.conda/envs/jiqi/lib/python3.6/site-packages/torch/jit/__init__.py", line 294, in forward
> out = self.inner(*trace_inputs)
> File "/home/tian/.conda/envs/jiqi/lib/python3.6/site-packages/torch/nn/modules/module.py", line 491, in __call__
> result = self._slow_forward(*input, **kwargs)
> File "/home/tian/.conda/envs/jiqi/lib/python3.6/site-packages/torch/nn/modules/module.py", line 481, in _slow_forward
> result = self.forward(*input, **kwargs)
> File "/home/tian/.conda/envs/jiqi/lib/python3.6/site-packages/torchvision/models/resnet.py", line 149, in forward
> x = self.avgpool(x)
> File "/home/tian/.conda/envs/jiqi/lib/python3.6/site-packages/torch/nn/modules/module.py", line 491, in __call__
> result = self._slow_forward(*input, **kwargs)
> File "/home/tian/.conda/envs/jiqi/lib/python3.6/site-packages/torch/nn/modules/module.py", line 481, in _slow_forward
> result = self.forward(*input, **kwargs)
> File "/home/tian/.conda/envs/jiqi/lib/python3.6/site-packages/torch/nn/modules/pooling.py", line 563, in forward
> self.padding, self.ceil_mode, self.count_include_pad)
> RuntimeError: Given input size: (2048x1x1). Calculated output size: (2048x-5x-5). Output size is too small at /pytorch/aten/src/THNN/generic/SpatialAveragePooling.c:48
During handling of the above exception, another exception occurred:
> Traceback (most recent call last):
> File "/home/tian/pycharm-2018.3.3/helpers/pydev/pydevd.py", line 1741, in <module>
> main()
> File "/home/tian/pycharm-2018.3.3/helpers/pydev/pydevd.py", line 1735, in main
> globals = debugger.run(setup['file'], None, None, is_module)
> File "/home/tian/pycharm-2018.3.3/helpers/pydev/pydevd.py", line 1135, in run
> pydev_imports.execfile(file, globals, locals) # execute the script
> File "/home/tian/pycharm-2018.3.3/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile
> exec(compile(contents+"\n", file, 'exec'), glob, loc)
> File "/home/tian/Desktop/ai/machine-learn/Image_recognition/tensorboard_test.py", line 18, in <module>
> writer.add_graph(model, images)
> File "/home/tian/.conda/envs/jiqi/lib/python3.6/site-packages/torch/utils/tensorboard/writer.py", line 534, in add_graph
> self._get_file_writer().add_graph(graph(model, input_to_model, verbose, **kwargs))
> File "/home/tian/.conda/envs/jiqi/lib/python3.6/site-packages/torch/utils/tensorboard/_pytorch_graph.py", line 279, in graph
> _ = model(*args) # don't catch, just print the error message
> File "/home/tian/.conda/envs/jiqi/lib/python3.6/site-packages/torch/nn/modules/module.py", line 493, in __call__
> result = self.forward(*input, **kwargs)
> TypeError: forward() takes 2 positional arguments but 65 were given
-

| module: docs,triaged,module: tensorboard,has workaround | low | Critical |
440,569,893 | ant-design | Calender: There is no option to have custom 4 weeks view in calender control. | - [x] I have searched the [issues](https://github.com/ant-design/ant-design/issues) of this repository and believe that this is not a duplicate.
### What problem does this feature solve?
There should be customizable view based on date range, suppose I want to show only 4-weeks date without disabling other dates. By this feature user can show the calendar based on the given range instead of showing it monthly/ yearly/weekly
### What does the proposed API look like?
By this feature user can show the calendar based on the given range instead of showing it monthly/yearly/weekly.
<!-- generated by ant-design-issue-helper. DO NOT REMOVE --> | Inactive | low | Major |
440,589,732 | vue-element-admin | tree-shaking无效 | <!--
注意:为更好的解决你的问题,请参考模板提供完整信息,准确描述问题,信息不全的 issue 将被关闭。
Note: In order to better solve your problem, please refer to the template to provide complete information, accurately describe the problem, and the incomplete information issue will be closed.
-->
## Bug report(问题描述)
访问路由/example/list,这个页面用了 import { fetchList } from '@/api/article',作者本意是只想引入fetchList,其它的不用,在tree-shaking的作用, '@/api/article' 下的其它模块将不会引入。但是打包后确引入了
#### Steps to reproduce(问题复现步骤)
在 /example/list页面中,该页面只用了fetchList模块,但是fetchArticle等无用模块代码也被引入进来了。
#### Screenshot or Gif(截图或动态图)

#### Link to minimal reproduction(最小可在线还原demo)
<!--
Please only use Codepen, JSFiddle, CodeSandbox or a github repo
-->
#### Other relevant information(格外信息)
- Your OS:
- Node.js version:
- vue-element-admin version:
| not vue-element-admin bug | low | Critical |
440,615,983 | angular | SVG animate tag don't work in ng-content with ngIf | # 🐞 bug report
### Description
The problem is that the animation of the SVG (`<animate>` tag) contained in a `<ng-content>` is only evaluated during the first display if a `ngif` conditions the display of the `<ng-content>`.
## 🔬 Minimal Reproduction
https://stackblitz.com/edit/angular-issue-svganim-ko
Reproduction steps :
1. Display the page: the circle is animate from black to red
2. Click to the "toggle" button: the circle is not displayed
3. Click to the "toggle" button: the circle is displayed **with no animation**
This case work only if the `ngIf` is applied on the component which use `content` (like this: https://stackblitz.com/edit/angular-issue-svganim-ok).
## 🌍 Your Environment
**Angular Version:**
<pre>Angular CLI: 7.3.4
Node: 8.9.4
OS: win32 x64
Angular: 7.2.8
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... platform-server, router
Package Version
------------------------------------------------------------
@angular-devkit/architect 0.13.5
@angular-devkit/build-angular 0.13.5
@angular-devkit/build-optimizer 0.13.5
@angular-devkit/build-webpack 0.13.5
@angular-devkit/core 7.3.4
@angular-devkit/schematics 7.3.4
@angular/cdk 7.3.3
@angular/cli 7.3.4
@angular/flex-layout 7.0.0-beta.24
@angular/material 7.3.3
@angular/material-moment-adapter 7.3.3
@ngtools/webpack 7.3.5
@schematics/angular 7.3.4
@schematics/update 0.13.4
rxjs 6.4.0
typescript 3.2.4
webpack 4.29.0<code>
<!-- run `ng version` and paste output below -->
<!-- ✍️-->
</code></pre>
| type: bug/fix,area: animations,freq2: medium,P3 | low | Critical |
440,637,263 | rust | doc-tests do not compile in release mode with --release | doc-tests do not compile in release mode with --release
```rust
#[cfg(debug_assertions)]
compile_error!("use --release mode!");
```
```
Compiling playground v0.0.1 (/playground)
Finished release [optimized] target(s) in 0.58s
Running target/release/deps/playground-c4b7af53795dc52c
Doc-tests playground
error: use --release mode!
--> /playground/src/lib.rs:2:1
|
2 | compile_error!("use --release mode!");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Standard Output
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out
``` | T-rustdoc,A-macros,C-bug,A-doctests | low | Critical |
440,672,694 | go | net/http: allow ListenAndServeTLS to omit PEM file values if TLSConfig.GetConfigForClient set | If I set GetConfigForClient and start the server using ListenAndServeTLS the arguments of ListenAndServeTLS, the server certificate and its key are lneeded to be given and they are also loaded. I have set the server certificate and its key in the configuration TLSConfig served by GetConfigForClient before. So using GetConfigForClient ListenAndServeTLS should ignore its arguments and they should also be optional. | NeedsFix | low | Minor |
440,686,952 | TypeScript | spread operator for enum | <!-- 🚨 STOP 🚨 𝗦𝗧𝗢𝗣 🚨 𝑺𝑻𝑶𝑷 🚨
Half of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker. Please read the FAQ first, especially the "Common Feature Requests" section.
-->
## Search Terms
<!-- List of keywords you searched for before creating this issue. Write them down here so that others can find this suggestion more easily -->
- Enum
- Spread operator
## Suggestion
<!-- A summary of what you'd like to see added or changed -->
I would like to use the spread operator to spread the values (or maybe the keys) of an enum.
## Use Cases
<!--
What do you want to use this for?
What shortcomings exist with current approaches?
-->
I want to use this to check or print available types of enum type.
## Examples
<!-- Show how this would be used and what the behavior would be -->
```typescript
enum TestStatus{
PENDING,
ACCEPTED,
WRONG_ANSWER
}
console.log(...TestStatus); // prints: "PENDING" "ACCEPTED" "WRONG_ANSEWR"
```
## Checklist
My suggestion meets these guidelines:
* [x] This wouldn't be a breaking change in existing TypeScript/JavaScript code
* [x] This wouldn't change the runtime behavior of existing JavaScript code
* [x] This could be implemented without emitting different JS based on the types of the expressions
* [x] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)
* [x] This feature would agree with the rest of [TypeScript's Design Goals](https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals).
| Suggestion,Awaiting More Feedback | medium | Critical |
440,703,543 | go | x/build: netbsd-amd64-8_0 builder timing out frequently | Four of the last five failures on the `netbsd-amd64-8_0` builder are timeouts in various tests.
I can't tell whether the builder is slow or the test is triggering some sort of deadlock.
https://build.golang.org/log/a64cd49d7d367f90e6b79ab84714b4c065763168
https://build.golang.org/log/f7f50b085698aa5480d2c34a3e6c250595317bf6
https://build.golang.org/log/7b749c8616a9b7e9a77c7735038673f9a9dc5d37
https://build.golang.org/log/26dd20510233ec659adf0d5987690164d8abaa6a
CC @bsiegert @bradfitz | Testing,OS-NetBSD,Builders,NeedsInvestigation | low | Critical |
440,757,559 | create-react-app | TypeScript support makes test with certain deps fail | ### Is this a bug report?
Yes.
Certain dependencies (specifically carbon-charts) make the tests fail. The bug ist that the relevant settings for jest can not be overwritten. See https://github.com/carbon-design-system/carbon-charts/issues/126 for the correspondent issue at carbon-charts.
### Did you try recovering your dependencies?
Yes
### Steps to Reproduce
npx create-react-app test --typescript
cd test
npm i @carbon/charts --save
echo "import '@carbon/charts';" >> src/App.tsx
npm test
### Expected Behavior
Tests should run fine.
### Actual Behavior
```
FAIL src/App.test.tsx
● Test suite failed to run
Jest encountered an unexpected token
This usually means that you are trying to import a file which Jest cannot parse, e.g. it's not plain JavaScript.
By default, if Jest sees a Babel config, it will use that to transform your files, ignoring "node_modules".
Here's what you can do:
• To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config.
• If you need a custom transformation specify a "transform" option in your config.
• If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option.
You'll find more details and examples of these config options in the docs:
https://jestjs.io/docs/en/configuration.html
Details:
/tmp/test/node_modules/@carbon/charts/index.js:2
import { BaseChart } from "./base-chart";
^
SyntaxError: Unexpected token {
25 |
26 | export default App;
> 27 | import '@carbon/charts';
| ^
28 |
at ScriptTransformer._transformAndBuildScript (node_modules/@jest/transform/build/ScriptTransformer.js:471:17)
at ScriptTransformer.transform (node_modules/@jest/transform/build/ScriptTransformer.js:513:25)
at Object.<anonymous> (src/App.tsx:27:1)
Test Suites: 1 failed, 1 total
Tests: 0 total
Snapshots: 0 total
Time: 1.65s
```
### Reproducible Demo
See commands above. | issue: needs investigation,issue: typescript | low | Critical |
440,763,694 | go | x/text: Get unicode script name in addition to script code | <!-- Please answer these questions before submitting your issue. Thanks! -->
### What version of Go are you using (`go version`)?
<pre>
$ go version = 1.12.4
</pre>
### Does this issue reproduce with the latest release?
Yes
### What operating system and processor architecture are you using (`go env`)?
<details><summary><code>go env</code> Output</summary><br><pre>
$ go env GOARCH="amd64"
GOBIN="/Users/user/dev/apl/pp/parsec/fed/_vendor/bin"
GOCACHE="/Users/user/go/cache"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/user/dev/apl/pp/parsec/fed:/Users/user/dev/apl/pp/parsec/fed/_vendor"
GOPROXY=""
GORACE=""
GOROOT="/usr/local/Cellar/go/1.12.4/libexec"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.12.4/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/wm/mbpr1q9j5vsb67r0yn4zl4m40000gn/T/go-build893585754=/tmp/go-build -gno-record-gcc-switches -fno-common"
</pre></details>
### What did you do?
<!--
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
-->
I want to get the `RangeTable` of a script given a specific language.
```
import (
"golang.org/x/text/language"
"unicode"
)
...
script, confidence := language.French.Script()
scriptAsString := script.String() // here scriptAsString = "Latn"
rangeTable, ok := unicode.Scripts[scriptAsString] // here ok = false, because the Scripts map has key "Latin" and not "Latn"
```
The problem is that the following function returns the `script code`
```func (s Script) String() string ```
Whereas the map unicode.Scripts has all of its keys using the `script name`
FIY: https://en.wikipedia.org/wiki/ISO_15924#List_of_codes
### What did you expect to see?
I would expect one of those:
1. Be able to get a `script name` in addition to get the `script code`.
2. Have a translation table between `script code` and `script name`
3. Have a map `unicode.Scripts` that goes from `script code` to `RangeTable`
Open thread on stack overflow here:
https://stackoverflow.com/questions/56003838/get-unicode-script-name-in-go
| NeedsInvestigation | low | Critical |
440,777,707 | go | net/http: Client.Do returns different errors on context deadline depending on req/conn state | <!-- Please answer these questions before submitting your issue. Thanks! -->
### What version of Go are you using (`go version`)?
<pre>
go version go1.12.4 linux/amd64
</pre>
### Does this issue reproduce with the latest release?
yes
### What operating system and processor architecture are you using (`go env`)?
<details><summary><code>go env</code> Output</summary><br><pre>
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/m.laletin/.cache/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/m.laletin/go"
GOPROXY=""
GORACE=""
GOROOT="/usr/local/go"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build654146316=/tmp/go-build -gno-record-gcc-switches"
</pre></details>
### What did you do?
Run multiple times program on my server (24 cpu)
https://play.golang.org/p/d00_wxKDN5f
With single goroutine - problem did not appears.
Problem appeared not every run, but in 3-4 runs at least one was faulty.
### What did you expect to see?
all goroutines: done = true, err = Get http://240.0.0.1/test: context deadline exceeded
### What did you see instead?
all gouroutines returned at the same time, after 4 seconds, like i specified in parent context.WithTimeout. But some goroutines returned before parentContext.Done was closed (error was i/o timeout), and some gorotines returned after parentCtx.Done was closed (with expected error "context deadline exceeded").
<pre>
2019-05-06T18:29:37.969098118+03:00 start
2019-05-06T18:29:41.969304132+03:00 done = false, err = Get http://240.0.0.1/test: dial tcp 240.0.0.1:80: i/o timeout
2019-05-06T18:29:41.969347778+03:00 done = false, err = Get http://240.0.0.1/test: dial tcp 240.0.0.1:80: i/o timeout
2019-05-06T18:29:41.969298753+03:00 done = false, err = Get http://240.0.0.1/test: dial tcp 240.0.0.1:80: i/o timeout
2019-05-06T18:29:41.969580442+03:00 done = true, err = Get http://240.0.0.1/test: context deadline exceeded
2019-05-06T18:29:41.969298324+03:00 done = false, err = Get http://240.0.0.1/test: dial tcp 240.0.0.1:80: i/o timeout
2019-05-06T18:29:41.969589394+03:00 done = true, err = Get http://240.0.0.1/test: context deadline exceeded
2019-05-06T18:29:41.969461857+03:00 done = false, err = Get http://240.0.0.1/test: dial tcp 240.0.0.1:80: i/o timeout
2019-05-06T18:29:41.969294915+03:00 done = false, err = Get http://240.0.0.1/test: dial tcp 240.0.0.1:80: i/o timeout
2019-05-06T18:29:41.969336744+03:00 done = false, err = Get http://240.0.0.1/test: dial tcp 240.0.0.1:80: i/o timeout
2019-05-06T18:29:41.969433802+03:00 done = false, err = Get http://240.0.0.1/test: dial tcp 240.0.0.1:80: i/o timeout
</pre>
| help wanted,NeedsInvestigation | low | Critical |
440,777,725 | pytorch | torch.nn.threshold cannot accept tensor as a threshold | ## 🚀 Feature
I think it will be useful if we can pass threshold as a tensor to the threshold function. in this way we can compute the backprop of the threshold tensor and use it in training process.
right now the threshold function just takes non-tensor threshold | module: nn,triaged,enhancement | low | Major |
440,790,947 | flutter | Marker infoWindow isn't updating on Android | ## Minimal code
```
void main() => runApp(MaterialApp(home: Scaffold(appBar: AppBar(), body: MyPage())));
class MyPage extends StatefulWidget {
@override
State<StatefulWidget> createState() => _MyPageState();
}
class _MyPageState extends State<MyPage> {
LatLng _latLng = LatLng(39.819976, -123.806769);
String _title = "Good";
@override
Widget build(BuildContext context) {
return Column(
children: <Widget>[
SizedBox(
width: 300,
height: 300,
child: GoogleMap(
initialCameraPosition: CameraPosition(target: _latLng, zoom: 12),
markers: [
Marker(markerId: MarkerId("id"), position: _latLng, infoWindow: InfoWindow(title: _title)),
].toSet(),
),
),
RaisedButton(
child: Text("Update"),
onPressed: () {
setState(() {
_title = "Morning";
_latLng = LatLng(39.809990, -123.792213);
});
},
),
],
);
}
}
```
When you tap on `Update` button, it simply changes the `title` of the `InfoWindow`, iOS seems to update the title with `InfoWindow` opened but Android fails.
### Screenshot for iOS (working fine)

### Screenshot for Android (not working fine)

### Flutter doctor
```
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel dev, v1.3.13, on Mac OS X 10.14 18A389, locale en-GB)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
[✓] Android Studio (version 3.4)
[✓] Connected device (1 available)
• No issues found!
```
| platform-android,p: maps,package,has reproducible steps,P2,found in release: 2.0,found in release: 2.3,team-android,triaged-android | low | Minor |
440,792,279 | flutter | Marker InfoWindow not showing multilines snippet for Android (works for iOS) | ## Minimal code
```
void main() => runApp(MaterialApp(home: Scaffold(appBar: AppBar(), body: MyPage())));
class MyPage extends StatefulWidget {
@override
State<StatefulWidget> createState() => _MyPageState();
}
class _MyPageState extends State<MyPage> {
LatLng _latLng = LatLng(39.819976, -123.806769);
@override
Widget build(BuildContext context) {
return GoogleMap(
initialCameraPosition: CameraPosition(target: _latLng, zoom: 12),
markers: [
Marker(
markerId: MarkerId("id"),
position: _latLng,
infoWindow: InfoWindow(title: "Title", snippet: "Good\nMorning"),
),
].toSet(),
);
}
}
```
### Screenshot for iOS (working
<img width="223" alt="ios_snippet" src="https://user-images.githubusercontent.com/40364434/57241191-14309900-704e-11e9-9c3b-968c5e69c2f9.png">
### Screenshot for Android (not working)
<img width="208" alt="android_snippet" src="https://user-images.githubusercontent.com/40364434/57241199-172b8980-704e-11e9-9abe-01255979b1d1.png">
You can see `Morning` isn't getting printed in Android but it does in iOS.
### Flutter doctor
```
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel dev, v1.3.13, on Mac OS X 10.14 18A389, locale en-GB)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
[✓] Android Studio (version 3.4)
[✓] Connected device (1 available)
• No issues found!
``` | platform-android,customer: crowd,p: maps,package,has reproducible steps,P2,found in release: 2.0,found in release: 2.3,team-android,triaged-android | low | Critical |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.