Commits

abudden committed 1912900

Attempt to work round bug 3905 in python: untested at present. #199.

Comments (0)

Files changed (2)

doc/TagHighlight.txt

 ==============================================================================
 7. TagHighlight History                *TagHighlight-history*               {{{1
 
+2.0.9: 30th July 2011      : Attempt to work around python bug 3905 (issue
+                             with subprocess when called from GUI
+                             application).
+
 2.0.8: 30th July 2011      : Fixed erroneous function call.
 
 2.0.7: 30th July 2011      : Bug fix for exception handling.

plugin/TagHighlight/module/ctags_interface.py

 
     #subprocess.call(" ".join(ctags_cmd), shell = (os.name != 'nt'))
     # shell=True stops the command window popping up
-    process = subprocess.Popen(ctags_cmd, stderr=subprocess.PIPE, stdout=subprocess.PIPE)#, shell=True)
+    # We don't use stdin, but have to define it in order
+    # to get round python bug 3905
+    # http://bugs.python.org/issue3905
+    process = subprocess.Popen(ctags_cmd,
+            stdin=subprocess.PIPE,
+            stderr=subprocess.PIPE,
+            stdout=subprocess.PIPE
+            )#, shell=True)
     (sout, serr) = process.communicate()
 
     tagFile = open(os.path.join(options['ctags_file_dir'], options['ctags_file']), 'r')
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.