sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: angular
Issue: Deprecate `SafeStyle` and `DomSanitizer.bypassSecurityTrustStyle`
Labels: refactoring,security,area: core,area: security,core: styling bindings,P3

_(copied from internal tracker)_

The `SafeStyle` type is returned from the `DomSanitizer.bypassSecurityTrustStyle` method. Both of these APIs are apart of style sanitization in Angular. With the style sanitization refactor work, there will no longer be any need for these APIs in the framework, therefore, both the `SafeStyle` and `DomSanitizer.bypassSecurityTrustStyle` APIs will need to be deprecated.

The following steps need to be completed:
* Deprecate `SafeStyle` in the API docs (`@deprecated`)
* Deprecate `DomSanitizer.bypassSecurityTrustStyle` in the API docs (`@deprecated`)
* Emit a warning message when `DomSanitizer.bypassSecurityTrustStyle` is used
* Add entries to deprecation guide

Related design doc: https://hackmd.io/_sF2TzXLSiuuYbY88MpdQA?view
Repository: electron
Issue: [Feature Request]: Linux/PulseAudio - Allow changing the PRODUCT_STRING of the embedded Chromium
Labels: enhancement :sparkles:,platform/linux

**Preflight Checklist**

* [x] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/master/CONTRIBUTING.md) for this project.
* [x] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md) that this project adheres to.
* [x] I have searched the issue tracker for a feature request that matches the one I want to file, without success.


**Problem Description**

Running multiple Electron applications yields multiple `Chromium: Playback` entries in PulseAudio.

As a user having the requirement to have certain audio source mapped to specific sinks this causes an issue for me: I cannot determine which of those is my browser and which belongs to which Electron application.

Therefore I cannot move a specific audio stream to the target sink. And if I can figure out which one to move PulseAudio remembers "Chromium" to be moved to that sink.

**Proposed Solution**

Chromium contains a constant which is set only once and is used for PulseAudio identifier. If this constant would be set to the application name the applications could be distinguished easily and the assignment to a specific sink should work properly.

Code to be patched:
https://github.com/chromium/chromium/blob/99314be8152e688bafbbf9a615536bdbb289ea87/media/audio/pulse/pulse_util.cc#L39-L42

**Alternatives Considered**

Compiling an own release of Electron every time I need an app built but that would be a massive overkill. Having a dynamic way to use the AppName would be a way better solution…

**Additional Information**

_No response_
Repository: godot
Issue: AnimatedSprite speed_scale causes animation end signal to be called repeatedly
Labels: bug,topic:core,needs testing

**Godot version:**
3.2.3


**OS/device including version:**
Linux


**Issue description:**
If you create a non-looping Animated Sprite, attached an animation finished signal then call set_scale in _physics_process(), after the animation has finished playing, the signal is repeatedly called every frame.

This is the description, I would not expect setting the speed_scale to reset the frame back to 0 and tell the animated sprite to play again, or reset some internal playing flag. All it should be doing is changing the internal multiplier value and if there are no more frames to play, it should have no effect.

That's how I read it anyway. If not, please close this case but perhaps something in the docs should be updated to reflect that this (and any other) property changes may reset a non-looping animation playing...

```
float speed_scale [default: 1.0]
set_speed_scale(value) setter
get_speed_scale() getter

The animation speed is multiplied by this value.
```

**Steps to reproduce:**
See my attached project in comment below.

1. Create animated sprite inside a Node2D, non-looping
2. Add an on finished signal and put a breakpoint
3. As below:
4. func _physics_process(delta: float) -> void:
	$AnimatedSprite.set_speed_scale(1.0)

5. Run and observe your event being called continuously.
Repository: TypeScript
Issue: Support for auto implement of abstract methods 
Labels: Bug,Domain: Refactorings

*TS Template added by @mjbvz*

**TypeScript Version**: 4.2.0-dev.20210201

**Search Terms**
- implement
- preact
- abstract class

See https://github.com/microsoft/TypeScript/issues/42594#issuecomment-770623589 for steps to reproduce 

---

