崇高的文本2的构建工具 - 什么也没有发生 [英] Sublime text 2 build tools - nothing happens
问题描述
我试图用崇高的文本2写卢阿\\电晕程序,但我面临的一个问题。
当我添加一个构建工具有这样一段文字:
{
CMD:C:/ Program Files文件/科罗纳实验室/科罗纳SDK /科罗纳Simulator.exe,main.lua]
}
在 F7
或 CTRL + B
或在菜单中建立按钮 - 只有空白的小窗口显示和建设文本显示在窗口的底部 - 没有别的发生(甚至当我尝试检查其他可用的构建工具)
我甚至试图把其它命令CMD - 这个空白字段的崇高尚属空白的底部,该模拟器没有出现(如果我在命令行C写的:/ Program Files文件/科罗纳实验室/科罗纳SDK /科罗纳Simulator.exe模拟器开始)。
更新
我已经打开控制台,并有一定的日志:
运行C:/ Program Files文件/科罗纳实验室/科罗纳SDK /科罗纳Simulator.exe main.lua
回溯(最近通话最后一个):
文件\\ sublime_plugin.py,337线,在RUN_
文件\\ exec.py,154线,在运行
文件\\ exec.py45行,在__init__
UNI codeDE codeError:ASCIIcodeC可以在位置7未去code字节0xc4:序数不在范围内(128)
试试这个:<一href=\"http://www.sublimetext.com/forum/viewtopic.php?f=3&t=8512\">http://www.sublimetext.com/forum/viewtopic.php?f=3&t=8512
在包/默认/ exec.py
第45行
替换为:
proc_env [K] = os.path.expandvars(V).EN code(sys.getfilesystemencoding())
使用:
<$p$p><$c$c>os.path.expandvars(v.de$c$c(sys.getfilesystemencoding())).en$c$c(sys.getfilesystemencoding())I've tried to use sublime text 2 to write lua\corona program, but I've faced with a problem.
When i add a build tool with such a text:
{
"cmd": ["C:/Program Files/Corona Labs/Corona SDK/Corona Simulator.exe", "main.lua"]
}
After F7
or ctrl+b
or build button in menu - only blank small window shows and "Building" text appears on bottom of the window - nothing else happen (even when I try to check other available build tools).
I even try to put other commands in "cmd" - this blank field on the bottom of sublime still blank and this simulator doesn't appear (if I write in command line "C:/Program Files/Corona Labs/Corona SDK/Corona Simulator.exe" simulator starts).
UPDATE
I've opened console and there is some log:
Running C:/Program Files/Corona Labs/Corona SDK/Corona Simulator.exe main.lua
Traceback (most recent call last):
File ".\sublime_plugin.py", line 337, in run_
File ".\exec.py", line 154, in run
File ".\exec.py", line 45, in __init__
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc4 in position 7: ordinal not in range(128)
Try this : http://www.sublimetext.com/forum/viewtopic.php?f=3&t=8512
In Packages/Default/exec.py
at line 45
Replace :
proc_env[k] = os.path.expandvars(v).encode(sys.getfilesystemencoding())
With :
os.path.expandvars(v.decode(sys.getfilesystemencoding())).encode(sys.getfilesystemencoding())
这篇关于崇高的文本2的构建工具 - 什么也没有发生的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!