Comments (7)
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.
Does this error persist? I don't have any other report from thousand of users.
from vscode-yuml.
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.
Iam getting the same error
Active editor doesn't show a yUML document
from vscode-yuml.
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.
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.
Possibly fixed in 3.2 (please confirm)
from vscode-yuml.
Related Issues (20)
- No preview HOT 3
- Dark color theme for sequence diagram is wrong HOT 3
- Same rendering as Yuml.me HOT 1
- Chinese character shows out of the box when type is sequence HOT 1
- snippets not working in markdown HOT 2
- Make TopBar optional
- Wiki copy error of the example code from package diagram HOT 1
- Object node is showed incorrectly HOT 4
- Need help with YUML and Mediawiki extension HOT 1
- Extension issue HOT 1
- Feature: override theme background color on preview
- Editor window becomes unresponsive HOT 3
- Extension causes high cpu load HOT 2
- Allow the preview window to Zoom In and Zoom Out
- Allow to save diagrams as an image HOT 3
- Can not use yuml in vscode 1.60.2 HOT 1
- Preview is not consistent with the official website
- Add possibility to export generated yUML HOT 2
- Export .yuml file to other formats like .png, jpg, pdf,...
- store svg in dark and light mode variants
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-yuml.