sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: svelte
Issue: Svelte 5 and CSP
Labels: bug

@eltigerchino please find a minimal reproduction attempt [here](https://github.com/mulder999/svelte-bug-12879)

This is basically the standard sveltekit demo and adjustment were made in commit `92df14f` (static adapter + CSP).

To reproduce:
1. `npm run build`
2. `npm run preview`
3. Open project home page and start the browser console
4. Reload page -> csp style issue
5. Click on a button -> more csp style issue

On my large project, I also have inline scripts issues but this seems not visible with this minimalistic project.
With svelte4 using `"self"` and `"blob:"` for `script-src` were enough.

_Originally posted by @mulder999 in https://github.com/sveltejs/kit/discussions/12879#discussioncomment-11055550_
Repository: tauri
Issue: [bug] It still doesn't display the window borders correctly on Windows 10.
Labels: type: bug,platform: Windows,status: needs triage

### Describe the bug

When I set decorations to false, the initial window has no left or bottom border. However, when I resize the window, they appear. But it's noticeable that their color is different—slightly darker.
![screenshot_2024-11-12_10-24-31](https://github.com/user-attachments/assets/e54c5b2e-65d9-4add-ae73-98d23cd095a3)
![BC923DE2-EF40-474e-8EC5-29831A75AEA1](https://github.com/user-attachments/assets/02513a62-7f89-417c-ad0b-dc1738fcc159)


### Reproduction

_No response_

### Expected behavior

_No response_

### Full `tauri info` output

```text
[✔] Environment
    - OS: Windows 10.0.19045 x86_64 (X64)
    ✔ WebView2: 130.0.2849.80
    ✔ MSVC: Visual Studio Community 2022
    ✔ rustc: 1.82.0 (f6e511eec 2024-10-15)
    ✔ cargo: 1.82.0 (8f40fc59f 2024-08-21)
    ✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
    ✔ Rust toolchain: stable-x86_64-pc-windows-msvc (environment override by RUSTUP_TOOLCHAIN)
    - node: 20.13.1
    - pnpm: 9.12.3
    - yarn: 1.22.22
    - npm: 10.8.1

[-] Packages
    - tauri 🦀: 2.1.1
    - tauri-build 🦀: 2.0.3
    - wry 🦀: 0.47.0
    - tao 🦀: 0.30.8
    - tauri-cli 🦀: 2.0.2
    - @tauri-apps/api : 2.1.1
    - @tauri-apps/cli : 2.0.2 (outdated, latest: 2.1.0)

[-] Plugins
    - tauri-plugin-shell 🦀: 2.0.2
    - @tauri-apps/plugin-shell : 2.0.1

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: ../dist
    - devUrl: http://localhost:1420/
    - framework: SolidJS
    - bundler: Vite
```


### Stack trace

_No response_

### Additional context

_No response_
Repository: neovim
Issue: 'listchars': distinguish CR/LF; don't show EOL char if newline missing at EOF
Labels: enhancement,needs:vim-patch,options

### Problem

Currently, Neovim only has `eol` option. `eol` can’t express CR and LF. Even if a text file doesn’t have end-of-file LF, it shows the `eol` character.

Related issue for Vim: https://github.com/vim/vim/issues/6981

### Expected behavior

In Unix-like systems which use LF as a new line,

* if there is no LF in the end of the file, no eol character is shown.
* listchars has an option to set the character for the hidden CR.
Repository: node
Issue: Add a way to get the enabled conditions
Labels: module,feature request

### What is the problem this feature will solve?

Currently there is no way to get the enabled conditions easily. It requires checking `process.env.NODE_OPTIONS` and `process.execArgv` which is not robust. It should be noted that although it is an edge case, the `process.env.NODE_OPTIONS` check should be done before any code that modifies that variable.

Some concrete cases:

1. Give custom resolvers to imitate Node.js's resolution (this one can be solved if `parent` parameter of `import.meta.resolve` is out of experimental, but I guess exposing `conditions` is less controversial than graduating that API from experimental)
    - Vite throws an friendly error when an optional dependency is not installed. To do that, Vite wants to check if a package is installed without using `require` or `import` so it uses the custom resolver. If Vite uses `require` or `import`, the resolve result is gets cached and requires the program to be restarted.
    - Vite bundles the config to detect the files used for the config to restart Vite when those files are modified. When bundling the config, Vite rewrites the specifies to absolute path so that it points the same path before the bundling.
    - yarn seems to parse them on their own: https://github.com/yarnpkg/berry/blob/f59bbf9f3828865c14b06a3e5cc3ae284a0db78d/packages/yarnpkg-pnp/sources/loader/makeApi.ts#L199
    - ts-node seems to parse them on their own: https://github.com/TypeStrong/ts-node/blob/ddb05ef23be92a90c3ecac5a0220435c65ebbd2a/dist-raw/node-internal-modules-cjs-helpers.js#L15
2. Let frameworks to show a warning when the user didn't set required / expected conditions.
    - For example, if frameworks expect users to set `custom` conditions, to show a warning they have to parse the conditions to do that for now.


### What is the feature you are proposing to solve the problem?

Add `conditions` variable in `node:module`.

Example code:
```js
// node -C development ./foo.mjs
import { conditions } from 'node:module';
console.log(conditions) // ['development']
```

I didn't add `node` to `conditions` in the example above, but maybe it makes sense to add that too.
But for `import` and `require`, I'm not sure if those should be added in that case. Probably the option would be to add both or neither.


### What alternatives have you considered?

- Exposing `getOptionValue` (#36935): this one got stale because it is difficult to make the API stable.
Repository: create-react-app
Issue: problem with jest matchers
Labels: needs triage,issue: bug report

<!--
    Please note that your issue will be fixed much faster if you spend about
    half an hour preparing it, including the exact reproduction steps and a demo.

    If you're in a hurry or don't feel confident, it's fine to report bugs with
    less details, but this makes it less likely they'll get fixed soon.

    In either case, please use this template and fill in as many fields below as you can.

    Note that we don't provide help for webpack questions after ejecting.
    You can find webpack docs at https://webpack.js.org/.
-->

### Describe the bug

I  tried to generate a new project using yarn create react-app my-project --template typescript. But I have a jest matcher errors right away.

### Environment

local dev

### Steps to reproduce
yarn create react-app my-project --template typescript
cd my-project
yarn start

![Screenshot 2024-11-12 at 11 42 00 AM](https://github.com/user-attachments/assets/e3f7874d-2855-4b7d-a55a-f1b477657ebc)


Thanks!
Repository: vscode
Issue: Do not show publisher information for workspace extensions install recommendation notification
Labels: feature-request,extensions

IIRC this used to say Microsoft instead of ms-vscode

![Image](https://github.com/user-attachments/assets/b0dfd334-e8be-46bf-9ac6-63308d3e6b57)
Repository: godot
Issue: Loss of float precision when using `save as` on a text resource or scene
Labels: bug,topic:core

### Tested versions

current master @ ec6a1c0e792ac8be44990749800a4654a293b9ee

### System information

macOS 14.5.0, M2 Pro, Vulkan

### Issue description

Re-saving a text scene/resource as another text scene/resource with float properties results in a loss of precision when the float has a precision of >6. 

This is an issue with [String::num_scientific](https://github.com/godotengine/godot/blob/ec6a1c0e792ac8be44990749800a4654a293b9ee/core/string/ustring.cpp#L1960);

 [The default for `printf('%lg')` is 6 precision](https://en.cppreference.com/w/c/io/fprintf).
 
 

### Steps to reproduce

Open the MRP an editor
Re-save main.tscn as `main-2.tscn`
Observe that MobTimer.wait_time has reduced in precision from 0.570710678118 to 0.570711

### Minimal reproduction project (MRP)

[dodge_the_creeps.zip](https://github.com/user-attachments/files/17711296/dodge_the_creeps.zip)
Repository: vscode
Issue: Support IME contextual conversion (pre- and post-conversion references)
Labels: feature-request,editor-input-IME

<!-- ⚠️⚠️ 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. -->

## Summary

This request is for Visual Studio Code to support the IME (Input Method Editor) feature known as "contextual conversion." This function, crucial for East Asian languages like Japanese and Chinese, enables IMEs to refer to surrounding text to suggest accurate conversions based on context, enhancing both accuracy and typing efficiency.

## Explanation and Benefits

IME contextual conversion allows the IME to use surrounding text (both before and after the input) to suggest the most accurate characters and words. For instance, when typing in Japanese, the IME can consider the entire sentence to provide correct kanji or hiragana suggestions. Currently, VS Code doesn’t provide this surrounding context, which limits the IME's predictive accuracy, often requiring manual corrections.

By supporting this feature:
- **Typing Accuracy Improves**: IMEs offer better suggestions based on context, reducing errors.
- **Enhanced Productivity**: Users can type faster with fewer interruptions.
- **Broader Accessibility**: VS Code becomes more user-friendly for non-Latin script languages.

Implementing this would likely involve integrating OS-level features, such as Windows’ `IMR_DOCUMENTFEED`, to share document context with the IME. For more information on implementing this feature in Windows, you may find the following articles helpful:

- **[IMEの前後参照変換機能に対応するには](https://topiyama.hatenadiary.org/entry/20070703/p1)**: This article provides an overview of how applications can support IME's contextual conversion by utilizing the `IMR_DOCUMENTFEED` notification code. 
- **[TextBox を IME 前後参照変換に対応させる (System.Windows.Forms)](https://wwwcfe.hatenablog.com/entry/20100512/textbox_imr_documentfeed)**: This post discusses implementing IME contextual conversion in a Windows Forms TextBox control, including sample code and explanations.
Repository: deno
Issue: refactor(ext/node): do not prefix private function with `_` in node compat JS implementation
Labels: refactor

In Node compat JS implementation, we generally follow Node.js source code as far as possible, but with `_` prefix for private functions in a file (ex. `afterConnect` in `lib/net.js` in Node.js becomes `_afterConnect` in our code base). This `_` prefix is confusing for comparing the 2 code bases. So we should remove them.


related: https://github.com/denoland/deno/pull/26661#discussion_r1837124451
Repository: godot
Issue: Switching Editing and Preview keep reloading the Editor
Labels: bug,platform:android,topic:editor

### Tested versions

The Godot editor keeps reloading whenever you preview the game, regardless of whether the project is simple or complex. This constant reloading is frustrating, as it forces you to wait for the editor to reload each time you switch between preview and editing, which slows down development. This issue did not occur in versions 4.1 and below; it was introduced in version 4.2 and persists in the latest versions. Additionally, the splash screen for Godot is not displaying properly.



### System information

Godot v4.4.dev3 - Android - Single-window, 1 monitor - OpenGL ES 3 (Compatibility) - PowerVR Rogue GE8300 -  (4 threads)

### Issue description


https://github.com/user-attachments/assets/629d8589-82de-44cf-8cd7-22ff78fa1a47

The editor keep reloading during the preview and editing.

### Steps to reproduce

Create a project doesn't matter if it's simple or complex game the switch from preview and editing keep reloading the editor itself.

### Minimal reproduction project (MRP)

N/A
Repository: godot
Issue: Large Font Size Pushes Bottom Tab Bar Off Screen
Labels: bug,topic:editor

### Tested versions

v4.3.stable.official [77dcf97d8]

### System information

MacBook Pro 13 inch M1 2020

### Issue description

Opening the audio tab pushes the bottom tab bar off the bottom of the screen entirely.
<img width="1552" alt="Screenshot 2024-11-11 at 9 58 21 PM" src="https://github.com/user-attachments/assets/5e493ce2-b4c7-438f-b8be-7274c8e04ec3">
<img width="1552" alt="Screenshot 2024-11-11 at 9 58 38 PM" src="https://github.com/user-attachments/assets/e588f294-79ca-4aec-a601-4cd47f5bc716">



### Steps to reproduce

1. Go to Editor Settings and set Main Font Size to 24
2. Switch to the Script view
3. Create a new script
4. Click on the bottom Audio tab

### Minimal reproduction project (MRP)

N/A
Repository: go
Issue: x/tools/cmd/goimports: confusing error message when file contains CRLF
Labels: NeedsInvestigation,Tools

### Go version

go version go1.23.3 windows/amd64

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

```shell
set GO111MODULE=
  set GOARCH=amd64
  set GOBIN=
  set GOCACHE=C:\Users\runneradmin\AppData\Local\go-build
  set GOENV=C:\Users\runneradmin\AppData\Roaming\go\env
  set GOEXE=.exe
  set GOEXPERIMENT=
  set GOFLAGS=
  set GOHOSTARCH=amd64
  set GOHOSTOS=windows
  set GOINSECURE=
  set GOMODCACHE=C:\Users\runneradmin\go\pkg\mod
  set GONOPROXY=
  set GONOSUMDB=
  set GOOS=windows
  set GOPATH=C:\Users\runneradmin\go
  set GOPRIVATE=
  set GOPROXY=https://proxy.golang.org,direct
  set GOROOT=C:\hostedtoolcache\windows\go\1.23.3\x64
  set GOSUMDB=sum.golang.org
  set GOTMPDIR=
  set GOTOOLCHAIN=auto
  set GOTOOLDIR=C:\hostedtoolcache\windows\go\1.23.3\x64\pkg\tool\windows_amd64
  set GOVCS=
  set GOVERSION=go1.23.3
  set GODEBUG=
  set GOTELEMETRY=local
  set GOTELEMETRYDIR=C:\Users\runneradmin\AppData\Roaming\go\telemetry
  set GCCGO=gccgo
  set GOAMD64=v1
  set AR=ar
  set CC=gcc
  set CXX=g++
  set CGO_ENABLED=1
  set GOMOD=D:\a\sflags\sflags\go.mod
  set GOWORK=
  set CGO_CFLAGS=-O2 -g
  set CGO_CPPFLAGS=
  set CGO_CXXFLAGS=-O2 -g
  set CGO_FFLAGS=-O2 -g
  set CGO_LDFLAGS=-O2 -g
  set PKG_CONFIG=pkg-config
  set GOGCCFLAGS=-m64 -mthreads -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=C:\Users\RUNNER~1\AppData\Local\Temp\go-build1760277560=/tmp/go-build -gno-record-gcc-switches
```


### What did you do?

Run `golangci-lint` [which invokes](https://github.com/golangci/golangci-lint/issues/635#issuecomment-542293826) `goimports` on Windows machine.

https://github.com/urfave/sflags/actions/runs/11786526137/job/32829983012

Other reports are visible from https://github.com/golangci/golangci-lint/issues/580

### What did you see happen?

```
cmd\genvalues\main.go:1: File is not `goimports`-ed (goimports)
```

### What did you expect to see?

```
cmd\genvalues\main.go:1: File contains CRLF linefeeds (goimports)
```
Repository: ollama
Issue: Embedded struct in `ToolFunction`
Labels: bug

### What is the issue?

https://github.com/ollama/ollama/blob/65973ceb6417c2e2796fa59bd3225bc7bd79b403/api/types.go#L165-L177

This makes creating tools really annoying.

```go
package main

import (
	ollama "github.com/ollama/ollama/api"
)

var modFunctions = []ollama.Tool{{
	Type: "function",
	Function: ollama.ToolFunction{
		Name:        "remove",
		Description: "Remove a post when it violates a rule",
		Parameters: struct {
			Type       string   `json:"type"`
			Required   []string `json:"required"`
			Properties map[string]struct {
				Type        string   `json:"type"`
				Description string   `json:"description"`
				Enum        []string `json:"enum,omitempty"`
			} `json:"properties"`
		}{
			Type:     "object",
			Required: []string{"reason"},
			Properties: map[string]struct {
				Type        string   `json:"type"`
				Description string   `json:"description"`
				Enum        []string `json:"enum,omitempty"`
			}{
				"reason": {
					Type:        "string",
					Description: "These are the rules of the subreddit. If the post violates one of these rules, remove it.",
					Enum: []string{
						"actual_animal_attack",
						"bad_explanatory_comment",
						"direct_link_to_other_subreddit",
						"does_not_fit_the_subreddit",
						"leopard_in_title_or_explanatory_comment",
						"no_explanatory_comment",
						"uncivil_behaviour",
					},
				},
			},
		},
	},
}, {
	Type: "function",
	Function: ollama.ToolFunction{
		Name:        "approve",
		Description: "Approve a post when the explanatory comment explains how someone is suffering consequences from something they voted for, supported or wanted to impose on other people",
		Parameters: struct {
			Type       string   `json:"type"`
			Required   []string `json:"required"`
			Properties map[string]struct {
				Type        string   `json:"type"`
				Description string   `json:"description"`
				Enum        []string `json:"enum,omitempty"`
			} `json:"properties"`
		}{
			Type:     "object",
			Required: []string{"someone", "something", "consequences"},
			Properties: map[string]struct {
				Type        string   `json:"type"`
				Description string   `json:"description"`
				Enum        []string `json:"enum,omitempty"`
			}{
				"someone": {
					Type:        "string",
					Description: "The name of the person who voted for, supported or wanted to impose something on other people.",
				},
				"something": {
					Type:        "string",
					Description: "The thing that the person voted for, supported or wanted to impose on other people.",
				},
				"consequences": {
					Type:        "string",
					Description: "The consequences of the thing that the person voted for, supported or wanted to impose on other people.",
				},
			},
		},
	},
}}
```

Please make a separate struct for parameters and properties :(

### OS

Linux

### GPU

Nvidia, AMD

### CPU

Intel, AMD

### Ollama version

Docker
Repository: deno
Issue: Mutual TLS authentication for servers/listen
Labels: suggestion,tls

#6170 was closed because connectTls can be given a cert now, but there is still no way for listenTls (or upgraded listen with startTls) to get the client cert of the connection for authentication purposes.
Repository: pytorch
Issue: DISABLED test_sparse_gradients_grad_is_view (__main__.DistributedDataParallelTest)
Labels: oncall: distributed,module: flaky-tests,skipped

Platforms: linux

This test was disabled because it is failing in CI. See [recent examples](https://hud.pytorch.org/flakytest?name=test_sparse_gradients_grad_is_view&suite=DistributedDataParallelTest&limit=100) and the most recent trunk [workflow logs](https://github.com/pytorch/pytorch/runs/32835409615).

Over the past 3 hours, it has been determined flaky in 3 workflow(s) with 3 failures and 3 successes.

**Debugging instructions (after clicking on the recent samples link):**
DO NOT ASSUME THINGS ARE OKAY IF THE CI IS GREEN. We now shield flaky tests from developers so CI will thus be green but it will be harder to parse the logs.
To find relevant log snippets:
1. Click on the workflow logs linked above
2. Click on the Test step of the job so that it is expanded. Otherwise, the grepping will not work.
3. Grep for `test_sparse_gradients_grad_is_view`
4. There should be several instances run (as flaky tests are rerun in CI) from which you can study the logs.



<details><summary>Sample error message</summary>

```
Traceback (most recent call last):
  File "/opt/conda/envs/py_3.10/lib/python3.10/site-packages/torch/testing/_internal/common_distributed.py", line 564, in wrapper
    self._join_processes(fn)
  File "/opt/conda/envs/py_3.10/lib/python3.10/site-packages/torch/testing/_internal/common_distributed.py", line 796, in _join_processes
    self._check_return_codes(elapsed_time)
  File "/opt/conda/envs/py_3.10/lib/python3.10/site-packages/torch/testing/_internal/common_distributed.py", line 853, in _check_return_codes
    self.assertEqual(
  File "/opt/conda/envs/py_3.10/lib/python3.10/site-packages/torch/testing/_internal/common_utils.py", line 3965, in assertEqual
    raise error_metas.pop()[0].to_error(
AssertionError: Scalars are not equal!

Expected -6 but got 0.
Absolute difference: 6
Relative difference: 1.0
Expect process 1 exit code to match Process 0 exit code of -6, but got 0
```

</details>


Test file path: `distributed/test_c10d_gloo.py`

cc @H-Huang @awgu @kwen2501 @wanchaol @fegin @fduwjj @wz337 @wconstab @d4l3k @c-p-i-o @clee2000
Repository: vscode
Issue: deleted files don't go to trash
Labels: bug,linux,snap


Type: <b>Bug</b>

I delete files in the explorer using `del` key of keyboard, files are deleted and cannot be found in the trash bin

VS Code version: Code 1.95.2 (e8653663e8840adaf45af01eab5c627a5af81807, 2024-11-07T11:07:22.054Z)
OS version: Linux x64 6.8.0-48-generic snap
Modes:

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

|Item|Value|
|---|---|
|CPUs|13th Gen Intel(R) Core(TM) i7-1365U (12 x 3700)|
|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>opengl: disabled_off<br>rasterization: disabled_software<br>raw_draw: disabled_off_ok<br>skia_graphite: disabled_off<br>video_decode: disabled_software<br>video_encode: disabled_software<br>vulkan: disabled_off<br>webgl: unavailable_software<br>webgl2: unavailable_software<br>webgpu: disabled_off<br>webnn: unavailable_software|
|Load (avg)|2, 2, 1|
|Memory (System)|31.00GB (22.61GB free)|
|Process Argv|--no-sandbox --force-user-env --crash-reporter-id 8447ec3e-1827-4960-bb59-12316efae9e7|
|Screen Reader|no|
|VM|0%|
|DESKTOP_SESSION|ubuntu|
|XDG_CURRENT_DESKTOP|Unity|
|XDG_SESSION_DESKTOP|ubuntu|
|XDG_SESSION_TYPE|wayland|
</details><details><summary>Extensions (14)</summary>

Extension|Author (truncated)|Version
---|---|---
gitlens|eam|15.6.3
ftp-simple|hum|0.7.6
git-graph|mhu|1.30.0
autopep8|ms-|2024.0.0
debugpy|ms-|2024.12.0
python|ms-|2024.18.1
vscode-pylance|ms-|2024.11.1
jupyter|ms-|2024.10.0
jupyter-keymap|ms-|1.1.2
jupyter-renderers|ms-|1.0.21
vscode-jupyter-cell-tags|ms-|0.1.9
vscode-jupyter-slideshow|ms-|0.1.6
remote-containers|ms-|0.388.0
LiveServer|rit|5.7.9


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

```
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805cf:30301675
binariesv615:30325510
vsaa593:30376534
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
2i9eh265:30646982
962ge761:30959799
pythongtdpath:30769146
pythonnoceb:30805159
asynctok:30898717
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
bdiig495:31013172
dvdeprecation:31068756
dwnewjupyter:31046869
impr_priority:31102340
nativerepl2:31139839
refactort:31108082
pythonrstrctxt:31112756
cf971741:31144450
iacca1:31171482
notype1cf:31157160
5fd0e150:31155592
dwcopilot:31170013
j44ff735:31177056

```

</details>

<!-- generated by issue reporter -->