sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: tauri
Issue: [feat] `canGoBack`, `canGoForward` APIs
Labels: type: feature request

### Describe the problem

Mainstream desktop apps like Slack, Linear and VSCode all have arrow keys for back and forth navigation (see below screenshots):

VSCode:
<img width="800" alt="image" src="https://github.com/tauri-apps/tauri/assets/63039748/4c0cbfe7-1b47-4e36-ac99-7825c5e8c203">

Slack:
<img width="125" alt="image" src="https://github.com/tauri-apps/tauri/assets/63039748/46b9b516-ba7d-415d-ae32-6a1873c58b77">

Linear:
<img width="145" alt="image" src="https://github.com/tauri-apps/tauri/assets/63039748/a206cfff-7521-4b0e-9954-50a9872c05a9">

While the actual navigation logic to go back and forth is not challenging using the well supported [History API](https://developer.mozilla.org/en-US/docs/Web/API/History), `canGoBack` and `canGoForward` are needed in order to disable arrow keys when they are not useful (i.e. there is no history to go back to or go forward to).

Electron has an answer to this with the [web contents API](https://www.electronjs.org/docs/latest/api/web-contents) with the `canGoBack` and `canGoForward` functions. However, Tauri does not have any support for the same, making it very challenging to implement navigation using arrow keys.

NOTE: there is a Web Navigation API that has the two functions, but it is not supported on Safari and hence MacOS. It will only work on Windows.

<img width="1038" alt="image" src="https://github.com/tauri-apps/tauri/assets/63039748/b13d3715-c0d9-41b8-aa2f-4dea2f49092a">


### Describe the solution you'd like

APIs similar to that of Electron that enable the functionality for such back and forth buttons. Essentially a `window.canGoBack()` function or similar.

### Alternatives considered

_No response_

### Additional context

_No response_
Repository: rust
Issue: Nightly rustc cannot load LLVM plugins on ARM64 platforms (impacts afl.rs crate)
Labels: A-LLVM,T-compiler,C-bug

This issue prevents using the effective afl.rs (AFL++) plugins for fuzzing in Rust on ARM64 platforms.

The nightly rustc allows for loading LLVM plugins with `-Z llvm-plugins=/path/to/plugin`.

This works without problems on Linux x86_x64, however on ARM64 - both Linux and MacOS - this fails with symbols not being resolvable.

How to reproduce:
  - this requires LLVM in the same version that is used in nightly (currently llvm 18):
    Linux: `wget http://apt.llvm.org/llvm.sh ; sudo bash ./llvm.sh 18`
    Macos: `brew install llvm` + setting up the PATH to prefer clang/clang++ from brew and not xlang

```
# Install cargo-afl because this is where we need LLVM plugins from
cargo install cargo-afl
# Compile the AFL++ plugins for cargo-afl - this requires LLVM installed
cargo afl config --plugins --force
# Now get a simple test example
git clone --depth=1 https://github.com/rust-fuzz/afl.rs
# Build any example
cd afl.rs/afl
cargo afl build --example arbitrary
```

On Linux x86_x64 this works:
```
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 8.05s
```

On ARM64 Ubuntu and MacOS this both fails:
```
error: failed to run LLVM passes: Could not load library '/Users/ssh_debug/.local/share/afl.rs/rustc-1.81.0-nightly-6be96e3/afl.rs-0.15.8/afl-llvm/cmplog-instructions-pass.so': dlopen(/Users/ssh_debug/.local/share/afl.rs/rustc-1.81.0-nightly-6be96e3/afl.rs-0.15.8/afl-llvm/cmplog-instructions-pass.so, 0x0009): symbol not found in flat namespace '__ZN4llvm17PreservedAnalyses14AllAnalysesKeyE'
```

After a lot of debugging, the reason seems to be that on Linux x86_x64 the following library is present:
`libLLVM-18-rust-1.81.0-nightly.so`
But on ARM64 rust nightly installation this is missing.
So this might be the reason for this issue.
Repository: opencv
Issue: CV_Bool support for masks in 5.x
Labels: feature,category: core,evolution

### Describe the feature and motivation

1. Support Mat with `CV_Bool` as mask.
2. Promote CV_Bool masks to OpenCL, CUDA, etc.
3. Promote CV_Bool masks to HAL.
4. Decided on CV_Bool true value handling: 255
5. Statndard bool support.

### Additional context

_No response_
Repository: ollama
Issue: Running latest version 0.2.1 running slowly and not returning output for long text input
Labels: bug,performance

### What is the issue?

I am running ollama on an AWS ml.p3.2xlarge SageMaker notebook instance. 

When I install the latest version, 0.2.1, the response time on a langchain chain running an extract names prompt on a page of text using llama3:latest is about 8 seconds and doesn't return any names.

However, when I install version 0.1.37, the response time goes down to under a second and I get an accurate response with people's names found in the text.

### OS

Linux

### GPU

Nvidia

### CPU

_No response_

### Ollama version

0.2.1
Repository: rust
Issue: Tracking Issue for `-Z llvm-plugins`
Labels: A-LLVM,T-compiler,C-tracking-issue

### About tracking issues

Tracking issues are used to record the overall progress of implementation.
They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions.
A tracking issue is however *not* meant for large scale discussion, questions, or bug reports about a feature.
Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.
Discussion comments will get marked as off-topic or deleted.
Repeated discussions on the tracking issue may lead to the tracking issue getting locked.

### Steps

- [x] Implement the option (https://github.com/rust-lang/rust/pull/86267).
- [ ] Adjust documentation ([see instructions on rustc-dev-guide][doc-guide])
- [ ] Stabilization PR ([see instructions on rustc-dev-guide][stabilization-guide])

[stabilization-guide]: https://rustc-dev-guide.rust-lang.org/stabilization_guide.html#stabilization-pr
[doc-guide]: https://rustc-dev-guide.rust-lang.org/stabilization_guide.html#documentation-prs
[Style Guide]: https://github.com/rust-lang/rust/tree/master/src/doc/style-guide

### Unresolved Questions

This option currently only works on targets that use an llvm dylib, which is just x86_64-unknown-linux-gnu. On other targets LLVM is linked statically, and symbols needed by plugins are not visible.

### Implementation history

Originally implemented in https://github.com/rust-lang/rust/pull/86267.
Repository: TypeScript
Issue: Completions fail to be provided for type alias arguments before all required type arguments are provided
Labels: Help Wanted,Domain: Completion Lists,Possible Improvement

### 🔎 Search Terms

string completions type alias 

### 🕗 Version & Regression Information

- This is the behavior in every version I tried

### ⏯ Playground Link

https://www.typescriptlang.org/play/?ts=5.6.0-dev.20240710#code/C4TwDgpgBA4hwGED2A7AxgJ3hAQiA0hCADwAqANFKYSFBAB7AQoAmAzlANZFIBmVlUgDUAhgBsArtAZNWHUgG1qRALoA+KAF4qUAGQAoKFABKENEgwsyNQaMkQ1Abn37QkKADERASzEdtcIiomNh4NMQA3lBuEABcUABEvEhICVAAvlAAPlBRMfEJAEYiGGnplAkJTq7g0ADqFpz+sPDI6FhMYUSR0bUFyakZ2bm9kAXFpRkVCRUDVc76DGAWwLnpzkA

### 💻 Code

```ts
type GetConcreteByKey<T, TKey extends keyof T, TValue extends T[TKey]> = T &
  Record<TKey, TValue>;

type Fails = GetConcreteByKey<{ type: "foo" } | { type: "bar" }, "">;
type Works = GetConcreteByKey<{ type: "foo" } | { type: "bar" }, "", "foo">;

export {};
```


### 🙁 Actual behavior

Completions are not provided for the second type argument in `Fails`

### 🙂 Expected behavior

I'd expect this to work the same way as it works in `Works`

### Additional information about the issue

_No response_
Repository: flutter
Issue: When a Text widget is inside a SingleChildScrollView, there is strange clipping behavior.
Labels: e: device-specific,platform-android,framework,f: scrolling,c: rendering,e: OS-version specific,has reproducible steps,P2,team-android,triaged-android,fyi-text-input,found in release: 3.22,found in release: 3.24

### Steps to reproduce

On my Android device, the `Text` widget has strange clipping behavior when the following conditions are met:
1. `Text` is the first child of `Column`, and `Column` is a child of `SingleChildScrollView`.
2. There are clickable widgets such as `Button` and `ActionChip` in `Column`.
3. A smaller display size and font size are set in the Android system settings.
4. The style of `Text` is set to bodyLarge and titleMedium.
5. These widgets are displayed in a modal dialog.
At this time, when the modal dialog is opened, `Text` is normal in the first few frames. After a few frames, a small amount of height is cut off from the top of `Text`, but after clicking the `Button` below `Text`, `Text` returns to normal.

### Expected results

Text displays normally.

### Actual results

Text display is abnormal.

### Code sample

<details open><summary>Code sample</summary>

```dart
class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      home: Scaffold(
        body: Align(
          alignment: Alignment.center,
          child: Builder(
            builder: (context) => FilledButton.tonal(
              child: const Text('Show'),
              onPressed: () {
                showDialog(context: context, builder: (context) => AlertDialog(
                  content: SingleChildScrollView(
                    child: Column(
                      mainAxisSize: MainAxisSize.min,
                      children: [
                        Text(
                          'TTTT',
                          style: Theme.of(context).textTheme.bodyLarge,
                        ),
                        FilledButton.tonal(
                          child: const Text('Button'),
                          onPressed: () {},
                        ),
                      ],
                    ),
                  ),
                ));
              },
            ),
          ),
        ),
      ),
    );
  }
}
```

</details>


### Screenshots or Video

<details open>
<summary>Screenshots / Video demonstration</summary>


Screenshots (text is 'TTTT')
![Screenshot_20240710-225820_xxxx](https://github.com/flutter/flutter/assets/37923060/9b2bf7de-8fc4-42e7-8700-20881cd86c02)

Video:

https://github.com/flutter/flutter/assets/37923060/998a38cd-d486-4222-8d6f-1be3c1ae0a2a


</details>


### Logs

_No response_

### Flutter Doctor output

<details open><summary>Doctor output</summary>

The flutter version is 3.22 and everything is OK.

</details>
Repository: ui
Issue: [bug]: Dialog acting like Drawer on first render (conflicts with Sheet export)
Labels: bug

### Describe the bug

I copied the code from the shadcn site for Dialog and used it in my app.
But when I click the trigger, a drawer opens instead. If I update the modal dialog code, the drawer then turns into a regular Dialog. If I refresh the screen, the updates disappear and it's a drawer again.

https://github.com/shadcn-ui/ui/assets/421960/1bae5e79-46de-424c-b867-e3184be9f9ca



### Affected component/components

Dialog

### How to reproduce

1. Add Dialog code
2. Add Sheet code
3. Add Dialog to a page
4. Click trigger but it opens drawer instead
5. Edit Dialog code, which turns the drawer into a Dialog again.

### GitHub Repo

https://github.com/merlinstardust/example-shadcn-dialog-issue

### Codesandbox/StackBlitz link

https://codesandbox.io/p/github/merlinstardust/example-shadcn-dialog-issue/

### Logs

_No response_

### System Info

```bash
Mac 2018 - Sonoma 14.5
Chrome - Version 126.0.6478.127
NextJS - 15.0.0-rc.0
React - 19.0.0-rc-3563387fe3-20240621
```


### Before submitting

- [X] I've made research efforts and searched the documentation
- [X] I've searched for existing issues
Repository: pytorch
Issue: `n` argument of `randperm()` with a 0D or more D tensor works against the doc
Labels: module: docs,triaged,module: python frontend

### 🐛 Describe the bug

[The doc](https://pytorch.org/docs/stable/generated/torch.randperm.html) of `randperm()` says the type of `n` argument is `int` as shown below:

> - n ([int](https://docs.python.org/3/library/functions.html#int)) – the upper bound (exclusive)

But, `n` argument with a 0D or more D tensor works against the doc as shown below:

```python
import torch

torch.randperm(n=torch.tensor(5))
# tensor([3, 1, 2, 4, 0])

torch.randperm(n=torch.tensor([5]))
# tensor([2, 3, 1, 4, 0])

torch.randperm(n=torch.tensor([[5]]))
# tensor([2, 4, 1, 0, 3])
```

### Versions

```python
import torch

torch.__version__ # 2.3.0+cu121
```

cc @svekars @brycebortree @albanD
Repository: pytorch
Issue: vmap over torch.allclose doesn't work
Labels: triaged,needs design,module: functorch

Because torch.allclose returns a bool rather than a Tensor.

cc @Chillee @samdow @kshitij12345 @janeyx99
Repository: rust
Issue: const generics use generic param names in nonsensical ways in error messages, leading to bogus suggestions
Labels: A-diagnostics,T-compiler,F-generic_const_exprs

### Code

```Rust
#![feature(generic_const_exprs)]
#![allow(incomplete_features)]

fn foo<const I: usize, const J: usize>() where [(); I / 4]: {
    bar::<J, I>(); // I and J are accidentally swapped
}

fn bar<const I: usize, const J: usize>() where [(); I / 4]: {
    [(); I / 4];
}
```


### Current output

```Shell
error: unconstrained generic constant
 --> src/lib.rs:5:11
  |
5 |     bar::<J, I>(); // I and J are accidentally swapped
  |           ^
  |
note: required by a bound in `bar`
 --> src/lib.rs:8:53
  |
8 | fn bar<const I: usize, const J: usize>() where [(); I / 4]: {
  |                                                     ^^^^^ required by this bound in `bar`
help: try adding a `where` bound
  |
4 | fn foo<const I: usize, const J: usize>() where [(); I / 4]:, [(); I / 4]: {
  |                                                            ++++++++++++++
```


### Desired output


the error message should suggest adding `[(); J / 4]:`, because `J` in `foo` corresponds to `I` in `bar`. Bonus points if the error message says something like 

```Shell
help: try adding a `where` bound
  |
4 | fn foo<const I: usize, const J: usize>() where [(); I / 4]:, [(); J / 4]: {
  |                                                            ++++++++++++++
note: const param `I` in `bar` corresponds to expression `J` in `foo`
```

extra bonus points if the error message says something like `note: foo and bar both have const generic param named I, but bar::I is not the same as foo::I` 

### Rust Version

nightly on playground as of 2024-7-10

### Anything else?

https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=9b8fd4687496c3786fe09a38c3a87e38



<!-- TRIAGEBOT_START -->

<!-- TRIAGEBOT_ASSIGN_START -->

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

<!-- TRIAGEBOT_ASSIGN_END -->
<!-- TRIAGEBOT_END -->
Repository: vscode
Issue: Proposed API for showing buttons inline after the input box
Labels: feature-request,quick-pick,on-testplan,api-finalization

Here's the proposal:

```ts
declare module 'vscode' {

	export enum QuickInputButtonLocation {
		/**
		 * In the title bar.
		 */
		Title = 1,

		/**
		 * To the right of the input box.
		 */
		Inline = 2
	}

	export interface QuickInputButton {
		/**
		 * Where the button should be rendered. The default is {@link QuickInputButtonLocation.Title}.
		 * @note This property is ignored if the button was added to a QuickPickItem.
		 */
		location?: QuickInputButtonLocation;
	}
}
```

Here's an example of what inline looks like:

<img width="521" alt="image" src="https://github.com/user-attachments/assets/45e42442-cdcc-4c96-8192-68564ad60a85">
Repository: pytorch
Issue: [dynamo] Investigate unexpected success dynamo-wrapped tests from https://github.com/pytorch/pytorch/pull/129185
Labels: triaged,oncall: pt2,module: dynamo

Implementing simplified f_locals computation in https://github.com/pytorch/pytorch/pull/129185 caused some previously failing tests to succeed in 3.12 only. Since they only succeed in 3.12, we moved these tests from dynamo_expected_failures to dynamo_skips.

When simplified f_locals computation is implemented in <= 3.11, we should revisit these tests to see if they're really succeeding.

cc @ezyang @anijain2305 @chauhang @penguinwu @voznesenskym @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @chenyang78 @kadeng @amjames
Repository: flutter
Issue: Windows PathAccessException flake in `test/integration.shard/stateless_stateful_hot_reload_test.dart`
Labels: tool,platform-windows,P2,c: flake,team-tool,triaged-tool

Showed up in a recent engine->framework roll (https://github.com/flutter/flutter/pull/151545).
This issue previously showed up in https://github.com/flutter/flutter/issues/123233.

https://ci.chromium.org/ui/p/flutter/builders/try/Windows%20tool_integration_tests_5_6/29796/overview
```
16:59 +39 ~17 -1: test/integration.shard/stateless_stateful_hot_reload_test.dart: Can switch from stateless to stateful
Failed to delete C:\b\s\w\ir\x\t\flutter_hot_reload_test.45b8975a: PathAccessException: Deletion failed, path = 'C:\b\s\w\ir\x\t\flutter_hot_reload_test.45b8975a' (OS Error: The process cannot access the file because it is being used by another process.
, errno = 32)
17:10 +40 ~17 -1: Some tests failed.
```
Repository: rust
Issue: Misleading error message for remove explicit elided lifetime
Labels: A-diagnostics,T-compiler

### Code

```Rust
This branch has a compile error: https://github.com/UkoeHB/bevy_cobweb_ui/tree/elided_lifetime
```


### Current output

```Shell
return type references an anonymous lifetime, which is not constrained by the fn input types
lifetimes appearing in an associated or opaque type are not considered constrained
consider introducing a named lifetime parameter
```


### Desired output

```Shell
It should point to the `Reader<'_>` and tell me to remove `<'_>`.
```


### Rationale and extra context

This is the Bevy PR that caused the issue: https://github.com/bevyengine/bevy/pull/14082 . See https://github.com/bevyengine/bevy/pull/14082#issuecomment-2219546976 .
The only change relevant here was `&mut Reader` -> `&mut dyn Reader`.

### Other cases

_No response_

### Rust Version

```Shell
rustc 1.79.0 (129f3b996 2024-06-10)
binary: rustc
commit-hash: 129f3b9964af4d4a709d1383930ade12dfe7c081
commit-date: 2024-06-10
host: aarch64-apple-darwin
release: 1.79.0
LLVM version: 18.1.7
```


### Anything else?

_No response_
Repository: godot
Issue: Cursor disappears in editor at the end of long lines if Code Font Size set to 15
Labels: bug,topic:editor,topic:gui

### Tested versions

- Reproducible in v4.2.2.stable.official [15073afe3] 

### System information

Godot v4.2.2.stable - Windows 10.0.19045 - GLES3 (Compatibility) - AMD Radeon RX 6600 (Advanced Micro Devices, Inc.; 31.0.24033.1003) - Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz (8 Threads)

### Issue description

If I set Code Font Size to 15, my cursor disappears at the end of long lines

![image](https://github.com/godotengine/godot/assets/1651718/dbf74e38-4a21-4394-9095-10a9ea065ee8)


### Steps to reproduce

* Use a monitor 1680x1050 (this is what I use, I do not know if this is relevant)
* Open Godot
* Editor > Editor Settings > Interface > Editor > Code Font Size = 15
* Restart editor
* Open a script
* Create a line that is long enough that it results in a horizontal scroll bar (eg hold down "x")

Expected result: the cursor continues to blink after the last character typed
Actual result: the cursor disappears

Note the cursor blinks as expected at the default Code Font Size of 14 and at sizes 16-19
The cursor disappears at size 15, and at sizes 20-26 (which is the highest I tested)


### Minimal reproduction project (MRP)

N/A
Repository: flutter
Issue: [webview_flutter_web] Support for setting the credentialless attribute on iframe
Labels: c: new feature,p: webview,platform-web,package,c: proposal,P3,e: web_skwasm,team-web,triaged-web

### Use case

When using the `webview_flutter` package in a web build built with `--wasm` the `<iframe>` doesn't have the `credentialless` attribute set, and so won't load if the iframe'ed document doesn't have the proper headers when being GET'ed. See:
https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/credentialless and https://developer.mozilla.org/en-US/docs/Web/Security/IFrame_credentialless

### Proposal

Add a parameter to the `WebWebViewControllerCreationParams` class for specifying whether the `credentialless` attribute should be true or false.
Repository: ui
Issue: [bug]: Scroll not working on select component
Labels: bug

### Describe the bug

so when i cant seem to scroll in my select drop down, and this is fairly new, like it was working perfectly till last week and now all of a sudden i am unable to scroll and also for some reason if i open the select dropdown and open another select dropdown the previous one doesn't close on its own anymore. 

### Affected component/components

Select

### How to reproduce

I just added the Select Component,last i made any changes to the Select component file was 9 months ago

### Codesandbox/StackBlitz link

_No response_

### Logs

_No response_

### System Info

```bash
Chrome
```


### Before submitting

- [X] I've made research efforts and searched the documentation
- [X] I've searched for existing issues
Repository: flutter
Issue: [integration_test] Throw a graceful error when attempting to run `flutter drive --web-renderer skwasm`
Labels: tool,t: flutter driver,platform-web,c: proposal,a: error message,f: integration_test,P2,e: wasm,team-tool,triaged-tool

### Use case

This command pretends to work, but the launched web build is broken:
`flutter drive --web-renderer skwasm`

The proper command is as follows:
`flutter drive --wasm`

This has caused me confusion in the past due to the command structure of running dart tests compiled to wasm:
`dart run -p chrome -c dart2wasm`

See https://github.com/flutter/flutter/issues/150947

### Proposal

Throw a graceful error like `flutter run --web-renderer skwasm` instead of launching a broken web build
Repository: flutter
Issue: [tool] GA4 Analytics events are sent when running devicelab tests locally
Labels: P2,team-tool,triaged-tool

Discovered while working on #151518 ([details](https://github.com/flutter/flutter/pull/151518#discussion_r1672779762)).

## Repro
* Enable analytics/telemetry with `flutter --enable-analytics`
* Clear/delete your local analytics log file, this is usually stored in `<home directory>/.dart-tool/dart-flutter-telemetry.log`. We'll use this file later to see what analytics events were sent.
* Run a devicelab test locally. See [dev/devicelab/README.md](https://github.com/flutter/flutter/blob/1eb7cd2c735f523a32960f631a764fcf5e720e48/dev/devicelab/README.md#L42) for full instructions, though I will provide steps here
  * In a terminal navigate to dev/devicelab.
  * Run a devicelab test that invokes `flutter` (probably all of them). On my macOS machine that's iOS-development ready, I ran `../../bin/cache/dart-sdk/bin/dart bin/test_runner.dart test -t native_assets_ios_simulator`.
### Expected behavior
Since this is a devicelab test, we should not send any analytics events regardless of whether analytics is enabled on the host machine.

### Observed behavior 
Open your `dart-flutter-telemetry.log` and search for `"tool":{"value":"flutter-tool"}`. This will be contained in `flutter` tool analytics events that will be sent off. Notice that there will be several events logged.