Skip to content
This repository has been archived by the owner on Dec 2, 2022. It is now read-only.

Autocomplete / lldb debugging not working #78

Closed
joeldrotleff opened this issue Jan 30, 2017 · 1 comment
Closed

Autocomplete / lldb debugging not working #78

joeldrotleff opened this issue Jan 30, 2017 · 1 comment
Labels

Comments

@joeldrotleff
Copy link

I'm having some issue with debugging using SlackKit.

If I create a simple project using Swift package manager, setting SlackKit as a dependency, I can compile / run the project with no issues, but autocomplete is broken. For example within the private func handleMessage(message: Message) method, "message" autocompletes to <>.

I also notice that if I put a breakpoint in that same method, none of the local variables are shown in the debugger, and if I try to po some of them it gives a bunch of warnings like this:

warning: Swift error in module robot-or-not-bot.
Debug info from this module will be unavailable in the debugger.

@pvzig
Copy link
Owner

pvzig commented Feb 1, 2017

Hey Joel,

I think this is a SPM bug which has recently been fixed. If you're willing to use a development keychain it looks to be fixed in swift-3.1-DEVELOPMENT-SNAPSHOT-2017-01-31. A .xcodeproj file generated as follows should work:

  1. Set your default keychain:
    $ export PATH=/Library/Developer/Toolchains/swift-3.1-DEVELOPMENT-SNAPSHOT-2017-01-31-a.xctoolchain/usr/bin:"${PATH}"
  2. swift package generate-xcodeproj

@pvzig pvzig closed this as completed Feb 1, 2017
@pvzig pvzig added the question label Feb 4, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants