Closed todorvlaev closed 6 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.
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.
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.
I have the same issue.
I can't reproduce this. Can either of you give me a little more information about your environment? Is that the whole error message?
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
What version of MacOS X is that @tooh?
ProductName: Mac OS X ProductVersion: 10.10.4 BuildVersion: 14E46
I had the same issue and solved it by installing GraphViz (brew install graphviz
).
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.
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
I have the same issue too.And I still can't solve it.
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)
@woshidama323 Maybe java 1.6 will be working correctly.
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
Just share some information. I also meet this problem, and find out I don't install proper java version in Ubuntu.
I fixed the bug. 1.brew install graphviz 2.restart sublime 3.select code and 'alt+d' 4.enjoy it.
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.
Hi,
I tried installing the plugin with Package Control (v2.0.0-alpha9) on Sublime Text 3 (build 3047), but get the following error:
Hope this is useful to you in case anyone else faces the same problem.