vscode-elixir-ls icon indicating copy to clipboard operation
vscode-elixir-ls copied to clipboard

Have some problem when use debug

Open tlatforlz opened this issue 8 years ago • 9 comments

My configuration (launch.json) :

        {
            "type": "mix_task",
            "name": "start phoenix",
            "request": "launch",
            "projectDir": "${workspaceRoot}",
            "task": "phx.server"
        }

But I got a error

(Debugger) Initialization failed because an exception was raised:
    ** (MatchError) no match of right hand side value: {:error, :on_load_failure}
        int.erl:531: anonymous fn/3 in :int.load/2
        int.erl:527: :int.load/2
        (elixir) lib/enum.ex:1294: Enum."-map/2-lists^map/1-0-"/2
        (elixir) lib/enum.ex:1294: Enum."-map/2-lists^map/1-0-"/2
        (debugger) lib/debugger/server.ex:469: ElixirLS.Debugger.Server.initialize/1

Is there have other config in launch.json or config in project?

tlatforlz avatar Sep 12 '18 06:09 tlatforlz

Is any update for this :)

tlatforlz avatar Oct 19 '18 03:10 tlatforlz

I'm getting the same thing.

jefflafay avatar Oct 19 '18 05:10 jefflafay

@jefflafay haha, I give up it.

tlatforlz avatar Dec 09 '18 16:12 tlatforlz

@tlatforlz and @jefflafay that's the whole message ? The fix from https://github.com/JakeBecker/vscode-elixir-ls/issues/25 worked for me, but maybe it's a different problem.

leandrocp avatar Feb 05 '19 14:02 leandrocp

This is indeed the whole error:

Started ElixirLS debugger
Elixir version: "1.8.2 (compiled with Erlang/OTP 21)"
Erlang version: "21"
(Debugger) Initialization failed because an exception was raised:
    ** (MatchError) no match of right hand side value: false
        int.erl:542: anonymous fn/1 in :int.load/2
        int.erl:540: :int.load/2
        (elixir) lib/enum.ex:1327: Enum."-map/2-lists^map/1-0-"/2
        (elixir) lib/enum.ex:1327: Enum."-map/2-lists^map/1-0-"/2
        (debugger) lib/debugger/server.ex:473: ElixirLS.Debugger.Server.initialize/1

Any idea what is going on ?

tlvenn avatar May 24 '19 11:05 tlvenn

Getting the same problem.

marknuzz-itk avatar Jun 03 '19 16:06 marknuzz-itk

Same here…

mz2 avatar Oct 01 '19 11:10 mz2

Hmmm... that looks like what you see when it fails on loading a nif. Does your project use nif? If so then you need to exclude those modules in the launch config: ”excludeModules”: [“My.Nif1”, ”My.Nif2”]

tiger808 avatar Oct 19 '19 10:10 tiger808

This project has moved!

It's now being maintained by proactive volunteers from the Elixir community over at elixir-lsp/vscode-elixir-ls. The main ElixirLS codebase is now at elixir-lsp/elixir-ls. Updates will continue to be published from that repo to the original VS Code extension, so no need to switch plugins.

To avoid inundating the new maintainers with issues, please verify that your issue persists with the latest version of the extension (which is published from the new repo) before re-filing your issue there.

Thanks for using ElixirLS!

JakeBecker avatar Apr 16 '20 03:04 JakeBecker