jvantuyl / sublime_diagram_plugin

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

No diagrams overlap selections. #38

Closed tooh closed 6 years ago

tooh commented 9 years ago

Followed the instructions but no diagram is produced.

Environment OSX El Capitan

Steps to reproduce

  1. select plantuml text in editor
  2. press CMD-M

I get the error message:

No diagrams overlap selections

Is triggered with this code

class DisplayDiagrams(TextCommand):
    def run(self, edit):
        print("Processing diagrams in %r..." % self.view)
        if not process(self.view):
            error_message("No diagrams overlap selections.\n\n" \
                "Nothing to process.")
Rusty-UX commented 8 years ago

Seeing this as well...

ivhong commented 8 years ago

@startuml @enduml

jvantuyl commented 8 years ago

What do you mean by "select plantuml text in editor"?

Are you dragging a selection over it, just focusing the tab, or placing a cursor inside of it?

It should work if you drag a selection. Anything else doesn't work unless you have @startuml / @enduml around it.

aubryfr commented 8 years ago

If anybody else encounters this, try to restart Sublime Text. It solved the problem for me, it might as easy as that for you too ! I had the problem right after installing the package, but a restart made it work just fine.

@jvantuyl, for your information :

And while I'm here, thanks for this very useful plugin ! :+1:

jvantuyl commented 6 years ago

Closing this. Can’t reproduce, don’t think it applies any more.