Skip to content

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

Description

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions