sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: go
Issue: html/template: template Parse/Execute escaping race
Labels: NeedsDecision

Template.Execute and Template.Parse can race, causing template escaping state to become out-of-sync.

Template.Parse allows re-parsing a template, but is documented as not being callable after the first call to Template.Execute. It checks this by seeing if the template has been escaped (by inspecting Template.namespace.escaped). When Template.Execute is first called, it will check if the template is escaped, and escapes it if it was not already. It then sets Template.namespace.escaped to indicate the template is escaped.

Template.namespace.escaped is protected with a lock, but Template.Parse doesn't hold this lock for the duration of its execution, taking the lock to initially check Template.namespace.escaped and then taking it again later to populate the re-parsed templates. If  Template.Execute is called between these two steps, it takes the lock, escapes the template and sets Template.namespace.escaped. Template.Parse will then re-take the lock, overwrite the escaped template, but not unset Template.namespace.escaped, causing subsequent calls to Template.Execute to execute an unescaped template.

Since this requires concurrent calls to Parse and Execute, and can only be triggered on the initial call to Execute, this is extremely hard to exploit, but it is cleanly incorrect behavior.

This issue was initially reported to us by Jakob Ackermann.
Repository: flutter
Issue: Proposal: Remove engine top-level orchestrator builders that only kick off and collect sub-builds (no generators), and hoist sub-build to "standalone"
Labels: engine,c: proposal,P1,team-engine,triaged-engine

Some "top-level" orchestrator builds only kick off sub-builds and then do nothing but wait for the results.  [`Mac mac_unopt`](https://github.com/flutter/engine/blob/38e37ce9879b2efe4890a8d09f4207dc5686a1bd/ci/builders/mac_unopt.json) is an example of this:

![Screenshot 2024-09-11 at 12 43 27 PM](https://github.com/user-attachments/assets/7cde751f-b47c-4f77-8251-89c0dd463fcd)

Note there are no "Global generators" or tests.

GitHub currently only allows reruns on these top-level builds when there's a failure in the subbuild.  In the case of `mac_unopt` that means all the sub-builds are re-run, even though most of them succeeded ([example](https://ci.chromium.org/ui/p/flutter/builders/try/Mac%20mac_unopt/8656/overview)).  Rerunning all of them ties up CI resources and makes the rerun longer, if the failing test isn't the long-pole of the top-level build total time.  It also means the top-level orchestrator build idles bot while it waits on the builds to finish.

[`mac_ios_engine`](https://ci.chromium.org/ui/p/flutter/builders/try/Mac%20mac_ios_engine/34575/overview) is an example of a build that can't be trivially replaced by it subviews (like `ci/ios_debug_sim`) because it has generators that operate on the archives:
https://github.com/flutter/engine/blob/38e37ce9879b2efe4890a8d09f4207dc5686a1bd/ci/builders/mac_ios_engine.json#L488C6-L488C16

This proposes removing all top-level builds that only kick off subbuilds, and hoisting the sub-builds into the .ci.yaml.

- [x] [Linux clangd](https://github.com/flutter/engine/blob/38e37ce9879b2efe4890a8d09f4207dc5686a1bd/ci/builders/linux_unopt_debug_no_rbe.json) https://github.com/flutter/engine/pull/55186
- [x] Linux mac_clangd https://github.com/flutter/engine/pull/56014
- [ ] Linux linux_android_emulator*
- [x] Linux linux_android_emulator_skia_tests https://github.com/flutter/engine/pull/55186
- [x] [Linux linux_android_emulator_skia_tests_34](https://github.com/flutter/engine/blob/38e37ce9879b2efe4890a8d09f4207dc5686a1bd/ci/builders/linux_android_emulator_skia_34.json) https://github.com/flutter/engine/pull/55186
- [ ] [Linux linux_arm_host_engine](https://github.com/flutter/engine/blob/38e37ce9879b2efe4890a8d09f4207dc5686a1bd/ci/builders/linux_arm_host_engine.json#L6)
- [ ] [Linux linux_fuchsia_tests](https://github.com/flutter/engine/blob/38e37ce9879b2efe4890a8d09f4207dc5686a1bd/ci/builders/linux_fuchsia_tests.json)
- [ ] [Linux linux_host_desktop_engine](https://github.com/flutter/engine/blob/38e37ce9879b2efe4890a8d09f4207dc5686a1bd/ci/builders/linux_host_desktop_engine.json#L6)
- [ ] linux_unopt
- [ ] linux_web_engine
- [ ] local_engine
- [ ] mac_android_aot_engine
- [ ] mac_unopt
- [ ] windows_android_aot_engine
- [ ] windows_arm_host_engine
- [ ] windows_arm_host_engine

cc @zanderso @jtmcdole
Repository: ui
Issue: [bug]: shadcn add EACCES: permission denied, scandir
Labels: bug

### Describe the bug

Having a 'data' docker/podman folder at the same level of components,
```
app/
data/
components/ui
tailwind.config.ts
tsconfig.json
components.json
[...]
```
Gives a :
```
EACCES: permission denied, scandir '${SOMEPATH}/next-project/data'
```
Even if i run`shadcn add button -p ./components/ui`


This also fails on a `shadcn init`, having the data folder previously created/used



### Affected component/components

CLI add/init

### How to reproduce

shadcn init
EACCES: permission denied, scandir ...SOMEPATH


shadcn add button -p ./components/ui
✔ Checking registry.
✔ Installing dependencies.
⠋ Updating files.
Something went wrong. Please check the error below for more details.
If the problem persists, please open an issue on GitHub.

EACCES: permission denied, scandir ...SOMEPATH

### Codesandbox/StackBlitz link

_No response_

### Logs

_No response_

### System Info

```bash
Selinux
```


### Before submitting

- [X] I've made research efforts and searched the documentation
- [X] I've searched for existing issues
Repository: go
Issue: build: ios trybot builders failing
Labels: Builders,NeedsInvestigation,OS-iOS

Trybot builders for ios are failing consistently on https://build.golang.org/.

Example log from https://build.golang.org/log/38129923c6f886f82063cab77355caee3747497a : 

```
ios-arm64-corellium at 1dfb33e8612d20f41cf4e034d9d0838abf75e04b

...

Building Go cmd/dist using /var/root/go-ios-arm64-bootstrap. (go1.20.6 ios/arm64)
found packages main (build.go) and building_Go_requires_Go_1_22_6_or_later (notgo122.go) in /tmp/workdir-host-ios-arm64-corellium-ios/go/src/cmd/dist

build failed: make script failed: exit status 1

```

This looks related to #64751 . Assigning to @dmitshur
Repository: godot
Issue: Can't disable layers if layer 1 is active when doing reimport of gltf/glb
Labels: needs testing,topic:import

### Tested versions

Godot v4.4.dev2

### System information

Fedora Linux 40 (KDE Plasma) - Wayland - Vulkan (Forward+) 

### Issue description

If I try to disable all layers except layer 1 when doing reimport it doesn't disable them. 

[Screencast_20240911_213756.webm](https://github.com/user-attachments/assets/fe01ab27-8827-4f56-adb6-25895f2b1022)

In the video you can see that I can disable layer 3 if I keep layer 1 and 2 active. But then I can't disable layer 2 as long as layer 1 is active.

### Steps to reproduce

Double click on glb file
Select MeshInstance3D and enable more layers than layer 1, do a reimport
Reopen the dialog and disable all layer but number 1, and click reimport
Reopen and see that all layers are still active

### Minimal reproduction project (MRP)

[layer.zip](https://github.com/user-attachments/files/16969806/layer.zip)
Repository: PowerToys
Issue: Fancy zones assignment based on hardware ID
Labels: Needs-Triage

### Description of the new feature / enhancement

I have three monitors, two of which are the same. For the latter, I have two separate fancy-zone profiles, but they keep swapping around (i.e. the profile on the left monitor (L) will be set to the right monitor (R) and vice versa). 

Would it be possible to implement a setting for fancy zones, such that you can assign custom profiles to specific monitors (based on some hardware ID for example). 

### Scenario when this would be used?

When you set a custom profile to a certain monitor those settings should be stored. Then, at startup, it should be verified that, the custom profiles set to a monitor by the user, are actually set correctly.

### Supporting information

_No response_
Repository: flutter
Issue: Uploaded engine iOS scenario test Xcode xcresults unzip with full absolute paths
Labels: a: tests,c: regression,engine,P2,fyi-infra,team-ios,triaged-ios

The iOS scenario test uploads Xcode xcresults on test failures.  As of https://github.com/flutter/engine/pull/53717 and https://github.com/flutter/engine/pull/55093 the unzipped xcresult directory structure includes the full absolute path:


```
/path/to/unzipped/Volumes/Work/s/w/ir/cache/builder/src/out/ci/ios_debug_unopt_sim/scenario_app/Scenarios/ios_scenario_xcresult2Jzijm/ios_scenario.xcresult
```

See
https://github.com/flutter/engine/pull/41647/files#diff-5633b6caaf35e2384ccc2ad55a507ac26a5f7eb05a49a66fb36acd51f9c04ba8R54-R55
Repository: godot
Issue: [3.6] Project settings Audio category and subcategory incorrectly displaying / interacting.
Labels: bug,topic:editor,usability

### Tested versions

Reproducible: Godot 3.6 Stable, 3.6 beta 5
Not reproducible: Godot 3.5.3

### System information

Linux Mint 21.3

### Issue description

Project Settings -> Audio category collapsible acts as button with settings, General subsection below not found in Godot 3.5.3, those are 3.6 only features, like text to speech option.
![bugreport](https://github.com/user-attachments/assets/988cc784-12ed-48b5-aa9f-55f293333c34)

Settings remain correct and reachable, but found out because search bar navigates correctly to the "hidden" section.

### Steps to reproduce

Any project should be able to access Project settings -> Audio

### Minimal reproduction project (MRP)

Any project should be able to access Project settings -> Audio
Repository: puppeteer
Issue: [Feature]: Include units in https://pptr.dev/api/puppeteer.page.metrics and https://pptr.dev/api/puppeteer.metrics
Labels: feature,documentation,P3

### Feature description

While the comments in https://pptr.dev/api/puppeteer.page.metrics and https://pptr.dev/api/puppeteer.metrics are at least present, it lacks one crucial feature, it does not describe the units of the measurement for each property.

For example:
* `LayoutDuration` → seconds, milliseconds, etc?
* `JSHeapUsedSize` → bytes, mb, etc?

Mostly can be figured out, but the documentation would be greatly improved by including the units.
Repository: vscode
Issue: vscode.dev type acquisition fails if project has a `GitHub` dependency
Labels: bug,web,papercut :drop_of_blood:

1. For the project https://github.com/mjbvz/test-ts-ata-web, open on GitHub.dev/vscode.dev: https://github.dev/mjbvz/test-ts-ata-web

1. Open `index.ts`

**Bug**
Loading never finishes


The root cause is the our type acquisition fails:

```
 panicked at 'Git dependencies are not enabled. (While trying to process git+ssh://git@github.com/markedjs/marked.git#b47358cb1711b29237e074737cb4e5f9a98e3914)', crates/nassun/src/client.rs:289:24

Stack:

Error: 
	at T.A.wbg.__wbg_new_abda76e883ba8a5f (
...
```

cc @zkat
Repository: flutter
Issue: Split platform and render threads on Linux
Labels: platform-linux,P3,team-linux,triaged-linux

Currently Linux uses the same thread for the platform and render tasks, see `fl_engine.cc`:
```c
  FlutterCustomTaskRunners custom_task_runners = {};
  custom_task_runners.struct_size = sizeof(FlutterCustomTaskRunners);
  custom_task_runners.platform_task_runner = &platform_task_runner;
  custom_task_runners.render_task_runner = &platform_task_runner;
```

Other platforms use separate threads. Consider doing this for Linux.

The side effect is `FlutterCompositor.present_view_callback` will be called from a different thead and require synchronization. There will also have to be careful management around resizing as the present may not be in the expected size.
Repository: PowerToys
Issue: Screen Ruler
Labels: Needs-Triage

### Description of the new feature / enhancement

Adding ability to do conversion between pixels and a unit of measure (e.g. instead of showing 110 pixels on screen showing 24 inches)

### Scenario when this would be used?

When looking at drawing or PDF or image instead of manually writing out and converting between a known dimension and pixel count, having the tool do the conversion automatically in the tool.

### Supporting information

_No response_
Repository: flutter
Issue: Add Linux fixture tests
Labels: platform-linux,P3,team-linux,triaged-linux

Add tests that have both Dart and native code, as supported on other platform (e.g. Windows).
Repository: vscode
Issue: No way to detect/display added/deleted Notebook Metadata in Notebook Diff View
Labels: bug,notebook-diff

See here for more details https://github.com/microsoft/vscode/issues/228280
Repository: godot
Issue: Edge case behavior in Project settings search
Labels: discussion,topic:editor

### Tested versions

4.3stable

### System information

Windows 10

### Issue description

I'm not sure if this is a bug, or all this behavior is intended. 

When using the Project Settings filter search box to search for an advanced setting, and the `Advanced Settings` toggle is `off`:
- The setting is found. **This is good.**
- The text box with the full name of the setting, and the tools to set overrides, is not shown. **I don't know if this is intended.**
- If you select a page and the setting itself, then clear out the search box, the setting disappeared. **This seems bad.** My use case was to search for a setting, then check its page to see if there are related settings that might matter, so I cleared the search box, then the setting I found disappeared.

I don't know what the right behavior for this is, though. The current behavior seems mostly intentional. It's good to surface advanced settings if searched for, even if the toggle is off. It's obviously good to only show advanced settings if the advanced settings toggle is on. But it interacts into a confusing edge case here. 

I suppose we could switch on the advanced settings toggle for the user, especially if one of the advanced settings is *changed* during the search. Or we could display any changed advanced settings, even if the toggle is off. But that would create another case of "disappearing settings" if the setting is reverted.

Maybe none of this really matters, since turning on advanced settings is just correct for anyone seriously using the engine.


### Steps to reproduce

Turn off the `Advanced settings` toggle.
Search for an advanced setting, like `Anisotropic Filtering Level`. Navigate to the `Textures` page. 
![Godot_v4 3-stable_win64_4EaHcJbX44](https://github.com/user-attachments/assets/4f2136c3-b3ef-4bdc-a642-c729dd5a34b9)

Observe that the setting is found. Observe that the panel with the full text name of the setting and overrides is not shown. Select the setting. Clear the `Filter Settings` search box. Observe that the Textures page is still selected, but now the setting we are looking for is gone.

![Godot_v4 3-stable_win64_cnbRZMheFV](https://github.com/user-attachments/assets/54b902ea-8dec-489e-ad5d-9f526d84ce1c)

Turn on the `Advanced settings` toggle. Observe that the panel with the full text name of the setting and overrides is shown:
![Godot_v4 3-stable_win64_0Hv1QOO1Fa](https://github.com/user-attachments/assets/e18d6008-cef4-4fae-b0a4-d91e0fccaee9)


### Minimal reproduction project (MRP)

N/A
Repository: pytorch
Issue: core_aten_decompositions table have non-functional or CIA entries. 
Labels: triaged,oncall: pt2,export-triaged,oncall: export,module: pt2-dispatcher

### 🐛 Describe the bug

core_aten_decompositions table is meant to be used in export context where we should assume every key is a functional op as the table would only be applied after functionalization is run. As a result, any non-functional entries should result in no-op. So we should remove them and implement tighter checks around core_aten_decompositions().  

### Versions

main

cc @chauhang @penguinwu @avikchaudhuri @gmagogsfm @zhxchen17 @angelayi @suo @ydwu4 @zou3519 @bdhirsh @yf225 @ezyang
Repository: realworld
Issue: [Bug]: articles api is broken
Labels: bug

### Relevant scope

Backend specs

### Description

not sure if the specs changed.

open: https://demo.realworld.how/

500 internal server error:
"\nInvalid `prisma.article.count()` invocation:\n\n\nError occurred during query execution:\nConnectorError(ConnectorError { user_facing_error: None, kind: QueryError(PostgresError { code: \"26000\", message: \"prepared statement \\\"s1555\\\" does not exist\", severity: \"ERROR\", detail: None, column: None, hint: None }), transient: false })"
Repository: material-ui
Issue: [TextareaAutosize] Support max height
Labels: bug 🐛

It should be possible to set a max height on a TextareaAutosize and then scroll after it reaches that height. But the component hides overflow in the style tag, so it’s impossible.

**Search keywords**: 

**Search keywords**:
Repository: material-ui
Issue: [TextareaAutosize] Deprecate TextareaAutosize
Labels: on hold,deprecation,component: TextareaAutosize

### What's the problem? 🤔

Today's implementation of TextareaAutosize depends, more or less, on option 1 of https://stackoverflow.com/questions/454202/creating-a-textarea-with-auto-resize, it's more complex because it also supports `maxRows` and `minRows`.

Looking at https://github.com/tkent-google/explainers/blob/main/form-sizing.md, it looks like a native solution for this component is coming to the platform. Also see https://twitter.com/jh3yy/status/1710398436917321799.

It looks like we will no longer need this component in a year or two. Time to think of its deprecation path?

**Search keywords**: 

**Search keywords**:
Repository: material-ui
Issue: [TextareaAutosize] Unstable height when rendered in a Next.js RSC page
Labels: bug 🐛,component: TextareaAutosize,regression

### Steps to reproduce 🕹

Live example: https://codesandbox.io/p/sandbox/https-github-com-mui-material-ui-issues-38607-5h5ndr?file=%2Fsrc%2Fapp%2Fpage.tsx%3A22%2C1

Unstable height TextField multiline on nextjs app router when i reload the page. 
Same thing happens on page first load.
For bug reproduction, i used material-ui-nextjs-ts from the example folder.
Video below.


https://github.com/mui/material-ui/assets/57659794/a37ddb07-246a-478e-b360-73e6518836b9



### Current behavior 😯

_No response_

### Expected behavior 🤔

_No response_

### Context 🔦

_No response_

### Your environment 🌎

<details>

  <summary>Expand</summary>

System:
    OS: Windows 10 10.0.19044
  Binaries:
    Node: 16.16.0 - C:\Program Files\nodejs\node.EXE
    Yarn: Not Found
    npm: 8.11.0 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Chrome: 116.0.5845.97
    Edge: Spartan (44.19041.1266.0), Chromium (116.0.1938.54)
  npmPackages:
    @emotion/react: latest => 11.11.1
    @emotion/styled: latest => 11.11.0
    @mui/base:  5.0.0-beta.11
    @mui/core-downloads-tracker:  5.14.5
    @mui/icons-material: latest => 5.14.3
    @mui/material: latest => 5.14.5
    @mui/private-theming:  5.14.5
    @mui/styled-engine:  5.13.2
    @mui/system:  5.14.5
    @mui/types:  7.2.4
    @mui/utils:  5.14.5
    @types/react: latest => 18.2.21
    react: 18.x => 18.2.0
    react-dom: 18.x => 18.2.0
    typescript: latest => 5.1.6

</details>

**Search keywords**: 

**Search keywords**:
Repository: go
Issue: proposal: html/template: add a formatter
Labels: Proposal

### Proposal Details

Go was a trailblazer of standardized, no-knobs code formatting. Yet one of the major components of the standard library--one in which I've personally written tens of thousands of lines of code--has no usable formatter. (There's one abandoned open source one that has showstopper bugs. And prettier is oblivious to the Go templating code, with predictable results.)

The surface area would be:

* a tool, similar to go fmt, that formats an entire file
* a single API that accepts a string and returns a string and an error, for use e.g. by gopls and linters (e.g. for checking templates stored in literal strings)

I propose that the details of the formatting be left up to the Go team (or whoever steps up to do the implementation), maybe after a preference-gathering round. I care about the details...but I care WAY more that there be a single unified vision behind it and that it be standardized.
Repository: go
Issue: build: build failure on x_tools-go1.23-linux-amd64_c2s16-perf_vs_gopls_0_11 [consistent failure]
Labels: NeedsInvestigation

```
#!watchflakes
default <- builder == "x_tools-go1.23-linux-amd64_c2s16-perf_vs_gopls_0_11" && repo == "tools" && mode == "build"
```

Issue created automatically to collect these failures.

Example ([log](https://ci.chromium.org/b/8737164931658588881)):

    go: downloading github.com/BurntSushi/toml v1.0.0
    go: downloading github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51
    2024/09/10 16:54:16 Load average: 0.76 0.16 0.05 1/399 2513451
    2024/09/10 16:54:16 Waiting for load average to drop below 0.20...
    2024/09/10 16:54:46 Load average: 0.53 0.16 0.06 1/399 2513451
    2024/09/10 16:54:46 Waiting for load average to drop below 0.20...
    2024/09/10 16:55:16 Load average: 0.32 0.15 0.05 1/399 2513451
    2024/09/10 16:55:16 Waiting for load average to drop below 0.20...
    2024/09/10 16:55:46 Load average: 0.19 0.13 0.05 1/401 2513451
    2024/09/10 16:55:46 Running sub-repo benchmarks for tools
    ...
    go: downloading golang.org/x/sync v0.8.0
    go: downloading golang.org/x/vuln v1.0.4
    go: downloading honnef.co/go/tools v0.4.7
    go: downloading mvdan.cc/gofumpt v0.6.0
    go: downloading mvdan.cc/xurls/v2 v2.5.0
    go: downloading golang.org/x/text v0.18.0
    go: downloading golang.org/x/exp/typeparams v0.0.0-20221212164502-fae10dda9338
    2024/09/10 18:53:05 Error running subrepo tests: error running sub-repo tools benchmark "baseline" with toolchain baseline in dir /home/swarming/.swarming/w/ir/x/w/tools/gopls/internal/test/integration/bench: exit status 1
    2024/09/10 18:53:05 FAIL
    exit status 1


— [watchflakes](https://go.dev/wiki/Watchflakes)
Repository: ollama
Issue: Model update history on ollama.com
Labels: feature request

### Would be nice if we can see what has been updated for a model on the ollama.com

![](https://github.com/user-attachments/assets/f6c08a45-e58e-443b-b4e0-2e763239aa2a)
Repository: ollama
Issue: OLLAMA_FLASH_ATTENTION regression on 0.3.10?
Labels: bug

### What is the issue?

After upgrading to the latest version `0.3.10`, with `OLLAMA_FLASH_ATTENTION=1` set in env, seemed the tokens per second were halved, in my experiment, same code used to have tps around 23 and now it's only 11.

Wondering is there any known regression with regard to FLASH_ATTENTION?

### OS

macOS

### GPU

Apple

### CPU

Apple

### Ollama version

0.3.10