Reputation: 3890
I can't seem to get the sublime build system to work, I get "No build System" when I try to run my code.
I've set build system to Automatic under Tools->Build Systems, and the file has been save as Node.sublime-build in my Sublime Text settings folder.
These are the different variations I have tried below :
{
"cmd": ["C:\\Program Files\\nodejs\\node.exe", "$file"]
"selector" : "*.js"
}
{
"cmd": ["C:\\Program Files\\nodejs\\node.exe", "$file"]
"selector" : "source.js"
}
{
"cmd": ["C:/Program Files/nodejs/node.exe", "$file"]
"selector" : "*.js"
}
{
"shell_cmd": ["C:\Program Files\nodejs\node.exe", "$file"]
"selector" : "*.js"
}
Upvotes: 2
Views: 4312
Reputation: 3935
The
.sublime-build
file needs to be valid JSON
An object is an unordered set of name/value pairs. An object begins with
{
(left brace) and ends with}
(right brace). Each name is followed by:
(colon) and the name/value pairs are separated by,
(comma).
So there need to be a ,
between the "cmd": ...
and the "selector": ...
part.
Upvotes: 4