Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to launch #198192

Closed
palmtrees-dreamland opened this issue Nov 14, 2023 · 12 comments · Fixed by microsoft/vscode-js-debug-browsers#15
Closed

Unable to launch #198192

palmtrees-dreamland opened this issue Nov 14, 2023 · 12 comments · Fixed by microsoft/vscode-js-debug-browsers#15
Assignees
Labels
info-needed Issue requires more information from poster

Comments

@palmtrees-dreamland
Copy link

Type: Performance Issue

Unable to launch chrome browser, pop up to say to configure launch.json. Unable to complete, chrome browser does not open. Using Intel Chrome Book

VS Code version: Code 1.84.2 (1a5daa3, 2023-11-09T10:50:47.800Z)
OS version: Linux x64 5.15.130-20472-g682e24dd583b
Modes:

System Info
Item Value
CPUs Intel(R) Core(TM) m3-8100Y CPU @ 1.10GHz (4 x 1607)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Load (avg) 1, 1, 0
Memory (System) 6.46GB (5.96GB free)
Process Argv --unity-launch --crash-reporter-id c2bce612-6921-4660-974d-70557e7894c9
Screen Reader no
VM 100%
DESKTOP_SESSION undefined
XDG_CURRENT_DESKTOP X-Generic
XDG_SESSION_DESKTOP undefined
XDG_SESSION_TYPE undefined
Process Info
CPU %	Mem MB	   PID	Process
    3	   172	   325	code main
    0	    40	   338	   zygote
    1	    99	   368	     gpu-process
    0	    40	   339	   zygote
    0	     7	   342	     zygote
    0	   185	   407	window [1] (index.html - eddiebm - Visual Studio Code)
    5	    93	   713	window [2] (Issue Reporter)
    0	    60	   376	   utility-network-service
    0	    93	   441	shared-process
    0	    73	   690	     electron-nodejs (/usr/share/code/code --ms-enable-electron-run-as-node /usr/share/code/resources/app/out/bootstrap-fork ms-vscode.pwa-chrome {"common.vscodemachineid":"348d01ac3fab56b873d81e183d9ecf7b4a4852fc9b885734094f88b699f35ba7","common.vscodesessionid":"a61cd378-1812-48a4-9f69-7d2fd40a46ee1699954709432"} 0c6ae279ed8443289764825290e4f9e2-1a736e7c-1324-4338-be46-fc2a58ae4d14-7255)
    0	     0	   724	     /bin/sh -c /usr/bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command=
    0	     0	   725	       /usr/bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command=
    0	    73	   442	fileWatcher [1]
    0	   132	   462	extensionHost [1]
    0	    86	   490	     electron-nodejs (/usr/share/code/code --ms-enable-electron-run-as-node /usr/share/code/resources/app/extensions/html-language-features/server/dist/node/htmlServerMain --node-ipc --clientProcessId=462)
    0	    73	   498	     electron-nodejs (/usr/share/code/code --ms-enable-electron-run-as-node /home/eddiebm/.vscode/extensions/formulahendry.auto-rename-tag-0.1.10/packages/server/dist/serverMain.js --node-ipc --clientProcessId=462)
    0	    73	   703	     electron-nodejs (/usr/share/code/code --ms-enable-electron-run-as-node /usr/share/code/resources/app/extensions/json-language-features/server/dist/node/jsonServerMain --node-ipc --clientProcessId=462)
Workspace Info
|  Window (index.html - eddiebm - Visual Studio Code)
|    Folder (eddiebm): 760 files
|      File types: code(122) log(43) cache-9(24) cache-7(24) json(22) png(11)
|                  md(10) vsixmanifest(6) crl(4) vscdb(3)
|      Conf files: package.json(6) launch.json(3)
|      Launch Configs: chrome;
Extensions (6)
Extension Author (truncated) Version
vscode-babel-coloring dza 0.0.4
auto-close-tag for 0.5.14
auto-complete-tag for 0.1.0
auto-rename-tag for 0.1.10
es7-react-js-snippets rod 1.9.3
JavaScriptSnippets xab 1.8.0
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscorecescf:30445987
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593cf:30376535
pythonvs932:30410667
py29gd2263cf:30880073
vsclangdf:30486550
c4g48928:30535728
dsvsc012:30540252
pynewext54:30695312
azure-dev_surveyone:30548225
3biah626:30602489
89544117:30613380
a9j8j154:30646983
showlangstatbar:30737416
pythonfmttext:30731395
fixshowwlkth:30771522
showindicator:30805244
pythongtdpath:30769146
i26e3531:30792625
pythonnosmt12:30797651
pythonidxpt:30866567
pythonnoceb:30805159
synctok:30869157
dsvsc013:30795093
dsvsc014:30804076
dsvsc015:30845448
pythontestfixt:30871694
pythonregdiag2:30871582
pyreplss1:30886140
pythonmypyd1:30879173
pythoncet0:30885854
h48ei257:30885898
pythontbext0:30879054
accentitlementsc:30887149
dsvsc016:30886110
dsvsc017cf:30886113
dsvsc018:30886114
aa_t_chat:30882232

@roblourens
Copy link
Member

/jsDebugLogs

@VSCodeTriageBot VSCodeTriageBot added the info-needed Issue requires more information from poster label Nov 15, 2023
@microsoft microsoft deleted a comment from VSCodeTriageBot Nov 15, 2023
@connor4312
Copy link
Member

/gifPlease

@VSCodeTriageBot
Copy link
Collaborator

Thanks for reporting this issue! Unfortunately, it's hard for us to understand what issue you're seeing. Please help us out by providing a screen recording showing exactly what isn't working as expected. While we can work with most standard formats, .gif files are preferred as they are displayed inline on GitHub. You may find https://gifcap.dev helpful as a browser-based gif recording tool.

If the issue depends on keyboard input, you can help us by enabling screencast mode for the recording (Developer: Toggle Screencast Mode in the command palette). Lastly, please attach this file via the GitHub web interface as emailed responses will strip files out from the issue.

Happy coding!

@palmtrees-dreamland
Copy link
Author

Recording 2023-11-16 at 11 33 51

Hey everyone, thanx for helping out, I'm new to this. I managed to install Firefox as a linux app and now I can launch browser, although url path is static, so it always opens launches browser with rhe same file

@connor4312
Copy link
Member

Please let us know if you can give a gif of the issue with the Chrome browser so we can look into it. Thanks!

@palmtrees-dreamland
Copy link
Author

not sure I can replicate the issue now, although here is where I got the solution from if it helps https://stackoverflow.com/questions/72567123/cant-run-debugging-in-visual-studio-code-on-chrome-os

@connor4312
Copy link
Member

The error referenced in the issue sounds like it was this one:

Unable to find an installation of the browser on your system. Try installing it, or providing an absolute path to the browser in the "runtimeExecutable" in your launch.json.

Which I think is descriptive of the case where you try to launch Chrome without it being installed on your system

@palmtrees-dreamland
Copy link
Author

It is indeed, that was the error message I got, although the Chrome browser is already installed in my Chromebook. Was also reading about downloading a second chrome browser and use it for VSC. For now, Firefox seems to do the job, I just need to get the right url

@connor4312
Copy link
Member

connor4312 commented Nov 16, 2023

I don't own a Chromebook -- are you able to find the path to the chrome executable on your system? We probably need to add that to our detection in the debugger. Opening chrome://version will have the "command line" which should include its location.

@palmtrees-dreamland
Copy link
Author

Command line:

/opt/google/chrome/chrome --enable-native-gpu-memory-buffers --enable-webgl-image-chromium --enable-features=Pepper3DImageChromium,UmaStorageDimensions,ArcAdbSideloading,Crostini,CrostiniGpuSupport,SmartDim,OnDeviceSpeechRecognition --gpu-sandbox-failures-fatal=yes --gpu-sandbox-start-early --video-capture-use-gpu-memory-buffer --enable-logging --log-level=1 --use-cras --enable-wayland-server --user-data-dir=/home/chronos --disable-mojo-broker --ash-use-cros-mojo-service-manager --cros-healthd-uses-service-manager --login-profile=user --has-chromeos-keyboard --enable-touchview --form-factor=CHROMEBOOK --guest-wallpaper-large=/usr/share/chromeos-assets/wallpaper/guest_large.jpg --guest-wallpaper-small=/usr/share/chromeos-assets/wallpaper/guest_small.jpg --child-wallpaper-large=/usr/share/chromeos-assets/wallpaper/child_large.jpg --child-wallpaper-small=/usr/share/chromeos-assets/wallpaper/child_small.jpg --default-wallpaper-large=/usr/share/chromeos-assets/wallpaper/default_large.jpg --default-wallpaper-small=/usr/share/chromeos-assets/wallpaper/default_small.jpg --device-help-content-id=shyvana --ozone-nnpalm-properties={} --arc-availability=officially-supported --enable-arcvm --enable-houdini --enable-houdini64 --enterprise-enrollment-initial-modulus=15 --enterprise-enrollment-modulus-limit=19 --enable-crashpad --ml_service=enabled --ondevice_handwriting=use_rootfs --ondevice_document_scanner=use_rootfs --feature-management-level=0 --feature-management-max-level=1 --feature-management-scope=0 --login-manager --feature-flags=["files-trash@1"] --first-exec-after-boot --enable-features=ArcAdbSideloading,Crostini,CrostiniGpuSupport,OnDeviceSpeechRecognition,Pepper3DImageChromium,SmartDim,UmaStorageDimensions --flag-switches-begin --flag-switches-end --origin-trial-disabled-features=WebGPU

@palmtrees-dreamland
Copy link
Author

Executable Path: /opt/google/chrome/chrome
Profile Path: /home/chronos/u-

@connor4312
Copy link
Member

Much appreciated, should be fixed in our next release

connor4312 added a commit to microsoft/vscode-js-debug-browsers that referenced this issue Nov 16, 2023
* fix: find the path of chrome on chromebooks

Fixes microsoft/vscode#198192

* v1.1.1
@github-actions github-actions bot locked and limited conversation to collaborators Dec 31, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
info-needed Issue requires more information from poster
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants