Skip to content

Commit

Permalink
do not warn on failed macro expansion
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszsamson committed Nov 13, 2024
1 parent b1fa0e1 commit dc23efb
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/elixir_sense/core/compiler.ex
Original file line number Diff line number Diff line change
Expand Up @@ -1897,11 +1897,7 @@ defmodule ElixirSense.Core.Compiler do
callback.(meta, args)
catch
# If expanding the macro fails, we just give up.
kind, payload ->
Logger.warning(
"Unable to expand macro #{inspect(module)}.#{fun}/#{length(args)}: #{Exception.format(kind, payload, __STACKTRACE__)}"
)

_kind, _payload ->
# look for cursor in args
{_ast, state, _env} = expand(args, state, env)

Expand Down

0 comments on commit dc23efb

Please sign in to comment.