Sublime text 2 error: When building game

Asked by Azalea Lambert on
Tags: error
5 Answers

Answer by Teagan O’Donnell

[shell_cmd: python -u “C:\Users\Gaming\OneDrive\Desktop\cartofia game\cartofia.py”],when i try to build the code it prints this:,Open up cmd.exe and type in python -u "C:\Users\Gaming\OneDrive\Desktop\cartofia game\cartofia.py".,@bschaaf it says this, but i have the image in the directory

this?
“cmd”: [“g++”, “-std=gnu++11”, “${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_path}/${file_base_name}"]
    }
]

Source: https://forum.sublimetext.com/t/building-error/56748


Answer by Harmony Flowers

Well, first of all, 0 is an answer because 0 is a multiple of all numbers except 0.,If you're looking for numbers from 1 onwards, you need to change your for loop condition from ,x = x will technically work because it will evaluate to true for all values except 0. You can also start d from 2 instead of 1 since all numbers are divisible by 1., Show the number that is multiple of all numbers between 1 and 20. – DMaxter Nov 10 '15 at 21:04

If you're looking for numbers from 1 onwards, you need to change your for loop condition from

for(x=0; x = x; x++){

to

for(x = 1;; x++) {

Source: https://stackoverflow.com/questions/33509889/sublime-text-2-compiling-error-i-think


Answer by Aniyah Velazquez

this is the error message i keep getting....how do i correct it? anybody?,I am trying this in Linux (LXLE), and get the following error message when trying the print(sys.version) command:,I think I had the right line - this is the file that resulted in the error:,Hi, I get this message: [Errno 2] No such file or directory

{
    "cmd": ["python2", "-u", "$file"],
    "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
    "selector": "source.python"
}

Source: https://gist.github.com/zaemiel/4fbd8b5125fda7a140be


Answer by Ruby Webster

[Error 2] The system cannot find the file specified...:/,[WinError 2] The system cannot find the file specified,System cannot find the file specified...,Save this file as a JavaScript.sublime-build in “User” directory inside Sublime Text settings folder.

{
  "cmd": ["/usr/local/bin/node", "$file"],
  "selector": "source.js"
}

Source: https://pawelgrzybek.com/javascript-console-in-sublime-text/


Answer by Emmanuel Henson

The following instructions work both in Sublime Text 2 and 3 unless mentioned otherwise. ,Stack Overflow question about console output in Sublime Text 2,By default the console in Sublime Text will not display any output, such as print() calls, until the LOVE application has been closed. ,Sublime Text 2 Build Systems

{
	"file_regex": "^(?:(?:\t)|(?:.+: ))(.+):([0-9]+): (.*)$",
	"selector": "source.lua",
	"shell": true,
	"cmd": ["love", "${project_path:${file_path:.}}"],

	"variants": [
		{
			"name": "Love2D",
			"shell": true,
			"cmd": ["love", "${project_path:.}"],
			"osx":
			{
				"cmd": ["love $project_path"]
			}
		},
		{   "name": "ldoc: File",
			"shell": true,
			"cmd": ["ldoc -d $project_path/doc/$file_base_name -f markdown -t $file_base_name $file"]
		},
		{   "name": "ldoc: Project",
			"shell": true,
			"cmd": ["ldoc -d $project_path/doc -f markdown -t $project_base_name $project_path/src/"]
		}
	]
}

Source: https://love2d.org/wiki/Sublime_Text