@jfcherng First of all, thanks for the feedback about my posted issue… yeah, I’ve been aware about texlive for years although I’ve been a happy user of the more lightweight miktex for a while and I’d prefer using that backend instead
… Maybe it’s just me being stubborn but I was forced to use texlive for the sake of LatexTools hapiness I wouldn’t be using that package in the first place 
That said, right now I was debugging a bit the package and looking at the whole function wrappers
built on top of subprocess and they’re really ugly/messy… on the other hand, ST3 still forcing to use the good archaic python 3.3.6 so I don’t blame them for having such an overcomplex suite of functions on top of it. It’d be awesome if someday ST3 would upgrade python version (already asked for it over the last years so I’m not very optimistic this will happen anytime soon though
)
Anyway, the error is this:
Error finding Ghostscript version for d:\software\miktex\miktex29\miktex\bin\x64\mgs.EXE
Traceback (most recent call last):
File “D:\sources\personal\sublimetext3\Data\Packages\LaTeXTools\st_preview\preview_utils.py”, line 100, in _update_gs_version
raw_version = check_output([_GS_COMMAND, ‘-version’], shell=True)
File “D:\sources\personal\sublimetext3\Data\Packages\LaTeXTools\latextools_utils\external_command.py”, line 362, in check_output
show_window=show_window
File “D:\sources\personal\sublimetext3\Data\Packages\LaTeXTools\latextools_utils\external_command.py”, line 281, in execute_command
show_window=show_window
File “D:\sources\personal\sublimetext3\Data\Packages\LaTeXTools\latextools_utils\external_command.py”, line 232, in external_command
cwd=cwd
File “./python3.3/subprocess.py”, line 784, in init
File “./python3.3/subprocess.py”, line 980, in _get_handles
File “./python3.3/subprocess.py”, line 1030, in _make_inheritable
OSError: [WinError 6] The handle is invalid
It happens when trying to capture the output of mgs -version
, which runs ok in my shell.
The trackeback happens here… which will end calling Popen here , I’ve seen that error in the past and usually was because stdin
wasn’t None, in this case is None so I’m still trying to figure out what’s wrong
. Anyway, maybe this is the underlying reason why the check_system command is failing
@UltraInstinct05 Yeah, I’ve used Texstudio
quite a lot and it’s quite nice… but I’d really love to start using ST3 so I don’t need context switching while coding&editing anymore… That snippet of yours is a good starting point, I’ll give it a shot… I’ve downloaded the lightweight sumatra pdf viewer which may be a better viewer than AcrobatReader… Actually, my first idea was using TexWorks’s pdf viewer but maybe that’s just a builtin that can’t be used as a external tool.
Anyway guys, thanks for the feedback/ideas… If you’ve got other ideas please let me know, let’s debug a bit more 