-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
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
Error when Module Attribute in Docstring #289
Comments
@aj-foster That's not a common thing to do. Please send a PR fixing that. You would need to expand |
@lukaszsamson See #291 for a PR that solves the immediate issue (the I would love to expand We are currently discussing this in the context of module attributes, but will this same issue occur for any non-primitive interpolation (ex. a function or macro call)? I'm concerned about the way doc ASTs are evaluated out of context. Finally, I'm confused about the cause of this issue: did a recent change introduce it? I've certainly used module attributes in docstrings before, with accurate intellisense in VS Code. |
There is a plan to add
Most of those non standard AST branches are simply omitted. In particular everything in
Yes, this is an unexpected side effect of #288 |
Hello there 👋🏼
When a module attribute is used in a docstring,
elixir_sense
appears to raise an error while building metadata for function definitions. A reduced test case is available here. Anecdotally, this issue affects an entire project when any function utilizes module attributes in this way.The error:
The text was updated successfully, but these errors were encountered: