sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: go
Issue: x/playground: very large output is sometimes corrupted
Labels: NeedsInvestigation

Today and yesterday, I've observed instances where a playground execution seems to be successful (there's no error), but the output is truncated rather than complete.

Filing this issue for tracking purposes, will fill in more information later.

**Edit:** A workaround that is available is to modify the program (e.g., add whitespace) and re-run it until it works.

/cc @toothrot @bradfitz
Repository: terminal
Issue: ColorTool: Add ps1xml as an accepted extension
Labels: Product-Colortool,Help Wanted,Issue-Task,Needs-Tag-Fix

<!-- 
🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨

I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING:
1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement.
2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement.
3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number).
4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement.
5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement.

All good? Then proceed!
-->

# Description of the new feature/enhancement
If you are using Windows Powershell, you'll discover that Windows Terminal changes it's default color scheme. However you are unable to change it back. This is due to a custom scheme extension which you can view in PowerShell ISE under Tools - Options. You can export the built-in themes but ColorTool won't allow you to use them. Per ColorTool doc, only json, .itermcolors, and ini file extensions are accepted. So add the option to read those files in, this may require cooperation with the PowerShell team. Ideally we'd be able to convert the color schemes to json so we can read them into Windows Terminal (ideally these should be added to defaults.json once we can export to json).


# A clear and concise description of what the problem is that the new feature would solve.

Lets you continue to use the Windows PowerShell color themes if you enjoy using them.

# Proposed technical implementation details (optional)


# A clear and concise description of what you want to happen.

I want my Windows Powershell profile in WT to keep the same color scheme it originally had and/or change it to one of the other defaults listed in ISE.
Repository: godot
Issue: Deleting freed object from scene causes game crash
Labels: bug,topic:editor

**Godot version:**
92d4a0c

**Steps to reproduce:**
1. Enable "Sync Scene Changes"
2. Make some object that gets deleted, e.g. Timer self-destructing with timeout connected to free
3. Run the game and wait for the object to be deleted
4. Remove it in the local tree in the editor
5. Return to game
6. It freezes and then proceeds to crash
Repository: TypeScript
Issue: Function name not preserved when exported on definition
Labels: Bug

**TypeScript Version:**  4.0.0-dev.20200429

**Search Terms:**
function name
shorthand function name missing
exported function missing name

**Code**

```bash
cat > test.ts <<"EOF"
var test1 = () => {};
export var test2 = () => {};
console.log(`name for test1 = "${test1.name}"`);
console.log(`name for test2 = "${test2.name}"`);
EOF

npx -p typescript@next tsc test.ts --module umd

node test.js
```

**Expected output:** (And also the output from node@latest running the .ts file with .mjs extension)
> name for test1 = "test1"
> name for test2 = "test2"

**Actual output:**
> name for test1 = "test1"
> name for test2 = ""

Also the compiler complains about `.name` property. Isn't the .name property supported at all on shorthand functions?
> test.ts:3:40 - error TS2339: Property 'name' does not exist on type '() => void'.

**Playground Link:**
Couldn't get the [Playground Link](https://www.typescriptlang.org/play/?target=2&module=3#code/G4QwTgBALgpgzlAjBAvBAFASlQPggbwF8BuAKBgA8AHAezCglElgQCZUNsU8iyBjGgDs4NADYwAdKJoBzdAANBIALYwIAMzrR4SDgCIAJPhZIJS1YT3zM-ISPFTZC82s3Md7NIeMezKmJbWxEA) with an `export` to run in the browser.. :/

**Related Issues:** #5611 seems similar, but this case is simpler and should be able to be solved I believe.

Generated code seems to be something like:
```js
// ...
var test1 = function () { };
exports.test2 = function () { };
// ...
```
Should probably be either
```js
var test1 = function () { };
var test2 = function () { };
exports.test2 = test2
```
Or
```js
var test1 = function () { };
exports.test2 = function test2() { };
```
Repository: pytorch
Issue: Improve visibility in test suite timings
Labels: module: ci,module: tests,triaged,better-engineering

