sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: vscode
Issue: Issues with CSS in development mode
Labels: ESM

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- 🕮 Read our guide about submitting issues: https://github.com/microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions -->
<!-- 🔎 Search existing issues to avoid creating duplicates. -->
<!-- 🧪 Test using the latest Insiders build to see if your issue has already been fixed: https://code.visualstudio.com/insiders/ -->
<!-- 💡 Instead of creating your report here, use 'Report Issue' from the 'Help' menu in VS Code to pre-fill useful information. -->
<!-- 🔧 Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: Yes

<!-- 🪓 If you answered No above, use 'Help: Start Extension Bisect' from Command Palette to try to identify the cause. -->
<!-- 📣 Issues caused by an extension need to be reported directly to the extension publisher. The 'Help > Report Issue' dialog can assist with this. -->
- VS Code Version: 1.96.2 / main
- OS Version: macOS 15.2

There are several issues that impact the developer experience when developing CSS for vscode itself

1. Load/reload window is very slow

    <img width="532" alt="Image" src="https://github.com/user-attachments/assets/b636cb42-d44a-4ee4-b7e5-8f1062400a2b" />

    this seems to be related to the use of `@import url()` which appears to download stylesheets serially. switching to `<link>` tags locally removed this hotspot

2. CSS changes are not picked up on reload window

    known issue see https://github.com/microsoft/vscode/pull/237603#issuecomment-2582407926 and https://github.com/microsoft/vscode/pull/234357

    also `CSSDevelopmentService` caches its list of discovered css files, so if you add or delete a css file things do not work as expected

3. Full reload is very cumbersome for simple CSS changes

    a `Reload CSS` option that simply refreshes all the CSS on the page would be much better experience

    automatically reloading CSS based on file-watch events would be ideal
Repository: flutter
Issue: Need to use rootOverlay for positioning MenuAnchor
Labels: framework,f: material design,has reproducible steps,P2,team-design,triaged-design,found in release: 3.27,found in release: 3.28

After merging  #155539

Since `OverlayPortal.targetsRootOverlay` is now used, the root `Overlay` must be used when calculating the position for `_Submenu`

```dart
final RenderBox overlay = Overlay.of(
  anchorContext, 
  rootOverlay: true // NEED ADD THIS
).context.findRenderObject()! as RenderBox;
```

**Line to need fixed**
https://github.com/flutter/flutter/blob/864d4f59dde0afab749d5530cf9902e59ccbaacf/packages/flutter/lib/src/material/menu_anchor.dart#L3644

**How to fix**
add `rootOverlay: true`

**How to reproduce the problem**
Create a nested navigator with a height less than the screen height and put DropdownMenu there

![image](https://github.com/user-attachments/assets/2d1e9203-7dc7-483b-a63e-f7f3c8814236)
Repository: godot
Issue: AudioStreamSynchronized stops playback if 'set_sync_stream' is called while playing
Labels: bug,topic:audio

### Tested versions


- Reproducible in: 4.3.stable and later
- Not reproducible in: 4.2.stable and earlier

### System information

Godot v4.3.stable - Windows 10.0.19045 - GLES3 (Compatibility) - Intel(R) HD Graphics 5500 (Intel Corporation; 20.19.15.5107) - Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz (4 Threads)

### Issue description

If AudioStreamSynchronized::set_sync_stream is called while playback is playing, audio will be stopped.

I've described some of my experience with AudioStreamSynchronized on [this bluesky thread](https://bsky.app/profile/did:plc:zximkmsmk54ssy6ekrxpoizl/post/3lcegipaalk2b), for those interested on discussing about it.

There's an opened [PR](https://github.com/godotengine/godot/pull/100534) to fix it.

### Steps to reproduce


- Add a AudioStreamSynchronized to an AudioPlayer with autoplay set to true
- Load another stream on script to be set later
- Call set_sync_stream(another_stream) from AudioStreamSynchronized's instance when a chosen input is pressed

### Minimal reproduction project (MRP)

You can reproduce this behavior [here](https://github.com/adriano-sudario/godot_streams_issues_mrp), with detailed informations, running the res://scene unexpected_behaviors/stream_sync_stops_when_set.tscn
Repository: godot
Issue: print() of empty array using format string does not work
Labels: discussion,topic:gdscript,documentation

### Tested versions

Godot Engine v4.4.dev7.official.46c8f8c5c

### System information

Godot v4.4.dev7 - Windows 10 (build 19045)

### Issue description

the print of an empty array with a format string does not work like expected.

the print of an empty dictionary with a format string works but has 2 spaces between the brackets.

```

output test1: %s
Expected output: []
Debugger Message: ... _ready(): String formatting error: not enough arguments for format string. ...

output test2: %s
Expected output: []
Debugger Message: ... _ready(): String formatting error: not enough arguments for format string. ...

output test3: %s
Expected output: []
Debugger Message: ... _ready(): String formatting error: not enough arguments for format string. ...

output test4: {  }
Expected output: {}

output test5: 0
Expected output: 0

output test6: []
Expected output: []


```

### Steps to reproduce

```
extends Control


func _ready() -> void:
	var test1 : Array
	print('output test1: %s' % test1)
	print('Expected output: []')
	print('Debugger Message: ... _ready(): String formatting error: not enough arguments for format string. ...')
	
	print()
	
	var test2 : Array = []
	print('output test2: %s' % test2)
	print('Expected output: []')
	print('Debugger Message: ... _ready(): String formatting error: not enough arguments for format string. ...')

	print()
	
	var test3 : Array [int] = []
	print('output test3: %s' % test3)
	print('Expected output: []')
	print('Debugger Message: ... _ready(): String formatting error: not enough arguments for format string. ...')

	print()
	
	var test4 : Dictionary
	print('output test4: %s' % test4) 
	print('Expected output: {}')

	print()

	var test5 : int
	print('output test5: %s' % test5)
	print('Expected output: 0')

	print()

	var test6 : Array
	prints('output test6:', test6)
	print('Expected output: []')

```

### Minimal reproduction project (MRP)

see steps to reproduce
Repository: react-native
Issue: Issue when displaying a modal after dismissing another modal
Labels: Component: Modal,Needs: Triage :mag:,Newer Patch Available

### Description

Before RN 0.76.5, on iOS it was possible to show a modal and after dismissing it, showing another one. 
Now, when doing the exact same thing on the **old architecture** the second modal is not showing up.
https://github.com/facebook/react-native/issues/47694
https://github.com/facebook/react-native/issues/48245
https://github.com/facebook/react-native/issues/48559

The error **is not** happening on **new architecture**

### Steps to reproduce

1. Create two different modals
2. Show the first one by clicking on a button
3. Then, create a button that will dismiss the first modal and display the second one
4. The second one won't show up

### React Native Version

0.76.5

### Affected Platforms

Runtime - iOS

### Output of `npx react-native info`

```text
System:
  OS: macOS 15.2
  CPU: (10) arm64 Apple M1 Max
  Memory: 482.95 MB / 32.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 22.12.0
    path: ~/.nvm/versions/node/v22.12.0/bin/node
  Yarn: Not Found
  npm:
    version: 8.19.4
    path: ~/code/yonitou/hygo/node_modules/.bin/npm
  Watchman: Not Found
Managers:
  CocoaPods:
    version: 1.11.2
    path: /Users/yonitouboul/.rbenv/shims/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 24.2
      - iOS 18.2
      - macOS 15.2
      - tvOS 18.2
      - visionOS 2.2
      - watchOS 11.2
  Android SDK: Not Found
IDEs:
  Android Studio: 2024.1 AI-241.18034.62.2411.12071903
  Xcode:
    version: 16.2/16C5032a
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.1
    path: /usr/bin/javac
  Ruby:
    version: 2.7.4
    path: /Users/yonitouboul/.rbenv/shims/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react: Not Found
  react-native: Not Found
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: Not found
  newArchEnabled: Not found
iOS:
  hermesEnabled: Not found
  newArchEnabled: Not found
```
```


### Stacktrace or Logs

```text
No errors logs
```


### Reproducer

https://github.com/yonitou/modal-bug

### Screenshots and Videos

When I click on the button "Close modal", it should dismiss the red one and show the blue one but the blue one never shows.
You will notice that if enabling **new architecture**, the problem disappears
https://github.com/user-attachments/assets/72aca692-d90d-40f7-b500-ef574ae26658
Repository: vscode
Issue: VSCode claims no JSON formatter installed, but 5 seconds later formats the document just fine
Labels: formatting


Type: <b>Bug</b>

Everything has to be done pretty fast after VS Code starts.

0. Start with no VSCode running.
1. Copy some JSON document into clipboard.
2. Start VSCode.
3. As soon as it starts, Ctrl+N to create an editor
4. Paste the clipboard content as soon as editor opens
5. Press F1 and type "Format" and have "Format document" selected, don't press enter yet.
6. As soon as pasted text is recognized as JSON and syntax highlight kicks in, press enter to format document.
7. There is a good chance you'd see "There is no formatter installed for JSON files" message here. Pretty sure VSCode ships with one.
8. Wait 5-10 seconds, try formatting again, it works this time.

It sounds like you have to hurry up to get it, but it happens pretty much every time I do it and is very annoying.

VS Code version: Code 1.96.2 (fabdb6a30b49f79a7aba0f2ad9df9b399473380f, 2024-12-19T10:22:47.216Z)
OS version: Windows_NT x64 10.0.19045
Modes:

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

|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz (8 x 3408)|
|GPU Status|2d_canvas: enabled<br>canvas_oop_rasterization: enabled_on<br>direct_rendering_display_compositor: disabled_off_ok<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>opengl: enabled_on<br>rasterization: enabled<br>raw_draw: disabled_off_ok<br>skia_graphite: disabled_off<br>video_decode: enabled<br>video_encode: enabled<br>vulkan: disabled_off<br>webgl: enabled<br>webgl2: enabled<br>webgpu: enabled<br>webnn: disabled_off|
|Load (avg)|undefined|
|Memory (System)|31.92GB (13.99GB free)|
|Process Argv|--crash-reporter-id 22bb98af-524b-4214-a58b-fbfebdd440c9|
|Screen Reader|no|
|VM|0%|
</details><details><summary>Extensions (13)</summary>

Extension|Author (truncated)|Version
---|---|---
xml|Dot|2.5.1
copilot|Git|1.256.0
copilot-chat|Git|0.23.2
vscode-azureresourcegroups|ms-|0.10.2
vscode-bicep|ms-|0.32.4
vscode-devskim|MS-|1.0.51
vscode-dotnet-runtime|ms-|2.2.3
scope-vscode-ext|ms-|1.0.1
azure-account|ms-|0.12.0
powershell|ms-|2024.4.0
vscode-xml|red|0.27.2
rust-analyzer|rus|0.3.2257
even-better-toml|tam|0.21.2


</details><details>
<summary>A/B Experiments</summary>

```
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492:30256859
vscod805:30301674
binariesv615:30325510
vsaa593:30376534
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
pythonnoceb:30805159
pythonmypyd1:30879173
2e7ec940:31000449
pythontbext0:30879054
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
dvdeprecation:31068756
dwnewjupyter:31046869
nativerepl2:31139839
pythonrstrctxt:31112756
nativeloc2:31192216
cf971741:31144450
iacca1:31171482
notype1cf:31157160
5fd0e150:31155592
dwcopilot:31170013
stablechunks:31184530
6074i472:31201624

```

</details>

<!-- generated by issue reporter -->

![Image](https://github.com/user-attachments/assets/88c86e87-949e-41bb-9bfe-17fab5b81cbc)
Repository: flutter
Issue: Update multiway AGP/Java/Gradle compatibility logic to also include a check for kotlin 
Labels: platform-android,t: gradle,P1,team-android,triaged-android

https://kotlinlang.org/docs/whatsnew20.html#current-k2-compiler-limitations 

Kotlin 2.0 requires agp 8.3 or higher but that error condition is not evaluated in our multi way compatibility logic. 
packages/flutter_tools/gradle/src/main/kotlin/dependency_version_checker.gradle.kts 

Context https://github.com/flutter/flutter/pull/160974
Repository: transformers
Issue: Better handeling of hardcoded component in PretrainedModel.from_pretrained.
Labels: bug

### System Info

- `transformers` version: 4.42.0
- Platform: Linux-5.15.0-125-generic-x86_64-with-glibc2.35
- Python version: 3.10.12
- Huggingface_hub version: 0.23.4
- Safetensors version: 0.4.2
- Accelerate version: 0.28.0
- Accelerate config:    not found
- PyTorch version (GPU?): 2.2.1+cu121 (True)
- Tensorflow version (GPU?): not installed (NA)
- Flax version (CPU?/GPU?/TPU?): not installed (NA)
- Jax version: not installed
- JaxLib version: not installed
- Using distributed or parallel set-up in script?: yes
- Using GPU in script?: yes
- GPU type: Tesla V100-SXM2-32GB

### Who can help?

_No response_

### Information

- [ ] The official example scripts
- [X] My own modified scripts

### Tasks

- [ ] An officially supported task in the `examples` folder (such as GLUE/SQuAD, ...)
- [ ] My own task or dataset (give details below)

### Reproduction

The hardcoded component to replace the key names in the loaded model needs better handling (See snippets below). I had named a few variable as `beta` and `gamma` in my layers. the `from_pretrained` function was replacing these names with bias and weights thus loaded model was performing differently.

 Probably, raise a `warning/error` if these names are part of layer names in the architecture to avoid trouble at the later stage of development.

https://github.com/huggingface/transformers/blob/15bd3e61f8d3680ca472c9314ad07584d20f7b81/src/transformers/modeling_utils.py#L4338C1-L4358C19

```python
    @staticmethod
    def _fix_state_dict_key_on_load(key):
        """Replace legacy parameter names with their modern equivalents. E.g. beta -> bias, gamma -> weight."""

        if "beta" in key:
            return key.replace("beta", "bias")
        if "gamma" in key:
            return key.replace("gamma", "weight")

        # to avoid logging parametrized weight norm renaming
        if hasattr(nn.utils.parametrizations, "weight_norm"):
            if "weight_g" in key:
                return key.replace("weight_g", "parametrizations.weight.original0")
            if "weight_v" in key:
                return key.replace("weight_v", "parametrizations.weight.original1")
        else:
            if "parametrizations.weight.original0" in key:
                return key.replace("parametrizations.weight.original0", "weight_g")
            if "parametrizations.weight.original1" in key:
                return key.replace("parametrizations.weight.original1", "weight_v")
        return key

```


### Expected behavior

Loading of the pre-trained model should not raise missing/unexpected layer warnings.
Repository: go
Issue: cmd/cgo: unused parameter when exporting Go function
Labels: NeedsInvestigation,compiler/runtime,BugReport

### Go version

go version go1.22.10 darwin/amd64

### Output of `go env` in your module/workspace:

```shell
GO111MODULE='auto'
GOARCH='amd64'
GOBIN=''
GOCACHE='/tmp/.gocache'
GOENV='/Users/rittneje/Library/Application Support/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='amd64'
GOHOSTOS='darwin'
GOINSECURE=''
GOMODCACHE='/Users/rittneje/test/pkg/mod'
GONOPROXY='[redacted]'
GONOSUMDB='[redacted]'
GOOS='darwin'
GOPATH='/Users/rittneje/test'
GOPRIVATE='[redacted]'
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/Users/rittneje/go1.22.10'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='local'
GOTOOLDIR='/Users/rittneje/go1.22.10/pkg/tool/darwin_amd64'
GOVCS='[redacted]'
GOVERSION='go1.22.10'
GCCGO='gccgo'
GOAMD64='v1'
AR='ar'
CC='clang'
CXX='clang++'
CGO_ENABLED='1'
GOMOD='/Users/rittneje/test/src/cgotest/go.mod'
GOWORK='/Users/rittneje/test/go.work'
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -arch x86_64 -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -ffile-prefix-map=/var/folders/kf/kr7_s3xx0l12zbj3jrn082hmzy5gvy/T/go-build3787749113=/tmp/go-build -gno-record-gcc-switches -fno-common'
```


### What did you do?

I am writing an application that uses cgo. For this reason, I want to compile with all warnings as errors.

Here is a minimal reproducer of the issue.
```go
package main

/*
#cgo CFLAGS: -Werror -Wunused-parameter
*/
import "C"

func main() {

}

//export foo
func foo() {

}
```

### What did you see happen?

```
$ go build
# command-line-arguments
cgo-generated-wrappers:1:37: error: unused parameter 'p' [-Werror,-Wunused-parameter]
```

I believe it is referring to _cgo_main.c, which looks like this:
```go
#include <stddef.h>
int main() { return 0; }
void crosscall2(void(*fn)(void*) __attribute__((unused)), void *a __attribute__((unused)), int c __attribute__((unused)), size_t ctxt __attribute__((unused))) { }
size_t _cgo_wait_runtime_init_done(void) { return 0; }
void _cgo_release_context(size_t ctxt __attribute__((unused))) { }
char* _cgo_topofstack(void) { return (char*)0; }
void _cgo_allocate(void *a __attribute__((unused)), int c __attribute__((unused))) { }
void _cgo_panic(void *a __attribute__((unused)), int c __attribute__((unused))) { }
void _cgo_reginit(void) { }
#line 1 "cgo-generated-wrappers"
void _cgoexp_d15c4901095e_foo(void* p){}
```

### What did you expect to see?

No errors.
Repository: PowerToys
Issue: Fancy Zones corrupting screen snipper Snagit
Labels: Issue-Bug,Needs-Triage

### Microsoft PowerToys version

0.87.1

### Installation method

PowerToys auto-update

### Running as admin

Yes

### Area(s) with issue?

FancyZones

### Steps to reproduce

Simply turning FancyZones on and off both corrupts and corrects the conflict.


### ✔️ Expected Behavior

To be able to clip areas of my screens when the capture button on my Snagit is pressed.

### ❌ Actual Behavior

With FancyZones enabled, whenenver I click the capture button for a screen grab, my (3) screens all shift their entire content about 60% down the screens in unison, and the snipping area that is enabled is now only the lower 40% of my screens which actually only shows the top 40% of my screen content (since it's been lowered that amount)
When I disable FancyZones, the problem does not exist. 

[PowerToysReport_2025-01-10-14-21-16.zip](https://github.com/user-attachments/files/18381519/PowerToysReport_2025-01-10-14-21-16.zip)

### Other Software

Snagit by Techsmith
Version 2024.3.0 (build 4481) (Direct2D 1.1) - 11/12/24
Repository: go
Issue: cmd/cgo: _GoStringLen and _GoStringPtr implicitly declared when exporting Go function
Labels: NeedsInvestigation,compiler/runtime,BugReport

### Go version

go version go1.22.10 darwin/amd64

### Output of `go env` in your module/workspace:

```shell
GO111MODULE='auto'
GOARCH='amd64'
GOBIN=''
GOCACHE='/tmp/.gocache'
GOENV='/Users/rittneje/Library/Application Support/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='amd64'
GOHOSTOS='darwin'
GOINSECURE=''
GOMODCACHE='/Users/rittneje/test/pkg/mod'
GONOPROXY='[redacted]'
GONOSUMDB='[redacted]'
GOOS='darwin'
GOPATH='/Users/rittneje/test'
GOPRIVATE='[redacted]'
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/Users/rittneje/go1.22.10'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='local'
GOTOOLDIR='/Users/rittneje/go1.22.10/pkg/tool/darwin_amd64'
GOVCS='[redacted]'
GOVERSION='go1.22.10'
GCCGO='gccgo'
GOAMD64='v1'
AR='ar'
CC='clang'
CXX='clang++'
CGO_ENABLED='1'
GOMOD='/Users/rittneje/test/src/cgotest/go.mod'
GOWORK='/Users/rittneje/test/go.work'
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -arch x86_64 -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -ffile-prefix-map=/var/folders/kf/kr7_s3xx0l12zbj3jrn082hmzy5gvy/T/go-build3787749113=/tmp/go-build -gno-record-gcc-switches -fno-common'
```


### What did you do?

I am writing an application that uses cgo. For this reason, I want to compile with all warnings as errors.

Here is a minimal reproducer:
```go
package main

/*
#cgo CFLAGS: -Werror -Wimplicit-function-declaration

void bar(_GoString_ str) {
	_GoStringLen(str);
	_GoStringPtr(str);
}
*/
import "C"

func main() {
}

//export foo
func foo() {
}
```

### What did you see happen?

```
$ go build
# cgotest
In file included from _cgo_export.c:4:
main.go:7:2: error: call to undeclared function '_GoStringLen'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
main.go:8:2: error: call to undeclared function '_GoStringPtr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
```

Without the `//export foo` directive, it compiles without issue.

### What did you expect to see?

No errors.