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.

Server render: !include does not work for local files

See original GitHub issue

Hi,

I love the extension. Thank you a lot for amazing work! However there is one problem 😞 ~!include does not work for local files and returns an error:

Error found in diagram hello-world cannot include “style.puml” (@ Diagram Line 1, File Line 3) “!include “style.puml”” (Error)

For the sake of simplicity I’ve created two dummy files:

hello-world.puml

@startuml hello-world
!include "style.puml"

Alice -> Bob : Hello world

@enduml

style.puml

skinparam {
  DefaultFontName "Fira Mono"

  monochrome true
  shadowing false
}

Both files are located in the same directory and the directory is configured as diagramsRoot.

Configuration:

{
    "plantuml.server": "http://plantuml.test",
    "plantuml.render": "PlantUMLServer",
    "plantuml.diagramsRoot": "docs/diagrams/src",
    "plantuml.exportOutDir": "docs/diagrams/out"
}

Note: "http://plantuml.test" is simply locally running PlantUML Server (in Docker container).

For some reason the problem does not exist for remote files, e.g. !include https://raw.githubusercontent.com/RicardoNiepel/C4-PlantUML/release/1-0/C4_Container.puml works perfectly fine.

I have tried absolute and relative file path. Nothing works 😢

Extension information copied from VSCode:

Name: PlantUML
Id: jebbs.plantuml
Description: Rich PlantUML support for Visual Studio Code.
Version: 2.12.0
Publisher: jebbs

If you need any details, just let me know. Thank you a lot!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
qjebbscommented, Nov 7, 2019

Things need to be corrected in my former post: It’s 414 URI Too Long, not 413.

POST support will likely solve most problems. But a lot if things need to be done, especially an include processor who behaves exactly like the plantuml.jar.

1reaction
qjebbscommented, Nov 8, 2019

Please update to latest.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why is my .css file not fully rendering on server, but working ...
Essentially, my style.css file is only partially rendering on the live server, despite working properly in my local development environment.
Read more >
How to run things locally – three.js docs
Navigate to http://localhost:3000/ and it will serve static files from the directory you chose. IIS. If you are using Microsoft IIS as web...
Read more >
include - Manual - PHP
The include construct will emit an E_WARNING if it cannot find a file; this is different behavior from require, which will emit an...
Read more >
Server-Side Rendering (SSR) - Vue.js
Server -rendered markup doesn't need to wait until all JavaScript has been downloaded and executed to be ... Run npm install vue; Create...
Read more >
...It Works Fine Locally | Render
Booting your application: Make sure you start your app in production mode and are not using a development server. If you're having trouble...
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