Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using LLDB in Rust, Immediately crash or exit Lapce when using a breakpoint #1

Open
codeitlikemiley opened this issue Dec 29, 2023 · 1 comment

Comments

@codeitlikemiley
Copy link

codeitlikemiley commented Dec 29, 2023

A video is attached to show the bug:

Im currently facing an issue using LLDB

Im using MacOS 14inc M1

Step to reproduced the Bug from fresh install of lapce

  1. Install Lapce
  2. Install Rust Plugin and Lapce LLDB plugin
  3. brew install llvm
  4. set PATH of llvm bin
export PATH="/opt/homebrew/opt/llvm/bin:$PATH"
  1. copy the path to Lapce Settings.
  2. Add a Run.toml on root of project folder
# The run config is used for both run mode and debug mode

[[configs]]
# the name of this task
name = "codeitlikemiley"

# the type of the debugger. If not set, it can't be debugged but can still be run
type = "lldb"

# the program to run
program = "target/debug/mileysequel"


[configs.prelaunch]
program = "cargo"
args = [
  "build",
]
  1. Toggle a break point
  2. Hit Debugger

Here is the Video of the said Bug:

Screen.Recording.2023-12-29.at.10.12.24.PM.mov

This is the log file , a simplified version where I just open lapce , click on a debugger breakpoint, and run the debugger.

2023-12-30T05:44:07.111901Z  INFO lapce_app::app: Starting up Lapce..
2023-12-30T05:44:07.535916Z  INFO lapce_app::app: Starting up Lapce..
2023-12-30T05:44:08.131743Z  WARN lapce_app::window_tab: [Rust] Usage of startLspServer as a notification is deprecated.
2023-12-30T05:44:08.152600Z  WARN lapce_app::window_tab: [Crates] Usage of startLspServer as a notification is deprecated.
2023-12-30T05:44:08.161221Z ERROR lapce_app::window_tab: lsp server /Users/uriah/Library/Application Support/dev.lapce.Lapce-Stable/plugins/MathiasPius.lapce-crates/crates-lsp-0.0.2 stopped!
2023-12-30T05:44:17.009201Z DEBUG lapce_app::keypress: Pointer(PointerInputEvent { pos: (234.453125, 429.14453125), button: Primary, modifiers: ModifiersState(0x0), count: 1 })
2023-12-30T05:44:17.010578Z DEBUG lapce_app::keypress: Pointer(PointerInputEvent { pos: (234.453125, 429.14453125), button: Primary, modifiers: ModifiersState(0x0), count: 1 })
2023-12-30T05:44:19.038004Z DEBUG lapce_app::keypress: Pointer(PointerInputEvent { pos: (1023.796875, 17.23828125), button: Primary, modifiers: ModifiersState(0x0), count: 1 })
2023-12-30T05:44:19.038095Z DEBUG lapce_app::keypress: Pointer(PointerInputEvent { pos: (1023.796875, 17.23828125), button: Primary, modifiers: ModifiersState(0x0), count: 1 })

Note: that if I don't add any breakpoint the debugger would just run and complete the whole building of app e.g. the basic hello world would be echoed out. But Hitting the breakpoint and running the debugger it would just crash Lapce.

@dzhou121 any thoughts on this?

@codeitlikemiley codeitlikemiley changed the title How to Properly setup lldb? Using LLDB in Rust, Immediately crash or exit Lapce when using a breakpoint Dec 30, 2023
@dzhou121
Copy link
Contributor

Thanks for the bug report and the reproduction steps. It looks like it's something in Lapce that crashed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants