sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: svelte
Issue: Scoped keyframes don't work with css variables
Labels: css

### Describe the bug

Declaring keyframes in a `style` tag inside a svelte component, and then trying to apply it like so:
```
div {
  --base-animation: move 1s linear infinite;
  animation: var(--base-animation);
}
```
Results in the animation not working. This happens since the var doesn't actually use the scoped animation name. A solution is to use global keyframes, but it would be nice to have a way to get the scoped animation name and use it in the var.   

### Reproduction

https://svelte.dev/repl/4d9a73a5c141460a980e3e08d5f741ad?version=3.48.0

### Logs

_No response_

### System Info

```shell
System:
    OS: macOS 12.0.1
    CPU: (8) arm64 Apple M1
    Memory: 86.50 MB / 16.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 16.13.0 - /usr/local/bin/node
    Yarn: 1.22.17 - /usr/local/bin/yarn
    npm: 8.1.0 - /usr/local/bin/npm
    Watchman: 2022.02.28.00 - /opt/homebrew/bin/watchman
  Browsers:
    Chrome: 102.0.5005.115
    Firefox: 101.0.1
    Safari: 15.1
  npmPackages:
    svelte: ^3.44.0 => 3.48.0
```


### Severity

annoyance
Repository: kubernetes
Issue: delaying queue does not suppress duplicates between FIFO and waiting items
Labels: kind/bug,sig/api-machinery,triage/accepted

### What happened?

https://github.com/kubernetes/client-go/blob/master/util/workqueue/delaying_queue.go suppresses duplicates within the FIFO, and suppresses duplicates within the priority queue of waiting items, but does not suppress duplicates between them.

### What did you expect to happen?

By the same logic that motivates duplicate suppression _within_ each of those two sections, there should also be duplicate suppression _between_ those two sections.

### How can we reproduce it (as minimally and precisely as possible)?

Read the code

### Anything else we need to know?

_No response_

### Kubernetes version

<details>

This is current and long-standing.

</details>


### Cloud provider

<details>
N/A
</details>


### OS version

<details>

N/A

</details>


### Install tools

<details>

</details>


### Container runtime (CRI) and version (if applicable)

<details>

</details>


### Related plugins (CNI, CSI, ...) and versions (if applicable)

<details>

</details>
Repository: vscode
Issue: Elements inside a gitlens hover appear to jiggle
Labels: bug,editor-hover

Extracted from https://github.com/microsoft/vscode/issues/151683 cc @eamodio

---

There is some odd rendering sometimes when you move the mouse over different parts of a line (from left to right) where the icons in the GitLens hover seem to wiggle:

![wiggle](https://user-images.githubusercontent.com/641685/172992776-a67c1ff2-0acd-4c75-a1eb-c45681ee7b78.gif)

FYI, I have `"gitlens.hovers.currentLine.over": "line"` set so that the GitLens hovers show over the whole line rather than just the annotation
Repository: pytorch
Issue: Improve clarity by making sharding a static nightly update
Labels: module: ci,triaged

Currently, sharding is done at every CI job, which involves downloading and parsing data from the outside world in the job, which can allow for flakiness or redness that is NOT the fault of the commit. Now that we have GH1, we can write test times to the repo every night and the CI jobs can read from that file in the repo instead of needing to access the outside world.

cc @seemethere @malfet @pytorch/pytorch-dev-infra
Repository: godot
Issue: KinematicBody2D move_and_slide_with_snap return wrong velocity
Labels: topic:physics,needs testing

### Godot version

3.4.4 Stable Official

### System information

Windows 10

### Issue description

When use move_and_slide_with_snap, it will return a wrong velocity when it moving and stop on a slope. I use two different gravity, one for air and another lower gravity for slope, fpr the purpose of fixing the body move upward slower than downward when it's on slope. But  the velocity is very slow to get back to zero even it's already stopped.

### Steps to reproduce

Use move_and_slide_with_snap and use a lower gravity when the body is on the floor.

### Minimal reproduction project

[SnapSlideBug.zip](https://github.com/godotengine/godot/files/8928575/SnapSlideBug.zip)
Repository: neovim
Issue: Export `nvim__screenshot()` variant suitable for testing
Labels: enhancement,test,plugin

### Feature already in Vim?

No

### Feature description

During writing a framework for testing Neovim plugins, I discovered `vim.api.nvim__screenshot()`. Although it seems to be ["quasi-official"](https://github.com/neovim/neovim/pull/12838#issuecomment-687662042), it served the purpose very well. It can be used for making reference screenshot to be compared later during testing. And bonus points for being directly displayable in terminal (with small tweaks) in case of an error.

However, I recently discovered that it seems to depend heavily on terminal emulator in which it is being used. Although text is the same, ANSI escape codes might differ. So this is not very robust (e.g. doesn't really work straightforwardly inside Github Actions CI).

I guess, this is a two-part issue:
- Does core team would be interested in making this a "full officially" exported function? What should be done to achieve this? I imagine: documentation, tests, and some way of making it exported?
- Is there a way to make it more robust with intent to let plugin authors use it inside tests? I have very limited knowledge about terminal emulators and Neovim codebase, so can't tell if this is a silly question or not.

@bfredl, as original author, could you, please, share your opinion on this? Thanks.
Repository: axios
Issue: runWhen option for response interceptors
Labels: state::triage

#### Is your feature request related to a problem? Please describe.
It is impossible to define runWhen function for response interceprtors. 

#### Describe the solution you'd like
I would love to have the possibility of defining the runWhen option for response interceptors

#### Describe alternatives you've considered
````javascript
http.interceptors.response.use((response) => {
    const message = response.data?.message;
    if(message && response.config.notify) {
        Notify.create({
            position: 'top',
            color: 'positive',
            message: message,
            icon: 'fal fa-info-circle'
        });
    }
    return Promise.resolve(response);
},(error) => {
    if(error.config.notify) {
        let message = '';
        if (error.response && error.response.data.message) {
            message = error.response.data.message;
        } else if (error.request) {
            message = 'No response';
        } else {
            // Something happened in setting up the request that triggered an Error
            message = `Unknown error: ${error.message}`;
        }
        Notify.create({
            position: 'top',
            color: 'negative',
            message: message,
            icon: 'fal fa-exclamation-circle'
        });
    }
    return Promise.reject(error);
});
````

#### Additional context
it is useful sometimes,
Repository: pytorch
Issue: Parameter.__deepcopy__ doesn't preserve view relationships
Labels: module: nn,triaged,module: correctness (silent)

When deepcopying a module with `Parameter`s that share the same storage, the resultant copy does not maintain the view relationship.

```python
import torch
from copy import deepcopy

class MyModule(torch.nn.Module):
    def __init__(self):
        super().__init__()
        t = torch.randn(3, requires_grad=True)
        self.p1 = torch.nn.Parameter(t)
        self.p2 = torch.nn.Parameter(t)

m = MyModule()

# True; parameters share same storage
print(m.p1.storage().data_ptr() == m.p2.storage().data_ptr())

m_copy = deepcopy(m)

# False; parameters don't share same storage for copy
print(m_copy.p1.storage().data_ptr() == m_copy.p2.storage().data_ptr())
```

This happens because memoization for `Parameter.__deepcopy__()` is done at the `Parameter` level, and so will only kick in if it sees the same `Parameter` object twice:

https://github.com/pytorch/pytorch/blob/bcc4dba439db7a9e11dec9bc98a41069a7adef57/torch/nn/parameter.py#L52-L58

In contrast, `Tensor.__deepcopy__()` does memoization at the `Tensor` level, deepcopying the underlying storage once and reusing if the tensor has been seen before (preserving view relationships). 

Ideally, `Parameter.__deepcopy__()` memoization should happen at this level as well. Proposed fix is to tweak `Parameter.__deepcopy__()` to call `Tensor.__deepcopy__()` instead of `clone()`.

cc @albanD @mruberry @jbschlosser @walterddr @kshitij12345 @saketh-are
Repository: PowerToys
Issue: Different FancyZones configs on multiple displays
Labels: Idea-Enhancement,Product-FancyZones,Needs-Triage

### Description of the new feature / enhancement

I am starting to use the Desktops feature in Windows 11 to separate out internal work and customer-facing work. As well as personal stuff.

I would like to have FancyZones configured to use different settings on each Desktop. So, a config for Desktop 1 that uses Columns as well as a config on Desktop 2 that uses Rows. And then no config for Desktop 3.

### Scenario when this would be used?

I am starting to use the Desktops feature in Windows 11 to separate out internal work and customer-facing work. As well as personal stuff.

I would like to have FancyZones configured to use different settings on each Desktop. So, a config for Desktop 1 that uses Columns 

### Supporting information

_No response_
Repository: go
Issue: proposal: x/sync/singleflight: add generic version
Labels: Proposal

The singleflight package's `Group` type uses `string` keys and `interface{}` values:

https://pkg.go.dev/golang.org/x/sync/singleflight#Group

I've locally forked it to add generics `[K comparable, V any]` but I'd like to get it upstream instead.

Proposal: add `singleflight.TypedGroup[K, V]` or `singleflight.GenericGroup[K, V]` or `singleflight.GroupOf[K, V]` behind a `go1.18` build tag.

Do we have a convention yet on naming new parallel generic types alongside others?

Related: #47657 (for PoolOf, MapOf). (There was also talk of default type parameters so old code could instantiate types and get the old behavior (in this case `[string, any]`) and new callers could specify types?)
Repository: excalidraw
Issue: keeping element references up to date
Labels: discussion

### problem

This concerns mainly `appState` where we temporarily keep references to excalidraw elements, such as `draggingElement`, `editingElement`, `pendingImageElement` and so on.

We tend to update elements either by mutating them (`mutateElement()`) or by creating a new object, which retains immutability (`newElementWith()`). We use mutation mainly for performance reasons in tight loops. Disregarding performance, immutability is preferred in general.

But, when we create a new object while updating an element, it means the appState references are no longer pointing to the new element, which leads to reading/updating stale data no longer existing in the elements array.

We're working around this in ad hoc ways, sometimes updating the appState reference at the same time we update the element, or by treating the state as just an id reference and retrieving the actual element on each access. Sometimes we forget to do either and this leads to buggy behavior.

We should come up with a generic solution we don't need to thinking about in every case.

### proposals

1) migrate all state element references to ids so that we're forced to always retrieve latest elements.

	**Downsides:** worse DX, more boilerplate. Potentially slower speed. Necessity to pass `Scene` instance where we only pass `appState`, so that we can retrieve the element.

    (This is what I'm doing for now to fix https://github.com/excalidraw/excalidraw/pull/5322)

2) (auto) update appState references inside when renewing element references.

	**Downsides:** Would require big rewrites in order for this to not have bigger effects on perf, and had limited effect on DX. Also not 100% safe as there's no guarantee we don't renew references in ways (history pop, ad-hoc object literal creation, ...).

3) ???
Repository: flutter
Issue: [flutter_tools] remove all references to .packages in tool tests
Labels: tool,P2,c: tech-debt,team-tool,triaged-tool

Context https://github.com/dart-lang/sdk/issues/48272

Pub is no longer creating .packages file, however the tool still has some tests that are creating a mock one (e.g. https://github.com/flutter/flutter/blob/496049263e4efd68ced664ee2c90db9c93f08571/packages/flutter_tools/test/general.shard/plugins_test.dart). These tests should be updated to instead create a .dart_tool/package_config.json file which is what pub is now generating.
Repository: PowerToys
Issue: Add an auto-filter row add-on to File Explorer
Labels: Idea-New PowerToy,Product-File Explorer

### Description of the new feature / enhancement

A text input box could be placed just beneath the upper column labels in File Explorer. If a user types text into the row, it will filter the visible files in the folder such that only filenames containing matching text would be shown.

### Scenario when this would be used?

This feature could be used as a faster alternative to the search box, since all the items in the folder are quickly filtered out while the user searches for specific keywords.

### Supporting information

![unfiltered list](https://user-images.githubusercontent.com/79775102/174378218-4c0d7a4c-1361-4d99-812b-72933535242e.jpg)
![filtered list](https://user-images.githubusercontent.com/79775102/174378188-33b1d166-86ae-4089-ae55-892c33ea9649.jpg)


The two screenshots show an example of an auto filter row in a third party ERP application. One screenshot shows a simple list of items, and the other screenshot shows how the items containing the word "shell" in the Name column are filtered base don the filter input text.
Repository: rust
Issue: Error: The type of const parameters must not depend on other generic parameters
Labels: A-const-generics,F-generic_const_parameter_types

The following code

```rust
struct Test<T, const VAL: T>(T);
```

Results in a "error[E0770]: the type of const parameters must not depend on other generic parameters" compilation error on current Nightly.

I would expect that there is some unstable feature `generic_const_exprs` but complier suggests none. I've seen enough people having this question so I think it worth having one issue to have all relevant answers/solutions.
Repository: vscode
Issue: Expose access token expiration time from `AuthenticationSession`
Labels: feature-request,api,authentication

<!-- ⚠️⚠️ Do Not Delete This! feature_request_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->

<!-- Describe the feature you'd like. -->
VS Code exposes the access token for an `AuthenticationSession` but not its expiration time.  There are some client SDKs (notably one of Azure's SDKs) that expect a credentials object that exposes both the token and its expiration.  (It happens, in the case of Azure, that faking an expiration time works, but that's an implementation detail that could easily break version to version.)

I propose adding an `expiresAt` property to `AuthenticationSession`:

```typescript
declare namespace 'vscode' {
    export interface AuthenticationSession {
        /**
         * The date/time at which the access token will expire, expressed by the number of milliseconds elapsed since 1/1/1970 00:00:00 UTC.
         */
        readonly expiresAt: number;
    }
}
```
Repository: go
Issue: runtime: TestNetpollBreak failures with `netpollBreak did not interrupt netpoll`
Labels: NeedsInvestigation,compiler/runtime

From https://storage.googleapis.com/go-build-log/bf90716a/windows-amd64-longtest_a1003c10.log (a `windows-amd64-longtest` SlowBot on [CL 404854](https://go.dev/cl/404854)):
```
##### GOMAXPROCS=2 runtime -cpu=1,2,4 -quick
--- FAIL: TestNetpollBreak (10.00s)
    proc_test.go:1136: netpollBreak did not interrupt netpoll: slept for: 10.003871s
FAIL
FAIL	runtime	573.743s
FAIL
2022/06/17 20:32:37 Failed: exit status 1
```

`greplogs -l -e 'FAIL: TestNetpollBreak .*(?:\n .*)* netpollBreak did not interrupt netpoll' --since=2021-01-01`
[2021-11-02T18:01:20-629ffeb/linux-386-longtest](https://build.golang.org/log/727681ab9386b1c797d522422fb76ecd53acd58a)
[2021-10-21T23:48:53-3beab0c/windows-arm64-10](https://build.golang.org/log/2237622f8db6e61e35836233e1845cc3fe628fc2)

I don't see any failures in the logs for 2022 (apart from the SlowBot mentioned above).

See previously #35075.

(CC @golang/runtime)
Repository: vscode
Issue: Find/Search inputs: Allow setting input font, like in SCM.
Labels: feature-request,search

<!-- ⚠️⚠️ Do Not Delete This! feature_request_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->

<!-- Describe the feature you'd like. -->

I would like to have the ability to set the font size and family of search inputs. I often find it difficult to search using regular expressions as certain characters mushed together can be hard to read. Here is one example of a RegEx I was using to search for some specific code in a project, not the worst case scenario, but does illustrate the problem.

![image](https://user-images.githubusercontent.com/9543257/174400902-35bba32f-72f0-4f53-98d9-3e7ac4ee1b94.png)

Using VSC DevTools to change the font-family of the input field, it is much more readable.

![image](https://user-images.githubusercontent.com/9543257/174401408-95ea963f-0784-4772-a413-c63c6689a104.png)

I think this just makes sense to allow users of the application to set their own font, if at least for better accessibility. As a bonus, it would be great if the Ctrl+F find/replace inputs allowed for a custom font as well. I've searched around existing issues and found folks asking for similar functionality, but I couldn't find anything specific to the search pane. If there is already a way to set this somewhere, please let me know. I wasn't able to find a setting for it.

Cheers!
Repository: flutter
Issue: [web] Improve dev/bots/service_worker_test
Labels: a: tests,platform-web,P3,c: tech-debt,team-web,triaged-web

`dev/bots/service_worker_test.dart` used to be a small file that focused on testing if the service worker pre-cache and cache behavior worked as expected.

However in the last few months, more features have been tested using the same infrastructure, and the file is getting a little bit too big and hard to maintain.

A couple of bits that stand out:

* The app that is under test uses different HTML and Dart entrypoints. This is handled by copying around different index.html files, and using -t lib/some_other_main.dart with different logic. Copying the files is ad-hoc code, and would benefit from #78254
* There's a lot of copy-pasta maintaining the "server that logs how many hits each requested file has" to do assertions later, there's at least 3 copies of very similar code in the file (I just had to add the 3rd!), where most of it could be reused.

Code:

* https://github.com/flutter/flutter/blob/master/dev/bots/service_worker_test.dart
* https://github.com/flutter/flutter/tree/master/dev/integration_tests/web (service_worker_* apps under test)

## Proposal

Audit all the different usages of dev/integration_tests/web/lib/*.dart, and see if there are more integration tests that build those apps... and how they do it. Maybe service_worker_test.dart is not the only file that could benefit from this refactor (?)

Tweak dev/bots/service_worker_test.dart to reuse code, start web apps more properly (after #78254), and in general, show it some TLC.
Repository: flutter
Issue: Docs improvements to generic actions and intents
Labels: framework,d: api docs,P2,team-framework,triaged-framework

Some of our generic intents/actions could use examples in their docs of how they are actually used.  Pointed out to me by @matthew-carroll:

  * [VoidCallbackIntent](https://github.com/flutter/flutter/blob/9a5f10680f1f178230898d754aa27148c420bc3f/packages/flutter/lib/src/widgets/actions.dart#L1305): An [Intent] that keeps a [VoidCallback] to be invoked by a [VoidCallbackAction] when it receives this intent.

  * [VoidCallbackAction](https://github.com/flutter/flutter/blob/9a5f10680f1f178230898d754aa27148c420bc3f/packages/flutter/lib/src/widgets/actions.dart#L1322): An [Action] that invokes the [VoidCallback] given to it in the [VoidCallbackIntent] passed to it when invoked.

  * [CallbackAction](https://github.com/flutter/flutter/blob/9a5f10680f1f178230898d754aa27148c420bc3f/packages/flutter/lib/src/widgets/actions.dart#L523): An action that will invoke a callback with the intent passed to the action's invoke method. The callback is configured on the action, not the intent, like this class.

It's hard to distinguish these at a glance.  It's unclear when or how these are intended to be used, and a quick sentence in each one's docs might help clear that up.
Repository: vscode
Issue: Accept detected language
Labels: bug,languages-guessing


Issue Type: <b>Bug</b>

I am working on a jupyter notebook file. The editor in the bottom right corner of each cell is suggesting to change the language to SQL. The code is clearly Python.

E.g. the code looks something like this:

df['Example 1'] = df['Example 4'].str[0]

VS Code version: Code 1.68.1 (30d9c6cd9483b2cc586687151bcbcd635f373630, 2022-06-14T12:48:58.283Z)
OS version: Windows_NT x64 10.0.19043
Restricted Mode: No

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|Intel(R) Xeon(R) Platinum 8272CL CPU @ 2.60GHz (4 x 2594)|
|GPU Status|2d_canvas: unavailable_software<br>canvas_oop_rasterization: disabled_off<br>direct_rendering_display_compositor: disabled_off_ok<br>gpu_compositing: disabled_software<br>multiple_raster_threads: enabled_on<br>oop_rasterization: disabled_off<br>opengl: disabled_off<br>rasterization: disabled_software<br>raw_draw: disabled_off_ok<br>skia_renderer: enabled_on<br>video_decode: disabled_software<br>video_encode: disabled_software<br>vulkan: disabled_off<br>webgl: unavailable_software<br>webgl2: unavailable_software|
|Load (avg)|undefined|
|Memory (System)|128.00GB (86.06GB free)|
|Process Argv|--crash-reporter-id d9646126-7de5-422b-a82c-4d5fa527958c|
|Screen Reader|yes|
|VM|0%|
</details><details><summary>Extensions (10)</summary>

Extension|Author (truncated)|Version
---|---|---
markdown-preview-github-styles|bie|1.0.1
copilot-nightly|Git|1.30.6167
vscode-pull-request-github|Git|0.44.0
vsc-python-indent|Kev|1.16.0
auto-save|mcr|1.0.3
python|ms-|2022.8.0
jupyter|ms-|2022.5.1001601848
jupyter-keymap|ms-|1.0.0
jupyter-renderers|ms-|1.0.8
resourcemonitor|mut|1.0.7


</details>
<!-- generated by issue reporter -->