microsoft / microsoft/vscode-livepreview

External browser can't be found after renaming browser executable

Open
#535 1 comment 0 reactions 1 assignee View on GitHub

@andreamah is already working on this.

Since Jul 31, 2023.

bug
Dominant language
TypeScript
Stars
596
Forks
119
Avg merge
1d 4m
Merged PRs (30d)
5

Description

Type: Bug

From #421

  1. With a new user data dir
  2. Set "livePreview.customExternalBrowser": "Firefox"
  3. Rename Firefox.app in /Applications to aFirefox.app
  4. Run Show Preview (external browser)
  5. Firefox launches
  6. Now rename aFirefox.app back to Firefox.app
  7. Try running Show Preview (external browser) again

bug
I keep seeing the error:

Error running browser: spawn /Applications/aFirefox.app/Contents/MacOS/firefox ENOENT

I can't seem to get out of this state

Extension version: 0.5.2023072001
VS Code version: Code - Insiders 1.81.0-insider (Universal) (862fa13002d8018c328931ee1edccfd4ca76447d, 2023-07-26T05:36:43.574Z)
OS version: Darwin x64 22.6.0
Modes:

System Info
Item Value
CPUs Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz (16 x 2400)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
Load (avg) 2, 3, 4
Memory (System) 32.00GB (0.02GB free)
Process Argv --crash-reporter-id 48781ca2-1705-4f64-9bab-325055aab55d
Screen Reader no
VM 0%

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.