We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug These false-positives slipped in with commit e2e8fb3, take for example
TYPE State : (idle, running); END_TYPE FUNCTION main : DINT VAR stateA : State; stateB : State; END_VAR END_FUNCTION
will report
error[E004]: State.idle: Duplicate symbol. ┌─ target/demo.st:2:14 │ 2 │ State : (idle, running); │ ^^^^ State.idle: Duplicate symbol. error[E004]: State.idle: Duplicate symbol. ┌─ target/demo.st:2:14 │ 2 │ State : (idle, running); │ ^^^^ State.idle: Duplicate symbol. error[E004]: State.running: Duplicate symbol. ┌─ target/demo.st:2:20 │ 2 │ State : (idle, running); │ ^^^^^^^ State.running: Duplicate symbol. error[E004]: State.running: Duplicate symbol. ┌─ target/demo.st:2:20 │ 2 │ State : (idle, running); │ ^^^^^^^ State.running: Duplicate symbol.
which happens because get_enum_variants_in_pou will be called twice in the given example for the State enum, which should only happen once
get_enum_variants_in_pou
State
Expected behavior No duplicate error
Additional context Will be much easier to implement once we refactor how enums are stored in the index
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Describe the bug
These false-positives slipped in with commit e2e8fb3, take for example
will report
which happens because
get_enum_variants_in_pou
will be called twice in the given example for theState
enum, which should only happen onceExpected behavior
No duplicate error
Additional context
Will be much easier to implement once we refactor how enums are stored in the index
The text was updated successfully, but these errors were encountered: