sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: flutter
Issue: Webview_flutter: Proposal to  intercept requests apart from navigational
Labels: c: new feature,p: webview,package,c: proposal,team-ecosystem,P3,triaged-ecosystem

I render custom html where there are images, which have to be loaded with an auth token in header. There 2 ways:
1) Stick the token into cookies
2) Intercept every webview request

I wasn't able to do either of the options with the current flutter webview's functionality.
Is there a way to do that or maybe there are other options?

Currently I have to cut out all the links from <img> and load them separately and replace them with base64 data
Repository: storybook
Issue: Ability to use start-storybook from global install
Labels: feature request,cli,performance issue

**Is your feature request related to a problem? Please describe.**
Installing over 100MB of node_modules (over 1k packages) just for storybook to work... for **each** of the components I work on is a pain... Installing it once, globally should be enough

**Describe the solution you'd like**
I would like to be able to install storybook globally, like `npm i -g @storybook/html @babel/core babel-loader`

**Describe alternatives you've considered**
Can't think of anything else that would be reliable and easy to follow for less advanced users.

**Are you able to assist bring the feature to reality?**
Yes I can!

**Additional context**
Currently it is impossible to use storybook globally. It throws an error about not finding babel-loader though it's installed globally. Once installed babel-loader locally, it tries to find core-js locally. If this is installed manually as well, it cries about not being able to resolve @storybook/html (this is the one I was using).

I am aware that it's always safer to keep packages local and especially locking versions up, but downloading 100MB per smallest tiniest component is sometimes an overkill. I can help with developing that if I get a green light and some brief intro where to find the code and if it's something that needs to be done per client (html/react/angular/vue etc) or is it a shared functionality.
Repository: go
Issue: runtime: "unexpected signal during runtime execution" during bgscavenge on plan9
Labels: help wanted,OS-Plan9,NeedsInvestigation,compiler/runtime

```
#!watchflakes
post <- goos == "plan9" && log ~ `unexpected signal during runtime execution` && log ~ `runtime\.bgscavenge`
```

