sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: go
Issue: proxy.golang.org: "invalid version" reported for valid commit pulled through the proxy
Labels: NeedsInvestigation,proxy.golang.org

<!-- Please answer these questions before submitting your issue. Thanks! -->

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version go1.18.1 linux/arm64
</pre>

### Does this issue reproduce with the latest release?

Yes

### What operating system and processor architecture are you using (`go env`)?

<details><summary><code>go env</code> Output</summary><br><pre>
$ go env
GO111MODULE=""
GOARCH="arm64"
GOBIN=""
GOCACHE="/home/myitcv/.cache/go-build"
GOENV="/home/myitcv/.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="arm64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/myitcv/gostuff/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/myitcv/gostuff"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/home/myitcv/gos"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/home/myitcv/gos/pkg/tool/linux_arm64"
GOVCS=""
GOVERSION="go1.18.1"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/dev/null"
GOWORK=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build2711956463=/tmp/go-build -gno-record-gcc-switches"
</pre></details>

### What did you do?

When a new commit is submitted to the tip of [CUE](https://github.com/cue-lang/cue), the following CI step runs:

```
v=$(git rev-parse HEAD)
cd $(mktemp -d)
go mod init mod.com
GOPROXY=https://proxy.golang.org go get -d cuelang.org/go/cmd/cue@$v
```

i.e. we intentionally pull that commit through the proxy. Occasionally, this gives output similar to:

```
go get: cuelang.org/go/cmd/cue@236a565379907bc92997645e4113ca1ed6c499b6: invalid version: reading https://proxy.golang.org/cuelang.org/go/cmd/cue/@v/236a565379907bc92997645e4113ca1ed6c499b6.info: 410 Gone
	server response: not found: cuelang.org/go/cmd/cue@v0.0.0-20220715193022-236a56537990: invalid version: missing cuelang.org/go/cmd/cue/go.mod at revision 236a56537990
```

This happened twice today (times in parentheses):

* https://github.com/cue-lang/cue/runs/7363942087?check_suite_focus=true (2022-07-15T19:32:09.7365051Z)
* https://github.com/cue-lang/cue/runs/7359795770?check_suite_focus=true (2022-07-15T14:38:49.0182148Z)

This error also happens as part of another CI workflow, where we try to `go get` the default branch (`master`) through the proxy.

Per an exchange with @bcmills on Slack, I'm creating this issue to track how often this occurs.

A retry is almost always sufficient to "fix" this failure, but when this happens as part of CI, the retry is significantly more involved.

### What did you expect to see?

No errors. The commit is definitely there, and in the case of the default branch, that's never not been there.

### What did you see instead?

As above.

Please let me know if there are any specific details that would help in tracking down the cause.

cc @mvdan
Repository: terminal
Issue: GUI windows created by PowerShell appear in the background the first time they're launched after a reboot
Labels: Issue-Bug,Product-Terminal,Priority-2,Area-DefApp,Area-Windowing

### Windows Terminal version

1.15.1862

### Windows build number

10.0.19044.0

### Other Software

PowerShell 7.2.5
Windows PowerShell 5.1

### Steps to reproduce

1. In either PowerShell or Windows PowerShell run `Get-Process | Out-GridView`
2. Observe that the window appears behind the Terminal
3. Run the command again
4. Observe that the window is now appearing in front of the Terminal

**note:** I have tried to launch `notepad.exe` one time, and it appeared in front, and after that all other windows also appeared in front. This behaviour also only occurs after a reboot, so to duplicate it again you need to reboot.

### Expected Behavior

_No response_

### Actual Behavior

![2022-07-15_13-24-43 (1)](https://user-images.githubusercontent.com/30301021/179306567-4cf944c2-2ff2-4d8b-85e4-65f1ba0a8323.gif)
Repository: terminal
Issue: Console "Discard Old Duplicates" doesn't apply in Windows Terminal
Labels: Product-Conhost,Help Wanted,Issue-Bug,Needs-Tag-Fix,Priority-2,Area-CookedRead

### Windows Terminal version

1.14.1861.0

### Windows build number

10.0.19043.1826

### Other Software

_No response_

### Steps to reproduce

-   Open a legacy "Command Prompt" console;
-   From the window menu (top-right icon) select "Defaults";
-   Check "Discard Old Duplicates" in the "Command History" options group, and "OK" to apply;
    
    ![console-properties](https://user-images.githubusercontent.com/1247730/179306109-608d22dc-f1f8-45fe-8c94-adc8183ec78b.png)

-   Open a "Command Prompt" in Windows Terminal, and enter commands in succession:
    ```
    dir
    dir /b
    dir
    dir /b
    dir
    dir /b
    ```

### Expected Behavior

The command buffer should discard previous duplicate entries, as I'm seeing in a legacy "Command Prompt" console – pressing <kbd>F7</kbd> reveals:

![legacy-console-buffer](https://user-images.githubusercontent.com/1247730/179306239-3644108c-0fe8-4246-8fb5-3f3ca17d9861.png)


### Actual Behavior

The "Command Prompt" in Windows Terminal doesn't appear to honor the "Discard Old Duplicates" setting – pressing <kbd>F7</kbd> reveals:

![wterm-console-buffer](https://user-images.githubusercontent.com/1247730/179306911-58b46cec-c448-4ddb-9f65-501d45639ceb.png)

This often causes the inconvenience of losing previous command history, after repeating a few of the same commands in succession for some time.
Repository: rust
Issue: Compiler doesn't detect out-of-bounds error when accessing a struct member through a reference
Labels: C-enhancement,A-lints,T-compiler

<!--
Thank you for filing a bug report! 🐛 Please provide a short summary of the bug,
along with any information you feel relevant to replicating the bug.
-->

I tried this code:

```rust
struct Foo {
    arr: [u8; 5]
}

fn main() {
    let foo = Foo{ arr: [0; 5] };
    let bar = &foo;
    println!("{}", bar.arr[100]);
}
```

I expected to see this happen: 
compiler error because of the out-of-bounds error

Instead, this happened: 
code compiled without a single error

### Meta
<!--
If you're using the stable version of the compiler, you should also check if the
bug also exists in the beta or nightly versions.
-->

`rustc --version --verbose`:
```
rustc 1.62.0 (a8314ef7d 2022-06-27)
binary: rustc
commit-hash: a8314ef7d0ec7b75c336af2c9857bfaf43002bfc
commit-date: 2022-06-27
host: x86_64-pc-windows-msvc
release: 1.62.0
LLVM version: 14.0.5
```

<!--
Include a backtrace in the code block by setting `RUST_BACKTRACE=1` in your
environment. E.g. `RUST_BACKTRACE=1 cargo build`.
-->
<details><summary>Backtrace</summary>
<p>
</p>
</details>
Repository: godot
Issue: ScrollContainer scrolling with focus results in weird behavior
Labels: bug,topic:gui

### Godot version

4.0.alpha12

### System information

macOS catalina 10.15.7

### Issue description

[scroll_container_bugreport.webm](https://user-images.githubusercontent.com/75931217/179315293-d4782fe4-28ce-4d8c-8631-db5fb9f02947.webm)


### Steps to reproduce

1. open a minimal reproduction project
2. focus button
3. scroll down the page with ui_down
4. hold ui_up

### Minimal reproduction project

[ScrollContainer-focus-bug.zip](https://github.com/godotengine/godot/files/9124276/ScrollContainer-focus-bug.zip)
Repository: rust
Issue: Tracking Issue for `error_generic_member_access`
Labels: T-libs-api,C-tracking-issue

Feature gate: `#![feature(error_generic_member_access)]`

This is a tracking issue for the generic member access API on the error trait, which generalizes the pattern of `fn source(&self) -> Option<&dyn Error>` and `fn backtrace(&self) -> Option<&Backtrace>` into `fn request_ref::<T>(&self) -> Option<&T>`

### Public API

```rust
// std::error

pub trait Error: Debug + Display {
    // existing API unchanged

    fn provide<'a>(&'a self, req: &mut Demand<'a>) {}
}

impl dyn Error + Send + Sync + 'static { // and all combinations of send/sync
    pub fn request_ref<T: ?Sized + 'static>(&self) -> Option<&T> {
        core::any::request_ref(self)
    }

    pub fn request_value<T: 'static>(&self) -> Option<T> {
        core::any::request_value(self)
    }
}
```

### Steps / History
Now tracked by @waynr in https://github.com/rust-lang/rust/issues/99301#issuecomment-1699427740

<!--
Once the feature has gone through a few release cycles and there are no
unresolved questions left, the feature might be ready for stabilization.

If this feature didn't go through the RFC process, a final comment period
(FCP) is always needed before stabilization. This works as follows:

A library API team member can kick off the stabilization process, at which point
the rfcbot will ask all the team members to verify they agree with
stabilization. Once enough members agree and there are no concerns, the final
comment period begins: this issue will be marked as such and will be listed
in the next This Week in Rust newsletter. If no blocking concerns are raised in
that period of 10 days, a stabilzation PR can be opened by anyone.
-->

### Unresolved Questions

<!--
Include any open questions that need to be answered before the feature can be
stabilised. If multiple (unrelated) big questions come up, it can be a good idea
to open a separate issue for each, to make it easier to keep track of the
discussions.

It's useful to link any relevant discussions and conclusions (whether on GitHub,
Zulip, or the internals forum) here.
-->

- None yet.

[^1]: https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html


<!-- TRIAGEBOT_START -->

<!-- TRIAGEBOT_ASSIGN_START -->

<!-- TRIAGEBOT_ASSIGN_DATA_START$${"user":"waynr"}$$TRIAGEBOT_ASSIGN_DATA_END -->

<!-- TRIAGEBOT_ASSIGN_END -->
<!-- TRIAGEBOT_END -->
Repository: rust
Issue: rustc should recommend impl Trait before dyn Trait in argument and return type positions
Labels: A-diagnostics,T-compiler

<!--
Thank you for filing a bug report! 🐛 Please provide a short summary of the bug,
along with any information you feel relevant to replicating the bug.

If you cannot produce a minimal reproduction case (something that would work in
isolation), please provide the steps or even link to a repository that causes
the problematic output to occur.
-->

Given the following code: <!-- Please provide a link to play.rust-lang.org -->
https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=242a6ff23679df5d4ac2f718e0ce8415
```rust
fn make_iter<T>(vec: &Vec<T>) -> Iterator<Item = &T> {
    vec.iter()
}
```

The current output is:

```
error[[E0782]](https://doc.rust-lang.org/stable/error-index.html#E0782): trait objects must include the `dyn` keyword
 --> src/lib.rs:1:34
  |
1 | fn make_iter<T>(vec: &Vec<T>) -> Iterator<Item = &T> {
  |                                  ^^^^^^^^^^^^^^^^^^^
  |
help: add `dyn` keyword before this trait
  |
1 - fn make_iter<T>(vec: &Vec<T>) -> Iterator<Item = &T> {
1 + fn make_iter<T>(vec: &Vec<T>) -> dyn Iterator<Item = &T> {
  | 

For more information about this error, try `rustc --explain E0782`.
```

<!-- The following is not always necessary. -->
Ideally the output should look like:

```
error[[E0???]](https://doc.rust-lang.org/stable/error-index.html#E0???): bare trait invalid in this position
 --> src/lib.rs:1:34
  |
1 | fn make_iter<T>(vec: &Vec<T>) -> Iterator<Item = &T> {
  |                                  ^^^^^^^^^^^^^^^^^^^
  |
help: try adding `impl` keyword before this trait
  |
1 - fn make_iter<T>(vec: &Vec<T>) -> Iterator<Item = &T> {
1 + fn make_iter<T>(vec: &Vec<T>) -> impl Iterator<Item = &T> {
  | 

For more information about this error, try `rustc --explain E0???`.
```

During my journey learning Rust, I've made this mistake a number of types, and pretty much 90% of the time the compiler error was misleading because my actual intention was an `impl Trait` in that position. Suggesting `dyn Trait` in this situation leads to confusion and, if an unwitting programmer accepts it, another error immediately following it.

I think `rustc` should suggest `impl Trait` before `dyn Trait` in the argument and return type positions. Suggesting `dyn Trait` in type argument positions such as `Box<Trait>` and in non-function contexts would still make sense.

<!--
If the problem is not self-explanatory, please provide a rationale for the
change.
-->

<!--
If dramatically different output is caused by small changes, consider also
adding them here.

If you're using the stable version of the compiler, you should also check if the
bug also exists in the beta or nightly versions. The output might also be
different depending on the Edition.
-->
Repository: vscode
Issue: Drag and drop editor content to other apps
Labels: feature-request,editor-drag-and-drop

<!-- ⚠️⚠️ Do Not Delete This! feature_request_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->

<!-- Describe the feature you'd like. -->

When I didn't get into vscode I was writing some stuff in notepad++, including something like desktop pets
This desktop pet has good enough development support, including the ability to give you the development information you want when you drag and drop content onto it
<details>
<summary>Some examples to illustrate how handy this feature is</summary>

- It can be used to quickly jump to the corresponding function
  ![a](https://user-images.githubusercontent.com/31927825/179342970-b143cbd0-505f-4a7e-8036-a639ea28e20e.gif)
- or to know what the value of a variable is now
  ![b](https://user-images.githubusercontent.com/31927825/179343002-842d5b6a-fcc0-4d04-9f77-842a9ce44735.gif)
- or run a dialogue script to see the effect
  ![c](https://user-images.githubusercontent.com/31927825/179343036-f22ad70d-6d9a-44d9-9385-e69f6069b944.gif)

</details>

But in vscode, despite its better syntax highlighting and lint, you can't drag and drop code from the editor to other apps
![d](https://user-images.githubusercontent.com/31927825/179343220-49ed9082-32c7-4783-9f81-521413233d1a.gif)
This really makes it difficult for me
Repository: flutter
Issue: Add games toolkit to the Flutter templates
Labels: c: new feature,tool,c: proposal,P3,team-tool,triaged-tool

<!-- Thank you for using Flutter!

     If you are looking for support, please check out our documentation
     or consider asking a question on Stack Overflow:
      * https://flutter.dev/
      * https://api.flutter.dev/
      * https://stackoverflow.com/questions/tagged/flutter?sort=frequent

     If you have found a bug or if our documentation doesn't have an answer
     to what you're looking for, then fill out the template below. Please read
     our guide to filing a bug first: https://flutter.dev/docs/resources/bug-reports
-->

## Use case

<!--
     Please tell us the problem you are running into that led to you wanting
     a new feature.

     Is your feature request related to a problem? Please give a clear and
     concise description of what the problem is.

     Describe the alternative solutions you've considered. Is there a package
     on pub.dev/flutter that already solves this?
-->

Flutter has templates like the counter and the [skeleton](https://github.com/flutter/flutter/pull/83530) apps. It would be great to include the casual games toolkit template to the Flutter repo.

Currently, one has to clone the template from the [samples](https://github.com/flutter/samples) repo to "experiment" or use the casual games toolkit as a starter app in building their games in Flutter. In my opinion, there's a friction if one has to jump from the [games](https://flutter.dev/games) page to the [games](https://docs.flutter.dev/resources/games-toolkit) docs, then to the [games](https://github.com/flutter/samples/tree/master/game_template) repo, last cloning it.

## Proposal

<!--
     Briefly but precisely describe what you would like Flutter to be able to do.

     Consider attaching something showing what you are imagining:
      * images
      * videos
      * code samples

     Does this have to be provided by Flutter directly, or can it be provided
     by a package on pub.dev/flutter? If so, maybe consider implementing and
     publishing such a package rather than filing a bug.
-->

The proposal is to expose the games_template to the [flutter/flutter](http://github.com/flutter/flutter) repo.

Then, allow developers to use the template by running the ff command:

```
flutter create -t games_toolkit
```

Last, provide some docs in the CLI how to use the template or reference links.
Repository: godot
Issue: Asset library can't be reached when AdGuard is running on macOS
Labels: bug,platform:macos,topic:editor,topic:assetlib,topic:network

### Godot version

3.4.4 stable

### System information

Mac Os 12.4, M1

### Issue description

When I launch Godot for the first time (self contained) I cannot load assets and I have this error: "Can't connect to host: https://godotengine.org/asset-library/api"

In fact, the url in a web browser is a not found page. So I suspect that there's something off.

![CleanShot 2022-07-16 at 09 43 14@2x](https://user-images.githubusercontent.com/71364/179345556-fa5e54da-0a18-46c1-a45b-b4254253efb8.png)
![Uploading CleanShot 2022-07-16 at 09.43.44@2x.png…]()



### Steps to reproduce

Download latest stable version, self contained. Screenshots are attached

### Minimal reproduction project

N.A. this happens with the assets library ad not inside a project.
Repository: flutter
Issue: InteractiveViewer pans when a stylus is moving
Labels: framework,a: tablet,has reproducible steps,P2,found in release: 3.0,found in release: 3.1,team-framework,triaged-framework

I'm using `InteractiveViewer` to display canvases that the user can draw on with a stylus.

I want standard panning behavior, but `InteractiveViewer` doesn't differentiate between touch gestures and stylus interactions. As a result, when the user draws with a stylus, it pans the viewer.
Repository: godot
Issue: Error CSGMesh, Cube mesh
Labels: bug,topic:rendering,topic:3d

### Godot version

Godot_v3.4.4-stable_mono_win64

### System information

Windows 10 GLES3

### Issue description

I'm trying to create a CSG Mesh and an error occurs.

### Steps to reproduce

When I add a CSG Mesh to the walls, then select Cube Mesh, an error happens, but if I take Capsule Mesh everything works.

![Безымянный](https://user-images.githubusercontent.com/25371753/179347942-34922e0c-4d89-4a03-a0da-811aace686dc.png)

If I choose Capsule Mesh

![Безымянный](https://user-images.githubusercontent.com/25371753/179347984-9609c289-9ca7-446c-bc1a-175f0348e9c0.png)

After godot restart everything works.

![Безымянный](https://user-images.githubusercontent.com/25371753/179348122-868968db-2cad-44f6-bc90-64f5822e59cb.png)


### Minimal reproduction project

[3D test.zip](https://github.com/godotengine/godot/files/9125452/3D.test.zip)
Repository: flutter
Issue: want to use SliverWidget in ReorderableListView 
Labels: c: new feature,framework,f: material design,f: scrolling,c: proposal,P3,team-design,triaged-design

## Use case

I would like to use the sliverAppbar( and other sliver widget ) and reorder it!
Currently I get an error, so I would like you to support this if you don't mind.

## Proposal

https://user-images.githubusercontent.com/7422251/179350217-7af75a3e-f0f4-44c8-95ea-9b1fc340f017.mp4
Repository: create-react-app
Issue: Can't create react app with npx or yarn
Labels: needs triage,issue: bug report

I am unable to create new react projects with npx or yarn. I'm also unable to install necessary dependency packages into existing react projects.
I got this error:

$ npx create-react-app new-fr

Creating a new React app in C:\Users\HP\Desktop\side-projects\fresh\new-fr.

Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...

npm ERR! code UNKNOWN
npm ERR! syscall mkdir
npm ERR! path C:\Users\HP\AppData\Local\npm-cache\_cacache\index-v5\ab\02
npm ERR! errno UNKNOWN
npm ERR! Invalid response body while trying to fetch https://registry.npmjs.org/@babel%2fplugin-transform-react-jsx: UNKNOWN: unknown error, mkdir 'C:\Users\HP\AppData\Local\npm-cache\_cacache\index-v5\ab\02'

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\HP\AppData\Local\npm-cache\_logs\2022-07-16T09_58_49_000Z-debug-0.log

Aborting installation.
  npm install --no-audit --save --save-exact --loglevel error react react-dom react-scripts cra-template has failed.     

Deleting generated file... package.json
Deleting new-fr/ from C:\Users\HP\Desktop\side-projects\fresh
Done.
Repository: rust
Issue: Add UI for advanced search
Labels: T-rustdoc,A-rustdoc-search

@GuillaumeGomez 
It's pretty hard to work with results in some huge frameworks when you get unfiltered results.

For example, I search for a method and instead get in result `const`ants, methods, associated functions, and so on. And a user doesn't have a filter.
Repository: node
Issue: Use recommended storage locations for app and user data
Labels: windows,feature request,never-stale

### What is the problem this feature will solve?

On Windows, Node.JS is putting application data directly in the user profile at `$env:userprofile\.node`. This violates Microsoft recommendations for Windows operating systems and should be moved to the recommended locations.

![grafik](https://user-images.githubusercontent.com/2971735/179354012-92c1e0b4-5fb4-4a60-b6e8-87242a638e2c.png)


### What is the feature you are proposing to solve the problem?

Move the application and user data to storage locations recommended by Microsoft. A selection of recommended storage locations are

- ApplicationData (roaming)
- LocalApplicationData (non-roaming e.g., Local/LocalLow)
- CommonApplicationData (non-roaming)
- CommonProgramFiles (non-roaming)

Source and details about recommended storage locations:  
https://docs.microsoft.com/en-us/dotnet/api/system.environment.specialfolder?view=net-6.0

### What alternatives have you considered?

_No response_