'variable not used' inspection in Haml not correct


In a Rails Haml file I sometimes get incorrect warnings that a variable is not used anymore in the scope, the variable name is dimmed. But as the example file shows, it is used later on.

I did not see this behaviour in previous versions.

IntelliJ IDEA 2018.3 (Ultimate Edition)
Build #IU-183.4284.148, built on November 21, 2018
Licensed to Chris Tammes
JRE: 1.8.0_152-release-1343-b15 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.14.1

Ruby plugin v2018.3.20181121





Hello Chris,

I've checked it in IDEA 2018.3.1 RC2 (Ruby plugin v2018.3.20181127) and it seems to work fine. Would it be possible to provide a project sample for reproduce?


Hi Olga,

I use IDEA 2018.3.1 and Ruby plugin v2018.3.20181204 now, but still the same behaviour. I will try the same in a sample project or decide to ignore it.



Hi Chris,

a project sample would be very helpful, thank you!


Please sign in to leave a comment.