sublime-build

Why doesn't sublime automatically detect this custom sublime-build with a selector?

僤鯓⒐⒋嵵緔 提交于 2019-12-11 03:49:00
问题 I have the following saved to node-sass.sublime-build in my User folder { "shell_cmd": "node-sass.cmd $file", "selector": "source.scss" } I have a slideEditor.scss file. If I explicitly set the build system to node-sass , ctrl+b works just fine, but if I set it to "Automatic", ctrl+b does nothing with nothing being logged to the console. What can be going on? According the limited documentation I'm doing everything correct. 回答1: First, the short answer to your question: change "source.scss"

Setting environment variables for Sublime Text on OSX desktop

最后都变了- 提交于 2019-12-10 13:14:43
问题 I'd like to be able to access my JAVA_HOME variable that has been set in my .bash_profile from within my sublime text build. When I build I get the following error. Error: JAVA_HOME is not defined correctly. We cannot execute .... This is obviously because ST2 doesn't read in my bash profile. Is there any hack around for this? Thanks! 回答1: On UNIX child processes inherit the environment of the parent process. In this case, Sublime Text is not launched through a process chain which would