vscode-extensions-open-in-browser
vscode-extensions-open-in-browser copied to clipboard
Open browser failed!! Please check if you have installed the browser correctly!
Vscode Error : Open browser failed!! Please check if you have installed the browser correctly!
Getting this error too when trying to open Google Chrome on Arch Linux.
Get this error too on Windows 10 + Google Chrome.
After I reinstalled the system, I installed this plugin and it looks like there is no problem.
After I reinstalled the system, I installed this plugin and it looks like there is no problem.
Reinstalled what system?
Same issue. The solution is simple. Find the name of the exec command, for google chrome in arch linux is google-chrome-stable. Edit the command name in ~/.vscode/extensions/techer.open-in-browser-2.0.0/out/config.js. Change google-chrome to google-chrome-stable. Reload vscode. As reference in the repo out/config.js
After I installed Chinese version Firefox in kali Linux,the extension can't open html file no longer.
Available with version 1.1.0
@b1tdust
Still not working after doing that, on ubuntu 18.04 here.
I'm facing the same issue in win10...could some please help with this!!!!
I experienced this and I found a solution for my error!
The folder that I put the .html file had an "&" in the title. Once I removed the "&" in the folder title, I haven't experienced this error.
Happy coding! :D
please anyone solve my problem asap
please explain in brief for how to use this link asap https://github.com/SudoKillMe/vscode-extensions-open-in-browser/blob/master/out/config.js
@b1tdust is right,the same browser on different OS may has different name. maybe I could figure it out.
Same issue. The solution is simple. Find the name of the exec command, for google chrome in arch linux is google-chrome-stable. Edit the command name in ~/.vscode/extensions/techer.open-in-browser-2.0.0/out/config.js. Change google-chrome to google-chrome-stable. Reload vscode. As reference in the repo out/config.js
@b1tdust even after doing this procedure, same error appearing
I have The same problem, and it started after i installed nodeJs on my Computer, It didn't work either :-| After i tryed to debugg in VS-Code with Node something happend. I have checked all the settings for Live Server Extension, The settings for the envirement variables on the computer and even re-installed VS-Code but nothing work. ???
Any suggestions ?? My Config for Live Server looks like this: { "webRoot": "${workspaceFolder}", "window.zoomLevel": 1, "liveServer.settings.CustomBrowser": "chrome"
}
If you have a '&' in your file path, delete it.
const chromeItem = {
description: "Windows, Mac, Linux",
detail: "A fast, secure, and free web browser built for the modern web",
label: "Google Chrome",
standardName: platform === 'win32'
? 'chrome'
: (platform === 'darwin'
? 'google chrome'
: 'chromium-browser'),
acceptName: ['chromium-browser', 'chrome', 'google chrome', 'google-chrome'$
};
It is necessary to edit config in in file ~/.vscode/extensions/techer.open-in-browser-2.0.0/out/config.js. google-chrome to chromium-browser at standardName:platform
same issue..I have installed live server too .But both are not working
@kickgod open-in-browser by coderfee install this extension it will work for all linux distros then press ctrl+k then D it will open your HTML file in default browser.
I'm having this issue on Windows. I reinstalled VS code and the extension and the same error comes up. I looked at the Github repo. but in not sure what to do. does someone know what to do? to resolve this issue?
I'm having this issue on Windows. I reinstalled VS code and the extension and the same error comes up. I looked at the Github repo. but in not sure what to do. does someone know what to do? to resolve this issue?
same problem
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const platform = process.platform;
const chromeItem = {
description: "Windows, Mac, Linux",
detail: "A fast, secure, and free web browser built for the modern web",
label: "Google Chrome",
standardName: platform === 'win32'
? 'chrome'
: (platform === 'darwin'
? 'google chrome'
: 'google-chrome-stable'), //if you use google chrome stable version use this. if beta set to "google-chrome-stable".
acceptName: ['chrome', 'google chrome', 'google-chrome', 'gc', '谷歌浏览器']
};
const chromiumItem = {
description: "Mac",
detail: "A fast, secure, and free web browser built for the modern web",
label: "Google Chromium",
standardName: "Chromium",
acceptName: ['chromium']
};
const firefoxItem = {
description: "Windows, Mac, Linux",
detail: "A fast, smart and personal web browser",
label: "Mozilla Firefox",
standardName: "firefox",
acceptName: ['firefox', 'ff', 'mozilla firefox', '火狐浏览器']
};
const firefoxDeveloperItem = {
description: "Mac",
detail: "A fast, smart and personal web browser",
label: "Mozilla Firefox Developer Edition",
standardName: "FirefoxDeveloperEdition",
acceptName: ['firefox developer', 'fde', 'firefox developer edition']
};
const ieItem = {
description: "Windows",
detail: "A slightly outdated browser",
label: "Microsoft IE",
standardName: "iexplore",
acceptName: ['ie', 'iexplore']
};
const edgeItem = {
description: "Windows",
detail: "A modern browser aiming to replace ie",
label: "Microsoft Edge",
standardName: "MicrosoftEdge",
acceptName: ['edge', 'msedge', 'microsoftedge']
};
const safariItem = {
description: "Mac",
detail: "A fast, efficient browser on Mac",
label: "Apple Safari",
standardName: "safari",
acceptName: ['safari']
};
const operaItem = {
description: "Windows, Mac",
detail: 'A fast, secure, easy-to-use browser',
label: 'Opera',
standardName: 'opera',
acceptName: ['opera']
};
const browsers = [chromeItem, firefoxItem, operaItem];
if (process.platform === 'win32') {
browsers.push(ieItem);
browsers.push(edgeItem);
}
else if (process.platform === 'darwin') {
browsers.push(safariItem);
browsers.push(chromiumItem);
browsers.push(firefoxDeveloperItem);
}
exports.default = {
browsers: browsers,
app: 'open-in-browser'
};
//# sourceMappingURL=config.js.map
i'm on arch linux with google chrome stable version and i solved this issue with this.
I had the same problem and i changed "chrome" in setting.json (Vscode) to : "liveServer.settings.CustomBrowser": "google-chrome-stable", ps: I use manjaro !
it woked for me !
Workaround in Archlinux
export BROWSER="/usr/bin/firefox" && code .
Or add variable BROWSER in ~/.bashrc
export BROWSER="/usr/bin/firefox"
then run
source ~/.bashrc
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const platform = process.platform; const chromeItem = { description: "Windows, Mac, Linux", detail: "A fast, secure, and free web browser built for the modern web", label: "Google Chrome", standardName: platform === 'win32' ? 'chrome' : (platform === 'darwin' ? 'google chrome' : 'google-chrome-stable'), //if you use google chrome stable version use this. if beta set to "google-chrome-stable". acceptName: ['chrome', 'google chrome', 'google-chrome', 'gc', '谷歌浏览器'] }; const chromiumItem = { description: "Mac", detail: "A fast, secure, and free web browser built for the modern web", label: "Google Chromium", standardName: "Chromium", acceptName: ['chromium'] }; const firefoxItem = { description: "Windows, Mac, Linux", detail: "A fast, smart and personal web browser", label: "Mozilla Firefox", standardName: "firefox", acceptName: ['firefox', 'ff', 'mozilla firefox', '火狐浏览器'] }; const firefoxDeveloperItem = { description: "Mac", detail: "A fast, smart and personal web browser", label: "Mozilla Firefox Developer Edition", standardName: "FirefoxDeveloperEdition", acceptName: ['firefox developer', 'fde', 'firefox developer edition'] }; const ieItem = { description: "Windows", detail: "A slightly outdated browser", label: "Microsoft IE", standardName: "iexplore", acceptName: ['ie', 'iexplore'] }; const edgeItem = { description: "Windows", detail: "A modern browser aiming to replace ie", label: "Microsoft Edge", standardName: "MicrosoftEdge", acceptName: ['edge', 'msedge', 'microsoftedge'] }; const safariItem = { description: "Mac", detail: "A fast, efficient browser on Mac", label: "Apple Safari", standardName: "safari", acceptName: ['safari'] }; const operaItem = { description: "Windows, Mac", detail: 'A fast, secure, easy-to-use browser', label: 'Opera', standardName: 'opera', acceptName: ['opera'] }; const browsers = [chromeItem, firefoxItem, operaItem]; if (process.platform === 'win32') { browsers.push(ieItem); browsers.push(edgeItem); } else if (process.platform === 'darwin') { browsers.push(safariItem); browsers.push(chromiumItem); browsers.push(firefoxDeveloperItem); } exports.default = { browsers: browsers, app: 'open-in-browser' }; //# sourceMappingURL=config.js.map
i'm on arch linux with google chrome stable version and i solved this issue with this.
What's this file name and where did you put it?
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const platform = process.platform; const chromeItem = { description: "Windows, Mac, Linux", detail: "A fast, secure, and free web browser built for the modern web", label: "Google Chrome", standardName: platform === 'win32' ? 'chrome' : (platform === 'darwin' ? 'google chrome' : 'google-chrome-stable'), //if you use google chrome stable version use this. if beta set to "google-chrome-stable". acceptName: ['chrome', 'google chrome', 'google-chrome', 'gc', '谷歌浏览器'] }; const chromiumItem = { description: "Mac", detail: "A fast, secure, and free web browser built for the modern web", label: "Google Chromium", standardName: "Chromium", acceptName: ['chromium'] }; const firefoxItem = { description: "Windows, Mac, Linux", detail: "A fast, smart and personal web browser", label: "Mozilla Firefox", standardName: "firefox", acceptName: ['firefox', 'ff', 'mozilla firefox', '火狐浏览器'] }; const firefoxDeveloperItem = { description: "Mac", detail: "A fast, smart and personal web browser", label: "Mozilla Firefox Developer Edition", standardName: "FirefoxDeveloperEdition", acceptName: ['firefox developer', 'fde', 'firefox developer edition'] }; const ieItem = { description: "Windows", detail: "A slightly outdated browser", label: "Microsoft IE", standardName: "iexplore", acceptName: ['ie', 'iexplore'] }; const edgeItem = { description: "Windows", detail: "A modern browser aiming to replace ie", label: "Microsoft Edge", standardName: "MicrosoftEdge", acceptName: ['edge', 'msedge', 'microsoftedge'] }; const safariItem = { description: "Mac", detail: "A fast, efficient browser on Mac", label: "Apple Safari", standardName: "safari", acceptName: ['safari'] }; const operaItem = { description: "Windows, Mac", detail: 'A fast, secure, easy-to-use browser', label: 'Opera', standardName: 'opera', acceptName: ['opera'] }; const browsers = [chromeItem, firefoxItem, operaItem]; if (process.platform === 'win32') { browsers.push(ieItem); browsers.push(edgeItem); } else if (process.platform === 'darwin') { browsers.push(safariItem); browsers.push(chromiumItem); browsers.push(firefoxDeveloperItem); } exports.default = { browsers: browsers, app: 'open-in-browser' }; //# sourceMappingURL=config.js.map
i'm on arch linux with google chrome stable version and i solved this issue with this.
What's this file name and where did you put it?
You have to set default extension name in plugin open-in-browser with new as gc, google-chrome,chrome in vs code setting extensions. It work fine!! :)
I'm currently facing this problem with windows10 Pls how do I fix it
it woked for me !
Hello sir, My name is Venuchaitanya, can you please assist me in doing this, as I'm tired of resolving this on my Windows: 8.1 PC with i5 config. . My mail ID is [email protected], I will be glad to get help. Thanks