Sublime Forum

The following error

#1

Hi community,
I recently switched to sublime text. I have a hard time with setting the build.
This is the error I am getting
[Errno 2] No such file or directory: ‘PATH_TO_CHROME_OR_FIREFOX’
[cmd: [‘PATH_TO_CHROME_OR_FIREFOX’, ‘/Users/srikanth/Library/Application Support/Sublime Text/Packages/User/prog.html’]]
[dir: /Users/srikanth/Library/Application Support/Sublime Text/Packages/User]
[path: /Library/Frameworks/Python.framework/Versions/3.8/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin]
[Finished]

Can anyone help please

0 Likes

#2

The text PATH_TO_CHROME_OR_FIREFOX isn’t meant to be entered directly; whatever tutorial you followed used that as a placeholder to mean “look up on your system where the path to your browser is, and then enter that here”.

0 Likes

#3

SO can you let me know what needs to be entered.

0 Likes

#4

I’ve created the build with the right path
{
“cmd”:[“Applications/Google Chrome.app”,"$file"]
}
But I am still getting the below error
[Errno 2] No such file or directory: ‘Applications/Google Chrome.app’
[cmd: [‘Applications/Google Chrome.app’, ‘/Users/srikanth/Library/Application Support/Sublime Text/Packages/User/prog.html’]]
[dir: /Users/srikanth/Library/Application Support/Sublime Text/Packages/User]
[path: /Library/Frameworks/Python.framework/Versions/3.8/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin]
[Finished]

Can you help me please.

0 Likes

#5

OSX?

Do you need a leading “/” as in “/Applications/…”?

The current setting looks like a relative path.

0 Likes