sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: TypeScript
Issue: MSBuild integration with ASP.NET Core
Labels: Needs Investigation

The ASP.NET SDK has an asset pipeline that processes all the web content for the app to apply optimizations (compression/fingerprinting, etc.).

There are a few things that make integration between the MSBuild SDK and the ASP.NET Core pipeline challenging, and while we've given people guidance, it would be great if we can enable this scenario to work without having to make such changes to their project.

There are two main challenges that we face:
* By default the TypeScript targets run too late in the pipeline for us to see the generated outputs. Our guidance suggests hooking up the relevant targets to the `PrepareForBuild` target as shown below:
```xml
<PrepareForBuildDependsOn>
  CompileTypeScript;
  CompileTypeScriptWithTSConfig;
  GetTypeScriptOutputForPublishing;$(PrepareForBuildDependsOn)
</PrepareForBuildDependsOn>
```
  * I suspect the snippet above is not fully correct, as more targets are involved in the TypeScript setup in `CompileDependsOn`.
  * This makes the TS targets run early enough so that standard targets in the ASP.NET Core pipeline can detect and process them as expected.
* The second challenge that we face is that is typical for people to dump their outputs into the wwwroot folder. When this happens, (after the change above) `GetTypeScriptOutputForPublishing` will add all the `GeneratedJavaScript` items to the `Content` item group unconditionally.
  * This results in the presence of duplicate `Content` items that interferes with the build.
  * We've given people the following target to remove the duplicates before the `GetTypeScriptOutputForPublishing` target adds them.
  ```xml
  <Target Name="RemoveDuplicateTypeScriptOutputs" BeforeTargets="GetTypeScriptOutputForPublishing">
    <ItemGroup>
      <Content Remove="@(GeneratedJavaScript)" />
    </ItemGroup>
  </Target>
  ```

This gets things into a working state, but it's obviously not trivial for customers to discover/setup in their app. Hopefully we can work together to make this scenario `just work` by implementing a few simple changes.

* Have a target `ResolveTypeScriptOutputs` or similar that produces the compile outputs as items in the `Content` item group and that can run early enough in the pipeline (PrepareForBuild is a good candidate, or it can be configurable).
* Avoid adding duplicate content items to the `Content` item group by using `Exclude="@(Content)` to prevent duplicates.
* Checking for `UsingMicrosoftNETSdkStaticWebAssets` to wire up `ResolveTypeScriptOutputs` early enough in the pipeline so that the outputs can be detected and disable other targets that are not needed (Anything that deals with copying the outputs to the output/publish folder is already handled by the static web assets SDK).
Repository: TypeScript
Issue: Tuple Spread Inconsistencies When Intersected
Labels: Bug,Help Wanted

### 🔎 Search Terms

Tuple, Intersection, Spread

### 🕗 Version & Regression Information

- This is the behavior in every version I tried, and I reviewed the FAQ for entries about tuples and arrays

### ⏯ Playground Link

https://www.typescriptlang.org/play/?#code/C4TwDgpgBAKgrmANtAvFA2gZ2AJwJYB2A5gDRQB0lBcAtgEYQ7oC6zA3AFCiSwLICSBYI0wQAxsDwB7AlDTwk0AGRQA3lDA4pYAFxRs+YlAC+nDl3DQFyAEoRsAQTFj7mOb0XoAjOw4B6PygggD0oanpGc24rPghBYRxRCWkCO0dnV3drOKERcUkZb18AoKhQg0IiKAAfMNoGHHMLHmyAZU0IAEMAE3d0SnJs4sDSsowK4jIB8IaWZijLDwFcxPyU9pwu3rR+ymz4vOSZYdLQgAoJqtqZxgBKFiA

### 💻 Code