If you hit CTRL+. on a class implementing an interface, you have support for auto implement methods. But, if you do it in a class extending an abstract class with an abstract method, you get the inspection missing the implementation, but not the option to auto implement it like with an interface.

Example, extending the `Component` class from preact: https://github.com/preactjs/preact/blob/10.5.7/src/index.d.ts#L172

![image](https://user-images.githubusercontent.com/13201214/106273515-1a5ba580-6233-11eb-9ebf-95c51da7563a.png)

Visual Studio Code version 1.52.1
Repository: TypeScript
Issue: Allow "catch (e as Error)" instead of "catch (e: unknown)"
Labels: Suggestion,Awaiting More Feedback

# Suggestion

TypeScript 3.x forbids type annotations in `catch` blocks:
```ts
try {
  // ...
} catch (e: Error) { // <-- TS1996 "Catch clause variable cannot have a type annotation"
  // ...
}
```

But TypeScript 4.x relaxed this rule to accept `any` or `unknown` only:
```ts
try {
  // ...
} catch (e: Error) { // <-- TS1996 "Catch clause variable type annotation must be 'any' or 'unknown' if specified"
  // ...
}
```
⭐ **Suggestion:**  Could we relax the rule to allow `Error` as well?  

Such a declaration would not accurately describe pathological JavaScript code.  

But here's why it makes sense anyway:
1. In a professional code base, thrown objects always implement the `Error` interface.  We have lint rules that enforce this.  And external packages generally follow this rule as well, at least the kind we'd use for professional work.
2. It's wasteful for every single `catch` block to perform paranoid runtime tests for `instanceof Error`.
3. The TypeScript compiler [doesn't even support](https://github.com/microsoft/TypeScript/issues/42389) `instanceof Error`  for transpiled code.
4. Relaxing this rule won't cause any trouble; if some people really prefer `unknown` they can enable it via a lint rule like [no-implicit-any-catch](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-implicit-any-catch.md) without any involvement from the compiler.

### Alternate syntax

In the thread below, @MickeyPhoenix suggested to use `as` instead of `:` to clarify that technically this is a type cast, while still keeping the syntax concise and intuitive:
```ts
try {
  // ...
} catch (e as Error) {
  // ...
}
```

## 🔍 Search Terms

`catch` `instanceof`  `TS1996` `1996`

## ✅ Viability 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, new syntax sugar for JS, etc.)
* [x] This feature would agree with the rest of [TypeScript's Design Goals](https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals).
Repository: TypeScript
Issue: Differential `typeToString` / smarter error truncation
Labels: Domain: Error Messages,Domain: Type Display,Experience Enhancement,Experimentation Needed

Lots of the time, error truncation will kick in at the most inopportune time, and lose relevant properties that will be subsequently elaborated on. @RyanCavanaugh has been thinking about a smarter version of this where we can inform our string writers to be a little smarter and not throw away the relevant members of a union, or properties of an object.

But there are some areas that we need to kind of think through and be wary of.

1. **don't repeat yourself**: if you end up repeating a constituent of a union on the next line, then was it the best thing to focus on that part of the union on the prior line? You might avoid surprising a user ("where'd that type come from!?") but you're potentially not gaining anything. This leads us to
2. **don't lose the right information**: error messages don't always go down the most-appropriate path. If we try to over-focus on the types that the error decided to elaborate on, we shouldn't lose relevant information from other possible types.
Repository: pytorch
Issue: Python-3.9: Importing numba and torch triggers internal error
Labels: module: build,triaged

## To Reproduce

Steps to reproduce the behavior:

1. Instal python-3.9 from conda-forge
2. Build torch
3. Install numba
4. Run `python -c "import torch;import numba"`

Above fails with:
```
python: /tmp/llvm/include/llvm/Support/CommandLine.h:813: void llvm::cl::parser<DataType>::addLiteralOption(llvm::StringRef, const DT&, llvm::StringRef) [with DT = llvm::FunctionPass* (*)(); DataType = llvm::FunctionPass* (*)()]: Assertion `findOption(Name) == Values.size() && "Option already exists!"' failed.
```


cc @malfet @seemethere @walterddr
Repository: go
Issue: cmd/compile, types2: consider increasing the internal precision limit for integer values
Labels: NeedsDecision,compiler/runtime

The compiler restricts untyped integer constants to a maximum of 512 bits (implementation restriction). It also has a (separate) and higher limit on shift counts for constant shifts. The shift limit is currently set to
```Go
const shiftBound = 1023 - 1 + 52
```
which permits the expression
```Go
smallestFloat64 = 1.0 / (1<<(1023 - 1 + 52))
```
However, while the shift count check succeeds, the shift result overflows as the integer value `1<<(1023 - 1 + 52)` (before conversion to the untyped float) exceeds 512 bits.

Consider increasing the bit limit for untyped integer constants to 1100 (or the like). Then we can express these constants
```Go
smallestFloat64 = 1.0 / (1<<(1023 - 1 + 52))
maxFloat64 = 1<<1023 * (1<<53 - 1) / (1.0<<52)
```
exactly (as in rational numbers used by `go/constant`).

The change should be trivial but it will likely affect tests that expect an error at lower bounds.

If the change is made, it should be made in the compiler (`typecheck/constant/go`) and `types2` (`expr.go`).

cc: @mdempsky
Repository: godot
Issue: GDScript assigns null to a variable that's assigned to another variable when the second variable's definition comes after it.
Labels: enhancement,topic:gdscript

<!-- Please search existing issues for potential duplicates before filing yours:
https://github.com/godotengine/godot/issues?q=is%3Aissue
-->

**Godot version:** Godot Engine v3.2.2.stable.official
<!-- Specify commit hash if using non-official build. -->


**OS/device including version:** Windows 10
<!-- Specify GPU model, drivers, and the backend (GLES2, GLES3, Vulkan) if graphics-related. -->

**Issue description:**

```
extends Node

var x = y
var y = 0

func _ready():
    print(x)
```
This code outputs 'Null'.

Presumably, this occurs because we assign all declared variables as 'Null', then parse their assignments -- leading to x being assigned to y (which is still Null). This is probably done so we can assign x to the output of a function we haven't defined, yet.

There's obvious utility to assigning x to the output of a function we've yet to define, but I can't see any utility to assigning x to a VARIABLE we've yet to assign.

Ideally, I'd expect us to either wait to assign x until we have y, or (preferably -- since it's much less confusing) raise an error when you assign a variable to the value of another variable that's yet to be assigned.

<!-- What happened, and what was expected. -->
Repository: ant-design
Issue: Table组件开启rowSelection后在IE浏览器下下拉按钮与选框重叠
Labels: 🐛 Bug,Internet Explorer,Inactive,IE | Firefox | Safari

- [ ] I have searched the [issues](https://github.com/ant-design/ant-design/issues) of this repository and believe that this is not a duplicate.

### Reproduction link
[https://ant.design/components/table-cn/#components-table-demo-row-selection-custom](https://ant.design/components/table-cn/#components-table-demo-row-selection-custom)

### Steps to reproduce
官网用例在IE浏览器下打开即可查看效果
https://ant.design/components/table-cn/#components-table-demo-row-selection-custom
排查发现 padding-inline-start、margin-inline-start这两个属性不支持IE

### What is expected?
选框与下拉按钮不重叠

### What is actually happening?
选框与下拉按钮重叠

| Environment | Info |
|---|---|
| antd | 4.11.2 |
| React | react 16.14.2 |
| System | windows 10 |
| Browser | IE 11 |


<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: rust
Issue: Inconsistent move behavior in closure with async block
Labels: A-closures,C-bug,A-async-await,AsyncAwait-Triaged

<!--
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.
-->

This closure fails to compile:

```rust
|val: i32| async {
    dbg!(val)
};

error[E0373]: async block may outlive the current function, but it borrows `val`, which is owned by the current function
```

I'd expect that this would compile - `val` should be moved into the async closure.

This is inconsistent with the following cases where it compiles ([playground link](https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=975074b278d22f17c216f2ad5e88f0b5)):
- If you change the type of `val` to a `!Copy` type (such as `String`)
- If you get rid of the `async` keyword
- If you don't use a closure and just have an async block capture a Copy variable


This has a serious drawback in that it forces you to use `async move` even when you can't move everything into the async block.

### Workaround
This is super unergonomic, but as a workaround you can surround the copy type with a `NonCopy` newtype.
```
struct NonCopy(i32);
|val: NonCopy| async {
    dbg!{val.0}
};
```

### Meta
This happens on Stable, Nightly, and Beta

`rustc --version --verbose`:
```
rustc 1.50.0-nightly (1c389ffef 2020-11-24)
binary: rustc
commit-hash: 1c389ffeff814726dec325f0f2b0c99107df2673
commit-date: 2020-11-24
host: x86_64-apple-darwin
release: 1.50.0-nightly

```

<!--
Include a backtrace in the code block by setting `RUST_BACKTRACE=1` in your
environment. E.g. `RUST_BACKTRACE=1 cargo build`.
-->
Repository: pytorch
Issue: Why isn't there a pip-installable PyTorch for Raspberry Pi?
Labels: module: binaries,feature,triaged,module: arm

## 🚀 Feature
Typing into the command line "pip install torch" would make a full installation of PyTorch on a Raspberry Pi 4B

## Motivation

Many, many developers come into the software development world through Arduino and Raspberry Pi.  It would be helpful for these newbies to gain hands-on experience with PyTorch from the start, so they don't have to experience the frustration of using unreliable and difficult programs like Tensorflow.  Also, hobbyists and inventors who use the Raspberry Pi would appreciate the increased reliability and performance from being able to use PyTorch on the Pi for tinkering and for prototyping computer vision systems.  I cannot emphasize enough how important this is.  I want to be able to use computer vision models that only exist on PyTorch, such as Yolo v5 and DensePose.  The whole world is transitioning to PyTorch from Tensorflow, and the 25 million+ Pi users would appreciate being included in that transition.  Please consider making this software, and let me know if you need any help with it.
Thank you,
Tyler Suard

cc @ezyang @seemethere @malfet @walterddr
Repository: PowerToys
Issue: LDPlayer Cant use FancyZones
Labels: Area-App Compat,Planning-Consideration

Hello , i really love the powertoys 

But when i use LDplayer for FancyZones , the zone is not appear and didnt resize or anything at all..
I already try with shift key and use non primary mouse button to activation but still didnt work..

and it works on other application like google chrome and other windows apps..

Please help and thank you
Repository: PowerToys
Issue: [FZ Editor] Show both native and scaled monitor dimensions
Labels: Idea-Enhancement,FancyZones-Editor,Product-FancyZones,Area-User Interface

The monitor tooltip shows the scaled dimensions:

![image](https://user-images.githubusercontent.com/3206696/106571259-3911b300-6537-11eb-9374-a594869b31ae.png)

Let's add the native resolution as well using labels to explain the values:

 - Native 1920x1080
 - Scaled 1280x720
Repository: TypeScript
Issue: typescript intellisense can't find second level index.ts
Labels: Needs Investigation

# Bug Report

it's reopening of #42247 as tested what was suggested and didn't work, opening it as I didn't get any more comment on that issue 

https://github.com/microsoft/TypeScript/issues/42247#issuecomment-758863988

> Auto-import assumes that an index.d.ts that re-exports a bunch of stuff is a "barrel" module that intends to provide a facade over an opaque directory hierarchy. So in that case, if you want the deeper path, you'd need to just import "./platform-browser/animations"; instead of re-exporting those members.

I tried @RyanCavanaugh suggestion but look like it doesn't work





### 🔎 Search Terms

* index.ts
* intellisense


### 🕗 Version & Regression Information


### ⏯ Playground Link

I created two repos, one following the suggestion and another one with normal `index.ts`

each repo has a gif showing that IntelliSense doesn't work!

https://github.com/mhamri/vscode-typescript-intellisense-bugs/tree/main/nx-lib-second-level-index-ts

and here is a repo of normal index.ts that still with path doesn't get discovered

https://github.com/mhamri/vscode-typescript-intellisense-bugs/tree/main/nx-lib-first-level-index-ts


### 🙁 Actual behavior

should get suggestions and IntelliSense for the first level and second level items. or typescript suggests a way that works. atm typescript doesn't give any IntelliSense for any of the second level `index.ts` for libraries like `RxJs` , `Angular`

Please check the original issue, more links to other repos are attached.

### 🙂 Expected behavior

typescript provides suggestion for the second level items.
Repository: opencv
Issue: VideoCapture from a remote server using local webcam
Labels: question (invalid tracker)

Is there a way to run the code to capture video from remote server, which in turn uses my local webcam?
Repository: go
Issue: cmd/vet: doesn't handle formatting strings in variables
Labels: NeedsDecision,Analysis

<!--
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.6
</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
C:\Projects\Go\src\testing>go env
set GO111MODULE=
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\Ray\AppData\Local\go-build
set GOENV=C:\Users\Ray\AppData\Roaming\go\env
set GOEXE=.exe
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GOMODCACHE=C:\Projects\GoLib\pkg\mod
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=C:\Projects\GoLib;C:\Projects\Go;
set GOPRIVATE=
set GOPROXY=https://proxy.golang.org,direct
set GOROOT=c:\go
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLDIR=c:\go\pkg\tool\windows_amd64
set GCCGO=gccgo
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=C:\Users\Ray\AppData\Local\Temp\go-build204160270=/tmp/go-build -gno-record-gcc-switches
</pre></details>

### What did you do?

```go
type invalidSide struct {
	erroneousSide float64
	errorMessage  string
}

func (invalidSide *invalidSide) Error() string {
	format := "%v given for one of the sides. values must be more than 0."
	return fmt.Sprintf(format, invalidSide)
	return fmt.Sprintf("%v given for one of the sides. values must be more than 0.", invalidSide)
}
```

Here is a sample of the code that resulted in a small issue I noticed.
<!--
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?
The first return statement should be flagged out by Go-Vet as it results in recursive Error calls.


### What did you see instead?
The file saved without issue and crashes during run time. The 2nd return statement is able to be detected by Go-Vet perfectly fine.
Repository: terminal
Issue: <reserved for infinite buffer work, follow ups>
Labels: Needs-Tag-Fix,⛺ Reserved

not blank!

We've previously discussed making this the megathread for infinite-buffer work.
Repository: ant-design
Issue: Divided side navigation for Layout Component (top/bottom)
Labels: 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?
It's very common to see Side navigation with items on the top (like list of modules available) and items on the bottom (avatar, sign out, policies application).

### What does the proposed API look like?
```javascript
<>
<Menu theme="dark" mode="inline" defaultSelectedKeys={['4']}>
        <Menu.Item key="1" icon={<UserOutlined />}>
          nav 1
        </Menu.Item>
        <Menu.Item key="2" icon={<VideoCameraOutlined />}>
          nav 2
        </Menu.Item>
        <Menu.Item key="3" icon={<UploadOutlined />}>
          nav 3
        </Menu.Item>
        <Menu.Item key="4" icon={<BarChartOutlined />}>
          nav 4
        </Menu.Item>
        <Menu.Item key="5" icon={<CloudOutlined />}>
          nav 5
        </Menu.Item>
        <Menu.Item key="6" icon={<AppstoreOutlined />}>
          nav 6
        </Menu.Item>
        <Menu.Item key="7" icon={<TeamOutlined />}>
          nav 7
        </Menu.Item>
        <Menu.Item key="8" icon={<ShopOutlined />}>
          nav 8
        </Menu.Item>
      </Menu>

<Menu theme="dark" mode="inline" position="bottom">
        <Menu.Item key="1" icon={<UserOutlined />}>
          Profile
        </Menu.Item>
        <Menu.Item key="2">
          Log out
        </Menu.Item>
      </Menu>
</>
```


<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->