You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey! Thanks for putting in the effort to make a language server for rego! Really cool! this issue in the opa repo didn't have me hopeful 😅 open-policy-agent/opa#4041 haha.
I installed regols and am using it but I think I ran into a bug. I have a line in one of my policies like this:
default allow :=false
But the language server marks it as a diagnostic error with the message: default rules must use = operator (not := operator)
However, in the example here the OPA people clearly use a := to define a default variable. Can this be fixed? Or am I misunderstanding something? Also happy to submit a PR if you point me in the right direction! I've never done any work on an LSP before so I'm kinda out of my depth.
The text was updated successfully, but these errors were encountered:
Hey! Thanks for putting in the effort to make a language server for rego! Really cool! this issue in the opa repo didn't have me hopeful 😅 open-policy-agent/opa#4041 haha.
I installed
regols
and am using it but I think I ran into a bug. I have a line in one of my policies like this:But the language server marks it as a diagnostic error with the message:
default rules must use = operator (not := operator)
However, in the example here the OPA people clearly use a
:=
to define a default variable. Can this be fixed? Or am I misunderstanding something? Also happy to submit a PR if you point me in the right direction! I've never done any work on an LSP before so I'm kinda out of my depth.The text was updated successfully, but these errors were encountered: