sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: Attempted to read a PyTorch file with version 3, but the maximum supported version for reading is 2. Your PyTorch installation may be too old. (init at /pytorch/caffe2/serialize/inline_container.cc:132)
Labels: triaged,module: assert failure

I am working in a conda environment
I have Cuda 10.0 installed on my tesla server and I installed torch==1.4.0+cu100 and torchvision==0.5.0+cu100 to make it compatible with cuda.

I am using _https://github.com/facebookresearch/mmf_ 

**when I used the command to train my model** 
It gives me an error

_RuntimeError: version_ <= kMaxSupportedFileFormatVersion INTERNAL ASSERT FAILED at /pytorch/caffe2/serialize/inline_container.cc:132, please report a bug to PyTorch. Attempted to read a PyTorch file with version 3, but the maximum supported version for reading is 2. Your PyTorch installation may be too old. (init at /pytorch/caffe2/serialize/inline_container.cc:132)
frame #0: c10::Error::Error(c10::SourceLocation, std::string const&) + 0x33 (0x7fb7c7e88193 in /home/ifrahmaqsood/anaconda3/envs/mmf1/lib/python3.6/site-packages/torch/lib/libc10.so)
frame #1: caffe2::serialize::PyTorchStreamReader::init() + 0x1f5b (0x7fb7cafaeafb in /home/ifrahmaqsood/anaconda3/envs/mmf1/lib/python3.6/site-packages/torch/lib/libtorch.so)
frame #2: caffe2::serialize::PyTorchStreamReader::PyTorchStreamReader(std::string const&) + 0x64 (0x7fb7cafafd14 in /home/ifrahmaqsood/anaconda3/envs/mmf1/lib/python3.6/site-packages/torch/lib/libtorch.so)_
**and the list goes on** 


**Can I change pytorch files to make them compatible with my pytorch versions?**
Please if you could help me with this. As I cannot change the CUDA version due to shared server among multiple users.



**python -m torch.utils.collect_env**

Collecting environment information...
PyTorch version: 1.4.0+cu100
Is debug build: No
CUDA used to build PyTorch: 10.0

OS: Ubuntu 16.04.7 LTS
GCC version: (Ubuntu 5.5.0-12ubuntu1~16.04) 5.5.0 20171010
CMake version: version 3.18.2

Python version: 3.6
Is CUDA available: Yes
CUDA runtime version: 10.0.130
GPU models and configuration:
GPU 0: Tesla K80
GPU 1: Tesla K80

Nvidia driver version: 430.64
cuDNN version: Probably one of the following:
/usr/lib/x86_64-linux-gnu/libcudnn.so.7.6.2
/usr/lib/x86_64-linux-gnu/libcudnn.so.8.0.2
/usr/lib/x86_64-linux-gnu/libcudnn_adv_infer.so.8.0.2
/usr/lib/x86_64-linux-gnu/libcudnn_adv_train.so.8.0.2
/usr/lib/x86_64-linux-gnu/libcudnn_cnn_infer.so.8.0.2
/usr/lib/x86_64-linux-gnu/libcudnn_cnn_train.so.8.0.2
/usr/lib/x86_64-linux-gnu/libcudnn_ops_infer.so.8.0.2
/usr/lib/x86_64-linux-gnu/libcudnn_ops_train.so.8.0.2

Versions of relevant libraries:
[pip3] numpy==1.19.5
[pip3] torch==1.4.0+cu100
[pip3] torchtext==0.5.0
[pip3] torchvision==0.5.0+cu100
[conda] torch 1.4.0+cu100 pypi_0 pypi
[conda] torchtext 0.5.0 pypi_0 pypi
[conda] torchvision 0.5.0+cu100 pypi_0 pypi
Repository: rust
Issue: [ER] Better use fully-qualified syntax help?
Labels: C-enhancement,A-diagnostics,T-compiler,A-suggestion-diagnostics,D-papercut

A possible enhancement request. I am not sure if this is worth doing. [On this wrong code](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=d85313cb98b378d35495286fb7d5a0ef):

```rust
#![feature(const_option)]

use std::num::NonZeroU32;

trait HasNonZero {
    type NonZero;
}

impl HasNonZero for u32 {
    type NonZero = NonZeroU32;
}

fn main() {
    const _N: u32::NonZero =
        <u32 as HasNonZero>::NonZero::new(5).unwrap();
}
```

rustc 1.52.0-nightly gives:

```rust
error[E0223]: ambiguous associated type
  --> ...\test.rs:14:15
   |
14 |     const _N: u32::NonZero =
   |               ^^^^^^^^^^^^ help: use fully-qualified syntax: `<u32 as Trait>::NonZero`

error: aborting due to previous error
```

Instead of a generic `<u32 as Trait>::NonZero` rustc could suggest one (or few) likely traits like `<u32 as HasNonZero>::NonZero`.

<!-- TRIAGEBOT_START -->

<!-- TRIAGEBOT_ASSIGN_START -->

<!-- TRIAGEBOT_ASSIGN_DATA_START$${"user":null}$$TRIAGEBOT_ASSIGN_DATA_END -->

<!-- TRIAGEBOT_ASSIGN_END -->
<!-- TRIAGEBOT_END -->
Repository: pytorch
Issue: Assignment target is transposed when using jit.script and avanced indexing
Labels: oncall: jit,good first issue,OSS contribution wanted,days

## 🐛 Bug

When using advanced indexing for the target of an assignment `myvar[scalar_tensor, slice, tensor, tensor] = ...` the slice dimension is moved at the end if the function is jitted.

## To Reproduce

```py
import torch


def f(gt_batch_idx, gt_boxes):
    tgt_boxes = torch.zeros((1, 4, 64, 64))

    for i in range(gt_batch_idx.shape[0]):
        b = gt_batch_idx[i]  # works if using a simple int here

        mask_i, mask_j = torch.arange(10), torch.arange(10)

        print(tgt_boxes[b, :, mask_i, mask_j].shape)  # [10, 4] instead of [4, 10]
        tgt_boxes[b, :, mask_i, mask_j] = gt_boxes[i].view(4, 1)


f = torch.jit.script(f)  # works if commented

f(torch.tensor([0, 0], dtype=torch.long),
  torch.tensor([[31, 43, 58, 63], [22,  9, 45, 35]], dtype=torch.float))
```

## Expected behavior

Same behaviour between torchscript and normal versions of the same code.

## Environment

```
PyTorch version: 1.7.1
Is debug build: False
CUDA used to build PyTorch: None
ROCM used to build PyTorch: N/A

OS: Arch Linux (x86_64)
GCC version: (GCC) 10.2.0
Clang version: Could not collect
CMake version: version 3.19.3

Python version: 3.8 (64-bit runtime)
Is CUDA available: False
CUDA runtime version: No CUDA
GPU models and configuration: No CUDA
Nvidia driver version: No CUDA
cuDNN version: No CUDA
HIP runtime version: N/A
MIOpen runtime version: N/A

Versions of relevant libraries:
[pip3] numpy==1.19.2
[pip3] torch==1.7.1
[pip3] torchaudio==0.7.0a0+a853dff
[pip3] torchvision==0.8.2
[conda] blas                      1.0                         mkl  
[conda] cpuonly                   1.0                           0    pytorch
[conda] mkl                       2020.2                      256  
[conda] mkl-service               2.3.0            py38he904b0f_0  
[conda] mkl_fft                   1.2.0            py38h23d657b_0  
[conda] mkl_random                1.1.1            py38h0573a6f_0  
[conda] numpy                     1.19.2           py38h54aff64_0  
[conda] numpy-base                1.19.2           py38hfa32c7d_0  
[conda] pytorch                   1.7.1               py3.8_cpu_0  [cpuonly]  pytorch
[conda] torchaudio                0.7.2                      py38    pytorch
[conda] torchvision               0.8.2                  py38_cpu  [cpuonly]  pytorch
```

cc @gmagogsfm
Repository: flutter
Issue: [video_plugin] Video should automatically go back to the beginning after it completes
Labels: c: new feature,p: video_player,package,c: proposal,team-ecosystem,P3,triaged-ecosystem

## Use case

Video should automatically go back to the beginning after video completes. As clarification, I don't want the video to continue playing using setting looping to true.

I've tried:
```
      void eventListener(VideoEvent event) {
        switch (event.eventType) {
          case VideoEventType.completed:
            print('Completed');
            break;
        }
      }
      _eventSubscription = VideoPlayerPlatform.instance
          // ignore: invalid_use_of_visible_for_testing_member
          .videoEventsFor(_controller.textureId).listen(eventListener);
```
but it overrides the other main listener.

## Proposal

Request 1: This functionality is implemented in the core of this plugin.

Request 2: VideoPlayer should allow new listeners to be added to Stream<VideoEvent> for custom logic on VideoEvents. They should not override listener defined in VideoPlayerController.initialize(). One option could be VIdeoPlayerController keeps a local reference to Stream<VideoEvent> and exposes a method to add more listeners.

Thanks.
Repository: go
Issue: proposal: x/net/http2: add api to send data frame one by one during invocation
Labels: Proposal

<!--
Please answer these questions before submitting your issue. Thanks!
For questions please use one of our forums: https://github.com/golang/go/wiki/Questions
-->

### What version of Go are you using (`go version`)?

<pre>
$ go version 
go version go1.15.5 darwin/amd64
</pre>

### Does this issue reproduce with the latest release?

None

### 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"
</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.
-->



### What did you expect to see?

I want to use x/net/http2 pkg to impl grpc stream-rpc invocation, but I found that it only supports invocation with `header + bodyframe`, not `header + body + body + body ...` be along with the flash of stream.

### What did you see instead?
Repository: flutter
Issue: Decoration for unselected tabs in TabBar
Labels: c: new feature,framework,f: material design,customer: crowd,c: proposal,P3,team-design,triaged-design

## Use case

Display a tabbar where the tabs look like physical paper tabs with rounded corners top-left and top-right. The selected tab should look "exposed" (e.g. bold text or other color).

## Proposal

Add parameter `unselectedDecoration` to `TabBar`.

TabBar provides `Decoration indicator`. I can use it for example like this:

    TabBar(
      controller: _tabController,
      indicator: BoxDecoration(
        borderRadius: BorderRadius.only(
          topLeft: Radius.circular(10.0),
          topRight: Radius.circular(10.0), ),
        color: Colors.orange,  ),
      tabs: _tabList, );

But there is no option to decorate unselected tabs in a similar way. Trying to decorate the tab itself results in `indicator` not visible, beause it seems to "hide behind the tab".

An alternative would be to give the `TabBar.indicator` a higher precedence than `Tab.indicator` when rendering.
Repository: pytorch
Issue: TestVectorizedMemoryAccess.CopyKernel starting to fail after driver to 460.39
Labels: high priority,module: cuda,module: ci,triaged

See https://app.circleci.com/pipelines/github/pytorch/pytorch/270400/workflows/0edf4b18-b1dc-4109-aab1-95419fc264d1/jobs/10724709

cc @ezyang @gchanan @zou3519 @bdhirsh @jbschlosser @seemethere @malfet @walterddr @pytorch/pytorch-dev-infra @ngimel
Repository: godot
Issue: images smaller than tilemap cell are stretched
Labels: discussion,topic:core

**Godot version:**
3.2.4


**OS/device including version:**
Linux


**Issue description:**
Sorry if this is as expected or there's a flag that I couldn't find in either tileset or tilemap, but if you have an image that is smaller than the tile cell size, it looks ok in the tileset but on placing in a tilemap it becomes stretched. But not just a normal stretch, but bizarrely the last pixel is stretched.

