question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Previews shows "No valid diagram found here!" all the time (startup issue)

See original GitHub issue

Here is what I found after some lookup in all logs (found in Log (Window)):

[2018-08-22 08:22:11.446] [renderer1] [error] Invalid arguments: Error: Invalid arguments
	at new e (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:474:418)
	at Symbol.provideDocumentSymbols (/Users/huafu/.vscode/extensions/jkeys089.plantuml-1.8.1/out/src/symboler.js:46:90)
	at /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:732:493
	at /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:110:323
	at new n.Class.derive._oncancel (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:84:776)
	at Object.t.asWinJsPromise (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:110:286)
	at e.provideDocumentSymbols (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:732:447)
	at /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:747:682
	at e._withAdapter (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:747:177)
	at e.$provideDocumentSymbols (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:747:644)
	at e._doInvokeHandler (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:671:983)
	at e._invokeHandler (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:671:701)
	at e._receiveRequest (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:670:767)
	at e._receiveOneMessage (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:670:536)
	at /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:669:452
	at /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:672:575
	at /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:96:903
	at e.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:98:218)
	at a (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:162:713)
	at Socket._socketDataListener (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:162:932)
	at emitOne (events.js:116:13)
	at Socket.emit (events.js:211:7)
	at addChunk (_stream_readable.js:263:12)
	at readableAddChunk (_stream_readable.js:250:11)
	at Socket.Readable.push (_stream_readable.js:208:10)
	at Pipe.onread (net.js:594:20)
code --version
1.26.1
493869ee8e8a846b0855873886fc79d480d342de
x64

This happens on startupt of vscode, then any diagram shows “no valid diagram found here!” without generating any log anywhere

UPDATE: if it can help, the generate URL for current diagram does generate correct URL, but I guess it doesn’t make use of the same stuff under the hood…

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:13 (4 by maintainers)

github_iconTop GitHub Comments

15reactions
JekRockcommented, Jun 29, 2021

As mentioned here, try to put the cursor somewhere between @startuml and @enduml, and then press ALT + D to open the preview. If the cursor is outside of the @startuml @enduml block, the “No valid diagrams found here!” error occurs.

3reactions
seangwrightcommented, Mar 27, 2019

@mrseanryan This is related to the Markdown security restrictions in VSCode

https://code.visualstudio.com/docs/languages/markdown#_markdown-preview-security

I have not found a way, as of yet, to set this setting via settings.json for the user or workspace.

– Edit

You can force this dialog by running the command Markdown: Change Preview Security Settings in the omnibox.

change-markdown-security-settings

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using PlantUML in VSCode - YouTube
Sous-titré en français!!! This is a short tutorial on how to use PlantUML inside of VisualStudio Code with the PlantUML extension.
Read more >
No Beep Codes, POST, or Input to Monitor on Computer Startup
Is there no beep on startup on your computer? Here we present you some practical tips that can fix the no beep on...
Read more >
Release notes for Semi-Annual Enterprise Channel (Preview)
We fixed an issue that caused Excel to close unexpectedly when showing live preview of a chart.
Read more >
ManageEngine OpManager - Troubleshooting Guide
Can't create tables or not all the tables are created properly' error is displayed during OpManager startup. Cause. The database tables may be...
Read more >
Guide 6: Basic Business Operations for the Entrepreneur - Citi
The LLC is a separate and distinct business operation allowing it to obtain a tax ID number, open a bank account, and conduct...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found