LoginSignup
3
3

Markdown Preview EnhancedでPlantUMLが表示されなくなった件の対応

Posted at

問題点

VSCodeの拡張機能「PlantUML」を使ってUMLを作成し、「Markdown Preview Enhanced」で表示させていたのですが、急に以下のようなエラーが表示され、見れなくなりました。

Error: plantuml.jar file not found: ""

Please download plantuml.jar from https://plantuml.com/download.  


If you are using VSCode, then please set the setting "markdown-preview-enhanced.plantumlJarPath" to the absolute path of plantuml.jar file. 

If you don't want to use plantuml.jar, then you can use the online plantuml server 
by setting the setting "markdown-preview-enhanced.plantumlServer" to the URL of the online plantuml server, for example: https://kroki.io/plantuml/svg/

原因

今までMarkdown Preview Enhancedの拡張機能の中にplantuml.jarが含まれていたが、アップデートでplantuml.jarが含まれなくなったため。

対策

対策1(ローカル環境で解決)

  • インターネット接続できない場合
  • 機密データを取り扱う可能性がある場合

https://plantuml.com/downloadからjarをダウンロードし、VSCodeの[設定]-[拡張機能]-[Markdown Preview Enhanced]-[Plantuml Jar Path]でjarのパスを設定。

対策2(オンラインで解決)

または、VSCodeの[設定]-[拡張機能]-[Markdown Preview Enhanced]-[Plantuml Server]で以下を設定
https://www.plantuml.com/plantuml/svg/
または
https://kroki.io/plantuml/svg/

参考

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3