Sublime Forum

Build system doesn't work

#1

I build ruby or cpp or any langs and nothing happened
the console is blank

0 Likes

#2

Make sure the C++ and Ruby Packages are not disabled in your user settings. Choose Tools/ Build Systems and C++ or Ruby to make this the default build. Then Tools, Build followed possibly by Tools/ Run. Check the Console (Ctrl ’ (apostrophe or back-tick)) for any errors.

This is my C++ build file - I think I had to modify it slightly:

[code]{
“cmd”: “g++”, “${file}”, “-o”, “${file_path}/${file_base_name}”],
“file_regex”: “^(…^:]):([0-9]+):?([0-9]+)?:? (.)$”,
“working_dir”: “${file_path}”,
“selector”: “source.c, source.c++”,

"variants":

	{
		"name": "Run",
        "cmd": "${file_base_name}.exe"]
		//"cmd": "bash", "-c", 
        //"g++ '${file}' -o '${file_path}/${file_base_name}' && '${file_path}/${file_base_name}'"]
	}
]

}[/code]
Here’s my Ruby build but I don’t think I modified it:

{ "cmd": "ruby", "$file"], "file_regex": "^(...*?):([0-9]*):?([0-9]*)", "selector": "source.ruby" }

0 Likes

#3

thx for your helping
there is an environment variable in Chinese. :smiley:

0 Likes