We now have enough tests that it is quite hard to maintain them and CI takes a significant amount of time.
A framework to get a better understanding of the runtime of the tests could be very useful to prioritize refactoring and cleaning of tests to speed things up.

Key features:
- Individual tests timing (using setUp/tearDown for example)
- Aggregate results across all the CI-configs
- Allow simple queries like slowest tests for a given config. Or slowest test overall. Or slowest aggregated runtime for a test across all configs.
- Optional: nice visualization of the evolution with time (if variance is small enough)

cc @ezyang @seemethere
Repository: excalidraw
Issue: Text gets blurred after text editing looses focus
Labels: bug

### How to reproduce
1. start with fresh canvas
2. enable the text tool, choose the “code” font
3. click in the empty space to insert text
4. type "hallo"
5. click somewhere else to end the text entering/loose focus from the text object

### What happens
The text gets a bit blurry.

### What should happen
The text should stay sharp

### Environment
Ubuntu 19.10, Firefox 75.0

After step 4 | After step 5
------------ | -------------
![Screenshot from 2020-04-29 20-43-12](https://user-images.githubusercontent.com/138279/80634661-165be680-8a5b-11ea-9e3c-90af1773719a.png) | ![Screenshot from 2020-04-29 20-43-23](https://user-images.githubusercontent.com/138279/80634657-152ab980-8a5b-11ea-9d1f-04b490d1749c.png)
Repository: go
Issue: x/build: add a Windows builder with clang
Labels: OS-Windows,Builders,NeedsInvestigation,new-builder

In theory, we should be able to use either GCC or Clang on all platforms where cgo is supported. Currently, none of the Windows builders use Clang. It would be good to verify cgo works in that configuration.
Repository: rust
Issue: `TryFrom` for now-incompatible type falls back to `From` error message
Labels: C-enhancement,A-diagnostics,T-compiler,A-suggestion-diagnostics,D-confusing,D-newcomer-roadblock,D-crate-version-mismatch

I am working on a library which at some point converts a `mysql_common::value::Value` to a type `DataType` via `DataType::try_from(<value>)`. I am using an `impl TryFrom<mysql_common::value::Value> for DataType` defined in a separate crate, which worked well initially. However, this other crate has since then bumped up the dependencies, such that my project was now using a version of `Value` incompatible to the one used by the other crate. 

The compiler complained (see error message) that "the trait `std::convert::From<mysql_common::value::Value>` is not implemented for `DataType`", and that the conversion was infallible. I think it would have been clearer and easier to debug had the compiler error message rather said that `TryFrom` was implemented for a type by the same name but incompatible (different version), rather than fall back on a blanket implementation error message which was deceptive in this case.

### Error message
```
error[E0277]: the trait bound `noria::data::DataType: std::convert::From<mysql_common::value::Value>` is not satisfied
   --> src/lib.rs:283:19
    |
283 |             match DataType::try_from(value) {
    |                   ^^^^^^^^^^^^^^^^^^ the trait `std::convert::From<mysql_common::value::Value>` is not implemented for `noria::data::DataType`
    |
    = help: the following implementations were found:
              <noria::data::DataType as std::convert::From<&'a nom_sql::common::Literal>>
              <noria::data::DataType as std::convert::From<&'a noria::data::DataType>>
              <noria::data::DataType as std::convert::From<&'a str>>
              <noria::data::DataType as std::convert::From<chrono::naive::datetime::NaiveDateTime>>
            and 11 others
    = note: required because of the requirements on the impl of `std::convert::Into<noria::data::DataType>` for `mysql_common::value::Value`
    = note: required because of the requirements on the impl of `std::convert::TryFrom<mysql_common::value::Value>` for `noria::data::DataType`

error[E0308]: mismatched types
   --> src/lib.rs:285:77
    |
285 |                 Err(e) => return Err(WriteProxyErr::MysqlToNoriaDatatypeErr(e)),
    |                                                                             ^ expected `&str`, found enum `std::convert::Infallible`
```

### Meta


rustc 1.44.0-nightly (94d346360 2020-04-09)
binary: rustc
commit-hash: 94d346360da50f159e0dc777dc9bc3c5b6b51a00
commit-date: 2020-04-09
host: x86_64-unknown-linux-gnu
release: 1.44.0-nightly
LLVM version: 9.0
Repository: TypeScript
Issue: Support declaring @types as the supported route for typings dependencies in the package.json
Labels: Suggestion,Needs Proposal,In Discussion

## Search Terms

package json types field types types module

## Suggestion

Allow libraries written in JavaScript to be able to declare that they have types in DT (or other modules), and that they support a certain version of it.

### For example: 

Express does not support TypeScript but trusts that the DefinitelyTyped express maintainers know what they are doing generally. They want to declare that DT is the way for TypeScript users to get types out of the box. Today that's not really possible. 

## Examples

Two potential routes:

1. Override the "types" parameter to support: `"types": "@types/express:^3.0"` in a package.json

1. Recommend a new field in the package.json: `"typesModule":  "@types/express:^3.0"` - then when TypeScript normally offers a 'no types found', then it can offer the command to install with the correct semver range. 

## 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).

/cc @wesleytodd @isaacs @ljharb
Repository: TypeScript
Issue: Declaration file generation not working as expected
Labels: Needs Investigation

**TypeScript Version:**  4.0.0-dev.20200429 (when trying with `@next`)
**TypeScript Version:**  3.8.0.0-dev.20200429 (when using my version `^3.8.0`)

**Search Terms:** module resolution, lerna, monorepo, import type, declaration file

**Code**
Repository https://github.com/Volox/tsc-declaration-issue

To bootstrap and run:
```
npx lerna bootstrap
npx lerna run compile
```

**Expected behavior:** The declaration files generated are only related to the package.

**Actual behavior:** The declaration files are generated correctly only for `lib1` and `lib2` have the full tree of declaration files of both packages.
![Screenshot 2020-04-29 at 15 43 25](https://user-images.githubusercontent.com/1468697/80637776-d51a0580-8a5f-11ea-90f5-42973c9b0b7b.png)


**Related Issues:** None that I was able to find

**Notes:**
The generation of declaration files is done correctly if I remove the "paths" property from `tsconfig.base.json` but I receive compilation errors like:

```
src/index.ts(1,19): error TS2307: Cannot find module 'lib1'.
src/index.ts(3,24): error TS2307: Cannot find module 'lib1/foo/bar'.
```
Repository: flutter
Issue: Don’t warn about running as root within systemd container
Labels: c: new feature,tool,a: quality,P3,team-tool,triaged-tool

<!-- Thank you for using Flutter!

     Please check out our documentation first:
      * https://flutter.dev/
      * https://api.flutter.dev/

     If you can't find the answer there, please consider asking a question on
     the Stack Overflow Web site:
      * https://stackoverflow.com/questions/tagged/flutter?sort=frequent

     Please don't file a GitHub issue for support requests. GitHub issues are
     for tracking defects in the product. If you file a bug asking for help, we
     will consider this a request for a documentation update.

-->
The warning about running as root isn't shown when inside a docker container: https://github.com/flutter/flutter/pull/10535. Can we do the same for a systemd container? I frequently run flutter inside systemd containers and would like to silence this warning.

Possible fix:
```
# Test if running as superuser – but don't warn if running within Docker or systemd container
if [[ "$EUID" == "0" ]] && ! [[ -f /.dockerenv ]] && [ -z "$container" ]; then
  echo "   Woah! You appear to be trying to run flutter as root."
  echo "   We strongly recommend running the flutter tool without superuser privileges."
  echo "  /"
```

_Detecting if inside a systemd container:_ https://github.com/systemd/systemd/blob/f20078df0b568cf365eea8278e98170e59ce2b2d/src/basic/virt.c#L500
Repository: opencv
Issue: CMake: make public version of BUILD_LIST feature
Labels: feature,category: documentation,category: build/install

Problem:
- current name is not conflict free. For example `OPENCV_` or `CV_` prefix is preferable.
- ambiguous purpose: it is about modules only (for example, it is not about 3rdparty build dependencies). `MODULES` suffix can clarify such purpose.

Acceptance criteria:
- add new name
- add information into build-related tutorials

relates #9893
relates #10841
relates https://github.com/opencv/opencv_contrib/pull/2417
Repository: TypeScript
Issue: Rename refactoring doesn't handle changing a member to a non-Identifier
Labels: Bug,Needs Proposal

**TypeScript Version:**  3.8.3
**Search Terms:** refactor rename space identifier
**Code**

```ts
interface Foo {
  x: number;
}
var obj: Foo = {
  x: 1,
};
obj.x = 2;
```

Rename the `x` member of `Foo` to ` x` (prefixed with space).

**Expected behavior:**
```ts
interface Foo {
  " x": number;
}
var obj: Foo = {
  " x": 1,
};
obj[" x"] = 2;
```

**Actual behavior:**
```ts
interface Foo {
   x: number;
}
var obj: Foo = {
   x: 1,
};
obj. x = 2;
```

My use case was I decided to hide some members from intellisense using this trick, but the same thing applies if you want to rename to anything that's not a valid identifier (e.g. things with spaces or invalid identifier characters).
Repository: pytorch
Issue: Implement generic function scheduler in c10/util
Labels: triaged,module: rpc

## 🚀 Feature

It would be useful to have a general utility in PyTorch that allows functions to be run periodically at a given time interval. This would be similar to folly's functionScheduler (https://github.com/facebook/folly/blob/master/folly/experimental/FunctionScheduler.cpp). This will be useful in a few different cases for RPC, such as eliminating several background watchdog threads that we currently have in favor of using this function scheduler. 

We also plan on having a metrics handler for RPC that reports metrics at a predefined interval, for which this would also be useful for (see https://github.com/pytorch/pytorch/issues/28245)


cc @pietern @mrshenli @pritamdamania87 @zhaojuanmao @satgera @gqchen @aazzolini @rohan-varma @xush6528 @jjlilley @osalpekar
Repository: vscode
Issue: Tasks (and TaskExecutions) are not === in the onDid(Start|End)Task callbacks.
Labels: bug,tasks

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- 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.44.2
- OS Version: macOS 10.5.4

Steps to Reproduce:

1. Create a new extension using `yo code`.
2. Add the following to the 'activate' function body:

```
	let disposable = vscode.commands.registerCommand('extension.helloWorld', async () => {
		let echoTask = new vscode.Task({type: "taskbug"}, vscode.TaskScope.Workspace, 'echo', 'taskbug', new vscode.ProcessExecution('/bin/echo', ['hello world']));

		const echoTaskExecution = await vscode.tasks.executeTask(echoTask);

		vscode.tasks.onDidStartTaskProcess(e => {
			if (e.execution === echoTaskExecution) {
				console.log(`Detected that my task started with pid ${e.processId}`);
			} else if (e.execution.task === echoTask) {
				console.log(`Detected that my task started with pid ${e.processId}`);
			}
		});

		vscode.tasks.onDidEndTaskProcess(e => {
			if (e.execution === echoTaskExecution) {
				console.log(`Detected that my task exited with exit code ${e.exitCode}`);
			} else if (e.execution.task === echoTask) {
				console.log(`Detected that my task exited with exit code ${e.exitCode}`);
			}
		});
	});
```
3. Run debug the extension and run the 'Hello World' command.

If you break inside the onDidStartTaskProcess and onDidEndTaskProcess that comparison fail, which means its difficult to determine when the task starts or ends.

It's worth noting that in VSCode 1.43 the above comparisons both work, but in 1.44 this is not working.

<!-- Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: Yes
Repository: PowerToys
Issue: Dynamically show Preview Pane when there's a preview available
Labels: Idea-Enhancement,Product-File Explorer

# Dynamically show Preview Pane when there's a preview available

I'm not sure if this is even possible to do at an application level, might require Windows feature update. But effectively, I do want previews for MD/SVGs like this PowerToy does, but I don't want an empty "Preview Pane" taking up space the entire time, and I certainly don't want it to be showing "No preview available" that's such a waste of space and just genuinely annoying, that I turn preview panes off as a whole. Making the MD/SVG previews useless :( 

# Proposed implementation details

- Configured via a setting flag
- When selecting a file, check to see if a valid previewer exists, if it does enable the preview pane
- Disable it when clicking off the item

Might be possible to do this with some registry magic, but that seems a bit hacky... I haven't looked into the Windows APIs to see if there's a better way of handling this
Repository: bitcoin
Issue: Add new getrpcwhitelist call
Labels: RPC/REST/ZMQ

For an RPC user it would be nice to be able to discover its whitelist (#12248). A new RPC `getrpcwhitelist` should be added for that.

#### Useful skills:

Basic understanding of the Bitcoin Core RPC interface, RPC whitelists and our functional test framework

#### Want to work on this issue?

The purpose of the `good first issue` label is to highlight which issues are suitable for a new contributor without a deep understanding of the codebase.

You do not need to request permission to start working on this. You are encouraged to comment on the issue if you are planning to work on it. This will help other contributors monitor which issues are actively being addressed and is also an effective way to request assistance if and when you need it.

For guidance on contributing, please read [CONTRIBUTING.md](https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md) before opening your pull request.
Repository: pytorch
Issue: Are there any differences in kernel memory between RX2080's and Quadro RTX4000?  
Labels: module: cuda,module: memory usage,triaged

 🐛 Bug
 My libtroch DL-learning code operated correctly in Geforce RTX2080 ,but my code did not opearate
in Quadro RTX4000.
 Both Geforce RTX2080 and Quadro RTX4000 have 8GB GDDR memory.
 But it seemed that Memory  capacity was sufficient at Quadro RTX4000.
I added the function "torch.cuda.empty.cache()" after 1 iteration  at Quadro RTX4000, and my code operated correctly,but the Time of 1 iteration was increased.
RTX2080 needed not the additoon of  "torch.cuda.empty.cache()".

 Both RTX2080 and Quadro RTX4000 have 8GB GDDR ;
 Why did only Quadro RTX4000 needs  "torch.cuda.empty.cache()" after 1 iteration?

(1)Are there any differences in kernel memory between RX2080 and Quadro RTX4000? 
 
(2)What does the "torch.cuda.empty.cache()" do ?
　・ Does it release all memory areas which were allocated by cudaMalloc( )? 
　・Does it release L1 cache in SM in GPU kernel ?

[Enviromnet]
 I made the Deep learning code to detect the defects of mechanical parts.
I used the libtorch Version 1.3.1.
OS : Windows10 Pro 64bit build 1909
Compiler : Visual Studio 2017 profesional.
CUDA10.1
cuDNN 7.6.5 for CUDA10.1
GPU : RTX2080 (ZOTAC) and Quadro RTX4000(Nvidia) .
I installed only 1 GPU at PCI-E GEN3.0 x16 slots.

I'd really appreciate it if anyone give me the good advice .

Regards,




cc @ngimel
Repository: material-ui
Issue: [Autocomplete] New API to control the highlighted option
Labels: new feature,component: autocomplete

- [x] I have searched the [issues](https://github.com/mui-org/material-ui/issues) of this repository and believe that this is not a duplicate.

## Summary 💡

Typing into the auto-complete and pressing enter should select something, such as the suggested option. The suggested option to select should be highlighted.

## Examples 🌈
For example type in `Good` into the [playground](https://material-ui.com/components/autocomplete/#playground) and press enter, nothing gets selected. 

 Lets say I have a text matching score when searching for `Good` as following:
 `The Good, the Bad and the Ugly` = 0.3
  `Goodfellas` = 0.8

I would want Goodfellas to be highlighted and selected when enter is pressed. 

## Motivation 🔦
The current auto-complete logic makes suggesting an option difficult. 

Passing in a highlightedValue/suggestedValue would make the above possible. Set the first value in the list to be highlighted if one is not provided.
Repository: flutter
Issue: `window.locale` is `null` on Android unless the locale is sent via the channel
Labels: platform-android,engine,P2,team-android,triaged-android

This came across after https://github.com/flutter/engine/pull/17473 was merged.  Can `window.locale` be `null` on Android?  If yes, what is the recommended practice on Android? 

I presume if a 3P dependency is consuming `window.locale`, then this would be unexpected in an add-to-app scenario, for example.

cc @xster, @GaryQian