sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: next.js
Issue: I can't run "next-translate" example. Page 404 error.
Labels: Upstream,examples

### Verify canary release

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

### Provide environment information

```bash
# This is a non-commercial version of StackBlitz.
# If you’re using this for business purposes, please purchase a license here.

~/projects/kkviljzkwp.github
❯ npm install && npx next dev

added 37 packages in 2s

8 packages are looking for funding
  run `npm fund` for details
   ▲ Next.js 15.0.3
   - Local:        http://localhost:3000

 ✓ Starting...
   Downloading swc package @next/swc-wasm-nodejs... to /home/.cache/next-swc
 ✓ Ready in 13.3s
 ○ Compiling /_not-found ...
<w> [webpack.cache.PackFileCacheStrategy] Caching failed for pack: Error: Can't resolve 'tunnel-agent' in '/home/projects/kkviljzkwp.github/node_modules/sharp'
<w> while resolving 'tunnel-agent' in /home/projects/kkviljzkwp.github/node_modules/sharp to a directory
 ✓ Compiled /_not-found in 7.4s (571 modules)
next-translate - compiled page: / - locale: en - namespaces: common - used loader: server /layout
 GET / 404 in 7755ms
<w> [webpack.cache.PackFileCacheStrategy] Caching failed for pack: Error: Can't resolve 'tunnel-agent' in '/home/projects/kkviljzkwp.github/node_modules/sharp'
<w> while resolving 'tunnel-agent' in /home/projects/kkviljzkwp.github/node_modules/sharp to a directory
<w> [webpack.cache.PackFileCacheStrategy] Caching failed for pack: Error: Can't resolve 'tunnel-agent' in '/home/projects/kkviljzkwp.github/node_modules/sharp'
<w> while resolving 'tunnel-agent' in /home/projects/kkviljzkwp.github/node_modules/sharp to a directory
```


### Which example does this report relate to?

with-next-translate

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

Chrome 131.0.6778.70

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

preview live with StackBlitz

### Describe the Bug

I ran the sample program but it showed a 404 error which I don't think is reasonable.

### Expected Behavior

The sample screen is displayed and the translation function runs normally.

### To Reproduce

If you use the StackBlitz deployment in the README, a failure screen will appear.
Repository: vscode
Issue: Terminal suggest: Support resolving environment variables in directories
Labels: feature-request,terminal-suggest

This is somewhat shell-dependent:

