Giter Club home page Giter Club logo

Comments (7)

rylphs avatar rylphs commented on June 8, 2024

Another thing I've noticed is that when you try to preview the diagram it splits the window and shows in the right window the error message above as I said. But if you, in the right window, open the source yuml file and call the preview command again a error is shown in a popup window:

Unable to open '/vscode-yuml': Cannot read property 'document' of undefined.

and a SVG file with the diagram is generated.

In the first scenario (try to call the command in the left window) this message is not showed and no SVG is generated.

from vscode-yuml.

jaime-olivares avatar jaime-olivares commented on June 8, 2024

Does this error persist? I don't have any other report from thousand of users.

from vscode-yuml.

bparlan avatar bparlan commented on June 8, 2024

But if you, in the right window, open the source yuml file and call the preview command again a error is shown in a popup window:

I experience this with quite different version. My yuml file was on right windows while everything else was on left. So when I run "View yUML Diagram", it gave me only the popup error with no diagram or new window:

Unable to open '/vscode-yuml': Cannot read property 'document' of undefined.

When I merge right and left windows and run "View yUML Diagram" on single window screen, it creates new window to right, draws diagram, but still i recieve same popup error.

from vscode-yuml.

Angusoft-India avatar Angusoft-India commented on June 8, 2024

Iam getting the same error
Active editor doesn't show a yUML document

from vscode-yuml.

AlessioMorale avatar AlessioMorale commented on June 8, 2024

I had the same issue.
After the removal of // {generate:true} the diagram is shown again.
Once it is shown again you can put back the macro inside the yuml file.

from vscode-yuml.

colin-young avatar colin-young commented on June 8, 2024

Here's what I've noticed (Visual Studio Code 1.30.2 on Windows 10):

  • if I just let the preview auto-generate, as soon as the editor with the .yml file loses focus, the error appears (that includes attempting to click on the horizontal scrollbar in a hopeless attempt to see what's to the right)
  • if I click the preview icon, I am able to click in the preview and scroll around
  • if I select another window, e.g. the terminal, the error appears in the preview window

Removing // {generate:true} didn't have any effect for me.

My guess is that something in VS Code changed that is now more aggressively notifying the preview window of what document is current. Would it be possible to make the preview track the document it was opened from instead of trying to preview whatever currently has focus? The markdown preview window appears to work that way and has no trouble if I change the current editor to a non-markdown document (i.e. it continues to display whichever document I was previewing).

from vscode-yuml.

jaime-olivares avatar jaime-olivares commented on June 8, 2024

Possibly fixed in 3.2 (please confirm)

from vscode-yuml.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.