michfield / sublime-strapdown-preview

Markdown preview plugin for Sublime Text 3 using Strapdown.js. No server-side processing is required as Strapdown.js is purely browser-based Markdown converter using Twitter Bootstrap for theming support.
32 stars 9 forks source link

Preview in Sublime Text fails in ST3 #2

Closed derantell closed 11 years ago

derantell commented 11 years ago

Running the command Strapdown.js Markdown: Preview in Sublime Text in ST3 build 3021 fails with the following error:

Traceback (most recent call last):
  File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 525, in run_
    return self.run(edit, **args)
  File "C:\Users\david\AppData\Roaming\Sublime Text 3\Installed Packages\Strapdown Markdown Preview.sublime-package\Strapdown Markdown Preview.py", line 106, in run
TypeError: begin_edit() missing 2 required positional arguments: 'edit_token' and 'cmd'
Sawtaytoes commented 11 years ago

I'm getting a different error but the same result (preview doesn't work):

desktop/init.py in %appdata%\Sublime Text 3\Installed Packages\Strapdown.js Markdown Preview.sublime-package is not utf-8 encoded, unable to load plugin

leafy7382 commented 11 years ago

Same here, so I corrected the encoding issue with iconv and another error pops up

reloading plugin Strapdown.js Markdown Preview.Strapdown Markdown Preview Traceback (most recent call last): File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 73, in reload_plugin m = importlib.import_module(modulename) File "X/importlib/init.py", line 88, in import_module File "", line 1577, in _gcd_import File "", line 1558, in _find_and_load File "", line 1505, in _find_and_load_unlocked File "", line 313, in _call_with_frames_removed File "", line 1577, in _gcd_import File "", line 1558, in _find_and_load File "", line 1505, in _find_and_load_unlocked File "", line 313, in _call_with_frames_removed File "", line 1577, in _gcd_import File "", line 1558, in _find_and_load File "", line 1522, in _find_and_load_unlocked ImportError: No module named 'Strapdown'

michfield commented 11 years ago

This should be the same as issue #1. The solution is to rename a package. Btw, I can't reproduce that error on Windows or Linux.

michfield commented 11 years ago

I finally did reproduced an error. I could change the name of the package or I can wait for Package Manager to fix this error (sanitize names).

sergeevabc commented 11 years ago

Package Manager version fails. Gitcloned from here. Preview in browser works. Preview in ST3 doesn't work.

Traceback (most recent call last):
  File "C:\Portable\Sublime3\sublime_plugin.py", line 543, in run_
    return self.run(edit, **args)
  File "C:\Portable\Sublime3\Data\Packages\sublime-strapdown-preview\Strapdown Markdown Preview.py", line 106, in run
    new_edit = new_view.begin_edit()
TypeError: begin_edit() missing 2 required positional arguments: 'edit_token' and 'cmd'
michfield commented 11 years ago

Preview in ST3 works now. Fixed in https://github.com/michfield/sublime-strapdown-preview/commit/3b84a1d0ac1cea3277126a194d3f7b63ef7d66db