2

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" } 

1 Answer 1

4

The .sublime-build file needs to be valid JSON

Source.

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.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.