sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: terminal
Issue: Tray Icon feature improvements and follow-ups
Labels: Area-UserInterface,Product-Terminal,Issue-Scenario

This issue is mainly for me to keep track of what could/should/would be done to improve on the Tray Icon feature.

## Current Tray Icon Behavior
`Left-Click` = Summon MRU window.
`Right-Click` = Open **Context Menu**.

```
Current Context Menu
 ________________
| Focus Terminal |
| -------------- |    ______________________________
| Windows->      |   |Window {ID} - <unnamed window>|
|________________|   |Named Window 1                |
                     |Named Window 2                |
                     |______________________________|
```
Clicking on any of the Window items in the Windows submenu will summon that particular window.

## What's to come?

**"So close I can taste it"** : things I'm prioritizing
- [ ] Summon _only_ minimized windows
- [ ] Quit All
- [ ] Quit just the selected window
- [x] Summon All
- [ ] Restore All to taskbar
- [ ] Create new Window

**"Further away so I can't taste it yet"** : nice to haves or may be a bit more involved.
- [ ] Get rid of the ugly Win32 menu and use WinUI's MenuFlyout
- [ ] Customize left-click on icon behavior
- [ ] Browse tab names of the selected window
- [ ] Custom actions in the context menu
- [ ] How to gel with `StartOnUserLogin` setting?
- [x] #10660
- [ ] #12933
  - wasn't mentioned anywhere in #9274 shockingly, coulda swore we discussed this.

**"Follow Ups from PRs"**:
- [ ] Make quake window dropdown duration not magic number.
- [x] Settings should refer to Notification Area by correct name (not ‘tray’) #11101

## References
#5727 - Initial Feature Request
#10368 - Initial Tray Icon PR
[Tray Icon Spec Section](https://github.com/microsoft/terminal/blob/main/doc/specs/%23653%20-%20Quake%20Mode/%23653%20-%20Quake%20Mode.md#minimize-to-tray)
Repository: next.js
Issue: eslint next 11 Parsing error: Cannot read file
Labels: Linting

### What version of Next.js are you using?

11.0.0

### What version of Node.js are you using?

v14.15.5

### What browser are you using?

Chrome

### What operating system are you using?

macOS

### How are you deploying your application?

next export

### Describe the Bug

when I run `next build`, it asked to install `eslint-config-next`. So I did to try the new feature.

after that I got numerous errors, seems like one for every page that look like this:
```
./src/pages/mypage.tsx
Error: Parsing error: Cannot read file '/full/path/to/git/clone/client/client/tsconfig.json'.
```

Yes, notice the `client/client`, that looks like the bug.

my git project structure is this:
```
root
  package.json
  client <--- where next build is run!!!
    package.json 
    tsconfig.json
    src
      pages   
        mypage.tsx
```

### Expected Behavior

These errors should not happen. I also have my own eslint set up in the root of the repo, but I want to see what this feature offers before disabling it.

### To Reproduce

Try to setup a project like what I've described, and run `next build` from the `client` directory.
Repository: pytorch
Issue: Quantized model using `boolean_dispatch` not picklable
Labels: oncall: quantization,low priority,triaged

## 🐛 Bug

Follow-up bug from https://github.com/pytorch/pytorch/issues/57352. Model quantized using `prepare_fx` is not picklable due to this `boolean_dispatch` function

```
Traceback (most recent call last):
  File "torch_pickle.py", line 45, in <module>
    pickle.dumps(model)
AttributeError: Can't pickle local object 'boolean_dispatch.<locals>.fn'
```

## To Reproduce

Same steps. Use a recent pytorch nightly.

Version:
```
>> python -c "import torch; print(torch.__version__)"
1.10.0.dev20210617
```

```
import torch
import pickle

from torch.quantization import get_default_qconfig
from torch.quantization.quantize_fx import prepare_qat_fx

class TwoLayerNet(torch.nn.Module):
    def __init__(self, D_in, H, D_out):
        """
        In the constructor we instantiate two nn.Linear modules and assign them as
        member variables.
        """
        super(TwoLayerNet, self).__init__()
        self.linear1 = torch.nn.Linear(D_in, H)
        self.linear2 = torch.nn.Linear(H, D_out)

    def forward(self, x):
        """
        In the forward function we accept a Tensor of input data and we must return
        a Tensor of output data. We can use Modules defined in the constructor as
        well as arbitrary operators on Tensors.
        """
        h_relu = self.linear1(x).clamp(min=0)
        y_pred = self.linear2(h_relu)
        return y_pred


# N is batch size; D_in is input dimension;
# H is hidden dimension; D_out is output dimension.
N, D_in, H, D_out = 64, 1000, 100, 10

# Create random Tensors to hold inputs and outputs
x = torch.randn(N, D_in)
y = torch.randn(N, D_out)

# Construct our model by instantiating the class defined above
model = TwoLayerNet(D_in, H, D_out)

# Try to pickle quantized model
qconfig = get_default_qconfig("qnnpack")
qconfig_dict = {"": qconfig}

model = prepare_qat_fx(model, qconfig_dict)

pickle.dumps(model)
```

## Expected behavior
Empty output; pickle.dumps should succeed

## Environment

    PyTorch Version (e.g., 1.0): pytorch=1.10.0.dev20210617   (py3.6_0  pytorch-nightly)
    OS (e.g., Linux): OSX
    How you installed PyTorch (conda, pip, source): conda
    Build command you used (if compiling from source): N/A
    Python version: 3.6.10
    CUDA/cuDNN version: cpu only
    GPU models and configuration:
    Any other relevant information:

## Additional context


cc @jerryzh168 @jianyuh @raghuramank100 @jamesr66a @vkuzo @jgong5 @Xia-Weiwen @leslie-fang-intel
Repository: pytorch
Issue: [testing] SkipInfo should error if `cls_name` and `test_name` combination is not valid
Labels: module: tests,triaged,needs design

Currently `SkipInfo` does nothing if `cls_name` and `test_name` don't match any expected test.

However for this to work `SkipInfo` will **probably** (not sure about the implementation) have to know all the `Test` class and `test names` (not sure if this is possible) but will be nice if it can error out.

cc: @mruberry 

cc @mruberry @VitalyFedyunin @walterddr
Repository: three.js
Issue: Adding interactive and generative music using webaudio api
Labels: Design

<!-- Ignoring this template may result in your feature request getting deleted -->

**Is your feature request related to a problem? Please describe.**

Currently, the audio possibilities are limited in threejs. We (@pparocza and I) have been looking into integration of this following webaudio tools into threejs:
https://github.com/pparocza/generative-music-web-audio  

**Describe the solution you'd like**

We want to add new features that allows easy implementation of generative and interactive music in threejs that goes beyond simple audio file playback. We are interested in lightweight audio solutions such as pure synthesis or wavetable usage as in the early games.

**Describe alternatives you've considered**

An alternative is to code webaudio within each project as opposed to having classes and functions that allows quick prototyping. Another alternative is to use an external library such as tonejs. However, it could be beneficial to have audio synth tools and features directly in threejs to have multi-modal features, such as 3D objects changing properties with audio features. 

**Additional context**

Main question here is, what would be the best way to initiate a conversation on this? It would be nice to figure out an general code structure, maybe a AudioSynth class under Audio? Something that could integrate with current PositionalAudio class and AudioListener class would be beneficial. What would be the best way of merge requests? 

To be clear, both @pparocza and I are willing to take the lead and code these features.
Repository: TypeScript
Issue: JS ES6 class derived member functions typed with literals don't get assigned the correct type
Labels: Suggestion,Needs Proposal

# Bug Report

In rare cases (such as when literals are used in a type constraint), ES6 class overridden functions will cause strange issues when returning said literals from the derived function.

### 🔎 Search Terms

ts es6 class derived

### 🕗 Version & Regression Information

- This is the behavior in every version I tried, and I reviewed the FAQ for entries about ES6 classes

### ⏯ Playground Link

[Playground link with relevant code](https://www.typescriptlang.org/play?#code/MYGwhgzhAEBCkFMCwAoA3q6XoBcERwAoBKTbDFbK6ASwDNpCBZMHACwDoAnMAOwBMA9gFsS0AHzQADBwCspStSVcEOAK5de0WQG5UZZao1a6YEBAR7FWAL6o7KVKEgwAIgi40Abgn7QEAB54AjDwFqgUVHgEJAbQkUrQKuqa0KbmlnEODkA)

### 💻 Code

<!-- Please post the relevant code sample here as well-->
```js
class Base
{
    test()
    {
        if (Math.random() > 0.5)
            return 5;

        return false;
    }
}

class Derived extends Base
{
    // error here: for some reason, Derived::test() is typed as "() => boolean"
    // even though the literal false is being returned, and as such it says it can't
    // match Base::test
    test()
    {
        return false;
    }
}

```

### 🙁 Actual behavior

The derived function's auto-typing assumes it is the literals' actual type, such as number or boolean, instead of the literals themselves. Derived::test, if not overridden, is typed as `() => false`, which should match `() => 5 | false`, but because it's typed as boolean instead it breaks (this only seems to happen if we're overriding a base member function)

### 🙂 Expected behavior

The derived function should be able to match if the typing is handled as normal.
Repository: flutter
Issue: Testing engine releases for Flutter channels
Labels: engine,d: api docs,P2,team-engine,triaged-engine

What is the official way to test for a channel roll?

Is this it?
```
https://github.com/flutter/flutter/blob/beta/bin/internal/engine.version
https://github.com/flutter/flutter/blob/stable/bin/internal/engine.version
```

I wouldn't expect the two channels to have the same value

Also what about roll backs?
Repository: vscode
Issue: Workspace Trust - Restricted mode causes test failures
Labels: bug,workspace-trust

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- 🕮 Read our guide about submitting issues: https://github.com/microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions -->
<!-- 🔎 Search existing issues to avoid creating duplicates. -->
<!-- 🧪 Test using the latest Insiders build to see if your issue has already been fixed: https://code.visualstudio.com/insiders/ -->
<!-- 💡 Instead of creating your report here, use 'Report Issue' from the 'Help' menu in VS Code to pre-fill useful information. -->
<!-- 🔧 Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: N/A

<!-- 🪓 If you answered No above, use 'Help: Start Extension Bisect' from Command Palette to try to identify the cause. -->
<!-- 📣 Issues caused by an extension need to be reported directly to the extension publisher. The 'Help > Report Issue' dialog can assist with this. -->
- VS Code Version: 1.58.0-insider
- OS Version: Windows 10, 19043.1052

Steps to Reproduce:

1. Create an extension that would be disabled in restricted mode
2. Create a test that uses this extension, and open a folder that is in restricted mode by default
3. Test fails without running anything

Currently all workarounds I could find, such as using trust editor and security.workspace.trust.enabled (doc: https://code.visualstudio.com/docs/editor/workspace-trust), all require editing user or machine settings. They may be hard to be applied as the tests might run on the cloud, and so could have temporary pipeline agent and also could have permission issues.

So it would be great if there's a way to workaround this issue during testing.
Repository: transformers
Issue: Modify BERT encoder layers?
Labels: New model

Hello I would like to modify the encoder layers of the BERT model, to insert FC and ReLu layers.

This idea allows you to reproduce the use of [Squeeze-and-Excitation Networks](https://arxiv.org/abs/1709.01507)

How to use an nn.module class to handle encoder outputs?

Example:

```
import torch.nn as nn
from transformers import BertModel

class CustomBERTModel(nn.Module):
    def __init__(self):
          super(CustomBERTModel, self).__init__()
          self.bert = BertModel.from_pretrained("bert-base-uncased")
          # add your additional layers here, for example a dropout layer followed by a linear classification head
          self.dropout = nn.Dropout(0.3)
          self.out = nn.Linear(768, 2)

    def forward(self, ids, mask, token_type_ids):
          sequence_output, pooled_output = self.bert(
               ids, 
               attention_mask=mask,
               token_type_ids=token_type_ids
          )

          # we apply dropout to the sequence output, tensor has shape (batch_size, sequence_length, 768)
          sequence_output = self.dropout(sequence_output)
    
          # next, we apply the linear layer. The linear layer (which applies a linear transformation)
          # takes as input the hidden states of all tokens (so seq_len times a vector of size 768, each corresponding to
          # a single token in the input sequence) and outputs 2 numbers (scores, or logits) for every token
          # so the logits are of shape (batch_size, sequence_length, 2)
          logits = self.out(sequence_output)

          return logits
```
Repository: godot
Issue: Image.create_from_data has no sensible way of passing multi-byte samples 
Labels: topic:core,documentation

### Godot version

3.3

### System information

N/A

### Issue description

When using [`Image`](https://docs.godotengine.org/en/stable/classes/class_image.html).[`create_from_data`](https://docs.godotengine.org/en/stable/classes/class_image.html#class-image-method-create-from-data) with a multibyte format such as [`FORMAT_RGBF`](https://docs.godotengine.org/en/stable/classes/class_image.html#enum-image-format), there is no sensible way to pass the required 32-bit floating point samples as the expected `PoolByteArray` argument. 

The byte-order of the `Float32` samples is not specified anywhere, which means we cannot safely reinterpret the original `Float32` samples as a raw buffer of `UInt8` values (from the GDNative side), and pass the reinterpreted `UInt8` buffer to  [`Image`](https://docs.godotengine.org/en/stable/classes/class_image.html).[`create_from_data`](https://docs.godotengine.org/en/stable/classes/class_image.html#class-image-method-create-from-data).

### Steps to reproduce

N/A

### Minimal reproduction project

_No response_
Repository: rust
Issue: Tracking Issue for `BufRead::has_data_left`
Labels: T-libs-api,C-tracking-issue,A-io

<!--
Thank you for creating a tracking issue!

Tracking issues are for tracking a feature from implementation to stabilization.

Make sure to include the relevant RFC for the feature if it has one.

If the new feature is small, it may be fine to skip the RFC process. In that
case, you can use use `issue = "none"` in your initial implementation PR. The
reviewer will ask you to open a tracking issue if they agree your feature can be
added without an RFC.
-->

Feature gate: `#![feature(buf_read_has_data_left)]`

This is a tracking issue for adding `has_data_left` to `BufRead`. Its purpose is to determine whether a reader has any data left over to read.

<!--
Include a short description of the feature.
-->

### Example

<!--
For most library features, it'd be useful to include a summarized version of the public API.
(E.g. just the public function signatures without their doc comments or implementation.)
-->

```rust
let file = File::open("foo.txt")?;
let reader = BufReader::new(file);
let is_not_empty = reader.has_data_left()?;
```

### Steps / History

<!--
For larger features, more steps might be involved.
If the feature is changed later, please add those PRs here as well.
-->

- [x] Implementation: #85815 
- [ ] Final commenting period (FCP)
- [ ] Stabilization PR

<!--
Once the feature has gone through a few release cycles and there are no
unresolved questions left, the feature might be ready for stabilization.

If this feature didn't go through the RFC process, a final commenting period
(FCP) is always needed before stabilization. This works as follows:

A library team member can kick off the stabilization process, at which point
the rfcbot will ask all the team members to verify they agree with
stabilization. Once enough members agree and there are no concerns, the final
commenting period begins: this issue will be marked as such and will be listed
in the next This Week in Rust newsletter. If no blocking concerns are raised in
that period of 10 days, a stabilzation PR can be opened by anyone.
-->

### Unresolved Questions

<!--
Include any open questions that need to be answered before the feature can be
stabilised. If multiple (unrelated) big questions come up, it can be a good idea
to open a separate issue for each, to make it easier to keep track of the
discussions.

It's useful to link any relevant discussions and conclusions (whether on GitHub,
Zulip, or the internals forum) here.
-->

- Still need to finalize the name of `has_data_left` and whether the API should check the positive case or the negative case.
- [Internals discussion](https://internals.rust-lang.org/t/add-is-at-eof-to-bufread-trait/14798) (note that the post uses `is_at_eof` as the name of the new method).
Repository: flutter
Issue: [web][PWA] SafeArea Widget does not work on iOS Safari PWA
Labels: engine,platform-web,P2,browser: safari-ios,team-web,triaged-web

My app is running as PWA on iOS Safari but the SafeArea widget does not work as expected. see image below or 
[App](https://dev.web.gotok.app)

![IMG_2BD65F959615-1](https://user-images.githubusercontent.com/14053870/122509535-dc9dc480-cffb-11eb-8d72-fa5acf1dacbe.jpeg)
Repository: vscode
Issue: Dragging text doesn't work when cursor is off-center
Labels: bug,linux,editor-rendering


Issue Type: <b>Bug</b>

If the text cursor is not perfectly centered on a line of highlighted text, then it fails to drag it. Instead, nothing happens at all.
Image attached of the position of the cursor where click-dragging is ineffective.

![20210618_153013](https://user-images.githubusercontent.com/20448845/122511482-a9365680-d04a-11eb-8a60-b2726227dda0.jpg)


VS Code version: Code 1.56.2 (054a9295330880ed74ceaedda236253b4f39a335, 2021-05-12T16:45:26.313Z)
OS version: Linux x64 5.11.0-7614-generic

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz (12 x 2200)|
|GPU Status|2d_canvas: enabled<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>oop_rasterization: disabled_off<br>opengl: enabled_on<br>rasterization: disabled_software<br>skia_renderer: enabled_on<br>video_decode: disabled_software<br>vulkan: disabled_off<br>webgl: enabled<br>webgl2: enabled|
|Load (avg)|3, 3, 2|
|Memory (System)|31.09GB (1.74GB free)|
|Process Argv|--no-sandbox --unity-launch --crash-reporter-id eb1c688b-c4e3-4232-85a1-c01025d91995|
|Screen Reader|no|
|VM|0%|
|DESKTOP_SESSION|pop|
|XDG_CURRENT_DESKTOP|Unity|
|XDG_SESSION_DESKTOP|pop|
|XDG_SESSION_TYPE|x11|
</details><details><summary>Extensions (18)</summary>

Extension|Author (truncated)|Version
---|---|---
vscode-apollo|apo|1.19.3
bracket-pair-colorizer-2|Coe|0.2.1
vscode-eslint|dba|2.1.20
gitlens|eam|11.4.1
prettier-vscode|esb|6.4.0
restore-terminals|Eth|1.1.6
vscode-firefox-debug|fir|2.9.4
gauge|get|0.0.20
vscode-docker|ms-|1.13.0
remote-containers|ms-|0.177.2
vsliveshare|ms-|1.0.4419
vsliveshare-audio|ms-|0.1.91
vsliveshare-pack|ms-|0.4.0
vetur|oct|0.34.1
prisma|Pri|2.25.0
indenticator|Sir|0.7.0
language-stylus|sys|1.11.0
vscodeintellicode|Vis|1.2.14


</details><details>
<summary>A/B Experiments</summary>

```
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
pythonvspyt602:30300191
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyt639:30300192
pythontb:30283811
pythonvspyt551cf:30311713
vspre833cf:30267465
pythonptprofiler:30281270
vshan820:30294714
vscorecescf:30290706
pythondataviewer:30285071
vscus158:30286553
vscgsv2:30307504
vscorehov:30309549
vscod805:30301674
binariesv517:30312825

```

</details>

<!-- generated by issue reporter -->
Repository: deno
Issue: lsp: replace code lens navigation tree with swc "collector"
Labels: refactor,lsp

Currently, the TypeScript code lenses for implementations and references use the TypeScript "navigation tree", which is a light-weight AST, to identify positions in the code that might be "interesting" to lazily ask the TypeScript language server about at a future point.

Getting a navigation tree is one of the slower processes with the language server, and is several orders of magnitude slower than visiting an swc parsed AST.  In fact, we actually don't currently cache/reuse an swc parsed AST for a file across the language server, reparsing a file a few times depending on the types of requests to a language server.

I recently refactored the code for the code lenses to make them a little bit more self contained.  The logic for walking the "navigation tree" AST is in [lsp::code_lens::collect_tsc](https://github.com/denoland/deno/blob/main/cli/lsp/code_lens.rs#L412) and I implemented with test code lens using the "collector" pattern in [lsp::code_lens::collect_test](https://github.com/denoland/deno/blob/main/cli/lsp/code_lens.rs#L378) which is in my opinion the way we should refactor the TypeScript code lenses.

Also, caching the swc parse of the module in the document info would be a good thing I think.  That might take a bit more structuring of code.  It is used in dependency analysis of the document as well as the test code lens and also use by the linting (though I don't know how easy it would be to send it to deno_lint without a bigger refactor of one or the other).

This is the refactor I had in my mind @dsherret that I mentioned to you. Let me know if you want to work on it, if not, we can always add it to my backlog. 😄
Repository: node
Issue: child process hangs indefinitely
Labels: child_process

Unfortunately it happens only in our Gitpod env, so following steps: 
- start this workspace https://gitpod.io#https://github.com/akosyakov/Resourceium
- there will be `Test` terminal running https://github.com/akosyakov/Resourceium/blob/development/test.js and started with https://github.com/akosyakov/Resourceium/blob/cc9b6f06e5f7c8b1950f1d7911b66cfb36c326f2/.gitpod.yml#L25

Node version is v14.17.0

While debugging I found out that stderr does not get destroyed, although we listen to it and consume all data. It also does not happen always, seems to depend on timing with something else, i.e. there are 3 other terminals which are doing some stuff on first run of workspace.