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

[SR-85] LLDB error while debugging packages created using SPM on mac #5333

Closed
ankitspd opened this issue Dec 6, 2015 · 1 comment
Closed
Assignees
Labels

Comments

@ankitspd
Copy link
Member

ankitspd commented Dec 6, 2015

Previous ID SR-85
Radar None
Original Reporter @aciidb0mb3r
Type Bug
Status Resolved
Resolution Done
Environment

Apple Swift version 2.2-dev (LLVM 46be9ff861, Clang 4deb154edc, Swift 778f82939c)
Target: x86_64-apple-macosx10.9

Additional Detail from JIRA
Votes 0
Component/s Package Manager
Labels Bug
Assignee @ddunbar
Priority Medium

md5: 4794cc89978f5d958c594e90726fd635

Issue Description:

Trying to do anything at a breakpoint in lldb produces this error on mac
error: Error in auto-import:
failed to get module '<package name>' from AST context

This doesn't happen on Ubuntu 15.10 and lldb works as expected

Steps to reproduce:
$ git clone https://github.com/aciidb0mb3r/sample-swift-package.git
$ cd sample-swift-package
$ swift build
$ lldb .build/debug/SamplePackage
(lldb) breakpoint set -f main.swift -l 2
(lldb) r
(lldb) p foo

adding args += ["-g"] before args += ["-L/usr/local/lib"] in method writeLinkNode(target: ) at
https://github.com/apple/swift-package-manager/blob/master/Sources/dep/llbuild.swift resolves the issue

not sure if should it be added with conditional for OSX?

@ddunbar
Copy link
Member

ddunbar commented Dec 8, 2015

Thanks for the reduced test case!

Fixed here:
121a23e

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 4, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants