gregor.hoch wrote:This is great! I have been waiting for this one! Are you going to sent to pull request to the main repro?
EDIT: Any chance to get the changes from this pull request in ST3?
https://github.com/SublimeText/LaTeXTools/pull/120
commit 8fef9bdbbf2ce4de92f2078c558ed3b19775c068
Author: Frazer McLean <frazergmclean@gmail.com>
Date: Tue Feb 19 00:13:05 2013 +0000
Incorrect str type in jumpToPDF
diff --git a/jumpToPDF.py b/jumpToPDF.py
index 4af93a0..d5ec960 100644
--- a/jumpToPDF.py
+++ b/jumpToPDF.py
@@ -85,7 +85,7 @@ class JumpToPdfCommand(sublime_plugin.TextCommand):
tasks = subprocess.Popen(["tasklist"], stdout=subprocess.PIPE,
startupinfo=startupinfo).communicate()[0]
# Popen returns a byte stream, i.e. a single line. So test simply:
- if "SumatraPDF.exe" not in tasks:
+ if "SumatraPDF.exe" not in str(tasks, encoding='utf8' ):
print("Sumatra not running, launch it")
self.view.window().run_command("view_pdf")
time.sleep(0.5) # wait 1/2 seconds so Sumatra comes up
Got request for DDE!
Traceback (most recent call last):
File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 412, in run_
return self.run(edit, **args)
File "C:\Users\frazer\AppData\Roaming\Sublime Text 3\Packages\LaTeXTools3\DDEExecute.py", line 37, in run
pData = c_char_p(command)
TypeError: bytes or integer address expected instead of str instanceRazerM wrote:I noticed another error, which isn't preventing compilation or launching Sumatra, but it is appearing in the console.
Appears to be a bug from the switch to Python 3, but I don't know enough about Python yet to fix it.
phyllisstein wrote:RazerM wrote:I noticed another error, which isn't preventing compilation or launching Sumatra, but it is appearing in the console.
Appears to be a bug from the switch to Python 3, but I don't know enough about Python yet to fix it.
I'm not terrific with ctypes either, but try the commit from just now and see if that helps. You should just need to replace DDEExecute.py. Sorry I can't test it myself, but I don't have access to a Windows machine right now.
Return to Plugin Announcements
Users browsing this forum: No registered users and 16 guests