- We want `cd $HOME` to show the actual home directory on the right side. Currently our pwsh support doesn't do this:

  ![Image](https://github.com/user-attachments/assets/3f62a821-f2b7-4eb0-b486-0f128341baea)

  But it does resolve the actual path and show it for `.` and `..`:

  ![Image](https://github.com/user-attachments/assets/d0a2a45e-6d0b-4da9-9fdb-74fafbfe4d6a)
- We want `cd $HOME/` to provide the same completions as `cd ~/` for the resolved `$HOME` folder
- This is not just for `$HOME` but for any environment variable
- Different shells may have different syntax for this, but the above is the baseline which works in the majority of shells (including pwsh). Interestingly `cd ${env:HOME}` works when run in pwsh but `cd ${env:HOME}\source` and `cd "${env:HOME}\source"` do not
Repository: transformers
Issue: Offline mode doesn't work with models that require `trust_remote_code=True`
Labels: bug

### System Info

Google Colab:
- `transformers` version: 4.46.3
- Platform: Linux-6.1.85+-x86_64-with-glibc2.35
- Python version: 3.10.12
- Huggingface_hub version: 0.26.2
- Safetensors version: 0.4.5
- Accelerate version: 1.1.1
- Accelerate config: 	not found
- PyTorch version (GPU?): 2.5.1+cu121 (False)
- Tensorflow version (GPU?): 2.17.1 (False)
- Flax version (CPU?/GPU?/TPU?): 0.8.5 (cpu)
- Jax version: 0.4.33
- JaxLib version: 0.4.33
- Using distributed or parallel set-up in script?: no

### Who can help?

@Rocketknight1

### Information

- [ ] The official example scripts
- [X] My own modified scripts

### Tasks

- [ ] An officially supported task in the `examples` folder (such as GLUE/SQuAD, ...)
- [x] My own task or dataset (give details below)

### Reproduction

#### Issue
Models that require `trust_remote_code=True` can't be fully saved & loaded with `save_pretrained()` + `from_pretrained()`.
In [offline mode](https://huggingface.co/docs/transformers/v4.46.2/en/installation#offline-mode) on a new machine during calling `from_pretrained()` it doesn't locate all required files in the saved local dir and tries to reach out to hf hub for the remote code part.

#### How to reproduce
[Colab](https://colab.research.google.com/drive/1_yX94aJngMChp6pANWg6Z6F_9G8Kyb3k?usp=sharing) | [Kaggle](https://www.kaggle.com/code/vladyslavkha/hf-offline-mode-trust-remote-code-models-issue)
Tested with popular [`jinaai/jina-embeddings-v3`](https://huggingface.co/jinaai/jina-embeddings-v3)
Includes step by step reproduction + results

---
## Additional context
- Stumbled on this in Kaggle Notebook env for competition.
Some Kaggle competitions require submitting code in Kaggle Notebooks, which are run later on private data and **don't allow internet access**.
Practically, this means you must prepare all models in advance, upload them as dependencies to the submission notebook.
So having transformers trying to reach out to hf-hub (when the model is already pre-downloaded) is not an option and disqualifies a group of models from usage.
- Originally raised in https://github.com/UKPLab/sentence-transformers/issues/2613.
Received guidance by @tomaarsen in https://github.com/UKPLab/sentence-transformers/issues/2613#issuecomment-2076964416 to overcome the issue with `sentence-transformers` (code snippet included)
- Raising as a bug report, LMK if better to reraise as FR. Would be happy to try to contribute if confirmed

### Expected behavior

Model is fully saved in local dir with `save_pretrained()` and can be fully loaded from a local path with `from_pretrained()` in offline mode
Repository: PowerToys
Issue: Magnifier
Labels: Needs-Triage

### Description of the new feature / enhancement

WIth magnifier, users can view tiny text written on image files in a pdf. 

### Scenario when this would be used?

There's a text on an image but i can't zoom into the image because it is in a pdf file, if you zoom in on the browser, the image doesn't zoom in along, unless i copy the image alone as a jpg file then i can zoom into the image which is stressful. 

### Supporting information

_No response_
Repository: vscode
Issue: Terminal suggest: Fork fig into our own repository
Labels: feature-request,terminal-suggest

We've been experimenting with https://github.com/withfig/autocomplete for a while and the way we're thinking of going forward is to fork the fig autocompletions into our own repo and serve our own npm module. The reasons for this approach are:

- Fig has become not very active since the company behind it was acquired, with the majority of commits being automated bumps to aws specs and CLA signing. No regular accounts got anything merged in the past month despite 10 new PRs coming in:
  ![Image](https://github.com/user-attachments/assets/d0567aa6-38ed-4f99-934a-b3d632263d5f)
- The npm module shipped for fig is not very friendly to be consumed by a TS project, it doesn't include the TS typings for example signalling it hasn't had much external use.
- To add proper support for localization which seems like it would be a very big challenge unless we actually owned the repo.
- To replace emoji icons with a completion kind, it's then up to the client how those kinds map to icons.
- Better support for lazy loading the specs
- To get rid of things we don't want and simplifying the spec as needed (pending further investigation).
- Invest in generation tooling to reduce the maintenance burden.
- The Windows Terminal team has signalled interesting in using/helping to maintain it (cc @zadjii-msft, @DHowett).

We've started this exploration by forking just the [code.ts](https://github.com/microsoft/vscode/blob/9508be851891834c4036da28461824c664dfa2c0/extensions/terminal-suggest/src/completions/code.ts) and [code-insiders.ts](https://github.com/microsoft/vscode/blob/9508be851891834c4036da28461824c664dfa2c0/extensions/terminal-suggest/src/completions/code-insiders.ts) files. These will be used as our test bed for further investigating capabilities, polishing those particular specs as they've been neglected, figuring out how to proceed, etc.
Repository: react
Issue: Bug: Problem with StrictMode in development (useEffect + useRef/Memo). useEffect ignores first value of useRef/Memo and uses second twice
Labels: Status: Unconfirmed

React version 18.3.1
StrictMode renders everything twice. and if the useRef value changes on the second render useEffect uses second version of useRef twice.
That can cause some memory leaks during development and unexpected behavior for useEffect

```ts
export function useTestHook() {
  const value = useRef(Math.random());
  console.log(value, "Given");
  useEffect(() => {
    console.log("Used in effect", value);
    return () => {
      console.log(value, "Cleared");
    };
  }, []);
}
```

output:
```
Object { current: 0.26757063192266095 } Given 

Object { current: 0.3384111276512609 } Given 
Used in effect Object { current: 0.3384111276512609 }

Object { current: 0.3384111276512609 } Cleared

Used in effect Object { current: 0.3384111276512609 }
```

the problem with that is the reference to the first object 0.2675... was lost
and the second object 0.3384... was cleared and used again

That breaks the program if the useRef/Memo should return the cleanup callback with the object
e.g 
```ts
const [object, cleanup] = useRef(someFunc());
const [state, SetState] = useState(object.Get());
useEffect(() => {
  object.OnChanged(SetState);
  return cleanup;
}, []);
```
because it's going to do the cleanup for the newest object immediately after connection and loose the refference to object created during the first render
Repository: go
Issue: x/mobile: go mobile bind, SIGSYS crash on older Android versions
Labels: NeedsInvestigation,mobile

### Go version

go version go1.23.2 linux/amd64

### Output of `go env` in your module/workspace:

```shell
GO111MODULE=''
GOARCH='amd64'
GOBIN=''
GOCACHE='/root/.cache/go-build'
GOENV='/root/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMODCACHE='/opt/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/opt/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/opt/go_dist/go'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/opt/go_dist/go/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='go1.23.2'
GODEBUG=''
GOTELEMETRY='local'
GOTELEMETRYDIR='/root/.config/go/telemetry'
GCCGO='gccgo'
GOAMD64='v1'
AR='ar'
CC='gcc'
CXX='g++'
CGO_ENABLED='1'
GOMOD='/opt/go/src/github.com/BitBoxSwiss/bitbox-wallet-app/go.mod'
GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build2246426898=/tmp/go-build -gno-record-gcc-switches'
```


### What did you do?

Built an Android app that includes a go module compiled with 

```
gomobile bind -x -a -glflags="-mod=readonly" -ldflags="-s -w" -target android -androidapi 21 .
```
And included it with a build.gradle dependency:
```
dependencies {
    [...]
    implementation project(path: ':myGoModule')
}
```
using

```
    compileSdk 34
    minSdkVersion 21
    targetSdkVersion 34
```



### What did you see happen?

Since our last upgrade to go1.23, the compiled Android app crashes at startup on older Android versions (tested 9.0 and 10.0, i.e. API 28 and 29 on Android studio emulator) with the following error:
```
2024-11-21 15:13:36.524 17389-17472 GoLog                   ch.shiftcrypto.bitboxapp.debug       E  [WARNING:viz_main_impl.cc(85)] VizNullHypothesis is disabled (not a warning)
2024-11-21 15:13:36.780 17389-17472 GoLog                   ch.shiftcrypto.bitboxapp.debug       E  [1121/151336.779929:ERROR:elf_dynamic_array_reader.h(64)] tag not found
2024-11-21 15:13:36.796 17389-17470 libc                    ch.shiftcrypto.bitboxapp.debug       A  Fatal signal 31 (SIGSYS), code 1 (SYS_SECCOMP) in tid 17470 (bitboxapp.debug), pid 17389 (bitboxapp.debug)
2024-11-21 15:13:36.829 17489-17489 DEBUG                   pid-17489                            A  pid: 17389, tid: 17470, name: bitboxapp.debug  >>> ch.shiftcrypto.bitboxapp.debug <<<
2024-11-21 15:13:36.829 17489-17489 DEBUG                   pid-17489                            A      #00 pc 00124bee  /data/app/ch.shiftcrypto.bitboxapp.debug-E5gwW0mWuw-zSOShuc4uzA==/lib/x86/libgojni.so
```

Everything works fine for newer Android versions (e.g. 13.0). 

Upgrading to Go 1.23.3 doesn't solve the issue, but reverting to Go 1.22.4 does, on all the Android versions tested.

### What did you expect to see?

The app should not crash on startup.
Repository: deno
Issue: Add support to test remote scripts, similar to "deno run https://examples.deno.land/hello-world.ts", but "deno test".
Labels: suggestion,help wanted,testing

It should be really nice to run remote tests, like: `deno test -A https://example.com/my_test.ts`

Could this be added to Deno?

Tanks.
Repository: flutter
Issue: [google_maps_flutter_web] Ability to animate camera with duration
Labels: c: new feature,p: maps,platform-web,package,c: proposal,P1,team-web,triaged-web

### Use case

User should be able to configure camera update duration on Web platform.

PR https://github.com/flutter/packages/pull/7648 adds support to control camera animation duration to google_maps_flutter_platform_interface and adds implementation for Android and iOS.

Related to #39810

### Proposal

Maps Javascript API does not support setting animation duration for camera controls by default. 
Maps Javascript API -documentation has example how to implement custom animation duration with Tween.js library.
https://developers.google.com/maps/documentation/javascript/examples/move-camera-ease

Similar behaviour could be gained using TickerProvider and stepping camera position between start (current) and end (target) position.
Repository: flutter
Issue: [go_router_builder] while canPop hangs in infinite loop starting from v14.0.0
Labels: platform-web,package,has reproducible steps,P1,p: go_router_builder,team-go_router,triaged-go_router,found in release: 3.24,found in release: 3.27

### Steps to reproduce

Hi @ValentinVignal 

Unfortunately I do not have repro steps.
I tried to reproduce but failed to create small demo.

2 things I know for sure

1. The bug happens starting exactly from v14.
2. If I comment this line in `route_data.dart` the bug disappears.

```
 return GoRoute(
      path: path,
      name: name,
      builder: builder,
      pageBuilder: pageBuilder,
      redirect: redirect,
      routes: routes,
      parentNavigatorKey: parentNavigatorKey,
      // onExit: onExit,
    );
```



### Expected results

No hang

### Actual results

App freezes

### Code sample

<details open><summary>Code sample</summary>

```dart
[Paste your code here]
```

</details>


### Screenshots or Video

<details open>
<summary>Screenshots / Video demonstration</summary>

[Upload media here]

</details>


### Logs

<details open><summary>Logs</summary>

```console
[Paste your logs here]
```

</details>


### Flutter Doctor output

<details open><summary>Doctor output</summary>

```console
[Paste your output here]
```

</details>
Repository: godot
Issue: Behavior is different for Move, Rotate and Scale when trying to use them on a selection that only includes controls in  a container.
Labels: bug,topic:editor,topic:gui

### Tested versions

Godot v4.4.dev4

### System information

Fedora Linux 40 (KDE Plasma) on Wayland - X11 display driver, Multi-window

### Issue description

Behavior is different for Move, Rotate and Scale when trying to use them on a selection that only includes controls in  a container.

**Move mode** displays a toast warning. **This feels like the expected behavior.**

**Rotate mode** displays same warning but changes selection so you end up moving things that are where you clicked.

**Scale mode** doesn't display any toast warning and changes selection so you end up moving things that are where you clicked.

Using Select mode with modifiers here:

https://github.com/user-attachments/assets/2d275abf-6629-40ee-bf80-3a0ca1c74b5c




### Steps to reproduce

^

### Minimal reproduction project (MRP)

[toast_and_spam (1).zip](https://github.com/user-attachments/files/17847722/toast_and_spam.1.zip)
Repository: PowerToys
Issue: Calculator stopped supporting scientific notation as lower case (2e9 vs 2E9)
Labels: Issue-Bug,Status-In progress,Run-Plugin

### Microsoft PowerToys version

0.86.0

### Installation method

Microsoft Store, PowerToys auto-update

### Running as admin

No

### Area(s) with issue?

PowerToys Run

### Steps to reproduce

Scientific notation only works with uppercase E now. Lowercase used to work.
I could swear "1e9/20" would give me 50000000 until a few months ago, but now it offers to open a URL (https://1e9/20).

**Steps To Reproduce**

    Alt-tab
    Type "1e9/20" or "=1e9/20"






### ✔️ Expected Behavior

50000000

### ❌ Actual Behavior

**Screenshot**
![Image](https://github.com/user-attachments/assets/c1f81030-d32c-44d0-94b3-afb12d903d18)

### Other Software

_No response_
Repository: vscode
Issue: Task API for `ShellExecutionOptions.env` type does not support `undefined` values
Labels: bug,api,tasks


Type: <b>Bug</b>

The `TerminalOptions.env` API supports environment variable values that include both `string | undefined`.

The ask is for this to match the TerminalOptions API.

Usage:
We plan on using this in the Python extension where users can contribute environment variables via `.env` files. We want to make sure the experience is same for the env variable merge in both cases.

VS Code version: Code - Insiders 1.96.0-insider (69acde7458f428f0e6869de8915c9dd995cdda1a, 2024-11-21T05:04:38.064Z)
OS version: Windows_NT x64 10.0.26100
Modes:

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

|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i7-1065G7 CPU @ 1.30GHz (8 x 1498)|
|GPU Status|2d_canvas: enabled<br>canvas_oop_rasterization: enabled_on<br>direct_rendering_display_compositor: disabled_off_ok<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>opengl: enabled_on<br>rasterization: enabled<br>raw_draw: disabled_off_ok<br>skia_graphite: disabled_off<br>video_decode: enabled<br>video_encode: enabled<br>vulkan: disabled_off<br>webgl: enabled<br>webgl2: enabled<br>webgpu: enabled<br>webnn: disabled_off|
|Load (avg)|undefined|
|Memory (System)|31.60GB (12.74GB free)|
|Process Argv|--log trace --log ms-python.python=info --crash-reporter-id 4fb1ebc1-cf4c-4880-a88a-47738ec3768d|
|Screen Reader|no|
|VM|0%|
</details><details><summary>Extensions (18)</summary>

Extension|Author (truncated)|Version
---|---|---
tsl-problem-matcher|amo|0.6.2
ruff|cha|2024.54.0
esbuild-problem-matchers|con|0.0.3
vscode-eslint|dba|3.0.10
gitlens|eam|16.0.2
EditorConfig|Edi|0.16.4
prettier-vscode|esb|11.0.0
copilot|Git|1.245.1221
copilot-chat|Git|0.23.2024112103
vscode-github-actions|git|0.27.0
vscode-pull-request-github|Git|0.101.2024112104
debugpy|ms-|2024.13.2024111901
python|ms-|2024.21.0-dev
vscode-pylance|ms-|2024.11.101
remote-containers|ms-|0.388.0
remote-wsl|ms-|0.88.5
extension-test-runner|ms-|0.0.12
code-spell-checker|str|4.0.21


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

```
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vsc_aacf:30263846
pythonvspyt551:31179976
vscod805cf:30301675
vsaa593cf:30376535
py29gd2263:31024238
c4g48928:30535728
vscrpc:30624061
a9j8j154:30646983
962ge761:30841072
pythonnoceb:30776497
asynctok:30898717
dsvsc014:30777825
dsvsc015:30821418
pythonmypyd1:30859725
h48ei257:31000450
pythontbext0:30879054
cppperfnew:30980852
pythonait:30973460
0ee40948:31013168
dvdeprecation:31040973
dwnewjupytercf:31046870
newcmakeconfigv2:31071590
nativerepl1:31134653
pythonrstrctxt:31093868
nativeloc1:31118317
cf971741:31144450
notreesitter:31116712
e80f6927:31120813
i21gd607:31141543
iacca1:31150324
notype1:31143044
dwcopilot:31158714
h409b430:31177054
5b1c1929:31184661

```

</details>

<!-- generated by issue reporter -->
Repository: pytorch
Issue: Draft mode export coloring is unreadable on white terminal
Labels: oncall: pt2,oncall: export

### 🐛 Describe the bug

Sample:

<img width="1420" alt="image" src="https://github.com/user-attachments/assets/1a1c0654-5b08-4298-a4c3-3d7b1af76f90">


### Versions

main

cc @chauhang @penguinwu @avikchaudhuri @gmagogsfm @zhxchen17 @tugsbayasgalan @angelayi @suo @ydwu4
Repository: vscode
Issue: Feature Request: Ability to Set Different Zoom Levels for Each Editor Group or Window
Labels: feature-request,zoom,workbench-editors

Hello,

I’d like to request a feature that allows users to set different zoom levels (or scaling) for each editor group or window in VS Code. Currently, the zoom level applies globally to the entire editor, which can be limiting when working with split editors or multiple groups, especially for users with different visual needs for different file types or layouts.

Proposed Feature:

Allow individual zoom levels for each editor group in split editor mode.
Add a setting (or command) to adjust zoom levels for specific groups or tabs independently.
(Optional) Make this configurable via settings.json for persistent customization.
Use Case: This feature would benefit developers working with different file types (e.g., Python and HTML) or those who need enhanced visibility for certain sections of their workspace. It would also provide a better experience for users who frequently work with split editors and need tailored visual preferences for each section.

Thank you for considering this request!

Best regards,
[Sahib Alizada]
<!-- ⚠️⚠️ Do Not Delete This! feature_request_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->

<!-- Describe the feature you'd like. -->
Repository: terminal
Issue: docker-desktop added to the drop-down menu
Labels: Product-WSL,Resolution-External,Needs-Tag-Fix

### Windows Terminal version

1.22.3232

### Windows build number

10.0.19045.0

### Other Software

_No response_

### Steps to reproduce

- check menu

### Expected Behavior

- `docker-desktop` not added to the menu

### Actual Behavior

- `docker-desktop` in the drop-down menu
Repository: vscode
Issue: Terminal suggest: The `.` builtin should explain what it is in the description
Labels: bug,terminal-suggest

When we show `.` as a command like this:

![Image](https://github.com/user-attachments/assets/1f102447-2d67-4015-9a1a-7cb4146429d9)

We should explain that it's an alias for `source`. This is a little nicety to make using the terminal a little easier