sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: TypeScript
Issue: JavaScript IntelliSense does not recognize DefineProperty on built-in types
Labels: Suggestion,Awaiting More Feedback

<!-- ⚠️⚠️ 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.80.2
- OS Version: Darwin arm64 21.6.0

Steps to Reproduce:

1. Define property on built-in type
2. Try to use it
<img width="458" alt="image" src="https://github.com/microsoft/vscode/assets/100197083/1aa5eead-0f9d-42cd-92ba-31e8b4264052">

P.S. Similar to microsoft/vscode/issues/55390
Repository: flutter
Issue: [A11y] Supports links inside ListTile
Labels: framework,f: material design,a: accessibility,P2,team-design,triaged-design

b/245911732

### Steps to reproduce


```dart
import 'package:flutter/material.dart';

void main() {
  runApp(MaterialApp(
    home: Scaffold(
      body: Center(child: CheckboxListTile(
        value: false,
        onChanged: (_) {},
        title: Text.rich(TextSpan(
          children: [
            TextSpan(text:'before'),
            WidgetSpan(child: TextButton(child: Text('link'), onPressed: (){}, )),
            TextSpan(text:'after'),
          ]
        )),
      )),
    )
  ));
}

```


1. run the app with talkback or voiceover.

### Expected results

The link should have its own semantics node.

### Actual results

The entire checkboxlisttile is merged into one node, and the link widget is always at the end of the label.

### Logs

<details>
<summary>Logs</summary>

```console

<!-- Paste your logs here -->

```

</details>


### Flutter Doctor output

<details>
<summary>Doctor output</summary>

```console

<!-- Paste your output here -->

```

</details>
Repository: go
Issue: x/tools/gopls: replace/mitigate objectpath workaround for struct fields
Labels: gopls,Tools

[CL 503438](https://go.dev/cl/503438) added a workaround for de-duplicating struct fields created from export data. Unfortunately, #61670 highlighted that this workaround is insufficient. At the very least, the following is an example of where the objectpath algorithm is insufficient to prevent de-duplication, when the field is forwarded from an instantiated type. There is no path to the synthetic field:

```
// package a
type A[P any] struct{ F P }

// package b
type B[P any] a.A[int]
```

Therefore, we simply can't rely on this algorithm to prevent de-duplication. We should either remove it entirely, or leave it in merely as a memory optimization. But our algorithms for references/renaming cannot depend on it.
Repository: flutter
Issue: [go_router] support popUntil
Labels: P1,team-go_router,triaged-go_router

### Is there an existing issue for this?

- [X] I have searched the [existing issues](https://github.com/flutter/flutter/issues)
- [X] I have read the [guide to filing a bug](https://flutter.dev/docs/resources/bug-reports)

### Use case

We should come up a way to do popUntil that matches the behavior of https://api.flutter.dev/flutter/widgets/Navigator/popUntil.html

The difficulty is then to come up with a reasonable predicate that fits the go_router.

### Proposal

Come up with the api
Repository: tauri
Issue: [bug] DMG is not notarized
Labels: type: bug,platform: macOS,scope: bundler,status: needs triage

### Describe the bug

Tauri's build process automatically notarizes the `.app` bundle, but does not notarize the `.dmg`. This doesn't seem to be in the spirit of the framework.

### Reproduction

Can't reproduce without a bunch of apple-specific secrets...

### Expected behavior

Since notarizing the `dmg` will automatically notarize the `app`, I would expect/recommend:
1. Sign `app`
2. Make `dmg`
3. Notarize `dmg`
4. Staple `dmg` and `app`

This is also how other cross-platform application builders I've tried handle things on Mac.

### Platform and versions

```text
[✔] Environment
    - OS: Mac OS 13.5.0 X64
    ✔ Xcode Command Line Tools: installed
    ✔ rustc: 1.71.0 (8ede3aae2 2023-07-12)
    ✔ Cargo: 1.71.0 (cfd3bbd8f 2023-06-08)
    ✔ rustup: 1.26.0 (5af9b9484 2023-04-05)
    ✔ Rust toolchain: stable-aarch64-apple-darwin (environment override by RUSTUP_TOOLCHAIN)
    - node: 20.5.0
    - pnpm: 8.6.10
    - npm: 9.8.0
```


### Stack trace

_No response_

### Additional context

_No response_
Repository: rust
Issue: `proc_macro` that fails to link causes difficult-to-diagnose errors
Labels: A-diagnostics,T-compiler,C-bug,A-proc-macros

### Code

This is a particularly challenging one to reproduce as it requires a number of prerequisites:

 - A library `LIB` that doesn't link necessary symbols in a DOCS_RS=1 build (for performance reasons)
 - A `proc_macro` crate `PROC` that depends on that library `LIB`
 - Another library that imports that `PROC` `proc_macro` and attempts to compile in DOCS_RS=1.

No code provided, however we have a docs.rs run where this is visible:

https://docs.rs/crate/deno_core/0.197.0/builds/870081

### Current output

```Shell
[INFO] [stderr] warning: Rustdoc did not scrape the following examples because they require dev-dependencies: http_bench_json_ops, panik, fs_module_loader, hello_world, schedule_task, ts_module_loader, disable_ops, eval_js_value, wasm
[INFO] [stderr]     If you want Rustdoc to scrape these examples, then add `doc-scrape-examples = true`
[INFO] [stderr]     to the [[example]] target configuration of at least one example.
[INFO] [stderr] warning: Target filter specified, but no targets matched. This is a no-op
[INFO] [stderr]  Documenting deno_core v0.197.0 (/opt/rustwide/workdir)
[INFO] [stderr] error[E0463]: can't find crate for `deno_ops`
[INFO] [stderr]   --> lib.rs:44:9
[INFO] [stderr]    |
[INFO] [stderr] 44 | pub use deno_ops::op;
[INFO] [stderr]    |         ^^^^^^^^ can't find crate
[INFO] [stderr] 

```


### Desired output

```Shell
error[XXX]: `proc_macro` crate failed to link
undefined symbol: v8__String__kMaxLength

```


### Rationale and extra context

Originally reported as docs.rs bug https://github.com/rust-lang/docs.rs/issues/2178, but it turns out that this is indeed a legit bug in `deno_ops`/`rusty_v8`.

One big challenge to diagnosing this is determining that this is actually a link/dynamic load failure in a proc macro. The proc macro itself documents itself perfectly fine on docs.rs, but because of an optimization in `rusty_v8` (https://github.com/denoland/rusty_v8/blob/main/build.rs#L52), attempting to document a crate that uses the proc macro will blow up because that proc macro is unable to link the code it needs to run.

This is not a bug in docs.rs nor rustc per-se, but it is quite difficult to determine what failed in the build process here and some additional diagnostics could be useful. 

@Nemo157 helped identify this, but needed to enable some debug logging for `rustc` to diagnose it.

### Other cases

_No response_

### Anything else?

_No response_
Repository: next.js
Issue: Resulting in "404 Not Found" on manual navigation to subdirectory and on refresh
Labels: bug

### Verify canary release

- [X] I verified that the issue exists in the latest Next.js canary release

### Provide environment information

```bash
Operating System:
      Platform: darwin
      Arch: arm64
      Version: Darwin Kernel Version 22.5.0: Thu Jun  8 22:22:19 PDT 2023; root:xnu-8796.121.3~7/RELEASE_ARM64_T8103
    Binaries:
      Node: 16.18.0
      npm: 9.3.1
      Yarn: 1.22.19
      pnpm: 7.25.0
    Relevant Packages:
      next: 13.4.12
      eslint-config-next: 13.4.12
      react: 18.2.0
      react-dom: 18.2.0
      typescript: 5.1.6
    Next.js Config:
      output: export
```


### Which area(s) of Next.js are affected? (leave empty if unsure)

Static HTML Export (output: "export")

### Link to the code that reproduces this issue or a replay of the bug

https://github.com/GnussonNet/nextjs-bug

### To Reproduce

1. Create a new nextjs project using default values
`npx create-next-app@latest`

2. Change next.config.js
```js
/** @type {import('next').NextConfig} */
const nextConfig = {
  output: "export",
  images: {
    unoptimized: true,
  },
};

module.exports = nextConfig;
```

3. Create a folder inside app (ex, about) and add a page.tsx

4. Remove all content in app/page.tsx and add a next/link to "/about"

5. In app/about/page.tsx, add a div with "about" text inside.

6. Build project
`npm run build`

7. Transfer all files from out/ to one.com via SFTP

8. Go to domain, navigate to /about by using the Link, refresh (Gives 404 not found)

9. Manually enter domain /about (gives 404 not found)




### Describe the Bug

Described above

### Expected Behavior

Expected behavior is to be able to navigate and refresh the page without getting a "404 Not Found" response and be able to directly access subdirectories via domain.com/about

### Which browser are you using? (if relevant)

_No response_

### How are you deploying your application? (if relevant)

SFTP to one.com
Repository: kubernetes
Issue: Trace and span IDs in apiserver logs using contextual logging
Labels: sig/api-machinery,kind/feature,sig/instrumentation,triage/accepted,wg/structured-logging

### What would you like to be added?

Add `trace_id` and `span_id` keys to logs on the apiserver request path.  This can be done using the contextual logging feature: https://github.com/kubernetes/enhancements/issues/3077

cc @kubernetes/wg-structured-logging-leads @kubernetes/sig-instrumentation-leads @Richabanker 

### Why is this needed?

With https://github.com/kubernetes/enhancements/issues/647, we can now collect traces for requests to the kubernetes api.  After https://github.com/kubernetes/kubernetes/issues/119697, we will be able to link from metrics to trace and span IDs.  If we had those in logs, we would be able to link from metrics to logs, which would be useful.
Repository: go
Issue: x/tools/gopls: hover: doc link markup ignores import mapping of current file, omits links
Labels: FeatureRequest,gopls,Tools

**Is your feature request related to a problem? Please describe.**
When hovering over a symbol in the editor, currently some go doc links do not render as links in the tooltip.

If the link is to some URL, then it will appear correctly. If the link is to a fully-qualified symbol eg `[encoding/json.Marshal]` then it will also appear correctly. However links to symbols imported in the current package but not fully-qualified will not appear as links.

**Describe the solution you'd like**
For builtins or standard library symbols that are accessible, they should link to their pkg.go.dev pages.

For symbols imported in the current package that are not rooted in the same module as the symbol being hovered on, they should also link to their pkg.go.dev pages. (Of course, they may not actually exist on pkg.go.dev, but I think this is good enough, and I believe GoLand does the same thing - it's been a while since I've used it however.)

For symbols imported in the current package that **are** rooted in the same module as the symbol being hovered on, I think the tooltip should change to showing the documentation for that symbol, since the full comment text should be available in the current workspace.

**Describe alternatives you've considered**
None

**Additional context**

https://tip.golang.org/doc/comment#doclinks describes the rules for links.

Given the code sample:
```go
package sample

import "encoding/json"

// This is a sample go doc comment.
//   - [A regular link] works fine.
//   - So does a fully-qualified link to a builtin like [encoding/json.Marshal].
//   - And even non-builtins like [github.com/vmihailenco/msgpack/v5.Marshal].
//
// However...
//   - A link to a symbol accessible through an alias does not: [json.Marshal]
//   - Neither does a link to a symbol in the current package: [Bar]
//
// [A regular link]: http://example.com
type Foo struct{}
type Bar struct{}

func (Foo) F() {
	json.Marshal(nil)
}
```
This tooltip is shown when I hover over `Foo` in the editor:

<img width="451" alt="Screenshot 2023-07-28 at 11 15 39 PM" src="https://github.com/golang/vscode-go/assets/124558159/1928291c-1a03-4e5f-810e-82084b2fb30b">
Repository: vscode
Issue: search results return much less than search.maxResults with sibling clause
Labels: bug,search,confirmed

1. Make sure that you have the default `search.maxResults` in your settings (20000)
2. create a multi-root workspace containing the `vscode` and `vscode-docs` repo.
3. Search for `str` and put `./vscode/extensions/**/*.ts` in Files to Include
4. Only shows ~1000 results before warning that it's a subset of results. :bug:

In contrast, searching in a single root with a common string, we get around ~20000 results.
Repository: vscode
Issue: [Accessibility] Display cell index number in Accessible View for Jupyter Notebook output
Labels: feature-request,accessibility,notebook-accessibility


Type: <b>Feature Request</b>

Accessible View (Alt+F2) is very convenient in Jupyter Notebook output and users can move between cell output via Alt+[/] within the Accessible View. It would be much nicer if the Accessible View can display the cell index number so that users can get a better sense of their current output with its associated cell reference number.

VS Code version: Code - Insiders 1.81.0-insider (9800cf6dd6bf4634889d60720ef46a400f3a7298, 2023-07-28T12:08:04.472Z)
OS version: Windows_NT x64 10.0.22621
Modes:


<!-- generated by issue reporter -->
Repository: godot
Issue: .translation files are different on Windows / macOS
Labels: bug,topic:core

### Godot version

v4.1.stable.official [970459615]

### System information

Windows 11, macOS 13 (Ventura)

### Issue description

I currently work on a game on Windows and on macOS. I'm using git for version control.

As described in the [Internationalizing games](https://docs.godotengine.org/en/stable/tutorials/i18n/internationalizing_games.html) documentation, I have a `text.csv` file from which a `text.en.translation` file is being generated.

It looks like this inside of my `project.godot`:
```
[internationalization]

locale/translation_remaps={}
locale/translations=PackedStringArray("res://text.en.translation")
```

And here is the `text.csv.import` file:

```
[remap]

importer="csv_translation"
type="Translation"
uid="uid://cn6q32wx71qfs"

[deps]

files=["res://text.en.translation"]

source_file="res://text.csv"
dest_files=["res://text.en.translation"]

[params]

compress=true
delimiter=0
```

The problem I'm running into is that whenever I load the project on one operating system and then another, the `text.en.translation` file get regenerated and git shows it as having changes.

I _think_ that the issue is that the line endings are different on the `.translation` file generated on Windows than they are on macOS (I have a hunch this would also happen if you loaded the project in Linux)

This isn't a huge issue since the translations still work on each platform and arguably the `.translation` files shouldn't be checked into version control. It's more just for consistency (who knows, maybe something related to this will break in the future...)

### Steps to reproduce

- Open a project with a translation CSV that is having a `.translation` file generated
- Commit the `.translation` file to git
- Open the project on a different operating system
- The `.translation` file gets re-generated and is shown as changed

### Minimal reproduction project

Can be reproduced with the translation example:
https://github.com/godotengine/godot-demo-projects/tree/3.5-9e68af3/gui/translation

... but you have to remove `*.translation` from the `.gitignore`...
Repository: godot
Issue: Incompatible ternary operator types are allowed as return values in statically typed functions
Labels: bug,discussion,topic:gdscript

### Godot version

v4.2.dev2.official [da81ca62a]

### System information

N/A

### Issue description

In GDScript, Using a ternary operator in a return statement "allows" returning the wrong type from a function, which won't be caught until runtime.

### Steps to reproduce

```gdscript
extends Node2D

func _ready() -> void:
	var aa := a()

func a() -> int:
	return "Hello" if randf() < 0.5 else 15
```
This will work in the editor, and with 50% chance result in the following runtime error:
`Trying to return value of type "String" from a function which the return type is "int".`
The editor still catches the warning:
`(INCOMPATIBLE_TERNARY):Values of the ternary conditional are not mutually compatible.`

### Minimal reproduction project

N/A
Repository: vscode
Issue: Git - Add audio cues for sync changes operation
Labels: feature-request,git,accessibility

Type: <b>Feature Request</b>

There is no accessible hint for SR users after executing `Git: Sync` command unless they manually check the status bar.

Please consider adding an audio cue to indicate this completion or failure. We can use the existing audio cues, such as task job completed and failed.

VS Code version: Code - Insiders 1.81.0-insider (4dfb92c1736a68cbede67a373f6050594836f2fb, 2023-07-31T22:43:20.522Z)
OS version: Windows_NT x64 10.0.22621
Modes:


<!-- generated by issue reporter -->
Repository: PowerToys
Issue: Keyboard manager requirements
Labels: Needs-Triage

### Description of the new feature / enhancement

I am very grateful that this tool can help me to map the keyboard perfectly and increase the speed of writing code when writing c++ language projects
In other words, if I write code in python, the syntax is different from c++ : python often uses colons, while c++ often uses # and semicolons
Two programming languages are essentially different, you can create a group, each group represents a corresponding programming language functional area, use the shortcut F1-F2, arbitrarily switch these groups, f1 is c++, f2 is python,f3 is rust, and so on, I think this requirement can meet the needs of all programmers to reduce the frequency of pressing shift, Westerners may not have a problem, but in the East, the little finger is short, shift button +@#￥%... &* These are very tedious. Very good software, thank you, this software can help me write code faster, if you add this requirement, the keyboard manager module is more perfect.


### Scenario when this would be used?

Constantly switching keymaps while writing code

### Supporting information

_No response_
Repository: opencv
Issue: Non-deterministic behavior in cv2.distanceTransform()
Labels: bug,category: imgproc,confirmed

### System Information

OpenCV python version: 4.5.5
Operating System: Ubuntu 16.04
Python version: 3.9.15

### Detailed description

I am using cv2.distanceTransform in a deep learning application and have noticed non-deterministic training results in pytorch lightning. After setting manual seeds for all random number generators in my setup, the training was still not deterministic so I decided to have a closer look at the used data. I use cv2.distanceTransform in the ground truth data generation in my training and have noticed variation in the output using the same input.

It's possible to mitigate the problem by rounding the results to one decimal, although this is not the best solution ...
```python
result = np.round(cv2.distanceTransform(feat_map, distanceType=cv2.DIST_L2, maskSize=cv2.DIST_MASK_PRECISE), decimals=1)
```
Is there a better way to fix this problem?

### Steps to reproduce

```python
import numpy as np
import cv2

cv2.setNumThreads(1)

num_tests = 100
shape = (800, 800)
for i in range(num_tests):
    feat_map = np.full(shape=shape, fill_value=255, dtype=np.uint8)
    # Creating a random line
    random_x_start = np.random.randint(0, 399)
    random_x_end = np.random.randint(400, 799)
    random_y_start = np.random.randint(0, 399)
    random_y_end = np.random.randint(400, 799)
    X, Y = np.mgrid[random_x_start:random_x_end:1, random_y_start:random_y_end:1]
    line = np.vstack((X.flatten(), Y.flatten())).transpose().reshape(-1, 1, 2)
    cv2.polylines(feat_map, [line], isClosed=False, color=0)
    result_1 = cv2.distanceTransform(feat_map, distanceType=cv2.DIST_L2, maskSize=cv2.DIST_MASK_PRECISE)
    result_2 = cv2.distanceTransform(feat_map, distanceType=cv2.DIST_L2, maskSize=cv2.DIST_MASK_PRECISE)
    np.testing.assert_array_equal(result_1, result_2)
```

### Issue submission checklist

- [X] I report the issue, it's not a question
- [X] I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
- [x] I updated to the latest OpenCV version and the issue is still there
- [x] There is reproducer code and related data files (videos, images, onnx, etc)
Repository: godot
Issue: Make Unique (Recursive) option is not present for an array of resources.
Labels: enhancement,topic:editor,usability

### Godot version

4.2 Dev 2

### System information

Windows 11, Intel(R) Core(TM) i5-10400F CPU, NVIDIA GeForce GTX 1060 6GB, 24 ram

### Issue description

![image (2)](https://github.com/godotengine/godot/assets/51789223/006d6f20-d797-4186-9bd5-b9fc10ee122b)

So i was duplicating my buttons and assigning new shortcuts to the new ones, but there is no "make unique (recursive)" option, so each time i ended up needing to go and turn both shortcut and InputEventKey unique.



### Steps to reproduce

No need.

### Minimal reproduction project

No need.
Repository: pytorch
Issue: Calling ops.aten.embedding_bag() function got silent crash
Labels: module: crash,module: nn,triaged

### 🐛 Describe the bug

```
def test2():
    import torch as t

    weight = t.tensor([
        [ 8.4520, -1.2693, -0.0696, -2.0721, -7.5149],
        [ 4.3191, -8.9345,  5.5872,  6.7340,  8.5114],
        [-2.1229, -7.3948,  2.0235,  4.9718, -8.9578],
        [-2.0429, -5.3951, -0.7872, -4.4299, -3.6789],
        [-2.8571, -8.5527,  7.3846,  7.5450, -1.4118],
        [-1.0249, -3.6731, -8.1276, -8.7583,  3.3449],
        [-4.9414, -5.7859, -0.7022, -2.9971, -2.9117],
        [ 0.2892, -1.9090, -3.0988, -4.3093, -7.3244],
        [ 7.5466, -3.6017,  2.3848, -3.1227,  0.7314],
        [ 8.3907,  4.1465, -7.7994,  3.5721,  8.5432]
    ])

    indices = t.tensor([
        [1, 6, 3, 6, 2],
        [5, 8, 4, 2, 8],
        [3, 0, 5, 2, 4],
        [8, 4, 3, 1, 2],
        [0, 3, 4, 2, 2]      
    ])
    offsets = t.tensor([0, 2])
    mode = 2
    r = t.ops.aten.embedding_bag(
            weight, indices, offsets, mode=mode)
    print(r)
test2()
```

### Versions

2.0.1+CPU

cc @ezyang @gchanan @zou3519 @albanD @mruberry @jbschlosser @walterddr @mikaylagawarecki