![image](https://user-images.githubusercontent.com/12863685/107154171-61e7dd00-6969-11eb-8c86-b8bbf58674bd.png)

The same is not the case if the image is larger.
![image](https://user-images.githubusercontent.com/12863685/107154208-99568980-6969-11eb-80fa-5fbb30941be3.png)

<!-- What happened, and what was expected. -->

An image not to be stretched, it should simply be placed with transparency. If this is as expected then I would expect both smaller and larger images to have the same stretch property and the image to be stretched not just the last pixel, and also an option in the tileset/tilemap to set stretch mode.
Repository: godot
Issue: Pressing F8 while focusing on the Game tab frame won't stop the running project
Labels: bug,platform:web,topic:editor,topic:porting,confirmed

*See also #45800 and #45801.*

**Godot version:** 3.2.4rc1

**OS/device including version:** Fedora 33, Firefox 85

**Issue description:**

Unlike the native version of Godot, in the web editor, pressing F8 while focusing on the Game tab DOM canvas won't stop the running project.

**Steps to reproduce:**

- Start the web editor (or even the project manager).
- Run the project by pressing <kbd>F5</kbd> while the editor frame is focused.
- The editor will switch to the Game tab. Press <kbd>F8</kbd> (before or after clicking on the game's frame). Nothing happens.

In the native version of Godot, the project will stop when you press <kbd>F8</kbd> while the window is focused.

**Minimal reproduction project:** N/A
Repository: godot
Issue: Implement `onbeforeunload` callback to prevent losing unsaved changes in the web editor
Labels: bug,platform:web,topic:editor,topic:porting

*See also #45799 and #45801.*

**Godot version:** 3.2.4rc1

**OS/device including version:** Fedora 33, Firefox 85

**Issue description:**

Unlike the native version of Godot, the web editor won't ask you for confirmation when exiting the editor with unsaved changes.

There are at least 4 ways to exit the web editor:

- Press <kbd>F5</kbd> or <kbd>Ctrl + R</kbd> to reload the page.
- Press <kbd>Ctrl + W</kbd> to close the tab.
- Press <kbd>Ctrl + Q</kbd> (not on all browsers) or <kbd>Ctrl + Shift + W</kbd> to close the window.
- Enter another address in the browser's address bar and press <kbd>Enter</kbd>.

All these ways of accidentally losing unsaved changes can be prevented using the [`onbeforeunload`](https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onbeforeunload) JavaScript callback. (Note that custom messages are no longer displayed in recent browsers, so we'll have to stick with the browser-provided message.)

**Steps to reproduce:**

Try to close the web editor after making unsaved changes in the project.

**Minimal reproduction project:** N/A

*Note: Labeling this as a `bug` since this can cause loss of data.*
Repository: godot
Issue: Pressing F5 while not focusing on the editor will refresh the page, possibly causing loss of data
Labels: bug,platform:web,topic:editor,topic:porting

*See also #45799 and #45800.*

**Godot version:** 3.2.4rc1

**OS/device including version:** Fedora 33, Firefox 85

**Issue description:**

Pressing F5 while not focusing on the editor will refresh the page, possibly causing loss of data (since the editor won't ask for confirmation if there are unsaved changes).

**Steps to reproduce:**

- Start the web editor (or even the project manager).
- Click anywhere on the top bar placed above the editor/project manager frame.
- Press <kbd>F5</kbd> as you would typically do when running a project.
- Notice that the browser will refresh the page instead of running the project.

#45800 recommends implementing the `onbeforeunload` callback to prevent this, but I think we should figure out a way to never show the quit confirmation dialog in the first place when pressing <kbd>F5</kbd> (if possible). Otherwise, it can get annoying over time. Feel free to close this issue if it's too cumbersome to implement, still.

**Minimal reproduction project:** N/A
Repository: godot
Issue: import plugin with gdscript: can't import custom resource
Labels: bug,topic:editor,topic:plugin,needs testing,topic:import

**Godot version:**
3.2.3

**OS/device including version:**
GNU/Linux

**Issue description:**
I'm writing an import plugin that takes a game-specific resource .xxx and processes/"compiles" it to .yyy.
The resource is detected in the editor and processed in .import. However the editor refuses to load the resource:
```
ERROR: _load: No loader found for resource: res://.import/script.xxx-0bbac1d322733f0a806648caf1b5b828.yyy.
   At: core/io/resource_loader.cpp:286.
ERROR: _load: Failed loading resource: res://script.xxx. Make sure resources have been imported by opening the project in the editor at least once.
   At: core/io/resource_loader.cpp:279.
ERROR: load_resource: Condition "!res.is_valid()" is true. Returned: ERR_CANT_OPEN
   At: editor/editor_node.cpp:854.
```
A custom resource loader is registered, but appears to be ignored. Its load() function is never called.
Additionally, when removing the *.import and .import/* files, the same error occurs and the resource is not processed anymore.

**Steps to reproduce:**
Edit attached reproducer.
Double click on script.xxx.

**Minimal reproduction project:**
[compiler.zip](https://github.com/godotengine/godot/files/5939799/compiler.zip)
Repository: go
Issue: x/tools/gopls: rename also renames qualified identifiers in a doc comment
Labels: NeedsInvestigation,gopls,Tools

<!-- Please answer these questions before submitting your issue. Thanks! -->

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version devel +8869086d8f Thu Feb 4 04:46:49 2021 +0000 linux/amd64
$ go list -m golang.org/x/tools
golang.org/x/tools v0.1.1-0.20210204180613-842a9283d6c6
$ go list -m golang.org/x/tools/gopls
golang.org/x/tools/gopls v0.0.0-20210204180613-842a9283d6c6
</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="amd64"
GOBIN=""
GOCACHE="/home/myitcv/.cache/go-build"
GOENV="/home/myitcv/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
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_amd64"
GOVCS=""
GOVERSION="devel +8869086d8f Thu Feb 4 04:46:49 2021 +0000"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/home/myitcv/.vim/plugged/govim/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-build2716400008=/tmp/go-build -gno-record-gcc-switches"
</pre></details>

### What did you do?

Start with:

```
-- blah/blah.go --
package blah

const Name = "blah"
-- go.mod --
module blah.com

go 1.16
-- main.go --
package main

import (
	"fmt"

	"blah.com/blah"
)

func main() {
	fmt.Println(Name())
}

// Name returns blah.Name
func Name() string {
	return blah.Name
}
```

* Open Vim (which launches `govim` and `gopls`)
* Move the cursor over `Name` of `func Name() string`
* Rename to `Other`


### What did you expect to see?

The doc comment as follows:

```
// Other returns blah.Name
```

### What did you see instead?

```
// Other returns blah.Other
```

Log files: 

* [gopls.log](https://github.com/golang/go/files/5939889/gopls.log)
* [govim.log](https://github.com/golang/go/files/5939890/govim.log)


---

cc @stamblerre

FYI @leitzler
Repository: excalidraw
Issue: Can't import @excalidraw/excalidraw in Node environment
Labels: package:excalidraw

Just adding `import Excalidraw from '@excalidraw/excalidraw';` into a Next project throws an error:

```
ReferenceError: self is not defined
    at Object.<anonymous> (/Users/gaearon/p/proto2/node_modules/@excalidraw/excalidraw/dist/excalidraw.min.js:2:313)
```

Apparently, coming from here:

```js
!(function (e, t) {
  // ...
})(self, function (e, t) {
```

I get that the component might not support SSR, but ideally it would still be possible to import.
Repository: TypeScript
Issue: Missing error when mistyped value overwrites property of spreaded generic type parameter
Labels: Bug

# Bug Report


### 🔎 Search Terms

generic argument, rest spread, false positive

### 🕗 Version & Regression Information


- [x] This is the behavior in every version I tried, and I reviewed the FAQ for entries about object spread and generics

I found a few relevant issues, but none of them fully correspond to the current one:
* https://github.com/microsoft/TypeScript/issues/35858
* https://github.com/microsoft/TypeScript/issues/38469
* https://github.com/microsoft/TypeScript/issues/30129

### ⏯ Playground Link

[Playground link with relevant code](https://www.typescriptlang.org/play?ts=4.2.0-dev.20210207#code/JYOwLgpgTgZghgYwgAgJIgA4FcwAUoD2GAzsgN4CwAUMsgG5wA2WEAXMsWFKAOYDc1AL7VqCAiE7IeEPIRLIAvMgAUGOcXbpssosQCUmzDny7FAPhWUayAHR21ugDTVaDZm2QBGAEwBmR8gA9IHIAO4AFhAgyGCRUCjApCAEUlHQwAgxAJ4YEAHAYBzhBKGkcNHQhFABcKQQAB65CJAAJkJ6AlSi4pLSOiQA4mncCAByBADKuXAtisgAPAAqyA2QIC2kWsbqZqrq7IsGyMsKFla0YhKFIBChJvJKZHY2DiSCnbQ3d+o2bixzPl8fCCISYxBS0AI1WQtRWjQgzQgbWs8TAWCg0S+92InXeIi6VEuvRk2KGNxGcyWcLWGzQRn6xF2rw0xyOJwsynOtns6mc1j+HkBAWCyGSKygVWQcQg7U61CAA)

### 💻 Code

<!-- Please post the relevant code sample here as well-->
```ts
interface InputProps {
  value: string;
}

const getProps = (props: InputProps): InputProps => ({
  ...props,
  value: 123, // when there is no generic type, it shows an error, as expected
});

const getPropsGenericNoSpead = <T extends InputProps>(props: T): T => {
  const newProps = {...props};
  newProps.value = 123; // also error, as expected
  return newProps;
};


const getPropsGeneric = <T extends InputProps>(props: T): T => ({
  ...props,
  value: 123, // no error here
});
```

### 🙁 Actual behavior

Typescript allows assigning incompatible types

### 🙂 Expected behavior

Typescript shows an error
Repository: rust
Issue: Recursive type of infinite size is undetected until MIR optimiziations
Labels: A-associated-items,T-compiler,C-bug

```rust
#![allow(incomplete_features)]
#![feature(generic_associated_types)]

trait Trait {
    type Type<T>;
}

impl Trait for u8 {
    type Type<T> = T;
}

struct S<T: Trait>(Option<T::Type<Self>>);

fn main() {
    S::<u8>(None); // this line and `cargo build` required for a cycle error
}
```

I expected to see this happen:

An error about a cycle, overflowing requirements, or recursive type of infinite size with a diagnostic underlining the definition of `S` and usage ` S::<u8>(None);`

Instead, this happened:

A cycle is detected only when optimizing MIR for `main`, thus this goes uncaught during `cargo check`. The diagnostic only underlines the function name.

```
error[E0391]: cycle detected when computing layout of `S<u8>`
   |
   = note: ...which requires computing layout of `std::option::Option<S<u8>>`...
   = note: ...which again requires computing layout of `S<u8>`, completing the cycle
note: cycle used when optimizing MIR for `main`
  --> src\main.rs:14:1
   |
14 | fn main() {
   | ^^^^^^^
```

### Meta

`rustc --version --verbose`:
```
rustc 1.52.0-nightly (a73c2e555 2021-02-06)
binary: rustc
commit-hash: a73c2e555c26ef0c8b98c91c97a7d24b7017267f
commit-date: 2021-02-06
host: x86_64-pc-windows-msvc
release: 1.52.0-nightly
LLVM version: 11.0.1
```