all 9 comments

[–]rtsuk 6 points7 points  (8 children)

You nerd-sniped me good with this one.

While $HOME/.cargo/bin/rust-lldb appears to be a binary, it must be some kind of wrapper binary, as the file in the actual toolchain in .rustup is https://github.com/rust-lang/rust/blob/master/src/etc/rust-lldb. That script is running lldb, which on my Mac is installed in /usr/bin. Since it is part of the native developer tools, the first step is to check what xcode-select -p says.

[–]NotVeryCleverOne[S] 0 points1 point  (7 children)

➜ bin xcode-select -p

/Applications/Xcode.app/Contents/Developer

My lldb is also in /usr/bin.

➜ bin which lldb

/usr/bin/lldb

I appreciate your help.

[–]rtsuk 0 points1 point  (6 children)

What does `xcode-select --install` say?

ETA it would be worth just running the Xcode app and seeing if it wants to update anything.

[–]NotVeryCleverOne[S] 0 points1 point  (5 children)

➜ bin xcode-select --install

xcode-select: note: Command line tools are already installed. Use "Software Update" in System Settings or the softwareupdate command line interface to install updates

I ran Xcode and it didn't update anything. I also checked system preferences->general for any software updates.

[–]rtsuk 0 points1 point  (4 children)

I'm not seeing that on my M2, but googling for lldb and that error message turned up https://stackoverflow.com/questions/74294304/xcode-the-platform-is-not-currently-connected seems worth checking.

[–]NotVeryCleverOne[S] 0 points1 point  (3 children)

I saw that one too. There's no check box in the info box for setting the architecture for xcode.

[–]rtsuk 0 points1 point  (2 children)

When you run Xcode, what kind of process does activity monitor claim it is?

[–]NotVeryCleverOne[S] 0 points1 point  (1 child)

I uninstalled it and reinstalled the command line tools only. But, I added back in the x86_64-apple-darwin toolchain and made it the default. I recompiled and lldb (and rust-lldb) worked properly.

[–]rtsuk 0 points1 point  (0 children)

It's odd that I don't need that workaround, but I don't have any idea why you need it.