We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b8df82 commit ea2913eCopy full SHA for ea2913e
apps/debug_adapter/lib/debug_adapter/server.ex
@@ -2711,6 +2711,14 @@ defmodule ElixirLS.DebugAdapter.Server do
2711
# prefer metadata modules if valid and loaded
2712
[metadata_module]
2713
2714
+ metadata_module != nil and env.protocol == nil ->
2715
+ # In Elixir 1.19+, modules are not automatically loaded after compilation
2716
+ # Try to load the metadata module and use it if successful
2717
+ case Code.ensure_loaded(metadata_module) do
2718
+ {:module, ^metadata_module} -> [metadata_module]
2719
+ {:error, _} -> loaded_modules_from_path
2720
+ end
2721
+
2722
env.protocol != nil ->
2723
{protocol, implementations} = env.protocol
2724
0 commit comments