modular / modular/vscode-mojo

Debug Error: `lldb` no such file

Open
#21 8 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
38
Forks
17
Avg merge
4d 13h
Merged PRs (30d)
13

Description

Thanks for all of the work on this! I’ve tested the new extension on OSX and WSL and it definitely works better than the older version(s). I’m having issues with debugging though, I never tested it with the old extension so not sure if this is just a user error or not.

When I attempt to debug a mojo file I get the following error:

Failed to run preInitCommands commands. See the Debug Console for more details.

Then in the debug console I have:

Running preInitCommands:
(lldb) plugin load $CONDA_PREFIX/lib/libMojoLLDB.*
error: no such file

On OSX I’m seeing basically the same error around this lldb plugin. I haven’t touched the launch.json file yet.

I’d appreciate any tips to get this working.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the launch.json configuration and the Debug Console output for preInitCommands on OSX and WSL. Check how the referenced $CONDA_PREFIX/lib/libMojoLLDB.* plugin is expected to be provided; done means a Mojo file can start debugging without the lldb plugin error.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.