Skip to content
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

"invalid assumptions on how elixir AST looks like" #16

Open
thomasdziedzic-calmwave opened this issue Jun 30, 2023 · 2 comments
Open

"invalid assumptions on how elixir AST looks like" #16

thomasdziedzic-calmwave opened this issue Jun 30, 2023 · 2 comments

Comments

@thomasdziedzic-calmwave

Background: elixir-lsp/elixir-ls#928 (comment)

I opened a bug with elixirls because I was getting a warning from vscode:

(ArgumentError) interpolation is not supported with the ~M sigil

Stacktrace:
  │ (shorter_maps 2.2.5) expanding macro: ShorterMaps.sigil_M/2

When using ~M in function heads even though the code compiled correctly.

It seems like one of the maintainers of ElixirLS thinks this is because:

defmacro sigil_m({:<<>>, [line: line], [string]}, modifiers) do
ElixirLS changes decault compiler options to get column metadata on errors. This library assumes there is no :column in metaadata.

@thomasdziedzic-calmwave
Copy link
Author

found a fix for this at boyzwj@787c344 so for now it isn't annoying me anymore, but it would be nice to have a fix for this issue in the official repo.

@astutecat
Copy link

#18 should also fix this issue, from what can tell.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants