sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: node
Issue: Debugger isn't stopped at the `debugger;` statement when debugging using `--inspect`
Labels: inspector

Note: previous thread was https://github.com/nodejs/node/issues/10457, but it got closed recommending `--inspect-brk` which is more a workaround than a solution imo.

**Is your feature request related to a problem? Please describe.**

When debugging a CLI program, I want to break at a specific location. For DevX reasons I don't want to use `--inspect-brk`, as it would require me to attach the debugger before even knowing whether the codepath covered by the breakpoint is hit - which is particularly cumbersome when using nested processes (with `--inspect-port=0`).

**Describe the solution you'd like**

I'd like `debugger;` statements to pause the execution even if a debugger isn't attached yet; I'd then attach it myself.

**Describe alternatives you've considered**

Pausing the process manually using `execSync` w/ `sleep` or similar doesn't work: the debugger doesn't see the Node process. I suspect an internal integration is required for the process to answer the debugger during a synchronous call?
Repository: go
Issue: cmd/link: crash with -E <nonexisting symbol>
Labels: NeedsDecision

<pre>
$ go version
go version devel +3a3093d5c7 Mon Dec 9 21:50:59 2019 +0000 linux/amd64
</pre>


```
$ cat main.go
package main

func main() {
}
$ go build -ldflags="-E nonexistent" main.go 
# command-line-arguments
panic: runtime error: index out of range [-1]

goroutine 1 [running]:
cmd/link/internal/ld.(*Link).pclntab(0xc000082480)
	/home/elias/dev/go-tip/src/cmd/link/internal/ld/pcln.go:374 +0x1e40
cmd/link/internal/ld.Main(0x8912a0, 0x10, 0x20, 0x1, 0x7, 0x10, 0x6bddc3, 0x1b, 0x6b9e74, 0x14, ...)
	/home/elias/dev/go-tip/src/cmd/link/internal/ld/main.go:243 +0xc62
main.main()
	/home/elias/dev/go-tip/src/cmd/link/main.go:68 +0x1bc
```
Repository: terminal
Issue: Move shader files to `hlsl` files and package as a part of app
Labels: Area-Rendering,Product-Terminal,Issue-Task

Follow-up from #3468.

Right now we're just packaging them in the renderer itself, as string literals. As _great_ as that is, we should probably make them their own files.
Repository: flutter
Issue: API should including callback functions to get soft keyboard status including the keyboard visibility and height.
Labels: a: text input,c: new feature,framework,c: proposal,P3,team-framework,triaged-framework

Text input is core function for every application. So it is very important for a framework with rich API's on inputting user experience.
But now there is no api in flutter to get keyboard status. 
It should be a call back listener, that we could get keyboard visibility status, keyboard height, then we could adjust our app's layout, adding some overlays besides the keyboard to dismissing keyboard.
Even more, It's better the overlay helper could sync animation with the keyboard show up.
Following pic shows typical use of keyboard overlay helpers.

<img src="https://user-images.githubusercontent.com/3226361/70722230-dad1b180-1d31-11ea-9f52-49f705751de2.png" width="400">
Repository: angular
Issue: Routing in Angular Based Web Components using @angular/elements
Labels: feature,freq1: low,area: router,area: elements,feature: under consideration,feature: votes required

<!--🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅

Oh hi there! 😄 

To expedite issue processing please search open and closed issues before submitting a new one.
Existing issues often contain information about workarounds, resolution, or progress updates.

🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅-->


# 🚀 feature request

