sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: storybook
Issue: [Bug]: Importing from `@storybook/test` breaks stories using args to pass children to lit component
Labels: bug,needs triage

### Describe the bug

I have a simple `lit` component that can accept children to render, everything is working fine whether I pass the children as an array or ``html`...` `` like so:

```Buttons.js
// Buttons.js
import { html } from 'lit';

export const Buttons = ({ buttons }) => {
  return html`
    <div class="buttons">${buttons}</div>
  `
};
```

```
import { html } from 'lit';

import { Button } from './Button';
import { Buttons } from './Buttons';

export default {
  title: 'Buttons/Array Args',
  render: (args) => Buttons(args),
  args: {
    buttons: [
      Button({ label: 'With Args - One' }),
      Button({ label: 'With Args - Primary', primary: true })
    ]
  }
};

export const Primary = {};
```

The second I import `import { userEvent, within } from '@storybook/test';` into any story that gets run I start getting this error:

```
Internal Error: expected template strings to be an array
```

**Note:** *I do not get this error* if the `buttons` are passed to the `Buttons` component outside of `args`.

If I open this story in storybook and make an edit in the code then the story works fine, until I go to another story that has the imports from `@storybook/test` and return and the story is broken until I make more changes (or reload the browser).


### Reproduction link

https://stackblitz.com/edit/github-hcwvxam5

### Reproduction steps

1. Go to https://stackblitz.com/edit/github-hcwvxam5 and run the storybook
2. Open "Buttons > Array Args > Primary" story (note it renders)
3. Open Buttons > Any other story
4. Return to "Buttons > Array Args > Primary" story, get:

![Image](https://github.com/user-attachments/assets/2ca1ef17-0adf-4e3c-8009-c12efd774db0)


### System

```bash
Storybook Environment Info:

  System:
    OS: macOS 15.2
    CPU: (8) arm64 Apple M1
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.15.0 - ~/.volta/tools/image/node/20.15.0/bin/node
    Yarn: 4.5.0 - ~/.volta/tools/image/yarn/4.5.0/bin/yarn <----- active
    npm: 10.7.0 - ~/.volta/tools/image/node/20.15.0/bin/npm
  Browsers:
    Chrome: 131.0.6778.205
    Safari: 18.2
  npmPackages:
    @storybook/addon-essentials: ^8.4.7 => 8.4.7 
    @storybook/blocks: ^8.4.7 => 8.4.7 
    @storybook/test: ^8.4.7 => 8.4.7 
    @storybook/web-components: ^8.4.7 => 8.4.7 
    @storybook/web-components-vite: ^8.4.7 => 8.4.7 
    storybook: ^8.4.7 => 8.4.7
```

### Additional context

_No response_
Repository: flutter
Issue: Video does not work with ShaderMask
Labels: framework,has reproducible steps,P3,team-framework,triaged-framework,found in release: 3.27,found in release: 3.28

### Steps to reproduce

Checkout https://github.com/willsmanley/video_shader

### Expected results

Video should be masked to only be visible through the text, just like in the working image shader example.

Here is a working example in JS of using a video as a text background: https://video-background-b9b.pages.dev/

The flutter widget of the week video from 2020 actually shows a video mask working with flames at the very end, but does not provide source code for it: https://www.youtube.com/watch?v=7sUL66pTQ7Q

### Actual results

Video overflows the text and is not masked.

### Code sample

https://github.com/willsmanley/video_shader

### Screenshots or Video

_No response_

### Logs

_No response_

### Flutter Doctor output

[✓] Flutter (Channel stable, 3.24.4, on macOS 15.1 24B83 darwin-arm64, locale en-US)
    • Flutter version 3.24.4 on channel stable at /Users/admin/flutter/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 603104015d (2 months ago), 2024-10-24 08:01:25 -0700
    • Engine revision db49896cf2
    • Dart version 3.5.4
    • DevTools version 2.37.3

[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/to/macos-android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.


[✓] Xcode - develop for iOS and macOS (Xcode 16.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 16B40
    • CocoaPods version 1.16.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/to/macos-android-setup for detailed instructions).

[✓] Connected device (3 available)
    • macOS (desktop)                 • macos                     • darwin-arm64   • macOS 15.1 24B83 darwin-arm64
    • Mac Designed for iPad (desktop) • mac-designed-for-ipad     • darwin         • macOS 15.1 24B83 darwin-arm64
    • Chrome (web)                    • chrome                    • web-javascript • Google Chrome 131.0.6778.205

[✓] Network resources
    • All expected network resources are available.
Repository: angular
Issue: Zoneless SSR: usage of forkJoin to get multiple responses prevents server rendering
Labels: area: core,area: server,area: common/http,core: zoneless

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

Don't known / other

### Is this a regression?

No

### Description

Using `forkJoin` to load multiple data using the HttpClient prevents the component to be rendered on the server. Using `combineLatest` instead works as expected.

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

https://stackblitz.com/edit/stackblitz-starters-fud9dwup?file=demo%2Fsrc%2Fapp%2Fapp.component.ts

### Please provide the exception or error you saw

```true
NA
```

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

```true
Angular CLI: 19.0.6
Node: 18.20.3
Package Manager: npm 10.2.3
OS: linux x64

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

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1900.6
@angular-devkit/build-angular   19.0.6
@angular-devkit/core            19.0.6
@angular-devkit/schematics      19.0.6
@angular/cli                    19.0.6
@angular/ssr                    19.0.6
@schematics/angular             19.0.6
rxjs                            7.8.1
typescript                      5.6.3
zone.js                         0.15.0
```

### Anything else?

To reproduce, using the provided stackblitz:

- `cd demo`
- `npm i`
- `ng serve`

Then open the network dev tools, clear the requests, and refresh the stackblitz demo page. Inspect the HTML returned by the server. It contains an empty `app-root` element, and it also contains the transfer state for the http response:

```html
<app-root _nghost-ng-c1660245559="" ng-version="19.0.5" ngh="0" ng-server-context="ssr"><!--container--></app-root>

<script id="ng-state" type="application/json">{"3838178545":{"b":{"message":"hello"},"h":{},"s":200,"st":"OK","u":"/foo.json","rt":"json"},"__nghData__":[{"t":{"0":"t0"},"c":{"0":[]}}]}</script></body></html>
```

Then comment the code of the app component loading the data using `forkJoin`, and replace it with the commented code using `combineLatest`. Then refresh the stackblitz demo page. Inspect the HTML returned by the server. It now contains a filled `app-root` element, as expected:

```html
<app-root _nghost-ng-c1660245559="" ng-version="19.0.5" ngh="0" ng-server-context="ssr"><h1 _ngcontent-ng-c1660245559="">Hello from app</h1><!--container--></app-root>
```
Repository: pytorch
Issue: [profiler][python 3.13] profiler with_stack=True failing on python 3.13
Labels: oncall: profiler

### 🐛 Describe the bug

Repro:

```python
import torch

class ModuleA(torch.nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = torch.nn.Linear(4, 4)

    def forward(self, x):
        return self.linear(x)

class ModuleB(torch.nn.Module):
    def __init__(self):
        super().__init__()
        self.a = ModuleA()

    def forward(self, x):
        return self.a(x).relu()

mod = ModuleB()
torch.jit.script(mod)

with torch.profiler.profile(with_stack=True, schedule=torch.profiler.schedule(warmup=2, wait=2, active=3, repeat=1)) as prof:
    for _ in range(10):
        x = torch.rand(4, 4)
        mod(x)
        prof.step()

prof.export_chrome_trace("torchscript_stack.json")
```

Result: segfault.

### Versions

pytorch commit: f7e621c3ce623996510b87901e729be2138679b2 (dec 11)
A100 build.

cc @robieta @chaekit @guotuofeng @guyang3532 @dzhulgakov @briancoutinho @sraikund16 @sanrise
Repository: terminal
Issue: Feature Request: Logging Input and Output for Each Terminal Tab Automatically
Labels: Needs-Triage,Needs-Tag-Fix

Description: I would like to request a feature that allows logging of input and output for each terminal tab in Windows Terminal automatically (Not export text manually, Because I often remember to review the terminal output only after I close the tab or the entire terminal program). This feature would be similar to the logging functionality available in mintty, where logs can be configured in the configuration file (e.g., ~/.minttyrc with Log=/var/log/mintty/%Y%m%d@%H:%M:%S_log%d.txt).

Use Case: This feature would be extremely useful for users who need to keep a record of their terminal sessions for auditing, debugging, or documentation purposes. It would be beneficial for various types of terminals, including PowerShell, CMD, WSL, and MSYS2.

Proposed Solution: Implement a logging feature that can be configured in the Windows Terminal settings, allowing users to specify the log file path and format. The logs should include both input and output for each terminal tab.

Additional Context: Currently, users have to rely on external tools and scripts to achieve this functionality. Having this feature built into Windows Terminal would greatly enhance its usability and convenience.
Repository: godot
Issue: lag when choosing a scene super class and in all full screen floating windows
Labels: bug,topic:editor,needs testing,performance

### Tested versions

4.4 dev 7 and 4.3 stable

### System information

Godot v4.4.dev7 - Nobara Linux 40 (GNOME Edition) on Wayland - X11 display driver, Multi-window, 2 monitors - Vulkan (Forward+) - integrated Intel(R) Iris(R) Xe Graphics (TGL GT2) - 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz (8 threads)

this is only an issue on wayland

### Issue description

when i click create scene then choose a node to inherit from, there is a huge amount of lag on that popup window. Also, when i make a section floating and them maximise that popup, there is also a huge amount of lag on that popup window.

### Steps to reproduce

- create new project
- right click file system
- click create new
- scene
- click the tree icon to get the choose node popup window
- lag

- click make floating on any section
- maximise that window
- lag

### Minimal reproduction project (MRP)

n/a
Repository: go
Issue: x/tools/go/packages: overlay does not cause ExportFile to be cleared
Labels: NeedsInvestigation,Tools,BugReport

In the `x/tools/go/pacakges` there is a comment, mentioning that overlay might invalidate export data, see:

https://github.com/golang/tools/blob/b93274bf6492f1e1ab72ee5def8da5dfbc9e0e43/go/packages/packages.go#L800-L802

It was introduced in [CL 151999](https://go.dev./cl/151999).

If that is still true, then we should probably also clear the `ExportFile` field, this is currently not being done. But looking at the exported file, it seems to include the `Test2` symbol defined in the overlay, so it seems to work. The comment mentions that it ***can*** so maybe this might happen only in some other corner-cases (that i am not aware of), if so we should probably clear that `ExportFile`.

Reproducer (using the `x/tools/go/packages` testing API):

```go
func TestReproducer(t *testing.T) {
	log.SetFlags(log.Lshortfile)
	exported := packagestest.Export(t, packagestest.Modules, []packagestest.Module{
		{
			Name: "test",
			Files: map[string]any{
				"test.go":       `package test; import "test/other"; func test() { other.Test2() }`,
				"other/file.go": `package other; func Test() {}`,
			},
			Overlay: map[string][]byte{
				`other/file.go`: []byte(`package other; func Test2() {}`),
			},
		},
	})
	t.Cleanup(exported.Cleanup)

	exported.Config.Mode = packages.LoadSyntax | packages.NeedExportFile
	pkgs, err := packages.Load(exported.Config, "test")
	if err != nil {
		t.Error(err)
	}
	packages.PrintErrors(pkgs)

	ef := pkgs[0].Imports["test/other"].ExportFile
	if ef != "" {
		t.Error("ExportFile for package text/other is not empty") // fails
	}

	f, err := os.Open(ef)
	if err != nil {
		t.Fatal(err)
	}

	r, err := gcexportdata.NewReader(f)
	if err != nil {
		t.Fatal(err)
	}

	fset := token.NewFileSet()
	pkg, err := gcexportdata.Read(r, fset, make(map[string]*types.Package), "test/other")
	if err != nil {
		t.Fatal(err)
	}

	t.Log(pkg.Scope().Lookup("Test2") != nil) // true
}
```

CC @matloob @adonovan
Repository: TypeScript
Issue: Cache Declarations Directory
Labels: Suggestion,Needs Proposal

### 🔍 Search Terms

cache declarations cached tsserver tsc

### ✅ Viability Checklist

- [x] This wouldn't be a breaking change in existing TypeScript/JavaScript code
- [x] This wouldn't change the runtime behavior of existing JavaScript code
- [x] This could be implemented without emitting different JS based on the types of the expressions
- [x] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
- [x] This isn't a request to add a new utility type: https://github.com/microsoft/TypeScript/wiki/No-New-Utility-Types
- [x] This feature would agree with the rest of our Design Goals: https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals

### ⭐ Suggestion

A cache directory for declaration files that can be used both for normal type declaration and for tsserver.

This would be a shared folder to use for type definitions in development and possibly for build steps.

A separate folder could mean you have one service that could have it's own optimizations running in parallel or for some part of the project and emitting the declaration files, while the rest is worked normally or even tsserver rely only those declarations.



### 📃 Motivating Example

https://github.com/trpc/trpc/discussions/2448#discussioncomment-11151754

### 💻 Use Cases

With tools that relies heavily on TS, some projects see inference times of seconds and have to rely on splitting code into a monorepo or some indirect compilation step and then depending on those types.
 
1. What do you want to use this for?

Faster inference in large projects with tooling with complex, nested types.

2. What shortcomings exist with current approaches?

Some relies on splitting code into a monorepo, others you need multiple tsconfigs so you can generate the types in one place and then reference them in the actual code, making indirections on the type system to keep the inference speed.

3. What workarounds are you using in the meantime?

Have a parallel config to generate types and change a critical entrypoint to use the generated types instead of the normally inferred one.
Repository: godot
Issue: Triangulating fails on a single invalid triangle.
Labels: discussion,topic:core,breaks compat,topic:2d

### Tested versions

Reproducible in: versions 4.0+ and probably below but didn't really test

### System information

All platforms

### Issue description

When triangulating a 2d polygon, triangulate_polygon() fails and returns an empty array while the underlaying triangulate() function generates a mostly usable (though maybe incomplete) triangularisation.

Longer description of the situation where this problem arises:
I'm creating a small drawing app where the user can draw filled polygons with the mouse.  This easily generates some invalid points which causes the complete fill to disappear. This is because in geometry_2d.h the triangulate_polygon() function discards the generated triangularisation if the triangulate() returns false. 

a possible fix is to just ignore the error status returned by the triangulate function and always return the result:

```
diff --git a/core/math/geometry_2d.h b/core/math/geometry_2d.h
index abd395d8df..946a57ab42 100644
--- a/core/math/geometry_2d.h
+++ b/core/math/geometry_2d.h
@@ -345,7 +345,8 @@ public:
        static Vector<int> triangulate_polygon(const Vector<Vector2> &p_polygon) {
                Vector<int> triangles;
                if (!Triangulate::triangulate(p_polygon, triangles)) {
-                       return Vector<int>(); //fail
+                       //return Vector<int>(); //fail
+                       // maybe somehow report a warning?
                }
                return triangles;
        }

```

This leads to much more stable triangularisations, but I'm not sure if we'd want to maybe generate a warning that some invalid triangles/points were detected? And how to do that.


### Steps to reproduce

In the supplied project start it and draw with the mouse. As soon as the resulting polygon is invalid it completely disappears.

With the above patch it behaves much more like other drawing apps. I'm not sure if this is the 'correct' way to solve this, but it seems a shame to just throw away the (mostly valid) triangularisation.

### Minimal reproduction project (MRP)

[drawpolygon.zip](https://github.com/user-attachments/files/18294061/drawpolygon.zip)
Repository: tauri
Issue: [feat] Allow macOS plugins to be written in Swift
Labels: type: feature request,platform: macOS

### Describe the problem

Swift support is not available for macOS plugins. It is only [available](https://tauri.app/develop/plugins/develop-mobile/) for iOS plugins.

### Describe the solution you'd like

Since there are no production-ready Rust bindings for the macOS SDK, Swift support is needed for access to native APIs. 

While [Cacao](https://github.com/ryanmcgrath/cacao) is available for beta use, it is not exhaustive nor actively maintained e.g. Compared with `windows-rs` which is [actively supported](https://github.com/microsoft/windows-rs) by contributors from Microsoft.

### Alternatives considered

N/A

### Additional context

See related [discussion](https://github.com/tauri-apps/tauri/discussions/9594).
Repository: pytorch
Issue: allow_in_graph footgun: nested user functions
Labels: triaged,oncall: pt2,module: dynamo

https://github.com/pytorch/pytorch/blob/bb5e439f2d8a46172b8b7d2fdb7609822b9a97b1/torch/_dynamo/decorators.py#L138-L153

allow_in_graph recognizes functions by their Python id. A nested user function might get deallocated and the id reused. This may lead to nondeterministic behavior. These dicts should be weakkeydictionaries. 

cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @chenyang78 @kadeng @chauhang @amjames
Repository: pytorch
Issue: Update TorchInductor to support removed AttrsDescriptor in upstream Triton
Labels: high priority,triaged,oncall: pt2,module: inductor

https://github.com/triton-lang/triton/pull/5512 removed `AttrsDescriptor` which TorchInductor generates in its output code.

To support Triton versions after that PR we will need to update the code we generate.


cc @ezyang @gchanan @zou3519 @kadeng @msaroufim @chauhang @penguinwu @voznesenskym @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @yf225 @chenyang78 @muchulee8 @ColinPeppler @amjames @desertfire @aakhundov
Repository: transformers
Issue: Instructions to raise PR for addition of shared library files(.so) and .cpp files 
Labels: Feature request

### Feature request

Hello @ArthurZucker  @zucchini-nlp @Rocketknight1 @gante,
I have an proposal for improvement of Mamba model for which I wanted to raise PR.  
**Method:** The code changes are made in c++ file. I use cython to integrate c++ code to python. For this I will be generating an shared library file (.so) which will have the code. I will import it as library in transformers python code(Ex: import library) and call API's (Ex: library.api_name() )  from it. 

I have **queries on how to raise a PR** for the above scenario:
1. In which folder path should I keep the cython c++ binding codes ?
2. How to provide the share library file (.so) file in the PR, In which location should I keep?

### Motivation

I will be detailing the motivation when I raise the PR for it. Now I need to instructions to raise the PR

### Your contribution

I will be submitting  a PR.
Repository: tauri
Issue: [bug] `@tauri-apps/cli` NPM package contains unnecessary files
Labels: type: bug,good first issue,scope: cli.js,status: needs triage

### Describe the bug

The following path in `packages/cli/Cargo.toml` is incorrect in [NPM package](https://www.npmjs.com/package/@tauri-apps/cli?activeTab=code):

```toml
[dependencies]
# Default enable napi4 feature, see https://nodejs.org/api/n-api.html#node-api-version-matrix
napi = { version = "2.16", default-features = false, features = ["napi4"] }
napi-derive = "2.16"
tauri-cli = { path = "../../crates/tauri-cli", default-features = false }  # INCORRECT PATH
log = "0.4.21"
```

### Reproduction

Install `@tauri-apps/cli` NPM package and check `Cargo.toml` file.

### Expected behavior

The path should be either correct or file should be excluded from the package.

### Full `tauri info` output

```text
Irrelevant
```


### Stack trace

_No response_

### Additional context

_No response_