Home Download Buy Blog Forum Support

[SOLVED] Build system on Windows

[SOLVED] Build system on Windows

Postby jice on Fri Nov 02, 2012 2:47 pm

With vanilla SublimeText 2.0.1, I can't run any build system on Windows XP. I keep getting this error :
Error 6 this handle is invalid

To fix it, I added the parameter stdin=subprocess.PIPE to the subprocess.Popen call in Data/Packages/Default/exec.py :

self.proc = subprocess.Popen(arg_list,
stdout=subprocess.PIPE, stderr=subprocess.PIPE,
stdin=subprocess.PIPE,
startupinfo=startupinfo,
env=proc_env,
shell=shell)

You also need to specify that your ouput uses cp1252. This is for example a makefile-less quick and dirty C++ build system :
{
"cmd": ["g++.exe src/*.cpp"],
"shell":true,
"working_dir":"${project_path:${folder}}",
"file_regex":"^(...*?):([0-9]*)",
"encoding": "cp1252"
}

Hope this helps.. ;)
jice
 
Posts: 1
Joined: Fri Nov 02, 2012 2:41 pm

Re: [SOLVED] Build system on Windows

Postby rpardee on Fri Jan 18, 2013 9:35 pm

Helped me--thanks so much!

I think there was a KB update/hotfix or something that triggered the problem for me--it was working just fine until corporate pushed out a bunch of windows/office/.net hotfixes.
rpardee
 
Posts: 18
Joined: Wed Jul 11, 2012 8:51 pm

Re: [SOLVED] Build system on Windows

Postby rykus0 on Wed Apr 03, 2013 3:12 pm

Just wanted to say that the first half of this solved the problem for me (I didn't need to change the encoding).

I had the problem while trying to run an Ant build on Windows XP.

Thanks for the help!!!
rykus0
 
Posts: 1
Joined: Wed Apr 03, 2013 3:10 pm


Return to Technical Support

Who is online

Users browsing this forum: Google [Bot] and 17 guests