-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
got plantuml erro when include C4 on vscode #190
Comments
Hi @elderbig, C4.puml doesn't use 'RELATIVE_INCLUDE' at all (only the dependent C4_.....) therefore I think it should have no relevance and you can reproduce it with other (non C4_... related) *.puml files too. You should set the variable in code via %set_variable_value("RELATIVE_INCLUDE", ".") I tried it locally on my machine with VS Code (v 1.60.1) and following code and this was working @startuml
%set_variable_value("RELATIVE_INCLUDE", ".")
!include C4_Component.puml
C4VersionDetails()
@enduml BR Helmut |
Hi @elderbig maybe I found a better solution: settings.json
@startuml
' -DRELATIVE_INCLUDE="." is defined via settings
' %set_variable_value("RELATIVE_INCLUDE", ".")
!include C4_Component.puml
C4VersionDetails()
@enduml BR Helmut |
Thank U, I resolved this in another way,I download plantuml.jar ,and run plantuml.jar like this:
then plantuml.jar listen port 8080 by default.then set plantuml-plugin in vscode, let plantuml-plugin request to local plantuml server(remote service https://plantuml.com/ can be use too) instead of plantuml-plugin its self,now C4 is a stdlib in plantuml and we can use it away. |
I pulled C4 from
https://github.com/plantuml-stdlib/C4-PlantUML
and copy C4_*.puml into local folder, where is my vscode workspace,then I edit plantuml like up,so I got erro:
vscode version
vscode plantuml plugin version = v2.14.0
The text was updated successfully, but these errors were encountered: