Ash FrameworkAF
Ash Framework3y ago
9 replies
Alan Heywood

Adding a Notifier breaks elixir_sense autocompletions

I have recently added an ash Notifier to my project, and it has caused the elixir_sense plugin to throw an error when trying to show documentation. It is attempting to call .sections() on my notifier, but there is no spark DSL for notifiers.

[Error - 11:47:38] Request textDocument/completion failed.
  Message: an exception was raised:
    ** (UndefinedFunctionError) function Ht.SectionAuthorisedRole.Notifier.sections/0 is undefined or private
        (heretask 0.1.0) Ht.SectionAuthorisedRole.Notifier.sections()
        (elixir 1.14.4) lib/enum.ex:4249: Enum.flat_map_list/2
        (elixir 1.14.4) lib/enum.ex:4250: Enum.flat_map_list/2
        (spark 1.1.8) lib/spark/elixir_sense/plugin.ex:538: Spark.ElixirSense.Plugin.get_constructors/4
        (spark 1.1.8) lib/spark/elixir_sense/plugin.ex:106: Spark.ElixirSense.Plugin.get_suggestions/4
        (elixir_sense 2.0.0) lib/elixir_sense/providers/suggestion/generic_reducer.ex:48: ElixirSense.Providers.Suggestion.GenericReducer.reduce/6
        (elixir 1.14.4) lib/enum.ex:4751: Enumerable.List.reduce/3
        (elixir 1.14.4) lib/enum.ex:2514: Enum.reduce_while/3
  Code: -32000
Was this page helpful?