sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: vscode
Issue: Tick Character '`' Not Defined as "Auto Surround" in "Jinja-SQL" Editor
Labels: bug,editor-autoclosing

- VS Code Version: 1.89.1
- OS Version: macOS Sonoma 14.5

**Steps to Reproduce:**
1. Open a file with the "Jinja-SQL" language mode.
2. Select a string of text.
3. Press the tick character ('`') to try to surround the selected text.

**Expected Behavior:**
The selected text should be surrounded by tick characters (`selected text`), similar to how it works in the "SQL" language mode.

**Actual Behavior:**
The selected text is deleted and replaced by a single tick character. This behavior diverges from how the tick character functions as an "Auto Surround" character in the "SQL" editor language, leading to inconsistent and frustrating editing experiences.

**Additional Information:**
The lack of defining the tick character as an "Auto Surround" in "Jinja-SQL" is particularly problematic since this character is commonly used in SQL queries, which are often embedded within Jinja templates. Aligning the behavior with the "SQL" editor language would provide a consistent and error-free user experience.
Repository: go
Issue: proposal: crypto/rsa: pss with zero salt length for backward compatiblity with openssl
Labels: Proposal,Proposal-Crypto

### Proposal Details

What version of Go are you using (go version)?
$ go version
go version go1.21.0 linux/amd64

Does this issue reproduce with the latest release?
yes.

What did you do?
I have an application that is doing an RSA PSS sign using OpenSSL, allowing zero salt length. Go crypto handles zero length differently, it maximizes the salt length.

I am migrating it to go crypto and there might be users who are using zero salt length in OpenSSL, which may break for them.

What did you expect to see?
I expected it to work in the same way as OpenSSL because it may break some users.
RSA-PSS standard allows salt_len to be 0 which would indeed result in empty salt, and therefore a deterministic encoding.
From: https://datatracker.ietf.org/doc/html/rfc8017#section-9.1.1
"Generate a random octet string salt of length sLen; if sLen = 0, then salt is the empty string."

In Golang, currently there are two configurable options for salt behavior:
* PSSSaltLengthAuto
* PSSSaltLengthEqualsHash
The Proposal request is to add a new option to support the Salt length as empty.
* PSSSaltLengthEmpty

What did you see instead?
I see that go crypto does not allow zero salt length, it maximizes the salt length when zero (PSSSaltLengthAuto) is passed for salt length.


I Opened a fresh issue, there was one similar issue that got closed due to waiting for more information.
https://github.com/golang/go/issues/45684
Repository: angular
Issue: :leave animation in route child breaks route transition
Labels: area: animations

### Which @angular/* package(s) are the source of the bug?

animations

### Is this a regression?

No

### Description

I'd like to have an `:enter` animation for the new route (the previous component should be instantly removed), but when I have an element with `:leave` animation in the previous component, it stays in place till the new route animates in.

### Please provide a link to a minimal reproduction of the bug

https://stackblitz.com/edit/stackblitz-starters-nldvyd

### Reproduction:

The `home` route **has** a list rendered.
Navigating to the `about` page animates in the element below the `home` and then the `home` disappears.
The `about` route **does not have** a list rendered.
Navigating back to the `home` page removes the `about` page instantly and animates in the `home` page.

### Please provide the environment you discovered this bug in (run `ng version`)

```true
Angular CLI: 18.0.2
Node: 18.20.3
Package Manager: npm 10.2.3
OS: linux x64

Angular: 18.0.1
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1800.2
@angular-devkit/build-angular   18.0.2
@angular-devkit/core            18.0.2
@angular-devkit/schematics      18.0.2
@angular/cli                    18.0.2
@schematics/angular             18.0.2
rxjs                            7.8.1
typescript                      5.4.5
zone.js                         0.14.6
```


### Anything else?

_No response_
Repository: opencv
Issue: Should the camera pose be changed to object pose in the introduction of Homography from the camera display？
Labels: category: documentation

### Describe the doc issue

Is the use of camera pose accurate in Demo 3: Homography from the camera display in the Basic concepts of the homography explained with code introduction?https://docs.opencv.org/4.9.0/d9/dab/tutorial_homography.html#tutorial_homography_Demo3
(All versions have the same wording)
![opencv1](https://github.com/opencv/opencv/assets/132635867/9fe0a7d9-9cd1-4316-a73e-5b302c465c8b)


### Fix suggestion

Changing camera pose to object pose should be a more accurate description
Repository: ui
Issue: [bug]: ComboBox component not working in Shadcn Website
Labels: bug

### Describe the bug

Application error: a client-side exception has occurred (see the browser console for more information).

### Affected component/components

Combobox

### How to reproduce

Goto [shadcn](https://ui.shadcn.com/docs/components/combobox)
then click on combobox

### Codesandbox/StackBlitz link

_No response_

### Logs

_No response_

### System Info

```bash
Windows 11
```


### Before submitting

- [X] I've made research efforts and searched the documentation
- [X] I've searched for existing issues
Repository: go
Issue: govulncheck-action: allow users to use specific version of govulncheck
Labels: vulncheck or vulndb

### Proposal Details

The action contains:
go install golang.org/x/vuln/cmd/govulncheck@latest

Suggestion is to add an input that points to latest, that allows users to overwrite it with a specific version.
Repository: pytorch
Issue: profile not record at::meta_xxx time
Labels: triaged,module: meta tensors

### 🐛 Describe the bug

```C++
at::enableRecordFunction(false);
at::meta_add_out(out, self, other);
at::enableRecordFunction(true);
```
Didn't work

### Versions

torch2.1

cc @ezyang @eellison @bdhirsh
Repository: flutter
Issue: Outdated Release Information in Flutter's Release Section
Labels: team-release,:hourglass_flowing_sand:

The release section of the Flutter GitHub repository is currently displaying outdated information. It states that the latest release is Flutter 3.16 beta, while the current stable version available is Flutter 3.22.1.

This inconsistency may cause confusion among users who rely on this information to track the latest updates and versions of Flutter. It's essential to keep the release section updated to reflect the current state of the project accurately.

Could the appropriate maintainers please review and update the release section to reflect the correct information, including the latest stable version of Flutter (3.22.1) and any relevant release notes or changes?

Thank you for your attention to this matter.
Repository: PowerToys
Issue: Peek 速览
Labels: Issue-Docs,Needs-Triage

### Provide a description of requested docs changes

1. 希望快捷键可以改成 只使用空格按键
2. 希望可以预览PSD文件
Repository: react-native
Issue: Last FlatList item component re-mounted when adding new elements at the beginning of the list
Labels: Issue: Author Provided Repro,Component: FlatList

### Description

Each time a new component is added at the beginning or in the middle of the list, the last component (the one that was added first) re-mounts. I've noticed that when a new component is added to the list, a spacer component is created and it always replaces last component in that list, even if new components are added at the beginning or in the middle of the list. This makes last  item to completely re-mount. This problem only occurs when the `initialNumToRender` is exceeded.


### Steps to reproduce

1. Run repro from linked snack.
2. Press `add` button multiple times (at least 4).
3. You will see in the terminal that after reaching `initialNumToRender `  last item is unmounted.

### React Native Version

0.74.1

### Affected Platforms

Runtime - Android, Runtime - iOS

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

```text
System:
  OS: macOS 14.4.1
  CPU: (11) arm64 Apple M3 Pro
  Memory: 110.58 MB / 18.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 21.7.3
    path: /opt/homebrew/bin/node
  Yarn:
    version: 4.1.1
    path: /opt/homebrew/bin/yarn
  npm:
    version: 10.5.0
    path: /opt/homebrew/bin/npm
  Watchman:
    version: 2024.04.08.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.14.3
    path: /opt/homebrew/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 23.5
      - iOS 17.5
      - macOS 14.5
      - tvOS 17.5
      - visionOS 1.2
      - watchOS 10.5
  Android SDK:
    API Levels:
      - "31"
      - "34"
    Build Tools:
      - 30.0.3
      - 33.0.1
      - 34.0.0
    System Images:
      - android-34 | Google APIs ARM 64 v8a
      - android-TiramisuPrivacySandbox | Google Play ARM 64 v8a
    Android NDK: Not Found
IDEs:
  Android Studio: 2023.2 AI-232.10300.40.2321.11668458
  Xcode:
    version: 15.4/15F31d
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.10
    path: /usr/bin/javac
  Ruby:
    version: 2.6.10
    path: /usr/bin/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.74.0
    wanted: 0.74.0
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: true
  newArchEnabled: false
```


### Stacktrace or Logs

```text
-
```


### Reproducer

https://snack.expo.dev/@exploifswm/flat-list-item-re-mount

### Screenshots and Videos

_No response_
Repository: rust
Issue: Unhelpful `type annotations needed` when calling method on result of index op
Labels: A-diagnostics,T-compiler

### Code

```Rust
struct Foo;

impl Foo {
    fn foo(&self) {}
}

fn main() {
    let thing: Vec<Foo> = vec![];
    
    let foo = |i| {
        thing[i].foo();
    };
}
```


### Current output

```Shell
error[E0282]: type annotations needed
  --> src/main.rs:11:9
   |
11 |         thing[i].foo();
   |         ^^^^^^^^ cannot infer type
```


### Desired output

```Shell
error[E0282]: type annotations needed
  --> src/main.rs:11:9
   |
11 |         thing[i].foo();
   |               ^ cannot infer type
```


### Rationale and extra context

Should also probably explain that the index op's output type depends on the input type, so it needs to know what input type it is at this point.

### Other cases

_No response_

### Rust Version

```Shell
rustc 1.78.0 (9b00956e5 2024-04-29)
binary: rustc
commit-hash: 9b00956e56009bab2aa15d7bff10916599e3d6d6
commit-date: 2024-04-29
host: x86_64-unknown-linux-gnu
release: 1.78.0
LLVM version: 18.1.2
Compiler returned: 0
```


### Anything else?

_No response_

<!-- TRIAGEBOT_START -->

<!-- TRIAGEBOT_ASSIGN_START -->

<!-- TRIAGEBOT_ASSIGN_DATA_START$${"user":"mu001999"}$$TRIAGEBOT_ASSIGN_DATA_END -->

<!-- TRIAGEBOT_ASSIGN_END -->
<!-- TRIAGEBOT_END -->
Repository: transformers
Issue: Speed up image processors - cast to array before BatchFeature
Labels: Good Second Issue,Feature request

### Feature request

Complete work initially started in #28221

### Motivation

Converting the model outputs to an array before creating the `BatchFeature` object can speed up image processing, especially for nested outputs, such as for videos. 

### Your contribution

Open to the community to add
Repository: pytorch
Issue: nn.Parameter init position
Labels: module: nn,triaged

### 🐛 Describe the bug

Hi,

Recently, I found that the different ways to define the trainable parameter might cause different training results, even under the same seed.

My question is: what is the difference between `way 1` and `way 2`? Here are definitions of `way 1` and `way 2`:

```python
import torch
import torch.nn as nn

class Way1(nn.Module):
    def __init__(self):
        super(Way1, self).__init__()
        self.wh = nn.Parameter(torch.zeros((10, 10)), requires_grad=True)
        nn.init.xavier_normal_(self.wh)


class Way2(nn.Module):
    def __init__(self, device):
        super(Way2, self).__init__()
        self.device = device
        self.wh = self.init_weight((10, 10))

    def init_weight(self, shape):
        _para = nn.Parameter(torch.zeros(shape), requires_grad=True).to(self.device)
        nn.init.xavier_normal_(_para)
        return _para


if __name__ == '__main__':
    w = Way1()
    for name, param in w.named_parameters():
        print('w1', name, param)

    w2 = Way2('cuda:0').to('cuda:0')
    for name, param in w2.named_parameters():
        print('w2', name, param)

```

I found that initing the trainable parameters in `way 1` seems to get a smaller loss than that in `way 2`. Is it true that if we create an optimizer with net.parameters() and call optimizer.step(), the self.wh in `way1` will be automatically optimized and that in `way2` will not?

I would greatly appreciate any insights that point this out for me. :)



### Versions

```cmd
Versions of relevant libraries:
[pip3] numpy==1.26.4
[pip3] torch==2.2.1
[pip3] torch_geometric==2.5.3
[pip3] triton==2.2.0
[conda] blas                      1.0                         mkl
[conda] mkl                       2023.1.0         h213fc3f_46344
[conda] mkl-service               2.4.0            py39h5eee18b_1
[conda] mkl_fft                   1.3.8            py39h5eee18b_0
[conda] mkl_random                1.2.4            py39hdb19cb5_0
[conda] numpy                     1.26.4           py39h5f9d8c6_0
[conda] numpy-base                1.26.4           py39hb5e798b_0
[conda] pytorch                   2.2.1           py3.9_cuda12.1_cudnn8.9.2_0    pytorch
[conda] pytorch-cuda              12.1                 ha16c6d3_5    pytorch
[conda] pytorch-mutex             1.0                        cuda    pytorch
[conda] torch-geometric           2.5.3                    pypi_0    pypi
[conda] torchtriton               2.2.0                      py39    pytorch
```

cc @albanD @mruberry @jbschlosser @walterddr @mikaylagawarecki
Repository: opencv
Issue: Problem in Subdiv2D, empty triangulation
Labels: bug

### System Information

OpenCV version: 4.9.0
Operating System / Platform: Ubuntu 22.04
Compiler & compiler version: Clang 16.0.6

### Detailed description

I encountered an issue with a specific example consisting of 4 points, where no three points are collinear. However, the Delaunay triangulation algorithm returns zero triangles. This issue is similar to [this issue](https://github.com/opencv/opencv/issues/16763), but in this case, the algorithm returns zero triangles.

Here all input polygon (trapeze):
![output](https://github.com/opencv/opencv/assets/35290437/7093fbb1-4e2f-4a32-8f7a-17786e5cccc2)


### Steps to reproduce

```cpp
// main.cpp

#include <iostream>
#include <vector>
#include <cstdlib>

#include <opencv2/imgproc.hpp>


int main() {
  std::vector<cv::Point2f> points{
      {0, 0}, {40, 40}, {84, 104}, {86, 108}};

  cv::Rect subdivRect{cv::Point{-10, -10}, cv::Point{96, 118}};

  cv::Subdiv2D subdiv{subdivRect};
  subdiv.insert(points);

  std::vector<cv::Vec6f> out;
  subdiv.getTriangleList(out);

  std::cout << "triangles: " << out.size() << std::endl;

  return EXIT_SUCCESS;
}
```

### 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
- [ ] 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: ant-design
Issue: Date picker onChange type should not be array when multiple is set to false. 
Labels: TypeScript,Inactive

### Reproduction link

[![Edit on StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/edit/react-nwfdz6?file=demo.tsx)

### Steps to reproduce

Use the date picker component, set "multiple" property to false. Hover over the "onChange" function parameter. It shows dayjs.Dayjs[]

### What is expected?

I expect the "onChange" type not to be an array when multiple = false.

### What is actually happening?

The "onChange" function parameter should be dayjs.Dayjs because we receive one value. Typescript won't detect if someone does:
onChange={(dates)=>dates.map(someCallback)} but multiple is false.

| Environment | Info |
| --- | --- |
| antd | 5.18.0 |
| React | 18 |
| System | Windows |
| Browser | Chrome |

---
I believe this can be solved internally using union types, something like this:
`type DatePickerProps = {
 multiple: false,
 onChange: (newDate: dayjs.Dayjs) =>void,
 ...restOfProps
} | {
multiple: true,
 onChange: (newDates: dayjs.Dayjs[])=>void,
 ...restOfProps
}`

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: tauri
Issue: [bug] nsis installer won't stop spawned sidecar when upgrading
Labels: type: bug,platform: Windows,status: needs triage

### Describe the bug

If the tauri app is runing with a spawned background sidecar process, when clicking the nsis bundle to upgrade the tauri app it would pop up a window asking to close the tauri app("xxx is runing. Click OK to close it"). But the spawned sidecar process won't be terminated after the OK button is clicked.

Shall we call tauri cleanup so that "RunEvent::Exit" or "RunEvent::ExitRequest" event handler could be called, or call "taskkill /f /t " to terminate the tauri app process tree so that all the child process would be killed together like described in https://github.com/electron-userland/electron-builder/issues/2516.


### Reproduction

_No response_

### Expected behavior

_No response_

### Full `tauri info` output

```text
$ tauri info

[✔] Environment
    - OS: Windows 10.0.22631 X64
    ✔ WebView2: 125.0.2535.79
    ✔ MSVC: Visual Studio Build Tools 2022
    ✔ rustc: 1.76.0 (07dca489a 2024-02-04)
    ✔ cargo: 1.76.0 (c84b36747 2024-01-18)
    ✔ rustup: 1.27.0 (bbb9276d2 2024-03-08)
    ✔ Rust toolchain: stable-x86_64-pc-windows-msvc (default)
    - node: 18.18.2
    - yarn: 1.22.21
    - npm: 9.8.1

[-] Packages
    - tauri [RUST]: 2.0.0-beta.22
    - tauri-build [RUST]: 2.0.0-beta.17
    - wry [RUST]: 0.40.0
    - tao [RUST]: 0.28.0
    - @tauri-apps/api [NPM]: 2.0.0-beta.13
    - @tauri-apps/cli [NPM]: 2.0.0-beta.17

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: ../dist
    - devUrl: http://localhost:1420/
    - framework: Vue.js
    - bundler: Vite
Done in 83.82s.
```


### Stack trace

_No response_

### Additional context

_No response_
Repository: TypeScript
Issue: Annotated parameters are not used for inferring rest parameters
Labels: Help Wanted,Possible Improvement

### 🔎 Search Terms

annotated, "rest parameter" 

### 🕗 Version & Regression Information

- This is the behavior in every version I tried

### ⏯ Playground Link

https://www.typescriptlang.org/play/#code/GYVwdgxgLglg9mABAWwNYEFrzAHgJJgAOIUiApgB5RlgAmAzogIZgCeA2gLoB8AFE1gQAuRAG8AUIimJgARiG8AdMor0hBYlACUiALzdEANzgxaAGknTgAJgXLFq9URI79Rk+fEBfHaK-jxNExYBF4JaRlZXgoheigAJxgwAHMzRFYhMBBkACMyeN8vC0spG2i01kKLCIB6GsQKZjp05niyRCTgfLbaZkYAIhZWfurpOvJDGkQoAAs4EGSZmWsOxk7usl6mAeiROMSUipEs3PzXA2NTfu8tAG5xIA

### 💻 Code

```ts

function mkAction<Input extends any[]>(action: {
    f1:(...xs:Input) => void,
    f2:(...xs:Input) => void,
}) {}

mkAction({
    f1(x:string, y:number) {},

    f2(x, y) {},
    // x and y are inferred as "any",
    // even though f2 is inferred as "(x: string, y: number) => void"
});
```


### 🙁 Actual behavior

Arguments "x" and "y" are inferred as "any", even though "f2" has the correct type `(x: string, y: number) => void`

### 🙂 Expected behavior

I would expect inference of `x: string` and `y: number` for the arguments of "f2".

### Additional information about the issue

_No response_
Repository: ui
Issue: [bug]: data-table pagination breaks with React Compiler
Labels: bug

### Describe the bug

With the experimental react compiler in Next Canary, the table will receive all the data but the pagination no longer functions, clicking the "next" button with a default  example does not move to the next page.

### Affected component/components

Data-Table

### How to reproduce

Using the base example 
```ts
import { Button } from "@/components/ui/button"
 
export function DataTable<TData, TValue>({
  columns,
  data,
}: DataTableProps<TData, TValue>) {
  const table = useReactTable({
    data,
    columns,
    getCoreRowModel: getCoreRowModel(),
    getPaginationRowModel: getPaginationRowModel(),
  })
 
  return (
    <div>
      <div className="rounded-md border">
        <Table>
          { // .... }
        </Table>
      </div>
      <div className="flex items-center justify-end space-x-2 py-4">
        <Button
          variant="outline"
          size="sm"
          onClick={() => table.previousPage()}
          disabled={!table.getCanPreviousPage()}
        >
          Previous
        </Button>
        <Button
          variant="outline"
          size="sm"
          onClick={() => table.nextPage()}
          disabled={!table.getCanNextPage()}
        >
          Next
        </Button>
      </div>
    </div>
```
nothing happens when clicking next

Mainly bringing awareness to this and can simply opt out of the compiler for this component for now

### Codesandbox/StackBlitz link

_No response_

### Logs

_No response_

### System Info

```bash
windows 11, wsl ubuntu 22.04. Next.canary.7 react 19.0.0-rc, babel-plugin-react-compiler 0.0.0-experimental, tanstack/react-table 8.17.3
```


### Before submitting

- [X] I've made research efforts and searched the documentation
- [X] I've searched for existing issues
Repository: angular
Issue: How to capture errors outside Angular context in zoneless?
Labels: area: core,core: error handling,core: zoneless

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

core

### Is this a regression?

No

### Description

When working with zone.js we can easily capture errors (inside and outside Angular context) in the ErrorHandler using a CustomErrorHandler. When going zoneless we can no longer get both kinds of thrown errors. 



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

https://stackblitz.com/edit/stackblitz-starters-ggzajl?file=src%2Fmain.ts

### Please provide the exception or error you saw

```true
When we have zoneless we can listen only to errors thrown in Angular context. 
When we have zone enabled we can listen to all errors.
```


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

_No response_

### Anything else?

This is probably correct behavior, but is there any way to get these errors through the custom error handler?
Repository: TypeScript
Issue: Delete or Change Unavailable YouTube Video in /why-create-typescript
Labels: Docs

### Acknowledgement

- [X] I acknowledge that issues using this template may be closed without further explanation at the maintainer's discretion.

### Comment

Hi. I found a YouTube video that wasn't available in the docs.

In JavaScript you use the abbreviation var to declare a variable. Meanwhile, in Java you need to say what kind of data the variable contains. In this case the variable contains a String. (A string is a programming term for a collection of characters. They "look like this". _This [5m video](https://www.youtube.com/watch?v=czTWbdwbt7E) is a good primer if you want to learn more.)_ <- change or delete this sentence. 

[Just check this](https://www.typescriptlang.org/why-create-typescript/#:~:text=is%20a%20good%20primer%20if%20you%20want%20to%20learn%20more)