sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: excalidraw
Issue: Updating text inside a shape takes time to reflect in collaboration session
Labels: bug,collaboration

Repro steps:

1. Start a new canvas (call this S1)
2. Start live collaboration (call this S2)
3. Add a rectangle in S1, select a background color, select Fill=Solid
4. Add a text inside the rectangle in S1

At this point, the rectangle shows up in S2, but the text is missing and appears after few seconds.

5. Now edit the text inside the rectangle

Now, it does not reflect in S2 immediately. It takes 10-15 secs to show up in S2.

Update: After step 5, if we move the shape a little, text immediately appears in S2 without delay.
Repository: terminal
Issue: Duplicate WT_SESSION and WT_PROFILE_ID in WSLENV env var
Labels: Help Wanted,Issue-Bug,Area-TerminalConnection,Product-Terminal,Area-CodeHealth,good first issue

# Environment

```none
Windows build number: 10.0.19041.388
Windows Terminal version (if applicable): 1.1.2021.0
```

# Steps to reproduce

- Open Windows Terminal
- `setx WSLENV "${env:WSLENV}:TEST/p"`
- Close and reopen Windows Terminal
- `echo $env:WSLENV`

# Expected behavior

    WT_SESSION:WT_PROFILE_ID:TEST/p

# Actual behavior

    WT_SESSION:WT_SESSION::WT_PROFILE_ID:TEST/p:WT_PROFILE_ID

---

I think the right thing to do here is to split `WSLENV` by `:` and check those vars are already set instead of just simply prepending and appending a string.

Probable related PRs:
- https://github.com/microsoft/terminal/pull/4157
- https://github.com/microsoft/terminal/pull/4852
Repository: excalidraw
Issue: Support Option-resizing lines
Labels: bug

The help text below the toolbar when linear elements are dragged for resizing is wrong:

<img width="595" alt="Screen Shot 2020-07-30 at 15 10 25" src="https://user-images.githubusercontent.com/1473433/88979606-e2b97400-d276-11ea-8fd7-4866ca99102c.png">

It mentions "alt" can be used, but it cannot be.

Also the text is slightly cut off, notice the `p` in `proportions`:

<img width="54" alt="Screen Shot 2020-07-31 at 08 56 23" src="https://user-images.githubusercontent.com/1473433/89053221-c1ef2e00-d30b-11ea-99cf-c6b65eaf5401.png">

---

There are some related issues around the repo to this. Should we allow the alt-scaling for arrows? Should we just have the same resizing logic for arrows as we have for rectangles?

One thing I would super like, but might need more changes, is if alt+dragging corner created a new line with the other points in the same position, like this:


<img width="511" alt="Screen Shot 2020-07-30 at 15 12 22" src="https://user-images.githubusercontent.com/1473433/88979717-18f6f380-d277-11ea-98e3-7a2382ca9670.png">

Right now I always have to copy, paste, then shift both points (or the linear element and the second point).
(but if we wanted to make this consistent with other shapes we would have to figure out separate modifier key combos)
Repository: pytorch
Issue: Audit quantization functions to ensure proper argument sizes
Labels: oncall: quantization,low priority,triaged

Context: https://github.com/pytorch/pytorch/pull/42079, we now throw a runtime error if an out argument is supplied to a function but it's the wrong size

@mruberry mentioned that we should fix `qadd` and `qmul`, but ideally we should look at all the quantized ops with an `out` argument and fix them if necessary.  Ideal timeline is by v1.7.

cc @jerryzh168 @jianyuh @dzhulgakov @raghuramank100 @jamesr66a @vkuzo
Repository: flutter
Issue: multiline text incorrectly calculates intrinsic height
Labels: framework,a: typography,P2,team-framework,triaged-framework

Multiline text on web appears to compute the wrong intrinsic height. Here is a repo of the problem occurring:

https://dartpad.dev/9059244f9a737f01f73242c2f7f174f5

Run the Dart Pad and press the button at the bottom of the screen. You'll see an overflow that shouldn't happen.

Here is the same Dart Pad with only a single line of text and the overflow does not occur:

https://dartpad.dev/9795697f867daf7175f9716273c2fb3b

This bug seems to still exist even with the `FLUTTER_WEB_USE_EXPERIMENTAL_CANVAS_TEXT` flag.
Repository: TypeScript
Issue: Extract types from definition file
Labels: Suggestion,Awaiting More Feedback

## Search Terms

extract d.ts definition types

## Suggestion

For a tvOS project I'm working with TVML and TypeScript. The JavaScript environment has some of the functionality of the browser, but not all classes are available (like `FormData` and `URL`).

You can see the classes that are supported here:
https://developer.apple.com/documentation/tvmljs

What I would like to do is to import a subset of type definitions from `lib.dom.d.ts` and then export them as `lib.tvml.d.ts`

Unfortunately I can't simply create a `d.ts` file and write this:
```typescript
export { XMLHttpRequest } from "typescript/lib/lib.dom"
```

My next thought was to create a copy of `lib.dom.d.ts` and to remove everything except for the classes supported by TVML. However some of the types (like `Document`) are huge and they depend on other types which makes it even more complicated.

Another downside of a copy would be that it would miss out on the improvements that will be made over time to `lib.dom.d.ts`.

## Use Cases

The file `lib.webworker.d.ts` has some overlap with `lib.dom.d.ts` (things like `XMLHttpRequest`). If we could create a `d.ts` by importing definitions from another `d.ts` it could simplify the built-in library definitions. 

It also offers developers an easy way to pick which definitions are allowed to be used in the project.

## Examples

See example under Suggestion section.

## 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: pytorch
Issue: Generate unique `worker_id` for each node in the RPC framework for the store.
Labels: triaged,module: rpc

The RPC framework uses the user specified `worker_id` to generate globally unique ids using first 16 bits as the worker_id and next 48 bits being an in memory auto increment counter. This works well in the case of a static set of workers where the user can specify unique ids.

But as we plan to support elasticity (see discussion here: https://github.com/pytorch/pytorch/issues/41546#issuecomment-666070059) in the RPC framework, this would not work well since the user should not be responsible for carefully assigning these unique worker_ids.

Ideally, we should eliminate the `rank` parameter in `init_rpc` and generate this uniquely from the store. However this would cause backward compatibility issues. To avoid breaking compatibility, we could generate an internal worker_id from the store which we use for generating globally unique ids instead of using the rank passed in by the user.


cc @pietern @mrshenli @pritamdamania87 @zhaojuanmao @satgera @gqchen @aazzolini @rohan-varma @xush6528 @jjlilley @osalpekar @jiayisuse
Repository: pytorch
Issue: An error occurred deploying CRNN using libtorch
Labels: oncall: jit,module: rnn,module: cuda,triaged

## 🐛 Bug

<!-- A clear and concise description of what the bug is. -->

## To Reproduce

Steps to reproduce the behavior:

I trained the model on Pytorch and deployed it on libtorch, which I tried in both versions 1.1 and 1.4. They all run successfully in CPU mode, but in GPU mode, the model can be loaded into CUDA normally, but once the reasoning is done, the GPU footprint goes up to 100% and the program exits. The error message is:Warning: Weights are not part of single self-help Chunk of memory. This means they need to be compacted at every call, To compact weights again call flatten_parameters(). (_cudnn_impl at.. \.. \ aten \ SRC \ aten \ native \ cudnn \ RNN CPP: 1266)https://github.com/pytorch/pytorch/issues/19053 I tried, but I don't work.And the model architecture of CRNN is the same as in the above questions, so is the program for PTH conversion to PT.

In addition, I use whether I set model.train() or model.eval ()，the result I use model.is_training() is 1, I do not kone this 1 is meanning is training or not .But the output result I use model.is_training is right? 

<!-- If you have a code sample, error messages, stack traces, please provide it here as well -->

## Expected behavior

<!-- A clear and concise description of what you expected to happen. -->

## Environment

Please copy and paste the output from our
[environment collection script](https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py)
(or fill out the checklist below manually).

You can get the script and run it with:
```
wget https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py
# For security purposes, please check the contents of collect_env.py before running it.
python collect_env.py
```

 - PyTorch Version (e.g., 1.0):
 - OS (e.g., Linux):
 - How you installed PyTorch (`conda`, `pip`, source):
 - Build command you used (if compiling from source):
 - Python version:
 - CUDA/cuDNN version:
 - GPU models and configuration:
 - Any other relevant information:

## Additional context

<!-- Add any other context about the problem here. -->


cc @suo @gmagogsfm @ngimel @zou3519
Repository: TypeScript
Issue: Keep TSServer alive longer for initialization performance
Labels: Suggestion,In Discussion,Domain: TSServer

<!-- ⚠️⚠️ 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. -->

Hello! First off, thank you for your work on VSCode -- by far my favorite and the most popular editor at my company.

I work in a very large monorepo, with 5M lines of TS, across ~70k TS files, across ~900 projects (here is a small scale reproduction of our setup: https://github.com/brieb/ts-monorepo/).

While working in a monorepo, its common to jump between files in different projects. Each time a file is opened for a new project, the TS server needs to be initialized ("Initializing JS/TS language features"). For some of our largest projects, this can take up to a minute. But if that file is closed during the course of the editing session, the corresponding TS/JS server is shutdown, and you'd have to wait another minute when coming back to a file in that project.

Some people have hacked around this by deliberately keeping tabs open for files in each of the projects they are working in even when they are done with the file (but not the project) to keep the TS server alive and avoid paying that startup cost.

Curious if you've run into or thought about this problem before and have ideas for improving this workflow

One idea could be making the shutdown behavior configurable -- immediate (today's behavior), timeout-based (after a certain timeout with no project activity the server is shutdown).

Hopefully this feature could benefit others that work in a similar monorepo environment too.

keywords: tsserver, persist, persistence, keep alive, initialize, initializing, monorepo
Repository: go
Issue: cmd/cgo: cgo allows creating values of incomplete struct/union type
Labels: NeedsDecision,compiler/runtime

This program builds, but fails at runtime:

```
// x.go
package main

// struct s;
// union u;
// extern void f(struct s *, union u *);
import "C"

func main() {
	C.f(new(C.struct_s), new(C.union_u))
}
```

```
// x.c
#include <assert.h>

struct s { int x; };
union u { long x; };

void f(struct s *sp, union u *up) {
  if (sp && up) {
    assert((void *)sp != (void *)up);
  }
}
```

This is because cgo defines incomplete struct/union types like `C.struct_s` and `C.union_u` as `struct{}`, rather than giving an error. So the `new(C.struct_s)` and `new(C.union_u)` end up both allocating as zero-size objects.

I think this program shouldn't build at all.

One reasonable fix would be to disallow incomplete `C.struct_*` or `C.union_*` references outside of a pointer type. This might have false positives for things like:

```
package p

// struct s;
import "C"

type s C.struct_s
var _ *s
```

A more invasive but more robust fix would be a `//go:cgo_incomplete` directive that tells the compiler it shouldn't allow values of that type.

/cc @ianlancetaylor 

(Noted while working on fix for #40494.)
Repository: go
Issue: regexp: RuneReader-related functions treat non-EOF errors the same as EOF
Labels: NeedsInvestigation

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version go1.14.6 linux/amd64
</pre>

### Does this issue reproduce with the latest release?

Yes, go1.14.6.

### 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/me/.cache/go-build"
GOENV="/home/me/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/me/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/lib/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/lib/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
AR="ar"
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-build878029847=/tmp/go-build -gno-record-gcc-switches"
</pre></details>

### What did you do?

_Preamble: Sorry if this is known behavior for the `regexp` package. It was not obvious to me after reading the documentation._

I provided `regexp.MatchReader` with a `RuneReader` that always returns a non-EOF error (https://play.golang.org/p/_CVP4uouxy4):

```
package main

import (
	"errors"
	"fmt"
	"regexp"
)

var notEOF = errors.New("not EOF")

type notEOFErrRuneReader struct{}

func (notEOFErrRuneReader) ReadRune() (rune, int, error) {
	return 0, 0, notEOF
}

func main() {
	matched, err := regexp.MatchReader(".+", notEOFErrRuneReader{})
	fmt.Println(matched)
	fmt.Println(err)
}
```

### What did you expect to see?

I expected `regexp.MatchReader` to return a non-nil error because the underlying `RuneReader` had an error.

### What did you see instead?

`regexp.MatchReader` returned `false` (no match) and a nil error.

I also noticed the `*Regexp` methods that take a `RuneReader` do not return errors. I doubt much can be done about that other than potentially some documentation improvements.

I'm not sure if anything should be done about `regexp.MatchReader` but since the signature has an error it may be surprising that it only returns an error if the provided regular expression does not compile, not if the `RuneReader` has an error. If the behavior cannot be changed it might be good to have some documentation to let people know `regexp.MatchReader` may return false because all of the input was not available due to an error.

I was able to work around the issue by wrapping the rune reader and snooping on the results (https://play.golang.org/p/X-u5lkZ6hXw).
Repository: rust
Issue: Make `pub` in a binary equivalent to `pub(crate)` for diagnostics
Labels: A-lints,T-lang,C-feature-request

<sup>(copy-pasting from [IRLO](https://internals.rust-lang.org/t/should-pub-in-a-binary-be-equivalent-to-pub-crate/12821))</sup>

Consider the code snippet

```rust
pub fn foo() {
    // unused function!
}

fn main() {}
```

`cargo check` reports no errors or warnings. However, the same snippet using `pub(crate) fn foo()` gives a warning:

```text
warning: function is never used: `foo`
 --> src/main.rs:1:15
  |
1 | pub(crate) fn foo() {
  |               ^^^
  |
  = note: `#[warn(dead_code)]` on by default

warning: 1 warning emitted
```

Given that binaries can't be used in anything else (as far as I'm aware?), would it make sense to treat `pub` as equivalent to `pub(crate)` in binaries? I don't believe there is any difference in semantics, but it certainly makes a difference regarding warnings.

---

CC @estebank, who suggested I file an issue.
Repository: ant-design
Issue: Upload 分片上传
Labels: help wanted,Inactive

- [x] I have searched the [issues](https://github.com/ant-design/ant-design/issues) of this repository and believe that this is not a duplicate.

### What problem does this feature solve?
 请问Upload 有计划支持分片上传吗？现在上传文件要是太大了的话会超时，导致文件上传失败。

### What does the proposed API look like?
### 添加如下属性
##### ` chunked {boolean} [可选] [默认值：false] 是否要分片处理大文件上传。`
##### ` chunkSize {number} [可选] [默认值：5242880] 如果要分片，分多大一片？ 默认大小为5M.`
#####  ` chunkRetry {number} [可选] [默认值：2] 如果某个分片由于网络问题出错，自动重传次数`
##### ` threads {number} [可选] [默认值：3] 上传并发数。允许同时最大上传进程数。`
### 使用方式
```JavaScript
 <Upload chunked chunkSize={5242880}  chunkRetry={2} threads={3}>
    <Button>
      <UploadOutlined /> Click to Upload
    </Button>
  </Upload>
```


<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: vscode
Issue: Git - SSH error Permission denied in WSL2 + Remote Containers
Labels: bug,help wanted,git


Issue Type: <b>Bug</b>

When using a remote container within WSL2 that has ssh-agent (in this case using keychain) setup to cache credentials I can use git fine from my terminal.

However trying to use the Source Control tools with Git results in an error:
```> git pull --tags origin develop
git@my-redacted-host.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
```

There is plenty of advice/documentation prior to WSL2 but with this particular combination I can't find any documentation.


VS Code version: Code - Insiders 1.48.0-insider (15ada625f20086007e2c4aa0d760234360cd648f, 2020-07-30T14:43:12.691Z)
OS version: Windows_NT x64 10.0.19041
Remote OS version: Linux x64 4.19.104-microsoft-standard

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz (8 x 3408)|
|GPU Status|2d_canvas: enabled<br>flash_3d: enabled<br>flash_stage3d: enabled<br>flash_stage3d_baseline: enabled<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>oop_rasterization: disabled_off<br>opengl: enabled_on<br>protected_video_decode: unavailable_off<br>rasterization: enabled<br>skia_renderer: disabled_off_ok<br>video_decode: enabled<br>vulkan: disabled_off<br>webgl: enabled<br>webgl2: enabled|
|Load (avg)|undefined|
|Memory (System)|15.91GB (2.73GB free)|
|Process Argv||
|Screen Reader|no|
|VM|0%|

|Item|Value|
|---|---|
|Remote|Dev Container: vscode-dev-aws|
|OS|Linux x64 4.19.104-microsoft-standard|
|CPUs|Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz (8 x 3407)|
|Memory (System)|7.77GB (0.21GB free)|
|VM|0%|
</details><details><summary>Extensions (17)</summary>

Extension|Author (truncated)|Version
---|---|---
remote-containers|ms-|0.128.0
remote-ssh-edit-nightly|ms-|2020.7.38340
remote-ssh-explorer-nightly|ms-|2019.8.31680
remote-ssh-nightly|ms-|2020.7.38340
remote-wsl|ms-|0.44.4
aws-toolkit-vscode|ama|1.12.0
vscode-markdownlint|Dav|0.36.2
gitlens|eam|10.2.2
gitlab-workflow|Git|3.1.0
aws-cli-configure|mar|0.3.0
vsliveshare|ms-|1.0.2478
vsliveshare-audio|ms-|0.1.85
vsliveshare-pack|ms-|0.4.0
resourcemonitor|mut|1.0.7
trailing-spaces|sha|0.3.1
gitflow|vec|1.2.1
markdown-all-in-one|yzh|3.2.0


</details>
<!-- generated by issue reporter -->
Repository: go
Issue: net/http: the http.ServeTLS() docstring shouldn't ask for the root CA certificate
Labels: Documentation,NeedsInvestigation

Both `http.ServeTLS()` and `http.ListenAndServeTLS()` currently have the following [docstring](https://github.com/golang/go/blob/master/src/net/http/server.go#L2501) regarding the `certFile` argument:

_"If the certificate is signed by a certificate authority, the certFile should be the concatenation of the server's certificate, any intermediates, and the CA's certificate."_

I would like to suggest to change the sentence above into this:

_"If the certificate is signed by a certificate authority (CA), the certFile should be the concatenation of the server's certificate and all intermediate CA certificates (if there are any). However, do not add the root CA certificate to the certFile because trust can't be introduced server-side. TLS clients will provide the root CA certificate from their root CA trust store. A TLS connection will be secure and successful if the set of certificates both from the TLS server and the TLS client forms a valid certificate chain."_

IMHO more verbose language is helpful as X.509 certificates are a rather complicated topic.

@FiloSottile
Repository: godot
Issue: Editor freeze when running scene during reimport
Labels: bug,topic:editor,topic:import

**Godot version:**
3.2.3.rc.custom_build. fe4aa393f


**OS/device including version:**
Ubuntu 20.04


**Issue description:**
When running scene multiple times, then sometimes editor completelly freeze.

**Steps to reproduce:**
1. Run scene over and over again
![jfile](https://user-images.githubusercontent.com/41945903/89016462-11882680-d319-11ea-95b7-396268790663.gif)


**Minimal reproduction project:**
[qq.zip](https://github.com/godotengine/godot/files/5005944/qq.zip)
Repository: godot
Issue: Polygon2D doesn't render when there are crossed lines
Labels: topic:rendering

<!-- Please search existing issues for potential duplicates before filing yours:
https://github.com/godotengine/godot/issues?q=is%3Aissue
-->

**Godot version:** 3.2.2 (Steam)
<!-- Specify commit hash if using non-official build. -->


**OS/device including version:** Ubuntu 20.04, Intel HD 3000, GLES2
<!-- Specify GPU model, drivers, and the backend (GLES2, GLES3, Vulkan) if graphics-related. -->


**Issue description:** I was doing a project where a player draws shapes as some sort of platforms, and I tried to make a shape that has crossed lines, and it silently fails to render. Some of the shapes do draw though, but I don't really know how to categorize that.
<!-- What happened, and what was expected. -->


**Steps to reproduce:**
1. Create a Polygon2D object
2. Make a shape which contains crossed lines


Here is the video demonstration (in the game, it draws Line2D's first, then when a shape is finished, it replaces with Polygon2D): 
https://drive.google.com/file/d/1G5EqbVSwqZp6JxG7KvOMvfNVOelYnbht/view?usp=sharing