sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: rust
Issue: Can't build stdlib for mips-unknown-linux-musl without libunwind
Labels: A-linkage,O-MIPS,T-compiler,O-musl,C-bug

I'm trying rebuild stdlib for the OpenWRT malta SDK (available here: https://downloads.openwrt.org/releases/18.06.2/targets/malta/be/openwrt-sdk-18.06.2-malta-be_gcc-7.3.0_musl.Linux-x86_64.tar.xz).

The SDK ships with `libgcc_s.so`, but without `libunwind.a`, leading to a linker error when building `unwind`. I'd like to run with `panic=abort`, so I don't need unwinding.

```
error: could not find native static library unwind, perhaps an -L flag is missing?
```
`mips` is special-cased in libunwind here: https://github.com/rust-lang/rust/blob/master/src/libunwind/lib.rs#L28-L31

I tried passing `target-feature=-crt-static` and using a custom target target:

```
  "crt-static-default": false,
  "crt-static-respected": true,
  "dynamic-linking": true,
```

Both don't work.

Steps to reproduce:
* Unzip the SDK
* Make sure `openwrt-sdk-18.06.2-malta-be_gcc-7.3.0_musl.Linux-x86_64/staging_dir/toolchain-mips_24kc_gcc-7.3.0_musl/bin/` is in `PATH`
* Set the linker:
```
[target.mips-openwrt-linux-musl]
linker = "mips-openwrt-linux-gcc"
```
* Use Xargo to rebuild stdlib

Building and running a binary works when modifying the code above to just link `gcc_s`:

```
#[cfg(target_env = "musl")]
#[link(name = "gcc_s")]
extern {}
```
Repository: go
Issue: cmd/go: should `go list -versions` list cached versions when GOPROXY=off?
Labels: NeedsDecision,FeatureRequest,modules

Users can set `GOPROXY=off` to disable module fetches. When that is set, however, they can still resolve versions that are already present in the local cache.

However, it can be difficult to figure out what those versions actually are: `go list -versions -m $MODULE` produces unhelpful error output (#32335) if the module is not present in the proxy, and truncated output if the module _is_ present:

```
example.com$ gotip version
go version devel +220552f6 Thu May 30 17:59:57 2019 +0000 linux/amd64

example.com$ gotip mod init example.com
go: creating new go.mod: module example.com

example.com$ GOPROXY='' gotip list -versions -m rsc.io/quote
go: finding rsc.io/quote v1.5.2
rsc.io/quote v1.0.0 v1.1.0 v1.2.0 v1.2.1 v1.3.0 v1.4.0 v1.5.0 v1.5.1 v1.5.2 v1.5.3-pre1

example.com$ GOPROXY=off gotip list -versions -m rsc.io/quote
go list -m rsc.io/quote: module "rsc.io/quote" is not a known dependency

example.com$ GOPROXY='' gotip get rsc.io/quote@latest
go: finding rsc.io/sampler v1.3.0
go: finding golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c
go: downloading rsc.io/quote v1.5.2
go: extracting rsc.io/quote v1.5.2
go: downloading rsc.io/sampler v1.3.0
go: extracting rsc.io/sampler v1.3.0
go: downloading golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c
go: extracting golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c

example.com$ GOPROXY=off gotip list -versions -m rsc.io/quote
rsc.io/quote

example.com$
```

----

The workaround is to set `GOPROXY="file://$GOPATH/pkg/mod/cache/download"` before running `go list`:

```
example.com$ GOPROXY="file://$GOPATH/pkg/mod/cache/download" gotip list -versions -m rsc.io/quote
rsc.io/quote v1.5.2

example.com$
```

Unfortunately, that's _really_ not discoverable ([Paul's example](https://github.com/go-modules-by-example/index/blob/master/012_modvendor/README.md) notwithstanding).

----

Instead, I propose that when `GOPROXY` is set to `off`, `go list -versions` should list the versions that are available without consulting the proxy, as if the user had set `GOPROXY="file://$GOPATH/pkg/mod/cache/download"`.

I don't see any other reasonable behavior we could provide in that case, and that would turn an otherwise useless-in-context command into a useful one.

CC @jayconrod @hyangah @thepudds @myitcv @rsc
Repository: flutter
Issue: [web] implement CallbackHandle for flutter web
Labels: c: new feature,framework,a: fidelity,platform-web,P2,team-web,triaged-web

...Or don't, maybe it doesn't make sense for web?
Repository: flutter
Issue: [web] implement PluginUtilities for flutter web
Labels: c: new feature,framework,dependency: dart,f: routes,platform-web,P3,c: tech-debt,team: skip-test,a: plugins,team-web,triaged-web

...or don't, maybe it doesn't make sense.
Repository: go
Issue: cmd/go: install changes mtimes of binaries even when otherwise unchanged
Labels: Unfortunate,ToolSpeed,NeedsInvestigation,GoCommand

<!-- 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>
$ go env
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/ko1dli/.cache/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/ko1dli/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="/mnt/c/Users/ko1dli/git/serverless-alias-search/src/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build698955985=/tmp/go-build -gno-record-gcc-switches"
</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.
-->

```
$ ls -ltr ~/go/bin
total 1438344
-rwxrwxrwx 1 ko1dli ko1dli 16718552 May 30 18:38 alias-search
-rwxrwxrwx 1 ko1dli ko1dli 16120748 May 30 18:38 cognito-post-confirmation
-rwxrwxrwx 1 ko1dli ko1dli 22844935 May 30 18:38 create-account-collect
-rwxrwxrwx 1 ko1dli ko1dli 21897771 May 30 18:38 create-account-sign

$ date
Thu May 30 18:39:22 DST 2019

$ go install -x ./...
WORK=/tmp/go-build166854083

$ ls -ltr ~/go/bin
total 1438344
-rwxrwxrwx 1 ko1dli ko1dli 16718552 May 30 18:40 alias-search
-rwxrwxrwx 1 ko1dli ko1dli 16120748 May 30 18:40 cognito-post-confirmation
-rwxrwxrwx 1 ko1dli ko1dli 22844935 May 30 18:40 create-account-collect
-rwxrwxrwx 1 ko1dli ko1dli 21897771 May 30 18:40 create-account-sign

```
### What did you expect to see?
I expected `go install` leave the installed files alone, since nothing changed.

### What did you see instead?
Every file was recreated with a new date (checked with `stat`). I'm using WSL on Windows 10, not sure if this might affect this behaviour.
Repository: pytorch
Issue: Getting Access to Blob/Tensor reference in jit::script::Module
Labels: oncall: jit,triaged

## 🚀 Feature
<!-- A clear and concise description of the feature proposal -->

In Caffe, one would be able to set a reference to the blob by doing the following:

`myClass->blob = upCaffeNet->blob_by_name(upImpl->mLastBlobName);`

In Pytorch we have

`std::shared_ptr<torch::jit::script::Module> upTorchNet`

Is there a function I can use for something similar? Right now, there only seems to be the forward pass function in the documentation. Anyway to access or get a reference to the internal blobs? It will be useful for setting previous stages in LSTM's etc. too

It looks like I have a net->find_parameter("name") class, but there is also find_method and find_module. Which one should I be using?
Repository: godot
Issue: is_hovered() is tied to button focus and not the actual cursor position
Labels: bug,platform:android,confirmed,topic:gui

**Godot version:** 3.1.1 stable

**OS/device including version:** Windows 10

**Issue description:** Trying to check if a non-focused button is hovered with is_hovered() (while another one is focused) will return false even if the mouse is actually hovering it. Meanwhile if the focus is on that button and the mouse is off the button bounds it still returns true.
(I'm trying to make mouse and keyboard/gamepad live and work together by swapping "states")

**Minimal reproduction project:** Attached a simple 3.1.1 project with some buttons and the same functions i used to reproduce the problem, pressing E the function prints the return of is_hovered(). Also a gif showing the problem

![2019-05-30_22-01-12](https://user-images.githubusercontent.com/22414324/58661352-ff32e700-8327-11e9-862d-c95204091376.gif)

[TestBugHover.zip](https://github.com/godotengine/godot/files/3238645/TestBugHover.zip)
Repository: godot
Issue: Requested file format unknown: escn
Labels: bug,discussion,topic:core

In the latest build I get an alert prompt every time I test a scene that inherits an escn or if I test the escn itself.
Has the escn extension been deprecated or is this a bug?
Repository: rust
Issue: rustdoc: builds including multiple crates with the same name are always dirty
Labels: T-rustdoc,C-bug,A-crates

I haven't figured out exactly what's going on here yet, but to repro:

```bash
mkdir /tmp/rustdoc-dirty && cd /tmp/rustdoc-dirty && cargo init
echo 'futures-preview = { version = "=0.3.0-alpha.16", features = ["io-compat"] }' >> Cargo.toml
cargo doc
cargo doc
```

(tested on `rustc 1.36.0-nightly (a784a8022 2019-05-09)`)

The second `cargo doc` should do no work and immediately exit, however it instead proceeds to document `tokio-io` and everything after it. This *only* happens when the `io-compat` feature is enabled, but does not happen when depending directly on `tokio-io`.
Repository: go
Issue: net/http: r.MultipartReader() reports not multipart when boundary is empty string
Labels: NeedsInvestigation

### What version of Go are you using (`go version`)?
1.12

### Does this issue reproduce with the latest release?
N/A

### What operating system and processor architecture are you using (`go env`)?
Ubuntu 18.04

<details><summary><code>go env</code> Output</summary><br><pre>
$ go env
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/[home]/.cache/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/[home]/go"
GOPROXY=""
GORACE=""
GOROOT="/home/[home]/.go"
GOTMPDIR=""
GOTOOLDIR="/home/[home]/.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-build210454728=/tmp/go-build -gno-record-gcc-switches"

</pre></details>

### What did you do?
```
func TestMimeBoundary(t *testing.T) {
	for _, b := range []string{"", " boundary="} {
		r := http.Request{}
		r.Header = make(http.Header)
		r.Header.Set("Content-Type", "multipart/form-data;" + b)
		_, err := r.MultipartReader()
		fmt.Printf("%T %v\n", err, err)
	}
}
```

Results in:
```
*http.ProtocolError no multipart boundary param in Content-Type
*http.ProtocolError request Content-Type isn't multipart/form-data
```

This means comparing errors against [http.ErrNotMultipart](https://golang.org/pkg/net/http/#pkg-variables) is not reliable.

### What did you expect to see?
I would expect an error that doesn't assert that data with the content type `multipart/form-data` is not `multipart/form-data`. More abstractly, I would expect a set of errors to compare against such that when the error is `http.ErrNotMultipart` it is reliable to proceed assuming the client did not intend the http body to be multipart rather than they just bolloxed it up.

### What did you see instead?
As above.
Repository: TypeScript
Issue: Property initialisation check in TS 3.5 is too strict for ember 3.5
Labels: Suggestion,In Discussion

Start reading here: https://github.com/microsoft/TypeScript/pull/29395#issuecomment-497376445

```ts
import Component from '@ember/component';
import defaultTo from 'lodash/default-to';

export default class Welcome extends Component {
  greeting: string = defaultTo(this.greeting, "Hello");
}
```

Briefly, ember 3.5's Components have properties that are initialised by the base to a value, but Typescript doesn't know about this. Users should be able to squash the error by writing `greeting!: string = ...`, or by turning off strictPropertyInitialization, but can't today.
Repository: pytorch
Issue: Adding a method called `T` in native_functions causes undefined behavior on Windows
Labels: module: windows,triaged

## 🐛 Bug

Adding a native method called `T` (even if not exposed to Python) seems to cause multiple issues on Windows, including at least the following:

1. `test_inplace_view_saved_output` in `test_autograd.py` fails
1. `test_optional` in `test_cpp_extensions.py` crashes the interpreter
Repository: vscode
Issue: [css] Color picker for rgba() function in CSS
Labels: feature-request,css-less-scss

<!-- Please search existing issues to avoid creating duplicates. -->
<!-- Also please test using the latest insiders build to make sure your issue has not already been fixed: https://code.visualstudio.com/insiders/ -->

<!-- Use Help > Report Issue to prefill these. -->
VSCode Version: 1.34.0
Commit: a622c65b2c713c890fcf4fbf07cf34049d5fe758
Date: 2019-05-15T21:55:35.507Z
Electron: 3.1.8
Chrome: 66.0.3359.181
Node.js: 10.2.0
V8: 6.6.346.32
OS: Linux x64 4.18.0-20-generic


Steps to Reproduce:

1.From dropdown for any css/color element,  select rgba option.
2.Hover to rgba for displaying color picker and choose color.

<!-- Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: Yes
![bug](https://user-images.githubusercontent.com/45101591/58687752-cffd9380-8382-11e9-92b4-561242590d38.gif)
Repository: kubernetes
Issue: add the next run jobs time to CronJobStatus
Labels: kind/feature,sig/apps,help wanted,area/workload-api/cronjob,lifecycle/frozen,needs-triage

<!-- Please only use this template for submitting enhancement requests -->

**What would you like to be added**:
like NEXT-SCHEDULE in the response from $ kubectl get cronjob myJob

**Why is this needed**:
this can help us judge we cron schedule is right


this issue like https://github.com/kubernetes/kubernetes/issues/41568 , but that issue is closed and rotten
Repository: vscode
Issue: Allow debugger contributions to specify filenames as well as languages to be default debugger
Labels: feature-request,debug

Currently a [debugger can only declare languages](https://code.visualstudio.com/api/references/contribution-points#contributes.debuggers) that it's default debugger for, but in other places where VS Code allows specifying languages, we can use filename patterns too.

Sometimes users switch to a file that is not in the language they're working on, but an additional file (for example in Dart we have `pubspec.yaml` and in NodeJS there's `package.json`). It'd be nice if you switched to `package.json` to change a dependency and then hit F5, it could invoke the Node JS debugger (and for pubspec.yaml, the Dart one), skipping the prompt.

```js
"contributes": {
  "debuggers": [
    {
      "languages": [
        "dart",
        // Support something like DocumentFilter here?
        // { language: 'json', scheme: 'untitled', pattern: '**/package.json' }
        { pattern: '**/pubspec.yaml' }
      ],
```
Repository: TypeScript
Issue: Backticks around module names in module declarations
Labels: Suggestion,Awaiting More Feedback

## Search Terms

* backticks
* module declaration
* NoSubstitutionTemplateLiteral
* template string

Other related issues/PRs:
* https://github.com/microsoft/TypeScript/issues/30962 and the fix, https://github.com/microsoft/TypeScript/pull/31042
* https://github.com/microsoft/TypeScript/issues/29318, 
* https://github.com/microsoft/TypeScript/issues/29331
* https://github.com/microsoft/TypeScript/issues/31548, which generalizes some things about template literals, but explicitly _doesn't_ address module declarations because of the way they're handled internally

<!-- List of keywords you searched for before creating this issue. Write them down here so that others can find this suggestion more easily -->

## Suggestion

It'd be nice for backticks to be allowed in module declarations. For example:

```ts
declare module `semver` {}
```

This causes an error with typescript 3.5.1: `Cannot invoke an expression whose type lacks a call signature. Type 'NodeModule' has no compatible call signatures.ts(2349)`

## Use Cases

I'd like to be able to use backticks more consistently in my code.

Similar to https://github.com/microsoft/TypeScript/issues/30962:

> This is especially important because the backticks mode of the quotes rule from ESLint breaks programs (cf yarnpkg/berry#70 for an example). While it could be seen as an ESLint bug, I think it should be possible for TS to use raw template string interchangeably with regular strings as long as they don't contain variables.

## Examples

This would be allowed

```ts
declare module `semver` {}
```

and would be equivalent to

```ts
declare module 'semver' {}
```

## 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).
Repository: go
Issue: cmd/go: go mod edit does not sort resulting go.mod file with multiline replace block
Labels: NeedsInvestigation,modules

<!-- Please answer these questions before submitting your issue. Thanks! -->
follow-up on https://github.com/golang/go/issues/30897 regading `go.mod` sorting (after `go mod edit`)
### What version of Go are you using (`go version`)?

<pre>
$ go version
go version go1.12.5 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
darwin
</pre></details>

### What did you do?
ran the following command with an existing `go.mod` file that include a multiline `replace` clause:
`go mod edit -replace='github.com/google/go-github/v25=git.myxyz.com/mirror-github/google--go-github/v25@v25.0.4'`

### What did you expect to see?
the new replacement added in the existing multiline `replace ( [...] )` block in the sorted order

### What did you see instead?
The following line appended at the end of the `go.mod` file - therefore not inside the existing `replace` block and not sorted with other entries:
`replace github.com/google/go-github/v25 => git.myxyz.com/mirror-github/google--go-github/v25 v25.0.4`
Repository: flutter
Issue: Should _ImmediatePointerState be checking the pending delta against kPanSlop instead of kTouchSlop?
Labels: framework,f: gestures,customer: amplify,c: proposal,P2,team-framework,triaged-framework

The **ImmediateMultiDragGestureRecognizer** class acts a lot like the PanGestureRecognizer, except that it monitors multiple drags simultaneously.
However, it MultiDragPointerState implementation looks like this:

```
class _HorizontalPointerState extends MultiDragPointerState {
  _HorizontalPointerState(Offset initialPosition) : super(initialPosition);

  @override
  void checkForResolutionAfterMove() {
    assert(pendingDelta != null);
    if (pendingDelta.dx.abs() > kTouchSlop)
      resolve(GestureDisposition.accepted);
  }

  @override
  void accepted(GestureMultiDragStartCallback starter) {
    starter(initialPosition);
  }
}
```

Should `checkForResolutionAfterMove` be checking against kPanSlop instead?

With the code as is now, when a parent widget exists in the tree that uses a **ImmediateMultiDragGestureRecognizer**, then children that use a PanGestureRecognizer lose the battle in the arena almost 100% of the time because that gesture recognizer requires that the delta be greater than kPanSlop, which is twice the amount of kTouchSlop.
Repository: terminal
Issue: Feature Request: Take screenshot of selection/viewport
Labels: Issue-Feature,Area-UserInterface,Product-Terminal

## Summary of the new feature/enhancement
You can take a screenshot of whole window with Alt+Prt Scr, but it would be handy if one could do so only on selected text.
With box selection this would contain selected area, whereas with regular selection it would contain every selected line.

In profile settings one could be able to choose whether the background of taken screenshot should be the actual displayed background or something else (probably solid color). This would ease making tutorials or reports, when one doesn't want to show what's behind the terminal.
Other option could be additional marigin, as so the first pixel of text isn't the first pixel of image.

I'm not sure about appropriate shortcut, meaby some Func+Prt Scr?

# Proposed technical implementation details (optional)
I can see this being solved either by taking regular screen shot or re-rendering selected text to buffer. Idk which option's better, but with custom background it seem's like the second one.
Repository: go
Issue: compress/flate: very memory intensive
Labels: Performance,NeedsInvestigation

```go
func BenchmarkCompress(b *testing.B) {
	b.Run("writer", func(b *testing.B) {
		b.Run("flate", func(b *testing.B) {
			b.ReportAllocs()

			for i := 0; i < b.N; i++ {
				flate.NewWriter(nil, flate.BestSpeed)
			}
		})
		b.Run("gzip", func(b *testing.B) {
			b.ReportAllocs()

			for i := 0; i < b.N; i++ {
				gzip.NewWriterLevel(nil, zlib.BestSpeed)
			}
		})
	})
	b.Run("reader", func(b *testing.B) {
		b.Run("flate", func(b *testing.B) {
			b.ReportAllocs()

			for i := 0; i < b.N; i++ {
				flate.NewReader(nil)
			}
		})
		b.Run("gzip", func(b *testing.B) {
			b.ReportAllocs()

			bb := &bytes.Buffer{}
			gzip.NewWriter(bb).Write(nil)
			b.ResetTimer()
			for i := 0; i < b.N; i++ {
				gzip.NewReader(bb)
			}
		})
	})
}
```

If you run that, you'll get:

```
$ go test -bench=Compress -run=^$
goos: darwin
goarch: amd64
pkg: nhooyr.io/websocket
BenchmarkCompress/writer/flate-8   	   10000	    135813 ns/op	 1200010 B/op	      15 allocs/op
BenchmarkCompress/writer/gzip-8    	20000000	        73.1 ns/op	     176 B/op	       1 allocs/op
BenchmarkCompress/reader/flate-8   	  300000	      3785 ns/op	   44672 B/op	       6 allocs/op
BenchmarkCompress/reader/gzip-8    	10000000	       230 ns/op	     704 B/op	       1 allocs/op
PASS
ok  	nhooyr.io/websocket	6.674s
```

1.2 MB per writer and 45 KB per reader is a lot, especially for usage with WebSockets where most messages are rather small, often on average 512 bytes. Why is compress/flate allocating so much and is there a way to reduce it?

gzip (along with zlib though I didn't include it in the benchmark) use much less memory.

Related:
1. #3155
2. https://github.com/gorilla/websocket/issues/203
Repository: go
Issue: x/build: configure Stackdriver alerting for farmer.golang.org/#health
Labels: Builders,NeedsFix

When I added the coordinator health checking, I made each health item have its own URL, linked from https://farmer.golang.org/#health ...

* https://farmer.golang.org/status/macs
* https://farmer.golang.org/status/scaleway
* https://farmer.golang.org/status/basepin

... etc

It returns:

* HTTP 500 if there are any errors
* HTTP 200 + "ok" if everything is perfect
* HTTP 200 + warnings on warnings

That should make it easy to plug in to our existing Stackdriver alerting, to send emails when things are unhealthy.

If the HTTP status + body aren't sufficient to make the Stackdriver integration trivial, adjust the coordinator such that it is.

/cc @dmitshur @andybons