sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: tauri
Issue: [bug] does not work when run `tauri ios init` from a globally installed CLI.
Labels: type: bug,status: needs triage,platform: iOS

### Describe the bug

does not work when run `tauri ios init` from a globally installed CLI. Generated preBuildScripts at `gen/apple/project.yml` is:

```
preBuildScripts:
      - script: node tauri ios xcode-script -v --platform
```

Run script error is `Error: Cannot find module '[PATH]/gen/apple/tauri'`.

There seems to be a problem here:
https://github.com/tauri-apps/tauri/blob/dev/tooling/cli/src/mobile/init.rs#L147-L174

### Reproduction

_No response_

### Expected behavior

_No response_

### Full `tauri info` output

```text
[✔] Environment
    - OS: Mac OS 14.4.1 X64
    ✔ Xcode Command Line Tools: installed
    ✔ rustc: 1.80.1 (3f5fd8dd4 2024-08-06)
    ✔ cargo: 1.80.1 (376290515 2024-07-16)
    ✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
    ✔ Rust toolchain: stable-aarch64-apple-darwin (default)
    - node: 20.12.2
    - pnpm: 8.9.0
    - yarn: 1.17.3
    - npm: 10.5.0

[-] Packages
    - tauri [RUST]: 2.0.0-rc.2 (no lockfile)
    - tauri-build [RUST]: no manifest (no lockfile)
    - wry [RUST]: no manifest (no lockfile)
    - tao [RUST]: no manifest (no lockfile)
    - tauri-cli [RUST]: 2.0.0-alpha.7
    - @tauri-apps/api [NPM]: 2.0.0-rc.1
    - @tauri-apps/cli [NPM]: 2.0.0-rc.3

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: ../dist
    - devUrl: http://localhost:1420/
    - bundler: Rollup
```


### Stack trace

_No response_

### Additional context

_No response_
Repository: tauri
Issue: [bug] target not recognized: Unrecognized operating system: ios13.0.0
Labels: type: bug,status: needs triage,platform: iOS

### Describe the bug

I tried to delete `gen/apple` and re-`cargo tauri ios init`, but this error keeps coming up when I use `cargo tauri ios dev`

### Reproduction

_No response_

### Expected behavior

_No response_

### Full `tauri info` output

```text
[✔] Environment
    - OS: Mac OS 14.6.1 X64
    ✔ Xcode Command Line Tools: installed
    ✔ rustc: 1.82.0-nightly (506052d49 2024-08-16)
    ✔ cargo: 1.82.0-nightly (2f738d617 2024-08-13)
    ✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
    ✔ Rust toolchain: nightly-aarch64-apple-darwin (environment override by RUSTUP_TOOLCHAIN)
    - node: 22.6.0
    - npm: 10.8.2
    - bun: 1.0.36

[-] Packages
    - tauri [RUST]: 2.0.0-rc.3
    - tauri-build [RUST]: 2.0.0-rc.3
    - wry [RUST]: 0.42.0
    - tao [RUST]: 0.29.0
    - tauri-cli [RUST]: 2.0.0-rc.4

[-] App
    - build-type: bundle
    - CSP: default-src 'self'; img-src 'self' data:;; connect-src ipc: http://ipc.localhost
    - frontendDist: ../dist
    - devUrl: http://localhost:5173/
```


### Stack trace

_No response_

### Additional context

_No response_
Repository: next.js
Issue: generateStaticParams globalThis (global) singleton problem
Labels: bug,Performance,Runtime

### Link to the code that reproduces this issue

https://github.com/vaneenige/next-app-router-singleton

### To Reproduce

1. Set a new key in the global object
2. Try to get this key from the global object inside generateStaticParams

### Current vs. Expected behavior

I expected the global object to be the same in this environment

### Provide environment information

```bash
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 23.6.0: Mon Jul 29 21:14:30 PDT 2024; root:xnu-10063.141.2~1/RELEASE_ARM64_T6030
  Available memory (MB): 18432
  Available CPU cores: 12
Binaries:
  Node: 20.11.1
  npm: 10.2.4
  Yarn: N/A
  pnpm: 9.5.0
Relevant Packages:
  next: 14.2.5 // Latest available version is detected (14.2.5).
  eslint-config-next: N/A
  react: 18.3.1
  react-dom: 18.3.1
  typescript: 5.5.4
Next.js Config:
  output: export
```


### Which area(s) are affected? (Select all that apply)

Performance, Runtime

### Which stage(s) are affected? (Select all that apply)

next dev (local), next build (local)

### Additional context

For example, I declare a new key in the global object using instrumentation.ts (it doesn't really matter where you do it)

<img width="423" alt="1" src="https://github.com/user-attachments/assets/6d52ca58-c67f-4338-a333-b13bece1427b">

When I try to get it inside the generateStaticParams function, I get undefined

<img width="534" alt="2" src="https://github.com/user-attachments/assets/d0027aa1-6247-4dd6-94d4-eb3959001b05">

But after trying the same thing in the component, I got the expected result:

<img width="448" alt="3" src="https://github.com/user-attachments/assets/d0a7db3b-ba13-4459-9512-5ea920235244">

I found similar issues and they seem to be related:
[https://github.com/vercel/next.js/issues/65350](https://github.com/vercel/next.js/issues/65350)
[https://github.com/vercel/next.js/issues/52165](https://github.com/vercel/next.js/issues/52165)

It seems to be running in a separate environment. But how can I solve this problem?
Repository: pytorch
Issue: Unexpected behavior of `CrossEntropyLoss()`
Labels: module: nn,triaged

### 🐛 Describe the bug

[CrossEntropyLoss()](https://pytorch.org/docs/stable/generated/torch.nn.CrossEntropyLoss.html) with the 1D tensor of size 1 and a 0D tensor gets the error message as shown below:

```python
import torch
from torch import nn

tensor1 = torch.tensor([7.2]) # Here
tensor2 = torch.tensor(1.5) # Here

cel = nn.CrossEntropyLoss()
cel(input=tensor1, target=tensor2) # Error
```

> RuntimeError: expected scalar type Long but found Float

So, I changed `1.5` to `1` for `tensor2` but there is the error message as shown below:

```python
import torch
from torch import nn

tensor1 = torch.tensor([7.2])
tensor2 = torch.tensor(1) # Here

cel = nn.CrossEntropyLoss()
cel(input=tensor1, target=tensor2) # Error
```

> IndexError: Target 1 is out of bounds.

So, I changed `1` to `0` for `tensor2`, then it works as shown below:

```python
import torch
from torch import nn

tensor1 = torch.tensor([7.2])
tensor2 = torch.tensor(0) # Here

cel = nn.CrossEntropyLoss()
cel(input=tensor1, target=tensor2)
# tensor(0.)
```

Lastly, I changed `[7.2]` to `0` for `tensor1` and `0` to `[7.2]` for `tensor2` but there is the error message as shown below:

```python
import torch
from torch import nn

tensor1 = torch.tensor(0) # Here
tensor2 = torch.tensor([7.2]) # Here

cel = nn.CrossEntropyLoss()
cel(input=tensor1, target=tensor2) # Error
```

> IndexError: Dimension out of range (expected to be in range of [-1, 0], but got 1)

In addition, `CrossEntropyLoss()` with the 1D tensor of size 3 and a 0D tensor works as shown below:

```python
import torch
from torch import nn

tensor1 = torch.tensor([7.2, 4.6, 9.3]) # Here
tensor2 = torch.tensor(1) # Here

cel = nn.CrossEntropyLoss()
cel(input=tensor1, target=tensor2)

cel = nn.CrossEntropyLoss()
cel(input=tensor1, target=tensor2)
# tensor(-0.)
```

### Versions

```python
import torch

torch.__version__ # 2.3.1+cu121
```

cc @albanD @mruberry @jbschlosser @walterddr @mikaylagawarecki
Repository: vscode
Issue: Error: `No view is registered with id` might be caused by a race condition
Labels: bug,workbench-views

> I think `No view is registered with id: cspell.issuesViewByFile` might be caused by a race condition. I just saw it when I installed the latest version of [Code Spell Checker v4.0.6](https://marketplace.visualstudio.com/items?itemName=streetsidesoftware.code-spell-checker) in 1.92.0. Something about the way the Extension Host is restarted seems to have changed.

> The extension first starts the LSP client before registering some views because it needs access to the client. I'll try and change the order to register views as soon as possible. Even so, it is an async function, so there is always a chance of a race condition if the views are expected to exist before the `activate` resolves. 

_Originally posted by @Jason3S in https://github.com/microsoft/vscode/issues/224590#issuecomment-2265674035_

I created this as a separate issue because I have seen this pop up with other extensions.

<img width="458" alt="image" src="https://github.com/user-attachments/assets/b483c5f0-72fe-47c7-b1bc-b54fe07348ec">

It happens after clicking `Restart Extensions` button:

<img width="146" alt="image" src="https://github.com/user-attachments/assets/c6d03b3c-3f56-41a9-ba90-a16c5e8a2c59">

I think the race condition happens when:

1. The extension is already installed and running.
2. It has views
3. Was updated but not yet restarted
4. Uses an Async activation function
   ```
   export async function activate(context: ExtensionContext): Promise<ExtensionApi>
   ```

When the restart happens, the error appears.

I was able to reproduce this with GitLens:

1. Extensions: GitLens -> Install Specific version (I chose 15.2.3).
   <img width="598" alt="image" src="https://github.com/user-attachments/assets/67060682-d220-4f5e-b1c5-a953868d9e0e">
2. Restart Extensions:
   <img width="295" alt="image" src="https://github.com/user-attachments/assets/198a11d1-a1e8-4561-b902-f158289d3722">
3. Notice: Error doesn't occur.
4. Choose Update then Restart
   <img width="287" alt="image" src="https://github.com/user-attachments/assets/2da28dde-7332-4686-a97e-4e70681ad056">
   <img width="295" alt="image" src="https://github.com/user-attachments/assets/0f1094e0-d12b-4991-b0b1-36fb8369eb86">
5. Notice: Error
   <img width="468" alt="image" src="https://github.com/user-attachments/assets/0dfe96b4-295f-4fda-9933-595685a37f1e">
Repository: PowerToys
Issue: Awake - user setting of 'keep awake on interval'
Labels: Idea-Enhancement,Product-Awake

### Description of the new feature / enhancement

When selecting awake from the taskbar, and choosing 'keep awake on interval' theres only 30min, 1h and 2 h.
In setting you can define the lenght in'Interval before returning to the previous awakness state', this setting is memorized after experation, so I would like 'last used' setting this to be selecteble in the taskbar menu.
as i often use 4 hours

### Scenario when this would be used?

To rapidly set the perfered setting, when using the PC for presenting, in longer meetings.

### Supporting information

_No response_
Repository: ollama
Issue: for glm4-9b
Labels: feature request

Do you have any plans to support the tool-calling function of glm4-9b?
Repository: transformers
Issue: How to use 【examples/pytorch/contrastive-image-text】 to inter  inference
Labels: Feature request

### Feature request

I have reviewed the training code for CLIP and successfully executed it. Now, I want to use the obtained model for inference testing.


### Motivation

I would like to test the performance of the model I have trained.


### Your contribution

I hope I can get a example script to inference testing like below script :

python examples/pytorch/contrastive-image-text/run_clip.py \
    --output_dir ./clip-roberta-finetuned \
    --model_name_or_path ./clip-roberta \
    --data_dir $PWD/data \
    --dataset_name ydshieh/coco_dataset_script \
    --dataset_config_name=2017 \
    --image_column image_path \
    --caption_column caption \
    --remove_unused_columns=False \
    --do_train  --do_eval \
    --per_device_train_batch_size="64" \
    --per_device_eval_batch_size="64" \
    --learning_rate="5e-5" --warmup_steps="0" --weight_decay 0.1 \
    --overwrite_output_dir \
    --push_to_hub
Repository: react-native
Issue: Touchable is unresponsive during internal ScrollView scroll on iOS
Labels: Platform: iOS,Issue: Author Provided Repro,Component: ScrollView

### Description

I can't press buttons during carousel scrolling in another place of ScrollView. Only on iOS.
Also if touch button down and keep finger: on scroll start button will be unpressed.

### Steps to reproduce

Press button during scroll.
Or touch button down, keep finger and see what happening on scroll start.

### React Native Version

0.75.1, 0.74.5

### Affected Platforms

Runtime - iOS

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

```text
System:
  OS: macOS 14.6.1
  CPU: (10) arm64 Apple M1 Max
  Memory: 7.89 GB / 64.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 22.6.0
    path: /opt/homebrew/bin/node
  Yarn:
    version: 4.4.0
    path: /opt/homebrew/bin/yarn
  npm:
    version: 10.8.2
    path: /opt/homebrew/bin/npm
  Watchman:
    version: 2024.08.12.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.12.1
    path: /usr/local/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: Not Found
IDEs:
  Android Studio: 2024.1 AI-241.18034.62.2411.12169540
  Xcode:
    version: 15.4/15F31d
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.12
    path: /usr/bin/javac
  Ruby:
    version: 2.6.10
    path: /Users/bardiamist/.rbenv/shims/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.3.1
    wanted: 18.3.1
  react-native:
    installed: 0.75.1
    wanted: 0.75.1
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: true
  newArchEnabled: false
```


### Stacktrace or Logs

```text
No crash
```


### Reproducer

https://snack.expo.dev/@bardiamist/nested-auto-scroll?platform=ios

### Screenshots and Videos


https://github.com/user-attachments/assets/d61b9a9a-a1e0-453c-8c6b-b33d51cf825d
Repository: next.js
Issue: New page is called when intercepting routes are terminated before the server action is completed
Labels: bug,Parallel & Intercepting Routes,Partial Prerendering (PPR)

### Link to the code that reproduces this issue

https://github.com/JoSuwon/intercepting-routes-with-server-action

### To Reproduce

1. Start the application in development or visit deploy application (https://intercepting-routes-with-server-action.vercel.app/)
2. Click the button to open the modal (This modal consists of intercepting routes and performs a server-action when mounted, which returns the result after 3 seconds)
3. Ends interception-routes and returns to main before server-action completes execution (before 3 seconds)
4. The app/page.tsx file is newly rendered on the server. (Check that page loaded time and random number are changed)


`When you go back before the server-action is complete`

https://github.com/user-attachments/assets/83931317-8543-43d5-8071-71e972248e62

`When you go back after the server-action is complete`

https://github.com/user-attachments/assets/7deebe11-78a1-4a5b-b698-de28df7ca7fb



### Current vs. Expected behavior

Even if interception-routes is terminated before the server-action is complete, I think app/page.tsx should be maintained without new rendering.

### Provide environment information

```bash
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 24.0.0: Wed Aug  7 03:08:56 PDT 2024; root:xnu-11215.1.9~22/RELEASE_ARM64_T6020
  Available memory (MB): 16384
  Available CPU cores: 10
Binaries:
  Node: 20.14.0
  npm: 10.7.0
  Yarn: 1.22.19
  pnpm: 9.4.0
Relevant Packages:
  next: 14.2.5 // Latest available version is detected (14.2.5).
  eslint-config-next: 14.2.5
  react: 18.3.1
  react-dom: 18.3.1
  typescript: 5.5.4
Next.js Config:
  output: N/A
```


### Which area(s) are affected? (Select all that apply)

Parallel & Intercepting Routes, Partial Prerendering (PPR)

### Which stage(s) are affected? (Select all that apply)

next dev (local), next start (local), Vercel (Deployed)

### Additional context

Installing the next@canary version and running dev encountered the same problem, and the build failed and distributed to vercel as 14.2.5 version.


deploy link : https://intercepting-routes-with-server-action.vercel.app/
Repository: PowerToys
Issue: View desktop folders in a simplified view like a Start Menu Pinned folder
Labels: Needs-Triage

### Description of the new feature / enhancement

I'd like a feature where you can set Desktop folders to open into a simplified window of shortcuts similar to Start Menu Pinned folders. Think of this as a crossover between the Start Menu Pinned folders and [Stardock's Fences](https://www.stardock.com/products/fences/).

### Scenario when this would be used?

- On the desktop, of course.
- This is important for me since Fences is shareware and a competing product caled [Portals](https://portals-app.com/) is donationware, and I couldn't find any open-source alternatives to both (both are proprietary). I want an open-source variant.
- This is also useful if someone doesn't want to have File Explorer opened when trying to group Desktop shortcuts into folders.

### Supporting information

_No response_
Repository: ant-design
Issue: Date picker with more than one month in calendar
Labels: Inactive

### What problem does this feature solve?

It would be nice if the calendar dropdown has the option to show two months next to each other similar to the range picker. This will allow the user to quickly choose a date in the next/previous month instead of using the buttons at the top to navigate.

### What does the proposed API look like?

Probably a extra property like displayMonths?

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: pytorch
Issue: Pytorch Mobile - Different output on Android and PC with the same model
Labels: oncall: jit,oncall: mobile

### 🐛 Describe the bug

Hi!
I've trained EfficientNetB0 model from timm and converted it to .ptl with jit.trace. Here is my code:
```
dummy_input = torch.randn(1,3,256,256)
traced_script_module = torch.jit.trace(model, dummy_input)
traced_script_module_optimized = optimize_for_mobile(traced_script_module)
traced_script_module_optimized._save_for_lite_interpreter("./models/classifier_best.ptl")
```

Then I've loaded my model to "/assets" tried to forward imageBitmap to it. Here is code:
```
try {
    module = Module.load(assetFilePath(TestModelActivity.this, "classifier_best.ptl"));
} catch (IOException e) {
    throw new RuntimeException(e);
}
try {
    bitmap = BitmapFactory.decodeStream(getAssets().open("solara_cropped.jpg"));
} catch (IOException e) {
    throw new RuntimeException(e);
}
Tensor inputTensor = TensorImageUtils.bitmapToFloat32Tensor(bitmap,
        TensorImageUtils.TORCHVISION_NORM_MEAN_RGB, TensorImageUtils.TORCHVISION_NORM_STD_RGB,
        MemoryFormat.CHANNELS_LAST);

Tensor outputTensor = module.forward(IValue.from(inputTensor)).toTensor();
float[] scores = outputTensor.getDataAsFloatArray();
```

Results are different. What I'm doing wrong? Or it's a bug?

### Versions

collect_env.py does nothing but here are my versions
PC:
    Python 3.11.9
    Pytorch 2.0.1+cu117
    timm 0.9.2
Android:
    implementation("org.pytorch:pytorch_android_lite:1.13.0") // tried without lite, nothing changed
    implementation("org.pytorch:pytorch_android_torchvision_lite:1.13.0") // tried without lite, nothing changed

cc @EikanWang @jgong5 @wenzhe-nrv @sanchitintel
Repository: godot
Issue: Linux: When dragging files Godot can't track the mouse position
Labels: bug,platform:linuxbsd,needs testing,topic:gui

### Tested versions

- Reproducible in 4.3-stable, might also affect other 4.x versions

### System information

Godot v4.3.stable - Arch Linux #1 SMP PREEMPT_DYNAMIC Thu, 15 Aug 2024 00:25:30 +0000 - Wayland - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3080 Laptop GPU - 11th Gen Intel(R) Core(TM) i9-11900K @ 3.50GHz (16 Threads)

### Issue description

So this is a bug I found, as I don't think this is intended behavior.

When dragging files on Linux (not tested on other OSes) any mouse-related signals on the Control class aren't emitted when they should be.
Note that Node2D.get_global_mouse_position() also doesn't update the position. Godot seems to be unable to track the mouse position when files are dragged.
From my testing, this affects both Wayland and X11.

My expectation is that these mouse-related signals are still emitted even when dragging files.
Why would I need this? To make essentially just an area where a file can be dropped, instead of the whole window. But since tracking the mouse doesn't work, that is much harder (still technically possible using a Window).



### Steps to reproduce

1. Create a project
2. Connect the signals "mouse_entered" and/or "mouse_exited" of any Control Node to a function
3. print() any feedback
4. Drag files from the system file manager and check the output

### Minimal reproduction project (MRP)

[drop-bug.zip](https://github.com/user-attachments/files/16657448/drop-bug.zip)
Repository: TypeScript
Issue: [tsserver] Make "configure excludes" warning more debuggable
Labels: Suggestion,Awaiting More Feedback

### 🔍 Search Terms

To enable project-wide JavaScript/TypeScript language features

exclude large folders

configure excludes

### ✅ Viability Checklist

- [X] This wouldn't be a breaking change in existing TypeScript/JavaScript code
- [X] This wouldn't change the runtime behavior of existing JavaScript code
- [X] This could be implemented without emitting different JS based on the types of the expressions
- [X] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
- [X] This isn't a request to add a new utility type: https://github.com/microsoft/TypeScript/wiki/No-New-Utility-Types
- [X] This feature would agree with the rest of our Design Goals: https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals

### ⭐ Suggestion

Make "configure excludes" warning more debuggable

# Context

In some scenarios, one may get the following warning in VSCode from tsserver, together with "Configure excludes" button in the status bar in bottom-right:

> To enable project-wide JavaScript/TypeScript language features, exclude large folders with source files that you do not work on.

When this happens, "find references" and other VSCode features do not work.

# Problem

This warning is not very debuggable; the burden is on the user to guess possible causes. Maybe they checked in some file(s) recently that trigger it; maybe they did a local build which produced a lot of artifacts which is picked by `include` but not in `exclude` list. etc.

In a huge monorepo, finding this out is difficult. 

Also it's not clear what is the root cause of this warning:

- is it about _large number_ of files?
- is it about _large size_ of files? (individual files size? sum?)
- is it about `.js` files only? `.ts` files? other types?

In my `tsserver.log` (which is 100k+ lines), I found some `largeFileReferenced` logs, I fixed those, but it didn't fix the issue. I also found some `Non TS file size exceeded limit` logs. But in any case it's just my random guesses, not sure if this is linked to the problem.

# Solution

- The warning in VSCode should be more actionable / debuggable. Perhaps it should link to a help article or a GH issue?
- There should be enough info in `tsserver.log` to make it debuggable. 
- The help article should explain how to analyze tsserver.log to find relevant info.

### 📃 Motivating Example

Past discussions where people report the warning but don't provide repro (probably because they don't understand why the issue happens), example: https://github.com/microsoft/TypeScript/issues/53492

### 💻 Use Cases

1. What do you want to use this for?

When I get the warning about "configure excludes" I want to know exactly what to look for. Should I look for large files? (define how large?) Should I look for large folders? (define how large?)

2. What shortcomings exist with current approaches?
3. What workarounds are you using in the meantime?

Random guesses + `git bisect`.