esteinberg / plantuml4idea

Intellij IDEA plugin for PlantUML
Apache License 2.0
618 stars 111 forks source link

PUML Config variables are not resolved when syntax check is run #414

Closed Ausoj closed 4 months ago

Ausoj commented 4 months ago

A syntax error occurs, when trying to use variables, that were defined in the puml config (within the PlantUML Settings in Intellij).

Steps to reproduce:

  1. Add the following into your PlantUML config field in the plugin settings. !define GreenArrow -[#green]->

  2. Create a new puml (scratch) file:

    
    @startuml
    class c1
    class c2

c1 GreenArrow c2

@enduml


**Result:** 
Syntax highlighting complains, but the live preview works. 

![Screenshot from 2024-02-21 11-38-29](https://github.com/esteinberg/plantuml4idea/assets/23554726/99da949d-f3e5-496d-afe3-9d273641951a)

I'd not see this as an big issue, but the syntax checking isn't working at all in Intellij, after the "broken" line of code.
Ausoj commented 4 months ago

Works like a charm! Screenshot from 2024-02-21 14-00-26

Thank you very much @krasa! :sparkling_heart: