<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">It works as expected in the 3-16 snapshot but exhibits the failure you’ve cited below in the 3-24 and later snapshots. I see <a href="https://bugs.swift.org/browse/SR-1109" class="">SR-1109</a> has been filed to track the issue which is definitely <i class="">not</i> related to the #line directive warning. We’ll clean up the source of the warning but it should be (a) completely innocuous and (b) hidden from view given that it relates to code you didn’t actually type in the REPL. We’re already tracking both of these minor issues.<div class=""> </div><div class="">… which just leaves the bigger question about what regressed between 3-16 and 3-24. I’ll prompt members of my team to give some suggestions about where to start investigating.</div><div class=""><br class=""></div><div class=""><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="" style="font-family: LucidaGrande; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><font color="#424242" class="" style="font-family: 'Lucida Grande'; font-size: x-small;">Kate Stone</font><span class="" style="font-family: 'Lucida Grande'; font-size: x-small;"> </span><font color="#009193" class="" style="font-family: 'Lucida Grande'; font-size: x-small;"><a href="mailto:k8stone@apple.com" class="">k8stone@apple.com</a></font></div><div class="" style="font-family: Times; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><font face="Lucida Grande" size="1" class=""><font color="#009193" class=""></font> Xcode <font color="#424242" class="">Low Level Tools</font></font></div></div></div></div></div></div>
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On Apr 13, 2016, at 9:18 AM, Ryan Lovelett via swift-lldb-dev <<a href="mailto:swift-lldb-dev@swift.org" class="">swift-lldb-dev@swift.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">In my latest builds (I just build<br class="">swift-DEVELOPMENT-SNAPSHOT-2016-04-12-a) I've noticed that when I<br class="">attempt to open the REPL and `import Glibc` the REPL reports:<br class=""><br class="">warning: <REPL>:1:1: warning: #line directive is deprecated, please use<br class="">#sourceLocation instead<br class="">#line 2 "repl.swift"<br class="">^~~~~<br class="">#sourceLocation<br class=""><br class="">warning: repl.swift:3:1: warning: #line directive is deprecated, please<br class="">use #sourceLocation instead<br class="">#line<br class="">^~~~~<br class="">#sourceLocation<br class=""><br class="">error: repl.swift:2:8: error: missing required module 'SwiftGlibc'<br class="">import Glibc<br class=""><br class="">Also lldb seems to suffer from this same issue as well. If I compile a<br class="">source and attach to the process and stop at a breakpoint it reports<br class="">similar (e.g., `error: missing required module 'SwiftGlibc'`).<br class=""><br class="">I'd use `git bisect` to track down when it started doing that.<br class="">Unfortunately this is probably the first time I've ever actually opened<br class="">the REPL. So it might have been broken all along.<br class=""><br class="">Incidentally it works just find if I compile a source (`swiftc`) that<br class="">imports Glibc.<br class=""><br class="">Is this a known issue? Any suggestions on where I should begin my<br class="">investigation into resolving this?<br class="">_______________________________________________<br class="">swift-lldb-dev mailing list<br class=""><a href="mailto:swift-lldb-dev@swift.org" class="">swift-lldb-dev@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-lldb-dev<br class=""></div></div></blockquote></div><br class=""></div></body></html>