You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Code.compiler_options(tracers: [CallerTracer])defmoduleCallerTracerdodeftrace({:imported_function,meta,module,name,arity},env)doIO.puts"#{env.file}:#{meta[:line]}#{inspect(module)}.#{name}/#{arity}":okenddeftrace(_,_)do:okendendCode.compile_string(~S"""defmodule A do def a() do endenddefmodule B do import A def b() do "#{a()}" endend""")
running it outputs:
% elixir run.exs
nofile:10 A.a/0
nofile:10 A.a/0
Changing "#{a()}" to a() causes just one event to be emitted.
Environment
Current behavior
Given this script:
running it outputs:
Changing
"#{a()}"
toa()
causes just one event to be emitted.Similarly, when changing the trace to:
it outputs two events too:
(note without line information this time)
I assume this is because how string interpolation works under the hood but I thought I'd mention this anyway.
Expected behavior
One trace event.
The text was updated successfully, but these errors were encountered: