Thursday, 15 January 2015

powershell - Sublime Text build system generates [WinError 6] The handle is invalid error -


I am trying to create a build system for render and am using escidoco-formatted documents.

AsciiDoc ["ASCIdactor", "$ file"], "selector": "source.asciidoc"}

  {"Cmd" P> When I execute build  Ctrl  +  B , I get an error:  
  [WinError 6 ] Handle is invalid [CMD: ['Asciidoctor', 'C: \\ User \\ XXXX \\ Desktop \ Hello \ hello.'] [DIR: C: \ Users \ x XXXX \ Desktop \ Hello] [Path: C: \ Tools \ Ruby193 \ bin \ asciidoctor] [End]  

I have successfully installed Windows Command Processor, PowerShef, and Ruby Prong Through am able to present the document.

This script script leads to the same error:

  {"cmd": ["asciidoctor", "$ file"], "path": " C: \\ tools \\ ruby193 \  \ "asciidoctor", "shell": true, "selector": "source.asciidoc"}  

what am I missing

found a solution:.

Last reply:

Showka by Sun Oct 02, 2011 at 7:34 pm Thank you very much, you get rid of this problem by launching Sublime Text out of a command prompt.

Signal to run I tried to set the PYTHONPATH , but it will not fix it. In my command prompt there is a lot of environmental variables, I'm sure this is going to increase further. I will create a second batch file to launch the launch with just some other programs added in the path.

...

UPDATE: I found the issue And now it can run from my command prompt.

Here's how my batch file looks:

Code: Select All SET PYTHONPATH = START "Sublime Text 2" / B "C: \ Program Files \ Sublime Text 2 \ sublime_text.exe "% *

The / b option was messing it up for some reason, usually by waiting for the program I started to exit command There is a need to keep the prompts, but for some reason, it worked by unnecessarily reducing the option to Sublime.


No comments:

Post a Comment