### Relevant Package
<!-- Can you pin-point one or more @angular/* packages the are relevant for this feature request? -->
<!-- ✍️edit: --> This feature request is for @angular/elements and @angular/router


### Description
<!-- ✍️--> When attempting to use an Angular app to host a second Angular app wrapped as a Web Component routing does not work for the hosted app.


### Describe the solution you'd like
<!-- ✍️--> It would be nice if an instance of the hosting app could be passed in so that the router.forChild() could be used to register the routes for the web component. Another option  would be to rework both elements and router so that multiple forRoot instances of the router do not cause issues.


### Describe alternatives you've considered
<!-- ✍️--> I have tried named outlets and ui-router. UI-router got me the closest by using the Angular Router in the hosting application and ui-router in the hosted component. The issue I ran into there was that I could not directly navigate by URL into a sub-route using ui-router.
Repository: go
Issue: x/build/cmd/coordinator: give buildlets access to suspend themselves for N seconds
Labels: Testing,Builders,NeedsDecision,FeatureRequest

Watching the debugging in #35482 (including people running out to buy laptops), I realize we could probably provide some help in the build system.

GCE VMs support suspend:

https://cloud.google.com/sdk/gcloud/reference/alpha/compute/instances/suspend

> gcloud alpha compute instances suspend is used to suspend a Google Compute Engine virtual machine. Suspending a VM is the equivalent of sleep or standby mode: the guest receives an ACPI S3 suspend signal, after which all VM state is saved to temporary storage

So we could have the coordinator do that `suspend` on behalf of buildlets, followed by a `resume` in the {buildlet/user/test}-requested duration.

I figure we'd pass an environment variable to tests containing a URL containing a secret build-specific secret, and tests could hit that URL with a `seconds` parameter to say how long they'd like to be suspended.

We'd need to also suspend the buildlet health checking on the coordinator side so they don't fail health checks and get killed.

This would permit writing unit tests that test [program time vs real time](https://github.com/golang/go/issues/35482#issuecomment-563004219), at least in longtest mode.

I assume this would be useful, @aclements, @ianlancetaylor?

/cc @golang/osp-team
Repository: scrcpy
Issue: how do the android device use computer keyboard？like F1、F2、F3、ESC、ctrl+c ? or keep android soft keyboard hidden?
Labels: question,keyboard
Repository: pytorch
Issue: [JIT] Slice with optional not supported
Labels: oncall: jit,triaged

## 🐛 Tensor Slice with optional 
```
def slice_with_optional(val, start: int, end: Optional[int] = None):
    return val[start:end]

jit.script(slice_with_optional)
```

> Arguments for call are not valid.
The following operator variants are available: 
  aten::slice(Tensor(a) self, int dim=0, int start=0, int end=9223372036854775807, int step=1) -> (Tensor(a)):
  Expected a value of type 'int' for argument 'end' but instead found type 'Optional[int]'.
 ...

Originally reported in https://github.com/pytorch/pytorch/issues/24256

Related issue https://github.com/pytorch/pytorch/issues/27543


cc @suo
Repository: flutter
Issue: [google_maps_flutter] InfoWindow doesn't support iOS DarkMode 
Labels: c: new feature,platform-ios,customer: crowd,p: maps,package,c: proposal,P3,team-ios,triaged-ios

**Issue description:** 

![Capture d’écran 2019-12-12 à 17 37 04](https://user-images.githubusercontent.com/22452175/70731338-d47a1000-1d06-11ea-9ff8-3b6120ca909f.png)

![Capture d’écran 2019-12-12 à 17 37 36](https://user-images.githubusercontent.com/22452175/70731339-d512a680-1d06-11ea-8a45-db92c0402526.png)


When the dark mode is activated on iOS, the InfoWindow of a marker is displayed with a white background, the title written in white, and the snippet written in black. As the InfoWindow is not customizable at all (I hope it will soon be a widget), it seems that I can't fix it on my side.


**Target Platform:** iOS 
**Target OS version/browser:**   13.2.2
**Devices:** only tested on iOS simulators (iPhone 8 Plus/ iPhone 11 Pro Max)

No problem with flutter analyze
**Flutter doctor:**

[✓] Flutter (Channel stable, v1.12.13+hotfix.5, on Mac OS X 10.14.6 18G1012, locale fr-FR)
    • Flutter version 1.12.13+hotfix.5 at /Users/maud.farizon/development/flutter
    • Framework revision 27321ebbad (2 days ago), 2019-12-10 18:15:01 -0800
    • Engine revision 2994f7e1e6
    • Dart version 2.7.0

[!] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at /Users/maud.farizon/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 29.0.2
    • ANDROID_HOME = /Users/maud.farizon/Library/Android/sdk
    • ANDROID_SDK_ROOT = /Users/maud.farizon/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
    ! Some Android licenses not accepted.  To resolve this, run: flutter doctor --android-licenses

[✓] Xcode - develop for iOS and macOS (Xcode 11.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.2.1, Build version 11B500
    • CocoaPods version 1.6.1

[✓] Android Studio (version 3.5)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 42.1.1
    • Dart plugin version 191.8593
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)

[✓] Connected device (2 available)
    • Nexus 5X      • 01e299881cdfa202                     • android-arm64 • Android 8.1.0 (API 27)
    • iPhone 8 Plus • BB5B1D58-4A20-46D9-BAD3-1D84FF4A19B5 • ios           • com.apple.CoreSimulator.SimRuntime.iOS-13-2 (simulator)

! Doctor found issues in 1 category.
Repository: flutter
Issue: [google_maps_flutter] Need My location button click listener
Labels: c: new feature,p: maps,package,c: proposal,team-ecosystem,P3,triaged-ecosystem

I want to know when the MyLocation button is clicked so that I can update the map with more relevant markers based on the user's new location.

It this is not coming in the near future, the alternative would be to implement my own location button on top of the map, have a listener and manually get the current location, move the map and update the markers.

Let me know your plans. Thanks.
Repository: youtube-dl
Issue: Download album cover as a separate file
Labels: request

- [x] I'm reporting a feature request
- [x] I've verified that I'm running youtube-dl version **2019.11.28**
- [x] I've searched the bugtracker for similar feature requests including closed ones

## Description

It would be very helpful to have the ability to download an album cover as a separate file, f.i. named `cover.jpg`, to the album folder, in services like Yandex Music and the like. I know that embedding is possible with `--embed-thumbnail`, but I'm asking for a way to download the cover as a separate file.

This feature request was opened, because this is not possible at the moment, as stated [here](https://github.com/ytdl-org/youtube-dl/issues/23377#event-2873922227).
Repository: flutter
Issue: Missing cache artifacts (e.g. idevice_id, ideviceinfo, iproxy)
Labels: tool,P2,team-tool,triaged-tool

**TL;DR** this can be worked around by wiping out your cache and then running the doctor (`rm -rf flutter_repo/bin/cache && flutter doctor`), but please post here any stacktraces, your `flutter doctor -v`, and the contents of the relevant stamp file (e.g. if `idevice_id` is missing the stampfile would be in `flutter_repo/bin/cache/libimobiledevice.stamp` so that we can identify the source of the problem (I have not been able to reproduce the remaining cases).

There have been cases of the flutter tool not finding cached executables that it expected to be present. https://github.com/flutter/flutter/pull/45267 (assures issuing `flutter run` will update universal cache) and https://github.com/flutter/flutter/pull/43767 were to mitigate this, however, it is still occurring.
Repository: flutter
Issue: Expose capabilities/requirements from dart:ui for text edit size/transform
Labels: c: new feature,framework,engine,P2,team-engine,triaged-engine

Today, only Flutter Web needs to know about the size and transform of editable text widgets. However, we calculate it for all platforms and send a method up.  

One approach is to guard this with `kIsWeb`, which we would like to avoid.

Another approach (suggested in https://github.com/flutter/flutter/pull/46843#discussion_r357264257) would be to expose the requirement for this from dart:ui so the framework could more cleanly check if it needs to do this work.

Yet another approach would be to move the entire method channel interface into dart:ui, which should be treated separately (and may not be desireable due to introducing more compelxity/weight to dart:ui, including all the codec/channel logic that currently lives in the framework).

/cc @yjbanov  @goderbauer @nturgut @mdebbar
Repository: opencv
Issue: Error while ploting colored point clouds
Labels: category: build/install,category: viz

I'm trying to plot a set of collored 3D points, using Viz3D.

So this is my code:

```
	std::vector<cv::Point3f> pointVec;
	std::vector<cv::viz::Color> colorVec;

	pointVec.push_back(cv::Point3f(1, 2, 3));
	pointVec.push_back(cv::Point3f(5, 2, 3));
	
	colorVec.push_back(cv::viz::Color(10, 2, 3));
	colorVec.push_back(cv::viz::Color(50, 23, 3));
	
	cv::viz::Viz3d myWindow("Coord");
	myWindow.showWidget("Coord Wid", cv::viz::WCoordinateSystem());

	cv::viz::WCloud cloud_widget(pointVec, colorVec);

	myWindow.showWidget("cloud", cloud_widget);
	myWindow.spin();
```

When I compile, I get the error at "traits.hpp" saying 
> 'type' is not a member of 'cv::DataType<cv::viz::Color>". 

Comenting my code line by line, I found that the error is at `myWindow.showWidget("cloud", cloud_widget)`. 

When I went to the documentation, I found this function that prints the "cloud" points with the "colors" in the respective array: `cv::viz::WCloud::WCloud  (  InputArray  cloud, InputArray colors)  ` 

I can't find out what's wrong with this implementation.
Repository: go
Issue: x/exp/shiny/screen: Weird transition when uploading scaled texture in Ubuntu and macOS
Labels: NeedsInvestigation

<!-- Please answer these questions before submitting your issue. Thanks! -->

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version go1.9.7 darwin/amd64
</pre>

### Does this issue reproduce with the latest release?

NA

### 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"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/manvendra.s/go"
GORACE=""
GOROOT="/usr/local/opt/go@1.9/libexec"
GOTOOLDIR="/usr/local/opt/go@1.9/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/r2/drncpk212xxdw_zd5ns7nrrn09q2nk/T/go-build553917634=/tmp/go-build -gno-record-gcc-switches -fno-common"
CXX="clang++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"

</pre></details>

### What did you do?

I am trying to write a CHIP-8 emulator in Go using golang.org/x/shiny/screen for displaying video buffer onto the screen.

The original resolution of the emulator screen is 32x64 pixels. So, I enlarge the graphical view of the emulator screen by scaling the existing buffer by some factor and then publishing it on the screen.

Here's the code snippet for the same:
``` go
case paint.Event:
            log.Print("Paint event, re-painting the buffer..")

            tex, _ := s.NewTexture(dim)
            defer tex.Release()

            tex.Upload(image.Point{}, drawBuff, drawBuff.Bounds())

            scaledDim := image.Rectangle{
                image.Point{0, 0},
                image.Point{EmuWidth * EmuScale, EmuHeight * EmuScale}}

            window.Scale(scaledDim, tex, drawBuff.Bounds(), draw.Over, &screen.DrawOptions{})
            window.Publish()
```

### What did you expect to see?

On Windows:

https://i.stack.imgur.com/1iMZc.gif

### What did you see instead?

On Mac and Ubuntu 19.10: 

https://i.stack.imgur.com/cf2kf.gif
Repository: pytorch
Issue: Request for Lint Pass to Detect Modification on Parameters/Attributes during TorchScript Inference
Labels: oncall: jit,feature,triaged

## 🚀 Feature
A lint pass to help user detect any violation of the immutability of the models during inference time.

## Motivation
We assume that in most of the cases, the model should be stateless during inference, which means the model itself is thread-safe. However, user may update the parameters/attributes accidentally. We need some way to help users identify such cases.

## Pitch
A lint pass for TorchScript models (maybe with some annotation to whitelist something)

## Additional context
This may help users detect problems at early stage.


cc: @suo @dzhulgakov 


cc @suo
Repository: TypeScript
Issue: Docs: "Type assertion" vs "asserts" keyword
Labels: Discussion

Hey there!

I’m updating [Programming TypeScript](https://www.amazon.com/_/dp/1492037656) to include [assertions in control flow analysis](https://github.com/microsoft/TypeScript/pull/32695), and was looking for guidance about naming.

Type assertions (`x as T`) and assertions in control flow analysis (`asserts x is T`) are similarly named. What’s a good way to call these these features, in a way that doesn’t confuse people and aligns with the way the TS team is communicating it?

A couple of ideas:

1. Rename `x as T` to “type coercion” or “type casting" (even though it’s not a runtime behavior), and call `asserts x is T` a “type assertion”
2. Keep `x as T` as-is (“type assertion”), and call `asserts x is T` a “user-defined type assertion”, similar to a “user-defined type guard”

Thanks!
Repository: terminal
Issue: Make the feature tests run in (and perhaps explode) a PTY
Labels: Product-Conhost,Issue-Task,Area-CodeHealth

#3907 causes a crash when connected to a pseudoconsole; @miniksa suggested that we should make sure we're running our API tests against ptys as well.

zadjii-msft EDIT: Let's be _really_ sure that when we're making the feature tests run in conpty mode, we add a test to check #3907. The fix in #4021 is pretty small, whoever gets to this task should try reverting it and make sure that an appropriate test is added.
Repository: rust
Issue: Can't return impl trait inside a type when using HRTBs
Labels: A-type-system,T-compiler,C-bug,T-types

This code fails to compile:
```rust
struct Wrapper<T>(T);

fn allowed() -> impl for<'a> Fn(&'a u32) -> &'a u32 {
    |x: &u32| x
}

fn not_allowed() -> Wrapper<impl for<'a> Fn(&'a u32) -> &'a u32> {
    Wrapper(|x: &u32| x)
}
```

The message is:
```
error[E0271]: type mismatch resolving `for<'a> <[closure@src/lib.rs:8:13: 8:24] as std::ops::FnOnce<(&'a u32,)>>::Output == &'a u32`
 --> src/lib.rs:7:29
  |
7 | fn not_allowed() -> Wrapper<impl for<'a> Fn(&'a u32) -> &'a u32> {
  |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected bound lifetime parameter 'a, found concrete lifetime
  |
  = note: the return type of a function must have a statically known size
```

I think this may be related to #54729 but it isn't quite clear. Certainly the workaround mentioned there does not work in this case.
Repository: rust
Issue: Tracking issue for `..X`, and `..=X` (`#![feature(half_open_range_patterns)]`)
Labels: T-lang,B-unstable,C-tracking-issue,disposition-merge,finished-final-comment-period,F-half_open_range_patterns,F-exclusive_range_pattern,A-patterns,S-tracking-design-concerns

`X..` was stabilized in #83918
`..=X` was stabilized in #102275
`...X` was removed in #68120

`..X` is tracked in #37854
`X..` patterns in slices are currently gated via `half_open_range_patterns_in_slices`

This is a tracking issue for the feature gate `#![feature(half_open_range_patterns)]`. This feature provides half-open range patterns `X..`, `..X`, `..=X`, and `...X` (last one is also deprecated like `X...Y` is, for spec & implementation simplicity). These correspond to the `RangeFrom`, `RangeTo`, `RangeToInclusive`, and `RangeToInclusive` expression forms, with the same syntaxes, respectively. The correspondence is both syntactic and semantic (in the sense that e.g. a `X..` pattern matching on a scrutinee `s` holds exactly when `(X..).contains(&s)` holds). For implementations details, see #67258.

The implementation for the feature was introduced in https://github.com/rust-lang/rust/pull/67258 and is also strongly related to `#![feature(exclusive_range_pattern)]` (`X..Y`) which is also required for `X..` and `..X` (as the `RangeEnd::Exclusive` syntax is used).

**Steps:**

- Once `half_open_range_patterns` have had some time to bake on nightly, write up an RFC specifying both `exclusive_range_pattern` and `half_open_range` and proposing their stabilization.

**Unresolved questions:**

- [x] Possibly rethink the precedences, https://github.com/rust-lang/rust/issues/48501. We could ship without fixing this and leaving in the ambiguity errors. EDIT: [Lang team considers this an orthogonal issue](https://github.com/rust-lang/rust/issues/67264#issuecomment-720711656).
- [x] The primary question to resolve is whether the lack of clarity around `..X` for signed types being from -i32::MAX -- is that OK? Too confusing? EDIT: [Lang team considers this acceptable](https://github.com/rust-lang/rust/issues/67264#issuecomment-1209771052), leaving open the possibility of future lints to help catch mistakes.