From `plan9-386-0intro` (https://build.golang.org/log/a94f5d80b1a5d38ecdf8b02bed7bfb305f569118), a `cmd/vet` test failure that appears to have nothing to do with `cmd/vet`:
```
--- FAIL: TestVet (1.94s)
    --- FAIL: TestVet/assign (0.43s)
        vet_test.go:162: error check failed: 
            assign.go:18: missing error "self-assignment of x to x"
            assign.go:20: missing error "self-assignment of s.x to s.x"
            assign.go:22: missing error "self-assignment of s.l.0. to s.l.0."
            Unmatched Errors:
            fatal error: unexpected signal during runtime execution
            [signal sys: trap: fault write code=0x0 addr=0x0 pc=0xa960]
            goroutine 4 [running]:
            runtime.throw(0x96394d, 0x2a)
            	/tmp/workdir-gnot/go/src/runtime/panic.go:1106 +0x63 fp=0x11429f44 sp=0x11429f30 pc=0x2e783
            runtime.sigpanic()
            	/tmp/workdir-gnot/go/src/runtime/os_plan9.go:79 +0x333 fp=0x11429f78 sp=0x11429f44 pc=0x2b033
            runtime.newobject(0x92d1a0, 0x0)
            	/tmp/workdir-gnot/go/src/runtime/malloc.go:1153 fp=0x11429f7c sp=0x11429f78 pc=0xa960
            runtime.bgscavenge(0x1143c000)
            	/tmp/workdir-gnot/go/src/runtime/mgcscavenge.go:211 +0x5b fp=0x11429fe8 sp=0x11429f7c pc=0x1d83b
            runtime.goexit()
            	/tmp/workdir-gnot/go/src/runtime/asm_386.s:1337 +0x1 fp=0x11429fec sp=0x11429fe8 pc=0x573f1
            created by runtime.gcenable
            	/tmp/workdir-gnot/go/src/runtime/mgc.go:215 +0x6a
            goroutine 1 [chan receive, locked to thread]:
            runtime.gopark(0x96ee48, 0x1143c030, 0x1143170e, 0x2)
            	/tmp/workdir-gnot/go/src/runtime/proc.go:304 +0xd8
            runtime.chanrecv(0x1143c000, 0x0, 0x11400001, 0x1515a)
            	/tmp/workdir-gnot/go/src/runtime/chan.go:563 +0x275
            runtime.chanrecv1(0x1143c000, 0x0)
            	/tmp/workdir-gnot/go/src/runtime/chan.go:433 +0x1c
            runtime.gcenable()
            	/tmp/workdir-gnot/go/src/runtime/mgc.go:216 +0x7e
            runtime.main()
            	/tmp/workdir-gnot/go/src/runtime/proc.go:166 +0x183
            runtime.goexit()
            	/tmp/workdir-gnot/go/src/runtime/asm_386.s:1337 +0x1
FAIL
FAIL	cmd/vet	34.760s
```

CC @aclements @mknyszek @0intro @fhs
Repository: scrcpy
Issue: Thank you!
Labels: wontfix

Just discovered scrcpy today thanks to a Reddit post and what a f*$%n amazing project! Can't believe I've been stuck using Samsung's terrible SideSync for so long only for them to abruptly replace it with the less functional "Flow" app. scrcpy is so much faster, more reliable and promisingly functional. I will be a heavy user of scrcpy and will be providing feedback as I go. Thanks once more and please keep up the good work!
Repository: terminal
Issue: [Megathread] Fullscreen & Focus Mode follow-up work
Labels: Area-UserInterface,Product-Terminal,Issue-Scenario

Taken from https://github.com/microsoft/terminal/issues/531#issuecomment-531046569

> I'd suggest that this is broken into 3 implementation steps:
> 1. Support fullscreen mode, with always hidden tabs
> 2. Add a setting to have tabs _always_ visible in fullscreen mode
> 3. Enable "revealing" tabs on mouse hover near the top
> 
> Step 3 has some implementation details that are missing, like: on tabs reveal, should the tabs:
> * cover the terminal content, obscuring the top rows, but leaving the rest of the window unchanged
> * cause the terminal to resize
> * shift the terminal content down, obscuring the bottom rows of the terminal, but not forcing a resize?

Now that #3408 is merged (closing #531), we need some place to track the follow-up tasks I had outlined before:

Focus mode and Fullscreen share a lot of commonalities, so I'm grouping them into one thread for easy of x-linking.

## Fullscreen 

* [x] Support fullscreen mode, with always hidden tabs
* [ ] #11130 - Add a setting to have tabs _always_ visible in fullscreen mode 
  - `"showTabsInFullscreen": true|"always"`
* [ ] #5677 - Enable "revealing" tabs on mouse hover near the top 
  - `"showTabsInFullscreen": "hover"`
* [ ] If a launch full screen option is there, when the full screened app launches, I think the TabView should be visible for a few seconds before sliding out of view. (from @mdtuak in https://github.com/microsoft/terminal/issues/288#issuecomment-551950312)
  - this is dependent upon adding `fullscreen` to `launchMode`, tracked in #288
* [x] #4000 It would be nice to have a kind of popup with a tab name when you switch tabs with CTRL+TAB in fullscreen mode. 
  - Let's add a setting for this as well, this sounds like a not so terrible idea. 
  - This is the "advanced tab switcher"
  
## Focus Mode

* [ ] #539
  - Not _necessarily_ Focus Mode related, but certainly relevant
* [x] #10730
* [ ] #7210
* [ ] #12959
Repository: youtube-dl
Issue: Add support for "game" & "title" to Twitch livestreams
Labels: request

## Checklist

- [x] I'm reporting a feature request
- [x] I've verified that I'm running youtube-dl version **2019.11.05**
- [x] I've searched the bugtracker for similar feature requests including closed ones

## Description
Having support for retrieving the game category and stream title for twitch streams would be a very nice addition.

I know #22501 asked for almost the same thing but was closed under the assumption that twitch has no support for this in their API, which is wrong.

[You can find more info on their API here](https://dev.twitch.tv/docs/v5/reference/streams#get-live-streams)
Repository: vue
Issue: vue-template-compiler module types do not express the correct optional properties
Labels: typescript

### Version
2.6.10

### Reproduction link
[https://codesandbox.io/s/vue-template-compiler-module-type-bug-wl0wn](https://codesandbox.io/s/vue-template-compiler-module-type-bug-wl0wn)







### Steps to reproduce
Issue is surfaced by CodeSandbox' typescript linter - just load the sandbox.


### What is expected?
vue-template-compiler should accept modules with **0 or more** of the following properties:
- `preTransformNode`
- `transformNode`
- `postTransformNode`
- `genData`

### What is actually happening?
vue-template-compiler _requires_ modules to have all `transform` functions and `genData` defined. 

![codesandbox typescript error](https://puu.sh/ECk1R/7a7236e09e.png)

---
Ran into this while developing a custom template compiler module. It doesn't effect output or compiler functionality in any way, but it does impact developer experience.

Fixed by #10743

<!-- generated by vue-issues. DO NOT REMOVE -->
Repository: TypeScript
Issue: Support ES `export <default> from` form
Labels: Suggestion,Waiting for TC39

+++ This issue was initially created as a clone of #4813 +++

#4813 (and&nbsp;#34903) are&nbsp;only&nbsp;implementing the&nbsp;`export * as ns from`&nbsp;feature.

This&nbsp;tracks&nbsp;implementation of&nbsp;the&nbsp;[`export default from`](https://github.com/tc39/proposal-export-default-from)&nbsp;proposal.
Repository: flutter
Issue: Asset Image should be brightness-aware
Labels: c: new feature,framework,d: api docs,a: assets,a: images,c: proposal,P3,team-framework,triaged-framework

## Use case

This [documentation](https://flutter.dev/docs/development/ui/assets-and-images) makes people assume that dark mode was already supported. While in reality the only supported variant currently is for scale (device pixel ratio).

When I add **dark** folder as a "variant" it just works for dark theme since the current implementation just pick the "nearest" according to the scale implementation, which also adding **darkx**, **darkwhatever** also just works **BUT** won't work when setting the ThemeData brightness to light since it will pick the "nearest" as I just mentioned before so it will pick whichever variant available there instead of the main image.

Thus "created" a bug, which shouldn't be if the documentation was properly written that this feature was currently not supported yet.

## Proposal

Since I assume that choosing the right variant implementation was based on the information from ImageConfiguration, then ImageConfiguration should also support brightness. And the variant implementation should support choosing the right image for light & dark mode based on the configuration.
Repository: rust
Issue: Optimize out nop-matches
Labels: I-slow,C-enhancement,A-codegen,T-compiler,A-MIR,A-mir-opt,A-mir-opt-inlining,C-optimization

The `?` operator is not zero cost right now, because the matches generated by it don't get optimized as well as they could.

Looking at https://play.rust-lang.org/?version=stable&mode=release&edition=2018&gist=627df52e7c476667ecf9a9831eecf829

I see 

```rust
_3 = ((_1 as Ok).0: u32);
_4 = _3;
((_0 as Ok).0: u32) = move _4;
discriminant(_0) = 0;
```

and 

```rust
_5 = ((_1 as Err).0: i32);
_6 = _5;
((_0 as Err).0: i32) = move _6;
discriminant(_0) = 1;
```

Which we could reasonably write a peephole optimization for getting transformed to

```rust
_0 = _1
```

each

Then a second optimization could find `switchInt` terminators where all basic blocks are the same and eliminate the `switchInt` by replacing it to a goto to the first basic block being switched to.

This will even benefit matches where only one arm is a nop, because that arm will just become a memcopy
Repository: flutter
Issue: Make TextField grow horizontally first and then vertically
Labels: a: text input,c: new feature,framework,f: material design,c: proposal,P3,team-text-input,triaged-text-input

## Use case

I am trying to make a TextField that has the following behaviors:
1. Wraps the text content (both vertically and horizontally).
2. Prioritize growing horizontally until it occupies the maximum width possible.
3. Start growing vertically when there's no room to grow horizontally.

I have an existing implementation that has a behavior that is close to that, but not quite the same:
1. Wraps the text content (both vertically and horizontally).
2. Starts growing vertically when the current width is reached, but when `space` is added, it shrinks vertically and grows back horizontally if it has enough space horizontally.

(This is probably hard to comprehend, will update this bug with screen recordings when I have the time)

The following is my implementation:
```
IntrinsicWidth(
  child: ConstrainedBox(
    constraints: BoxConstraints(
      minWidth: someWidth,
    ),
    child: TextField(
      minLines: 1,
      maxLines: 3,
    ),
  ),
),
```

Seems like there's no way to implement the exact behavior that I want (and my implementation is the closest I can get). I wonder if it's possible to build this behavior into the framework?

## Proposal

To build this behavior into the framework.
Repository: flutter
Issue: In/out of list announcements only happen if the list extends beyond the screen.
Labels: platform-android,framework,engine,a: accessibility,f: scrolling,has reproducible steps,P2,found in release: 3.7,found in release: 3.9,team-android,triaged-android

If you create a `ListView` that only has a few items which all fit on the screen, you get no in/out of list announcements.  But if the list-view then grows to have enough items to extend beyond the screen, it will announce.  This can be very confusing if the list happens to grow because of some user action in the list, such as a button in the list that dynamically adds more items while navigating the list.

/cc @darrenaustin 

See also https://github.com/flutter/flutter/issues/22876
Repository: godot
Issue: Step Over in Debug is hard to click due to inspector resizing on every step
Labels: bug,topic:editor,usability

**3.2.alpha.calinou.af4fd9de9**

Here is a video of what happens when you try to step through code while debugging.  The inspector panel annoyingly resizes in between each click.  This doubles the time it takes to step through the code. 

Also, as you can see, if you are clicking fast the buttons move so you click "Step In" instead of "Step Over"

[StepGlitch.zip](https://github.com/godotengine/godot/files/3826981/StepGlitch.zip)
Repository: godot
Issue: Parameter 'playing' in Animated Sprite create useless diffs in git
Labels: bug,discussion,topic:core

**Godot version:**
Godot 3.2 Beta 1
**OS/device including version:**
Ubuntu 19.10
**Issue description:**
Godot save number of current frame, when playing option is set, which create useless diffs in git 
Example - https://github.com/qarmin/The-worst-Godot-test-project/commit/c34af4da5f5c907135059bb834c5d17f2dca9777#diff-6c71e0a1f3cace35c52e76f1d8d806e5L150-L152
**Steps to reproduce:**
1. Created minimal project with more than 1 frame
2. Click at playing
3. Save scene
4. Add scene to git staging area
5. Open editor with saved scene
6. Close editor
7. Look at git diff
**Minimal reproduction project:**
https://github.com/qarmin/The-worst-Godot-test-project/archive/c34af4da5f5c907135059bb834c5d17f2dca9777.zip
You must open 2DALL scene to show this
Repository: godot
Issue: High CPU usage on HTTPClient with threads (on slow server response)
Labels: bug,confirmed,topic:network

**Godot version:**
https://github.com/godotengine/godot/commit/0ab0d11c17dd58ac35335cabd032409c42a41a94

**OS/device including version:**
Tested on Windows 10 and x11(Mint)

**Issue description:**
Maybe related to https://github.com/godotengine/godot/issues/32807
Using Theads to run HTTPClient Requests in the background is using 13-40% CPU (Reason is probably a while/requesting data from socket all the time instead of blocking until data is actually available)

I added a variable which reduces the CPU to ~ 0 - 5%
Currently it is always false.
https://github.com/godotengine/godot/blob/dcf0a60a52124b06b161cdaba7bce845b1f43f90/core/io/stream_peer_tcp.cpp#L310

**Steps to reproduce:**
Run example project
Check Taskmanager CPU usage or listen to your CPU fan :D

**Minimal reproduction project:**
[http-bug.zip](https://github.com/godotengine/godot/files/3827103/http-bug.zip)

Let me know if you think it is a bug I will open a PR with my solution.

This line should block until data comes in.
https://github.com/godotengine/godot/blob/24e1039eb6fe32115e8d1a62a84965e9be19a2ed/core/io/http_client.cpp#L694

Solution:
`err = connection->get_partial_data(p_buffer + r_received, left, read, true);`
Repository: create-react-app
Issue: Add environment variables to manifest.json files
Labels: issue: proposal,needs triage

### Is your proposal related to a problem?

<!--
  Provide a clear and concise description of what the problem is.
  For example, "I'm always frustrated when..."
-->

In the application, we have several places where we put the values that are in the manifest file, like the theme color, the app name, etc. Unfortunately, if we need to change them one day, we would need to do it everywhere we use them.

### Describe the solution you'd like

<!--
  Provide a clear and concise description of what you want to happen.
-->

It would be of very good use if we were able to insert those names in an environment variable file, such as `.env`, and use it in the `manifest.json` as well, just like we do in the `index.html` file.

```json
{
  "short_name": "%REACT_APP_SHORT_NAME%",
  "name": "%REACT_APP_NAME%"
}
```

### Describe alternatives you've considered

<!--
  Let us know about other solutions you've tried or researched.
-->

The only solution to have it automatic would be to or eject the configuration and apply the JSON files to the compilation files, or to add another compilation script that would run during the build process.
Repository: flutter
Issue: Define global shape in MaterialTheme
Labels: c: new feature,framework,f: material design,c: proposal,P3,team-design,triaged-design

## Use case

There are many Material widgets and it's annoying to customize the themeData of every widget just to add your custom shape to all of them.

## Proposal

The ThemeData class should have a property called:
 `
ShapeBorder shape
`
which all Material widgets will default to.
Repository: flutter
Issue: SnackBarBehavior.floating should be the default
Labels: framework,f: material design,c: API break,c: proposal,P3,team-design,triaged-design

## Use case

Just like on Material Components Android the floating behavior should be the default one.
There is no reason to keep the old, fixed one the default as the floating behavior fits the material design guidelines better and there also aren't any drawbacks in using the floating style.

## Proposal

Just replace the default value of the "behavior" property with SnackBarBehavior.floating.
Repository: rust
Issue: Integrate mdbook into rustdoc
Labels: T-rustdoc,E-hard,C-feature-request

It doesn't seem to be possible to include external markdown files without using `include_file!`. By this I mean your file would have to be included in your code hierarchy and it's not possible to have it as a separate hierarchy.

This could be useful for getting-started (even though usually included in the README), debugging-tips, or various tutorials.

A few ideas where this could be used:
- Be able to point rustdoc to some folder with markdown files, and it would render them all for the user to use freely in the code as normal links
- Added as an entry in the left column alongside Module, Structs, Enums, etc. Either a single entry to an index that the user would have to create, or a custom hierarchy that the user would define.
Repository: rust
Issue: `--remap-path-prefix` does not apply to secondary files in diagnostics
Labels: A-diagnostics,T-compiler,C-bug,A-reproducibility,D-diagnostic-infra

Since #64151 added some new diagnostics, Rocket's UI tests have had mismatches in stderr that I can't seem to fix. In particular these diagnostics include "secondary file" paths that aren't easily normalizable or remappable.

I haven't tried to make a minimal reproduction yet, but this output should illustrate the problem:

```
 error[E0277]: the trait bound `usize: rocket::http::uri::Ignorable<rocket::http::uri::Query>` is not satisfied
-  --> $DIR/typed-uri-bad-type.rs:81:34
-   |
-81 |     uri!(other_q: rest = S, id = _);
-   |                                  ^ the trait `rocket::http::uri::Ignorable<rocket::http::uri::Query>` is not implemented for `usize`
-   |
-   = note: required by `rocket::http::uri::assert_ignorable`
+   --> foo/typed-uri-bad-type.rs:41:16
+    |
+41  | fn other_q(id: usize, rest: S) {  }
+    |                ^^^^^ the trait `rocket::http::uri::Ignorable<rocket::http::uri::Query>` is not implemented for `usize`
+...
+81  |     uri!(other_q: rest = S, id = _);
+    |     -------------------------------- in this macro invocation
+    | 
+   ::: /home/jeb/code/Rocket/core/http/src/uri/uri_display.rs:467:40
+    |
+467 | pub fn assert_ignorable<P: UriPart, T: Ignorable<P>>() {  }
+    |                                        ------------ required by this bound in `rocket::http::uri::assert_ignorable`

(...)

status: exit code: 1
command: "rustc" "tests/ui-fail/typed-uri-bad-type.rs" "-L" "/tmp" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/tmp/typed-uri-bad-type.stage-id" "--remap-path-prefix" "/home/jeb/code/Rocket=/Rocket" "--remap-path-prefix" "tests/ui-fail=foo" "-L" "crate=/home/jeb/code/Rocket/target/debug" "-L" "dependency=/home/jeb/code/Rocket/target/debug/deps" "--extern" "rocket_http=/home/jeb/code/Rocket/target/debug/deps/librocket_http-1faeb9d2934513de.rlib" "--extern" "rocket=/home/jeb/code/Rocket/target/debug/deps/librocket-44cf6b9b35acb885.rlib" "-L" "/tmp/typed-uri-bad-type.stage-id.aux" "-A" "unused"
```

Here I'm remapping `tests/ui-fail` to `foo` to demonstrate that `--remap-path-prefix` works at all. Remapping `/home/jeb/code/Rocket` to `/Rocket` is the real goal, because if I can get that to work we should have errors that are identical across build environments. However, it is not actually remapped in the output. Is `--remap-path-prefix` intended to apply to these?

My first attempt at this was to update compiletest to normalize `$SRC_DIR` (laumann/compiletest-rs#198), but that has some problems that I think the `--remap-path-prefix` approach would neatly avoid.

## Meta

`rustc --version --verbose`:

rustc 1.40.0-nightly (1423bec54 2019-11-05)
binary: rustc
commit-hash: 1423bec54cf2db283b614e527cfd602b481485d1
commit-date: 2019-11-05
host: x86_64-unknown-linux-gnu
release: 1.40.0-nightly
LLVM version: 9.0