sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: terminal
Issue: Support for OpenType Contextual Alternates Fonts to Allow e.g. Sparklines
Labels: Issue-Feature,Area-Rendering,Product-Terminal

<!-- 
🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨

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
I'd love to see support for fonts like [AtF Sparks](https://aftertheflood.com/projects/sparks/).
This will allow writing much richer console apps without the need for complex dialog boxes to e.g. monitor a running process.  
![img](https://aftertheflood.com/wp-content/uploads/2018/01/spark-typing-v2.gif)

<!-- 
A clear and concise description of what the problem is that the new feature would solve.
Describe why and how a user would use this new functionality (if applicable).
-->

# Proposed technical implementation details (optional)
This is apparently achieved y supporting "OpenType Contextual Alternates".
<!-- 
A clear and concise description of what you want to happen.
-->
![img](https://aftertheflood.com/wp-content/uploads/2018/01/sparks-fullset.gif)

Support for fonts like ATF Sparks, will give us the ability to do line-based charting. 
Apps could plot historic values as sparklines a-la TaskManager, or report the distribution of values using histogram-like charts. Very helpful for IoT devices, web-services, financial apps etc. 
There are many applications that do not require a GUI, and adding charting facilities would give them a significant power boost.
Repository: neovim
Issue: wait(): timeout may occur, before condition is eval'd timeout/interval times
Labels: documentation,event-loop

- `nvim --version`: NVIM v0.5.0-164-g3b3a40978
- `vim -u DEFAULTS` (version: ) behaves differently? N/A
- Operating system/version: N/A
- Terminal name/version: N/A
- `$TERM`: N/A

### Steps to reproduce using `nvim -u NORC`
Create the following test.vim.
```vim
function! Count()
  let g:counter += 1
  return g:counter
endfunction

let g:num_trails = 0
let timer = timer_start(1, { -> execute('sleep 150m') }, {'repeat' : -1 })
while(v:true)
  let g:counter = 0
  let g:num_trails += 1
  call wait(100, 'Count() >= 5', 20)
  if g:counter == 1
    echomsg "g:counter is 1, trails "..g:num_trails
    break
  endif
endwhile
call timer_stop(timer)
```

```
nvim -u NORC
:so test.vim
```

### Actual behaviour
Eventually, the while loop ends.

One case:

```
g:counter is 1, trails 147752
```

### Expected behaviour
While loops should not end forever.

As is apparent from the code, after the condition is first evaluated(0 sec), the condition may not be evaluated once during the timeout period. Is this intended?

I think it should be implemented like follow, but is it wrong?

```C
#define WAIT_UNTIL(loop, multiqueue, timeout, condtion) \
  do { \
    if (!(condtion) && timeout != 0) { \
      int remaining = timeout; \
      uint64_t before = os_hrtime(); \
      do { \
        if (remaining > 0) { \
          uint64_t now = os_hrtime(); \
          remaining  -= (int) ((now - before) / 1000000); \
          before = now; \
          if (remaining <= 0) { \
            break; \
          } \
        } \
        LOOP_PROCESS_EVENTS(loop, multiqueue, remaining); \
      } while (!(condtion)); \
    } \
  } while(0)
```

If we keep the current implementation, I think the following help description should be modified.

> Condition is evaluated on user events, internal events, and every {interval} milliseconds (default: 200).

In practice, the condition is evaluated if the timeout has not been reached at the end of processing the user event, internal events. I don't know how to explain the interval, but there is no guarantee that the condition will be evaluated for every interval.
Repository: flutter
Issue: Android Javadoc emits lots of warnings and errors
Labels: platform-android,engine,d: api docs,P2,team-android,triaged-android

For some reason, this passes on CI but not locally.  Even on CI, many warning and errors can be seen, e.g. https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket.appspot.com/8900017607924747344/+/steps/build_javadoc/0/stdout

Most of these are due to missing documentation for parameters/returns.

/cc @matthew-carroll @mklim
Repository: go
Issue: runtime: manual instrumentation of KeepAlive is fraught
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.12 linux/amd64

</pre>

### Does this issue reproduce with the latest release?
Likely, yes.

### 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=""
GOCACHE="/home/bjorn/.cache/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/bjorn/src/go"
GOPROXY="http://claudette.applied-maths.local:13909"
GORACE=""
GOROOT="/home/bjorn/opt/go"
GOTMPDIR=""
GOTOOLDIR="/home/bjorn/opt/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/home/bjorn/work/src/i41healthapp/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build701296847=/tmp/go-build -gno-record-gcc-switches"
</pre></details>

### What did you do?

I am currently writing a game library in Go that avoids cgo and calls the
OS directly, certainly on Linux thanks to it's stable kernel API. (See:
https://gitlab.com/beoran/galago <https://gitlab.com/beoran/galago/blob/master/os/linux/input/input_linux.go>
)

I have an input Device like this:
```go
// Device models an input device
type Device struct {
    FileName string 
    *os.File
    // Cached device information
    Info struct { 
        Events          []SupportedEvent
        Keys            []SupportedKey
        Axes            []AbsoluteAxis
        Rolls           []RelativeAxis
        Name            string
        ID              string
    }
}

// Keeps the device's file from being garbage collected.
func (d * Device) KeepAlive() {
    runtime.KeepAlive(d.File)
}

// Icotl performs an ioctl on the given device
func (d * Device) Ioctl(code uint32, pointer unsafe.Pointer) error {
    fmt.Printf("ioctl: %d %d %d\n", uintptr(d.Fd()), uintptr(code),
uintptr(pointer))
    _, _, errno := syscall.Syscall(
        syscall.SYS_IOCTL,
        uintptr(d.Fd()),
        uintptr(code),
        uintptr(pointer))
    if (errno != 0) {
        return errno
    }
    d.KeepAlive()
    return nil
}
```

Notice the KeepAlive? If I leave that out the program crashes, because the device 's io.File gets garbage collected. This took me quite some time to figure out and it is not obvious that that would happen, and that runitme.KeepAlive() is needed here. It would be great if I didn't have to manually insert runtime.KeepAlive calls when using os.File.Fd when using system calls. Or if there was at least vet/lint tooling to suggest when I would probably need it.

I posted this as a new issue to split it off from #34684, where it was a tangential issue.
Repository: TypeScript
Issue: module resolution with @types
Labels: Docs

<!-- 🚨 STOP 🚨 𝗦𝗧𝗢𝗣 🚨 𝑺𝑻𝑶𝑷 🚨

Half of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker. Even if you think you've found a *bug*, please read the FAQ first, especially the Common "Bugs" That Aren't Bugs section!

Please help us by doing the following steps before logging an issue:
  * Search: https://github.com/Microsoft/TypeScript/search?type=Issues
  * Read the FAQ: https://github.com/Microsoft/TypeScript/wiki/FAQ

Please fill in the *entire* template below.
-->

<!-- Please try to reproduce the issue with `typescript@next`. It may have already been fixed. -->
**TypeScript Version:** 3.5.2

<!-- Search terms you tried before logging this (so others can find this issue more easily) -->
**Search Terms:**

**Code**

In typescript handhook, the module resolution is that:

![image](https://user-images.githubusercontent.com/34906299/66547532-05f12680-eb72-11e9-989f-d163870436c3.png)

but in the real project, there is no @types/moduleB.d.ts, it only has a @types/moduleB directory, it is confused that resolution strategy by handhook.

**Expected behavior:**

**Actual behavior:**

**Playground Link:** <!-- A link to a TypeScript Playground "Share" link which demonstrates this behavior -->

**Related Issues:** <!-- Did you find other bugs that looked similar? -->
Repository: pytorch
Issue: `nn.Sequential.__setattr__` appends to the execution list
Labels: module: docs,low priority,triaged

## 🐛 Bug

Assigning `nn.Module`s as attributes of an `nn.Sequential` will append them to the "execution list" and therefore automatically call in `forward`, instead of merely registering them for inclusion in `nn.Sequential.parameters()`. This is not mentioned in the documentation.

## To Reproduce
Running the following code:

```python
class CustomSeq(nn.Sequential):
    def __init__(self):
        super(CustomSeq, self).__init__(
            nn.Linear(3, 4),
            nn.Linear(4, 5),
        )

        self.bar = nn.Linear(4, 5)

net = CustomSeq()
print(net)
```
will result in

```
CustomSeq(
  (0): Linear(in_features=3, out_features=4, bias=True)
  (1): Linear(in_features=4, out_features=5, bias=True)
  (bar): Linear(in_features=4, out_features=5, bias=True)
)
```

and fail when passed an `N x 3` tensor (because of 5 vs 4 shape mismatch at the end of execution).

## Expected behavior

I am not sure what the print format should be, but ideally I would like to see that only the modules passed in the constructor are executed in `forward` (the [documentation](https://pytorch.org/docs/master/nn.html#torch.nn.Sequential) only mentions constructors) and the modules added via `__setattr__` would be treated as if they were assigned to a regular `nn.Module`, that is registered but not automatically executed. Another solution would be to just document this as a feature.

My preference for the former is that I have code which looks like this
```python
class CustomSeq(nn.Sequential):
    def __init__(self):
        meta = MetaParameterModule(...)
        super(CustomSeq, self).__init__(
            CustomLayer(meta, ...),
            CustomLayer(meta, ...),
            ...
        )
        self.meta = meta
```
where `MetaParameterModule` doesn't even implement `forward`, it just stores some learnable interpolation parameters global to `CustomSeq`, which I would like to easily access. I was very surprised seeing that running `CustomSeq()(input)` results in `NotImplementedError`. I can obviously workaround with something like

```python
@property
def meta(self):
    return self[0].meta
```
but it's a bit awkward.

## Environment

PyTorch version: 1.2.0
Is debug build: No
CUDA used to build PyTorch: None

OS: Ubuntu 18.04.3 LTS
GCC version: (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0
CMake version: version 3.10.2

Python version: 3.7
Is CUDA available: No
CUDA runtime version: No CUDA
GPU models and configuration: No CUDA
Nvidia driver version: No CUDA
cuDNN version: No CUDA

Versions of relevant libraries:
[pip] Could not collect
[conda] cpuonly                   1.0                           0    pytorch
[conda] pytorch                   1.2.0               py3.7_cpu_0  [cpuonly]  pytorch
[conda] torchvision               0.4.0                  py37_cpu  [cpuonly]  pytorch
Repository: vscode
Issue: Clarify that proxy settings are only applied to extensions
Labels: bug,proxy

So for me to be able to get access to the extension library I need to use the command 
code --proxy-server="192.168.80.3:8080;"

My settings.xml does not seem to apply anything but includes the following just to make my case. That proxy settings in the xml do not apply. 

my settings.xml
{
    "http.systemCertificates": false,
    "http.proxySupport": "off",
    "http.proxyStrictSSL": false

}
Repository: create-react-app
Issue: Create React App inside a non-empty folder
Labels: issue: proposal,needs triage

I use `create-react-app` to create a react app **inside an existing backend project** which will serve the react application. And I have to run the `eject` command to:

- change the target directory
- change the build logic and directories
- add `.less` support with some extra configuration
and so on...

To automate this process, I took a fork from `react-scripts` and I defined my folder structure. A

My final file system hierarchy should be something like:

```
- project directory
    - foo
    - bar
    - baz
    - resources
        - react-app
            - index.js
    - package.json 
    - qux.php
```

So I edited the template folder to match these requirements and published the scripts to give a try. 

`npx create-react-app . --scripts-version my-react-scripts`

And as you guessed, I got

> The directory . contains files that could conflict: Backend FSH.

However:

- I need my `package.json` to be located in the project root directory.
- My scripts will create a new directory called `react-app` inside the existing `resources` folder. And react-app will live inside this directory. I don't expect an override.
-  My build is customized and will use my webpack plugin to generate the built files. I don't expect an unexpected override here as well.

### Describe the solution you'd like

- Since I know what I do, I want to have some way to run `create-react-app` in an existing folder with some files. 

Maybe by setting a constant from my scripts or using an option after `npx create-react-app` call.

### Describe alternatives you've considered

I considered to update create-react-app to support it as well but that doesn't make sense since it would be almost impossible to follow up the updates and upgrades later.

### Additional context

https://github.com/facebook/create-react-app/issues/334
https://github.com/facebook/create-react-app/issues/2776
Repository: flutter
Issue: Flutter doesn't recognise external USB camera
Labels: c: new feature,platform-android,p: camera,package,team-ecosystem,P3,triaged-ecosystem

<!-- Thank you for using Flutter!

     If you are looking for support, please check out our documentation
     or consider asking a question on Stack Overflow:
      * https://flutter.dev/
      * https://api.flutter.dev/
      * https://stackoverflow.com/questions/tagged/flutter?sort=frequent

     If you have found a bug or if our documentation doesn't have an answer
     to what you're looking for, then fill our the template below. Please read
     our guide to filing a bug first: https://flutter.dev/docs/resources/bug-reports
-->

## Use case
Not recognizing external USB camera 
<!--
     Please tell us the problem you are running into that led to you wanting
     a new feature.

     Is your feature request related to a problem? Please give a clear and
     concise description of what the problem is.

     Describe alternative solutions you've considered. Is there a package
     on pub.dev/flutter that already solves this?
-->

## Proposal

Hi,  I want to use my external usb camera but flutter does not recognize it, it just finds my rear and my front cameras. Please take a look at it .

Thank you 

<!--
     Briefly but precisely describe what you would like Flutter to be able to do.

     Consider attaching images showing what you are imagining.

     Does this have to be provided by Flutter directly, or can it be provided
     by a package on pub.dev/flutter? If so, maybe consider implementing and
     publishing such a package rather than filing a bug.
-->
Repository: flutter
Issue: Include inherited widgets on new pushed routes
Labels: c: new feature,framework,f: routes,P3,team-framework,triaged-framework

<!-- Thank you for using Flutter!

     If you are looking for support, please check out our documentation
     or consider asking a question on Stack Overflow:
      * https://flutter.dev/
      * https://api.flutter.dev/
      * https://stackoverflow.com/questions/tagged/flutter?sort=frequent

     If you have found a bug or if our documentation doesn't have an answer
     to what you're looking for, then fill our the template below. Please read
     our guide to filing a bug first: https://flutter.dev/docs/resources/bug-reports
-->

## Use case
Why inherited widgets are removed when we push a new route to a navigator?
It is very annoying in almost all my projects : if I have a User object I want to share to the rest of the tree, I have to use a Provider wrapping each new pushed page. And the same if I have few others object I want to provide.
I don't want to provide it above the MaterialApp because I don't have theses objects at the beginning...

I really like Provider but this behaviour removes 50% of the interest for me, because at this point is easier to use regular constructor arguments on the new pushed page. 

<!--
     Please tell us the problem you are running into that led to you wanting
     a new feature.

     Is your feature request related to a problem? Please give a clear and
     concise description of what the problem is.

     Describe alternative solutions you've considered. Is there a package
     on pub.dev/flutter that already solves this?
-->

## Proposal
I guess the default removing (or not include) behaviour is needed for some use cases, so maybe we can just add a Mixin to the class being provided that tells the navigator to provide it to the next pushed routes?

<!--
     Briefly but precisely describe what you would like Flutter to be able to do.

     Consider attaching images showing what you are imagining.

     Does this have to be provided by Flutter directly, or can it be provided
     by a package on pub.dev/flutter? If so, maybe consider implementing and
     publishing such a package rather than filing a bug.
-->
Repository: go
Issue: cmd/compile: unneeded bounds checks
Labels: Performance,NeedsInvestigation,compiler/runtime

### What version of Go are you using (`go version`)?
<pre>
$ go version
go version devel +2197321 Tue Oct 8 23:53:55 2019 +0000 linux/amd64
</pre>

### Does this issue reproduce with the latest release?
Yes.

### What did you do?
I compiled the following functions to check if there were any bounds checks: https://godbolt.org/z/RSrNwR.

### What did you expect to see?
I expected to see no bounds checks.

### What did you see instead?
Instead, I see 7 different bounds checks generated by the Go compiler (highlighted in the site above).
I talked with @zdjones about this and it appears like all these bounds checks can be removed.
Repository: vscode
Issue: Completion should be able to retrigger completions when accepted
Labels: feature-request,api,suggest

re https://github.com/microsoft/vscode/issues/74054

HTML/CSS completion item sometimes retrigger completions upon insertion. We should make that an editor concept with (1) proper API and (2) a setting to enable/disable this.
Repository: pytorch
Issue: Deployment training model at C + + end
Labels: needs reproduction,oncall: jit,module: docs,module: cpp,triaged

When the model does not contain a custom layer, it can be deployed directly on the C + + side using JIT mechanism and libtorch library.

But my model contains a custom c++ and CUDA layer. Now that I'm deploying the model on the c++ side, do I need to compile the custom c++ and CUDA layers into the libtorch library?
Thank you!!!

cc @suo @yf225
Repository: flutter
Issue: Remove an assertion from CupertinoTabBar widget
Labels: framework,f: cupertino,c: proposal,a: error message,P3,team-design,triaged-design

<!-- Thank you for using Flutter!

     If you are looking for support, please check out our documentation
     or consider asking a question on Stack Overflow:
      * https://flutter.dev/
      * https://api.flutter.dev/
      * https://stackoverflow.com/questions/tagged/flutter?sort=frequent

     If you have found a bug or if our documentation doesn't have an answer
     to what you're looking for, then fill our the template below. Please read
     our guide to filing a bug first: https://flutter.dev/docs/resources/bug-reports
-->

## Use case

When using CupertinoTabBar, it has an assertion that property "items" must consist 2 items at least.

See https://github.com/flutter/flutter/blob/991153ada0cf571c8600ff416508ffafe665dfc0/packages/flutter/lib/src/cupertino/bottom_tab_bar.dart#L74

Therefore when single item exists (we have a legitimise use case for that), the widget's assertion will fail resulting whole screen being bloody red in debug.

## Proposal

I do not think Cupertino widgets should error when something does not conform to Apple's HIG. Warning message yes, but error? No thanks.

Therefore, I propose to remove the assertion and warn or log down for developer instead.
Repository: godot
Issue: Command-line debugger does not allow editing debug commands once written
Labels: bug,topic:editor,confirmed

**Godot version:**
3.2.alpha1.official

**OS/device including version:**
Mac OS X Mojave

**Issue description:**
 CLI --debug option does not allow editing of debug commands except backspace.

The debugger does not allow command line editing while in debug mode. You can only backspace over a command as you are typing it, but no arrow backwards over a command to edit.

In addition you cannot use up arrow to go back to previous commands. 

I consider this a bug because it limits the used of the CLI debugger although some may say it is a feature.

**Session example notice backarrow echoes at bottom**

```bash
~/gdalphabug$ godot2 TestScript.tscn -d
arguments
0: godot2
1: TestScript.tscn
2: -d
Current path:/gdalphabug
Godot Engine v3.2.alpha1.official - https://godotengine.org
OpenGL ES 3.0 Renderer: NVIDIA GeForce GT 650M OpenGL Engine
Registered camera FaceTime HD Camera (Built-in) with id 1 position 0 at index 0

ERROR: 'The class variable 'x' is declared but never used in the script.'
ERROR: 'The local variable 'somevarx' is declared but never used in the block.'

Debugger Break, Reason: 'Division By Zero in operator '/'.'
*Frame 0 - res://TestScript.gd:7 in function '_init'
Enter "help" for assistance.
debug> help
Built-In Debugger command list:

	c,continue		 Continue execution.
	bt,backtrace		 Show stack trace (frames).
	fr,frame <frame>:	 Change current frame.
	lv,locals		 Show local variables for current frame.
	mv,members		 Show member variables for "this" in frame.
	gv,globals		 Show global variables.
	p,print <expr>		 Execute and print variable in expression.
	s,step			 Step to next line.
	n,next			 Next line.
	fin,finish		 Step out of current frame.
	br,break [source:line]	 List all breakpoints or place a breakpoint.
	delete [source:line]:	 Delete one/all breakpoints.
	set [key=value]:	 List all options, or set one.
	q,quit			 Quit application.
debug> gv
debug> mv
x: Null
somevar: 20
foo1: abcd
debug> set x=20^[[D^[[D^[[D^[[D^[[D^[[D

```