jvantuyl / sublime_diagram_plugin

A Plug-In for Sublime Text 2 / 3 To Render Diagrams In Your Source Code
Other
435 stars 116 forks source link

ST3: Unable to load diagram plugin, check console for details. #12

Closed todorvlaev closed 6 years ago

todorvlaev commented 11 years ago

Hi,

I tried installing the plugin with Package Control (v2.0.0-alpha9) on Sublime Text 3 (build 3047), but get the following error:

reloading plugin Diagram.diagram_plugin Viewer Setting: Preview Loading processor class: <class 'Diagram.diagram.plantuml.PlantUMLProcessor'> Unable to load processor: <class 'Diagram.diagram.plantuml.PlantUMLProcessor'> Traceback (most recent call last): File "diagram in /home/todor/.config/sublime-text-3/Installed Packages/Diagram.sublime-package", line 34, in setup File "diagram.plantuml in /home/todor/.config/sublime-text-3/Installed Packages/Diagram.sublime-package", line 41, in load File "diagram.plantuml in /home/todor/.config/sublime-text-3/Installed Packages/Diagram.sublime-package", line 81, in find_plantuml_jar Exception: can't find plantuml-7963.jar error: Unable to load diagram plugin, check console for details. Traceback (most recent call last): File "/opt/sublime_text/sublime_plugin.py", line 115, in reload_plugin m.plugin_loaded() File "diagram_plugin in /home/todor/.config/sublime-text-3/Installed Packages/Diagram.sublime-package", line 26, in plugin_loaded File "diagram in /home/todor/.config/sublime-text-3/Installed Packages/Diagram.sublime-package", line 41, in setup Exception: No working processors found!

Hope this is useful to you in case anyone else faces the same problem.

kstrauser commented 11 years ago

Sublime Text 3 + Package Manager installs Zip archives now instead of regular directories, like older version used to. ST3 knows how to import modules from inside those archives, but Diagram doesn't (and shouldn't) know how to reach inside that same archive to find the plantuml JAR.

As a workaround, you can extract the Diagram.sublime-package file into "Packages/Diagram" and uninstall it through Package Control. That will give you a normal directory structure that works until we can figure something else out.

namxam commented 10 years ago

Good to know. But it still does not work for me. Neither when I try to unpack the downloaded package nor when cloning the repository. The console output is as follows:

reloading Packages/Diagram/Diagram.sublime-settings
reloading plugin Diagram.diagram_plugin
error: Unable to load diagram plugin, check console for details.
Traceback (most recent call last):
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 115, in reload_plugin
    m.plugin_loaded()
  File "/Users/xxx/Library/Application Support/Sublime Text 3/Packages/Diagram/diagram_plugin.py", line 26, in plugin_loaded
    setup()
  File "diagram in /Users/xxx/Library/Application Support/Sublime Text 3/Installed Packages/Diagram.sublime-package", line 27, in setup
TypeError: Can't convert 'NoneType' object to str implicitly
found 13 files for base name Default.sublime-keymap
found 9 files for base name Main.sublime-menu
generating syntax summary
Processing diagrams in <sublime.View object at 0x104eaf6d0>...
error: No diagrams overlap selections.
alumni commented 10 years ago

Instead of using it's own plantuml jar file, the extension could use a system-wide installation of plantuml or allow the user to configure an external command for plantuml. This way, the extension could be packaged.

joewilliams commented 9 years ago

I have the same issue.

jvantuyl commented 9 years ago

I can't reproduce this. Can either of you give me a little more information about your environment? Is that the whole error message?

tooh commented 9 years ago

File "/Users/peter/Library/Application Support/Sublime Text 3/Packages/Diagram/diagram/init.py", line 49, in setup raise Exception('No working processors found!') Exception: No working processors found! SublimeLinter: debug mode: off Package Control: Skipping automatic upgrade, last run at 2015-07-01 14:53:38, next run at 2015-07-01 15:53:38 or after

jvantuyl commented 9 years ago

What version of MacOS X is that @tooh?

tooh commented 9 years ago

ProductName: Mac OS X ProductVersion: 10.10.4 BuildVersion: 14E46

jguillon commented 9 years ago

I had the same issue and solved it by installing GraphViz (brew install graphviz).

tooh commented 9 years ago

Did

brew install graphviz

It seems that this partly solves my problem. The plugin seems active now. I have another problem and will open separate issue for that.

idevz commented 8 years ago

hi,@tooh My situation is when I did brew install graphviz it doenn't work util I run brew link --overwrite graphviz after this. And Now It works

glumes commented 8 years ago

I have the same issue too.And I still can't solve it.

woshidama323 commented 7 years ago

hi, did everyone have the problem like this ? Loading processor class: <class 'sublime_diagram_plugin.diagram.plantuml.PlantUMLProcessor'> Unable to load processor: <class 'sublime_diagram_plugin.diagram.plantuml.PlantUMLProcessor'> Traceback (most recent call last): File "D:\BACKUP-APP\SublimeText\Data\Packages\sublime_diagram_plugin\diagram__init__.py", line 44, in setup proc.load() File "D:\BACKUP-APP\SublimeText\Data\Packages\sublime_diagram_plugin\diagram\plantuml.py", line 56, in load self.check_dependencies() File "D:\BACKUP-APP\SublimeText\Data\Packages\sublime_diagram_plugin\diagram\plantuml.py", line 70, in check_dependencies raise Exception("can't find Java") Exception: can't find Java error: Unable to load diagram plugin, check console for details.

ENV: windows 7-64x sublime 3

and the java is ok C:\Windows\System32>java -version java version "1.8.0_111" Java(TM) SE Runtime Environment (build 1.8.0_111-b14) Java HotSpot(TM) 64-Bit Server VM (build 25.111-b14, mixed mode)

leauge7 commented 7 years ago

@woshidama323 Maybe java 1.6 will be working correctly.

ascientist commented 7 years ago

A propersudo apt-get install graphviz solve the problem in my case (Ubuntu 16.04). I had previoulsy install the plugin via Package Control: Add repository and Package Control: Install Package

rikpires commented 7 years ago

Just share some information. I also meet this problem, and find out I don't install proper java version in Ubuntu.

excel555 commented 7 years ago

I fixed the bug. 1.brew install graphviz 2.restart sublime 3.select code and 'alt+d' 4.enjoy it.

jvantuyl commented 6 years ago

It looks like this was a missing graphviz install. I can’t really do much about this and I do list it as a dependency in the README. I think that’s as fixed as this can be right now.