```ts
type Tuple = [string, ...number[]];
type TupleIntersection = Tuple & { prop: string };


type TupleRestAccess = Tuple[1];
//   ^ number

type TupleIntersectionRestAccess = TupleIntersection[1];
//   ^ string | number


type TupleSpread = [...Tuple];
//     ^ [string, ...number[]]

type TupleIntersectionSpread = [...TupleIntersection];
//   ^ (string | number)[]
```


### 🙁 Actual behavior

`TupleIntersection[1]` and `[...TupleIntersection]` both seem to use an overly broad type, matching the `number` index signature instead of the more narrow spread signature.

What I mean is that `TupleIntersection[1]` behaves just like `Tuple[number]` does. This leads me to believe that the `number` index signature is synthesized correctly but the logic for numeric literals in the range of the spread signature aren't handled.

### 🙂 Expected behavior

I expected `Tuple`'s behaviour to match `TupleIntersection`.

### Additional information about the issue

_No response_
Repository: pytorch
Issue: The description of key_padding_mask in float mode is incorrect
Labels: module: nn,triaged

### 📚 The doc issue

The problematic [document](https://pytorch.org/docs/stable/generated/torch.nn.MultiheadAttention.html#torch.nn.MultiheadAttention) is about the description of key_padding_mask.
key_padding_mask：For a float mask, it will be directly added to the corresponding key value.

issue：I tested this float type and the results showed that it was not directly added to the key value, but did change the weight value in some form. The code and results are shown below.
```
import torch
import torch.nn as nn
import torch.nn.functional as F

multiheadattention=nn.MultiheadAttention(embed_dim=2,
num_heads=1,bias=False,batch_first=True)
data=torch.tensor([[[1,1.],[2,0.]]])
multiheadattention.in_proj_weight.data=torch.tensor(
[[1.,2],[0,1],[1,0],[1,1],[2,1],[2,0]])
multiheadattention.out_proj.weight.data=torch.tensor([[1,2],
[3,4.]])
keypaddingmask=torch.tensor([[1,2.]])
out1=multiheadattention(data,data,data,
need_weights=True,key_padding_mask=keypaddingmask)#When removing key_padding_mask, the returned weight tensor([[[0.1070, 0.8930], [0.1956, 0.8044]]] is correct, but adding key_padding_mask will result in an incorrect weight tensor([[[0.0422, 0.9578], [0.0821, 0.9179]]] as described in the document.
print(out1)
```

![image](https://github.com/user-attachments/assets/985e8af9-0a17-4f0e-af28-8f925c9b3258)








### Suggest a potential alternative/fix

Update the description about key_padding_mask.

cc @albanD @mruberry @jbschlosser @walterddr @mikaylagawarecki @bhosmer @cpuhrsch @erichan1 @drisspg
Repository: tauri
Issue: [bug] `tauri add` doesn't add the conditional inclusion for desktop vs mobile
Labels: type: bug,status: needs triage

If you follow the docs to add updater like `cargo tauri add updater`, it adds everything but you'll get this error: `error[E0433]: failed to resolve: use of undeclared crate or module tauri_plugin_updater`.

The reason for this is because in the `Cargo.toml` it will add `tauri-plugin-updater` conditionally excluding mobile builds:
```
[target.'cfg(not(any(target_os = "android", target_os = "ios")))'.dependencies]
tauri-plugin-updater = "2.0.2"
```

Thus, the program cannot find tauri-plugin-updater when referenced in the `lib.rs` builder.

I fixed this by doing:

```
    let mut builder = tauri::Builder::default()
        .plugin(tauri_plugin_dialog::init())
        .plugin(tauri_plugin_fs::init())
        .plugin(tauri_plugin_os::init())
        .invoke_handler(tauri::generate_handler![
            ...
        ]);

    #[cfg(not(any(target_os = "android", target_os = "ios")))]
    {
        builder = builder.plugin(tauri_plugin_updater::Builder::new().build());
    }
```

One option is we can update the install script to also do this by default.
Repository: PowerToys
Issue: json
Labels: Product-Advanced Paste

### Description of the new feature / enhancement

json viewer, parser and crack thing

### Scenario when this would be used?

when we copy the complex json value we want to crack it like cracker do and parse them also some time we have to convert it on xml

### Supporting information

_No response_
Repository: excalidraw
Issue: web embed
Labels: enhancement,whitelist

hope you can allow 127.0.0.1 or localhost ip use web embed
Repository: godot
Issue: Parameter audio/driver/output_latency typed as INT is too restrictive to adjust the buffer size.
Labels: enhancement,topic:audio

### Tested versions

- Reproducible in 4.4 dev4 and previous releases

### System information

Windows 11

### Issue description

I use a lot of audio tools in combination with Godot :
- Audio interfaces like RME Babyface Pro fs or Motu M2
- Qjackctl for Windows
- Voicemeeter
- BiasFx or BYOD
All these tools let me choose the buffer size to reduce the latency in audio input and output.

For my setup, a buffer size of 256 is a good compromise for audio quality and audio latency.
So, when I try to adjust Godot parameter "audio/driver/output_latency" to set a similar buffer size, it is not possible to obtain a buffer size of 256, due to the input value rounded as integer.

Here are the possible values obtained when I modify this parameter :
0 -> Not possible automatically set to 1
1 -> WASAPI: audio buffer frames: 128 calculated latency: 2ms
2 -> WASAPI: audio buffer frames: 128 calculated latency: 2ms
3 -> WASAPI: audio buffer frames: 144 calculated latency: 3ms
4 -> WASAPI: audio buffer frames: 192 calculated latency: 4ms
5 -> WASAPI: audio buffer frames: 240 calculated latency: 5ms
6 -> WASAPI: audio buffer frames: 288 calculated latency: 6ms
7 -> WASAPI: audio buffer frames: 336 calculated latency: 7ms
8 -> WASAPI: audio buffer frames: 384 calculated latency: 8ms
9 -> WASAPI: audio buffer frames: 432 calculated latency: 9ms
10 -> WASAPI: audio buffer frames: 480 calculated latency: 10ms
> 10 -> WASAPI: audio buffer frames: 480 calculated latency: 10ms

It is difficult to set the buffer size in Godot because we have to do a calculation based on the latency in ms and the default sample rate of audio files.

There is no GDScript function to get back the buffer size, and we have to use the verbose mode to obtain this information.
Such a function is necessary, because there can be a difference between the desired latency and the latency restricted by the audio driver.

I can play with the source code for testing purposes during my development process, but if I release the game, the end users won't be able to adjust this kind of setting to reduce the audio latency consistently with their hardware and OS capabilities.

### Steps to reproduce

Change the parameter value and run Godot in verbose mode to display the message that contains the buffer size and the calculated latency :
 "WASAPI: audio buffer frames: 480 calculated latency: 10ms"

### Minimal reproduction project (MRP)

Not necessary, running Godot editor in verbose mode is enough.
Repository: deno
Issue: `glob` does not exist in `node:fs` and `node:fs/promises`
Labels: bug,node compat

Version: Deno 2.0.6
The Deno docs specify that [`glob`](https://docs.deno.com/api/node/fs/~/glob) and [`globSync`](https://docs.deno.com/api/node/fs/~/globSync) should be exported from `node:fs` and [`glob`](https://docs.deno.com/api/node/fs/promises/~/glob) from `node:fs/promises`, but these seem to not be exported or defined.
```
error: Uncaught SyntaxError: The requested module 'node:fs' does not provide an export named 'glob'
import { glob } from "node:fs";
         ^
```
```
error: Uncaught SyntaxError: The requested module 'node:fs' does not provide an export named 'globSync'
import { globSync } from "node:fs";
         ^
```
```
error: Uncaught SyntaxError: The requested module 'node:fs/promises' does not provide an export named 'glob'
import { glob } from "node:fs/promises";
         ^
```
```ts
import fs from "node:fs";
import fsp from "node:fs/promises";
console.log(fs.glob, fs.globSync, fsp.glob); // undefined undefined undefined
```

edit: also, if Deno is actually supposed to add `glob` and `globSync`, shouldn't an equivalent function be available from Deno's built-in filesystem api? it seems strange to _only_ add it to `node:fs`
Repository: angular
Issue: Unable to Clear Cached Data in Angular-Generated Service Worker
Labels: area: service-worker

### Which @angular/* package(s) are the source of the bug?

service-worker

### Is this a regression?

No

### Description

I am using the Angular Service Worker, and it works well overall. However, I encountered a potential data leak issue when caching API responses. Here’s the scenario:

If I cache an API response (e.g., abc.com/api/posts) for User A, then log out and log in as User B, and switch to offline mode before fetching the API for User B, I can still see the cached data belonging to User A. This is a significant security concern, as it exposes sensitive data across user sessions.

To address this issue, I decided to implement a custom service worker to extend the functionality of Angular’s generated service worker. My custom implementation looks like this:

```javascript
importScripts('./ngsw-worker.js');

self.addEventListener('message', async (event) => {
    const cacheNames = await self.caches.keys();
    for (const name of cacheNames) {
        await self.caches.delete(name);
    }
});
``` 

With this approach, I expect that sending a message (e.g., after logging out) will clear all cached data from the browser's cache storage:

```javascript
navigator.serviceWorker.controller.postMessage({
    type: 'CLEAR_CACHE',
});
``` 

While this solution successfully clears the visible data in the browser’s cache storage (verified via DevTools), an issue persists: if I refresh the page and switch to offline mode, the previously cached data is still accessible. This suggests that Angular’s ngsw-worker.js maintains an internal cache that I cannot access or clear using my current implementation.

### Please provide a link to a minimal reproduction of the bug

_No response_

### Please provide the exception or error you saw

```true

```

### Please provide the environment you discovered this bug in (run `ng version`)

```true
Angular CLI: 17.2.3
Node: 20.10.0
Package Manager: npm 10.2.3
OS: Mac os

Angular: 17.2.3
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1702.3
@angular-devkit/build-angular   17.2.3
@angular-devkit/core            17.2.3
@angular-devkit/schematics      17.2.3
@angular/cli                    17.2.3
@schematics/angular             17.2.3
rxjs                            7.5.6
typescript                      5.3.3
zone.js                         0.14.4
```

### Anything else?

_No response_
Repository: deno
Issue: `deno install` can't handle code and cache on different devices
Labels: windows,triage required 👀

Version: Deno 2.0.6

My code folder (`/Volumes/Code`) is a separated volume (so that it can be case-sensitive). When I was following https://deno.com/blog/build-astro-with-deno and ran `deno install --allow-scripts`:

```
Failed to clone dir "/Users/shiroki/Library/Caches/deno/npm/registry.npmjs.org/sisteransi/1.0.5" to "/Volumes/Code/osa/website/node_modules/.deno/sisteransi@1.0.5/node_modules/sisteransi" via clonefile: Cross-device link (os error 18)
......
Failed to clone dir "/Users/shiroki/Library/Caches/deno/npm/registry.npmjs.org/astro/4.16.13" to "/Volumes/Code/osa/website/node_modules/.deno/astro@4.16.13/node_modules/astro" via clonefile: Cross-device link (os error 18)
error: script 'install' in 'sharp@0.33.5' failed with exit code 1
stderr:
error: [ERR_MODULE_NOT_FOUND] Cannot find module 'file:///Volumes/Code/osa/website/node_modules/.deno/sharp@0.33.5/node_modules/sharp/install/check' imported from 'file:///Volumes/Code/osa/website/node_modules/.deno/sharp@0.33.5/node_modules/sharp'

error: failed to run scripts for packages: sharp@0.33.5
```

The `package.json` FYI:

```json
{
  "name": "website",
  "type": "module",
  "version": "0.0.1",
  "scripts": {
    "dev": "astro dev",
    "start": "astro dev",
    "build": "astro check && astro build",
    "preview": "astro preview",
    "astro": "astro"
  },
  "dependencies": {
    "astro": "^4.16.13",
    "@astrojs/check": "^0.9.4",
    "typescript": "^5.6.3"
  }
}
```

What I found might be correlated:

#20246

#19879
Repository: PowerToys
Issue: Zoom button issue
Labels: Issue-Bug,Needs-Triage

### Microsoft PowerToys version

v0.86.0

### Installation method

GitHub

### Running as admin

No

### Area(s) with issue?

Keyboard Manager

### Steps to reproduce

I have a keyboard Keymaster v1 where in place of `Insert` button located `Zoom` (zoom in) button
It works as `Win+=` but Key Remap function identifies as `=` which is not correct
With this re-assignment I cannot use simple equality sign which is not what I expect
`Shift + Zoom` on this keyboard doing the same as `Win + -` (zoom out) and still working in such way even after I did reassign for this button

### ✔️ Expected Behavior

Key mapper should correctly identify the key and re-assign it to proper (selected) value

### ❌ Actual Behavior

Identification for the zoom key did not work properly

### Other Software

Issue not related to other software. I do not have any re-mappers or key managers
My OS is Windows 10 Pro
Repository: deno
Issue: Add a interactive way to upgrade packages
Labels: feat,install

Yarn has this command to upgrade packages: https://yarnpkg.com/cli/upgrade-interactive

Example:
![image](https://github.com/user-attachments/assets/c95b0dd4-bdcf-49b8-9a79-109ec5692d76)

It would be nice if deno have something like this.
Repository: three.js
Issue: Line2 dash scale problem on perspective camera 
Labels: Addons

### Description

Dash scale will change when line out of camera's near plane. 

This is because shader trim vertices position, but keep line Distance same.

https://github.com/mrdoob/three.js/blob/beab9e845f9e5ae11d648f55b24a0e910b56a85a/examples/jsm/lines/LineMaterial.js#L127


Possible solution:
We should trim line distance too ( [see sample](https://codesandbox.io/p/sandbox/rn458y) ):



### Reproduction steps

1. Build Line2 with long segment that will has one of point out of camera near space ( -100, 100 by Z for example )
2. Enable dash in LineMaterial
3. Fly around line

### Code

///

### Live example

https://codesandbox.io/p/sandbox/rn458y

Video:
https://drive.google.com/file/d/1znYC56d1LTgS-0T9wuHUw3rRETozCyNX/view?usp=drive_link

note: green is fixed material instance, purple is original.

### Screenshots

<img width="835" alt="image" src="https://github.com/user-attachments/assets/6bce0e70-45f8-4a23-86c2-09505c756f03">


### Version

any

### Device

_No response_

### Browser

_No response_

### OS

_No response_
Repository: PowerToys
Issue: Keyboard Manager supports distinguishing between short and long key presses
Labels: Needs-Triage

### Description of the new feature / enhancement

For the "keys" functionality in the "Keyboard Manager", is there any development plan to support the differentiation between short and long key presses?

### Scenario when this would be used?

If this feature is supported, I could use the following key mappings as an example:

1. Short press of "Caps Lock" mapped to "Esc"
2. Long press of "Caps Lock" mapped to "Alt (Left)"

I think such key mappings would be immensely helpful for users who frequently use the Alt key. For instance, when using the GlazeWM application to manage windows, the long press of Caps Lock mapped to Alt would allow for easy access to many shortcuts.

Additionally, I would like to mention that the support for this feature could greatly improve the health of my little finger! :)

### Supporting information

_No response_
Repository: ollama
Issue: llama3.2-vision model quantization request
Labels: model request

“q5_K_M” is not among the quantizations in the ‘llama3.2-vision’ model in the Ollama library. Is it possible to add it?
Repository: PowerToys
Issue: I hope to implement a new feature that can batch move files into a newly created folder.
Labels: Needs-Triage

### Description of the new feature / enhancement

There was a software called 'Files2Folder' that could achieve this functionality. It was integrated into the right-click menu. When I selected multiple files and clicked on this new option, it would create a folder in the current directory and move all the selected files into it. I found this feature very convenient. However, it's a pity that this software can no longer run on Windows 11. I wonder if a similar feature could be inherited. 

### Scenario when this would be used?

When you need to manually organize a moderate amount of files, this feature will be very convenient. It can also greatly simplify operational logic in everyday use.

### Supporting information

_No response_
Repository: go
Issue: proposal: cmd/go: module aliases
Labels: Proposal,modules

### Proposal Details

Importing a Go module is tied to a DNS domain. Should the developer of a module loose ownership of that domain, then the module must be migrated to a different domain. All consumers must follow at the same time, otherwise a binary might end up with a mixture of old and new code under different names, which can cause failures (new module A is used and configured by the binary, old module B used by some dependency is not).

Kubernetes is [currently facing that challenge](https://github.com/kubernetes/kubernetes/issues/127966#issuecomment-2404126185) because the `.io` domain might go away and all modules are called `k8s.io/<something>`. It is not certain that anything needs to be done, but if something needs to be done, then it might take years to be ready - so let's discuss now.

Can Go support such a transition more gracefully?

One possibility would be to let a module define one or more aliases in its `go.mod`:
```
module k8s.io/api
alias k8s.dev/api
```

If such a module gets imported via the alias, the compiler should not complain and treat it as if it had been imported under the official module name. Nothing would change in the `vendor` directory (in particular not some mass renaming of files). In https://pkg.go.dev, the alias could be a redirect to the original name. Deep links into the documentation of a package remain valid.

Obviously this only makes sense if the original domain is guaranteed to disappear or not to be used anymore. If the module author transfers a domain, they have to migrate and cannot use the old module name anymore because the new owner of the domain might decide to publish its own modules there. If Go should detect such a conflict is TBD.
Repository: transformers
Issue: The usage of the "forced_decoder_ids" parameter
Labels: Feature request

### Feature request

How to use the "forced_decoder_ids" parameter for decoder-only models? This parameter seems to be deprecated in the latest version.
![微信图片_20241119222811](https://github.com/user-attachments/assets/a5f2d44f-d98f-4959-85ae-e64489e3b9df)



### Motivation

This is an important function.

### Your contribution

This is an important function.
Repository: youtube-dl
Issue: Bluesky + Mastodon Support
Labels: site-support-request

## Checklist
- [ ] I'm reporting a new site support request
- [ ] I've verified that I'm running youtube-dl version **2021.12.17**
- [ ] I've checked that all provided URLs are alive and playable in a browser
- [ ] I've checked that none of provided URLs violate any copyrights
- [ ] I've searched the bugtracker for similar site support requests including closed ones


## Example URLs
- Single video: https://mastodon.social/@EUCommission@ec.social-network.europa.eu/113508672709054404
- Single video: https://bsky.app/profile/0x0.boo/post/3lbc5bzun4k2p


## Description
Would love to have a download option for those sites.


WRITE DESCRIPTION HERE
Repository: transformers
Issue: Flex attention + refactor
Labels: PyTorch,Feature request,Good Difficult Issue

Opening this to add support for all models following #34282

Lets bring support for flex attention to more models! 🤗 

- [x] Gemma2

It would be great to add the support for more architectures such as
- [ ] Qwen2
- [ ] Llama
- [ ] Gemma
- [ ] QwenVl
- [ ] Mistral
- [ ] Clip


... and many more

For anyone who wants to contribute just open a PR and link it to this issue, and ping me for a review!! 🤗