<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Swift doesn’t seem to be reporting whatever the error is, I just see:<div class=""><br class=""></div><div class="">((SwiftASTContext*)0x7f8c555c84a0)-&gt;GetModule('PerfectTemplate') -- failed with no error<br class=""><br class="">That’s not very helpful. &nbsp;Again, I’ll probably need to make this happen locally to see what went wrong. &nbsp;If you have a project that shows the issue which you can make available, please file a bug with a description of how you build and debug this app, I’ll take a look.</div><div class=""><br class=""></div><div class="">Jim</div><div class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Nov 6, 2017, at 12:56 PM, ⁨‫Fadi Botros‬ ‫⁩ &lt;⁨<a href="mailto:botros_fadi@yahoo.com" class="">botros_fadi@yahoo.com</a>⁩&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><!--[if gte mso 9]><xml><o:OfficeDocumentSettings><o:AllowPNG/><o:PixelsPerInch>96</o:PixelsPerInch></o:OfficeDocumentSettings></xml><![endif]--><div class=""><div style="background-color: rgb(255, 255, 255); font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, &quot;Lucida Grande&quot;, sans-serif; font-size: 13px;" class=""><div id="yiv2554969846" class=""><div id="yui_3_16_0_ym19_1_1509998552026_35243" class=""><div style="background-color: rgb(255, 255, 255); font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, &quot;Lucida Grande&quot;, sans-serif; font-size: 13px;" id="yui_3_16_0_ym19_1_1509998552026_35242" class=""><div id="yui_3_16_0_ym19_1_1509998552026_35241" class=""><span class="">OK</span></div><div id="yui_3_16_0_ym19_1_1509998552026_35245" class=""><span id="yui_3_16_0_ym19_1_1509998552026_35244" class="">Here is when captured "print self" log from the beginning</span></div><div class=""><span class=""></span></div><div class="yiv2554969846qtdSeparateBR" id="yiv2554969846yui_3_16_0_ym19_1_1509998552026_27411"><br clear="none" class=""><div class="">Attached here is the full log file</div><div class="">See the attachments<br class=""></div></div><div class="yiv2554969846yqt8566474903" id="yiv2554969846yqt49030"></div></div></div></div><div class=".yiv2554969846yahoo_quoted" id="yui_3_16_0_ym19_1_1509998552026_35249">  <div id="yiv2554969846yui_3_16_0_ym19_1_1509998552026_27448" style="font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px;" class=""> <div id="yiv2554969846yui_3_16_0_ym19_1_1509998552026_27447" style="font-family:HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;" class=""> <div dir="rtl" id="yiv2554969846yui_3_16_0_ym19_1_1509998552026_27446" class=""> <font id="yiv2554969846yui_3_16_0_ym19_1_1509998552026_27445" size="2" face="Arial" class=""> </font><hr id="yui_3_16_0_ym19_1_1509998552026_36130" size="1" class=""> <b class=""><span style="font-weight:bold;" class="">من:</span></b> Jim Ingham &lt;<a href="mailto:jingham@apple.com" class="">jingham@apple.com</a>&gt;<br clear="none" class=""> <b class=""><span style="font-weight:bold;" class="">إلى:</span></b> ‫Fadi Botros‬ ‫ &lt;<a href="mailto:botros_fadi@yahoo.com" class="">botros_fadi@yahoo.com</a>&gt; <br clear="none" class=""><b id="yui_3_16_0_ym19_1_1509998552026_35251" class=""><span style="font-weight:bold;" id="yui_3_16_0_ym19_1_1509998552026_35250" class="">نسخة كربونية:</span></b> Michael Gottesman &lt;<a href="mailto:mgottesman@apple.com" class="">mgottesman@apple.com</a>&gt;; "<a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a>" &lt;<a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a>&gt;<br clear="none" class=""> <b class=""><span style="font-weight:bold;" class="">تاريخ الإرسال:</span></b> الإثنين 6 نوفمبر، 2017‏ 10:15 م<br clear="none" class=""> <b id="yui_3_16_0_ym19_1_1509998552026_35253" class=""><span style="font-weight:bold;" id="yui_3_16_0_ym19_1_1509998552026_35252" class="">الموضوع:</span></b> Re: [swift-users] About Swift Package Manager and LLDB<br clear="none" class="">  </div> <div class="yiv2554969846y_msg_container" id="yiv2554969846yui_3_16_0_ym19_1_1509998552026_27451"><br clear="none" class=""><div id="yiv2554969846" class=""><div id="yiv2554969846yui_3_16_0_ym19_1_1509998552026_27450" class="">The log for “print self” was unfortunately captured too late. &nbsp;Reading in the PerfectTemplate module had already failed, and so any subsequent attempt will just report it as failed. &nbsp;To get the complete error log for this, you need to put:<div class="yiv2554969846" id="yui_3_16_0_ym19_1_1509998552026_36131"><br class="yiv2554969846" clear="none"></div><div class="yiv2554969846" id="yiv2554969846yui_3_16_0_ym19_1_1509998552026_27452">log enable -f /tmp/lldb-type-log.txt lldb types</div><div class="yiv2554969846" id="yiv2554969846yui_3_16_0_ym19_1_1509998552026_27453"><br class="yiv2554969846" clear="none"></div><div class="yiv2554969846" id="yiv2554969846yui_3_16_0_ym19_1_1509998552026_27454">in your ~/.lldbinit file and then start a fresh debugging session and capture the whole session.</div><div class="yiv2554969846" id="yui_3_16_0_ym19_1_1509998552026_36124"><br class="yiv2554969846" clear="none"></div><div class="yiv2554969846">The failure from the REPL &nbsp;is because you have to tell the REPL where to look for other frameworks from which it might load modules. &nbsp;You can pass appropriate -I, -L and -F flags to the “swift” invocation too tell the compiler lldb’s using to implement the REPL where to look for this module.</div><div class="yiv2554969846" id="yui_3_16_0_ym19_1_1509998552026_36119"><br class="yiv2554969846" clear="none"></div><div class="yiv2554969846">The example you gave seems to be a MacOS X example. &nbsp;The binary type was MachO etc. &nbsp;If this is just a small example that you are using to demonstrate the problem, can you file a PR with the swift bug reporter with this example and how you built/ran it and we can take a look here. &nbsp;That’s probably easier than trying to pass logs back and forth.</div><div class="yiv2554969846"><br class="yiv2554969846" clear="none"></div><div class="yiv2554969846">Jim</div><div class="yiv2554969846"><br class="yiv2554969846" clear="none"></div><div class="yiv2554969846" id="yui_3_16_0_ym19_1_1509998552026_35375"><div id="yui_3_16_0_ym19_1_1509998552026_35374" class=""><blockquote class="yiv2554969846" type="cite" id="yui_3_16_0_ym19_1_1509998552026_35373"><div class="yiv2554969846yqt0651211359" id="yiv2554969846yqt63798"><div class="yiv2554969846">On Nov 6, 2017, at 11:27 AM, ⁨‫Fadi Botros‬ ‫ via swift-users⁩ &lt;⁨<a rel="nofollow" shape="rect" class="yiv2554969846" ymailto="mailto:swift-users@swift.org" target="_blank" href="mailto:swift-users@swift.org">swift-users@swift.org</a>⁩&gt; wrote:</div><br class="yiv2554969846Apple-interchange-newline" clear="none"><div class="yiv2554969846" id="yui_3_16_0_ym19_1_1509998552026_35372"><div class="yiv2554969846" id="yui_3_16_0_ym19_1_1509998552026_36080"><div class="yiv2554969846" style="background-color:rgb(255, 255, 255);" id="yui_3_16_0_ym19_1_1509998552026_36079"><div class="yiv2554969846" id="yiv2554969846yui_3_16_0_ym19_1_1509995628173_25578"><span class="yiv2554969846">This happens when try to print(self)</span></div><div class="yiv2554969846" dir="ltr" id="yiv2554969846yui_3_16_0_ym19_1_1509995628173_29711"><span class="yiv2554969846" id="yiv2554969846yui_3_16_0_ym19_1_1509995628173_29709"><a rel="nofollow" shape="rect" class="yiv2554969846enhancr2_bfda01b2-be54-224f-47c2-1510788078bd" id="yiv2554969846yui_3_16_0_ym19_1_1509995628173_29708" target="_blank" href="https://pastebin.com/15b52C1x">Processing command: po print(self)  HandleCommand, cmd_obj : 'expression'  Handl - Pastebin.com</a><br class="yiv2554969846" clear="none"></span></div><div class="yiv2554969846" id="yiv2554969846yui_3_16_0_ym19_1_1509995628173_29717"><br class="yiv2554969846" clear="none"></div><div class="yiv2554969846ymail-preserve-class yiv2554969846ymail-preserve-style yiv2554969846yahoo-link-enhancr-card" dir="ltr" id="yiv2554969846enhancr2_bfda01b2-be54-224f-47c2-1510788078bd" style="max-width:400px;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;" data-url="https://pastebin.com/15b52C1x" data-type="yenhancr" data-category="article" data-embed-url="" data-size="medium"> <a rel="nofollow" shape="rect" class="yiv2554969846yahoo-enhancr-cardlink" id="yiv2554969846yui_3_16_0_ym19_1_1509995628173_29732" target="_blank" href="https://pastebin.com/15b52C1x" style="text-decoration:none;"> <table class="yiv2554969846card-wrapper yiv2554969846yahoo-ignore-table" id="yiv2554969846yui_3_16_0_ym19_1_1509995628173_29731" style="max-width:400px;" cellspacing="0" cellpadding="0" border="0"><tbody class="yiv2554969846" id="yiv2554969846yui_3_16_0_ym19_1_1509995628173_29730"><tr class="yiv2554969846" id="yiv2554969846yui_3_16_0_ym19_1_1509995628173_29729"><td colspan="1" rowspan="1" class="yiv2554969846" id="yiv2554969846yui_3_16_0_ym19_1_1509995628173_29728" width="400"> <table class="yiv2554969846card yiv2554969846yahoo-ignore-table" id="yiv2554969846yui_3_16_0_ym19_1_1509995628173_29727" style="max-width:400px;" width="100%" cellspacing="0" cellpadding="0" border="0"><tbody class="yiv2554969846" id="yiv2554969846yui_3_16_0_ym19_1_1509995628173_29726"><tr class="yiv2554969846" id="yiv2554969846yui_3_16_0_ym19_1_1509995628173_29725"><td colspan="1" rowspan="1" class="yiv2554969846card-primary-image-cell" id="yiv2554969846yui_3_16_0_ym19_1_1509995628173_29724" style="background:#000 url('https://s.yimg.com/vv//api/res/1.2/x_YOsykpk_BPKDNd006jFg--~A/YXBwaWQ9bWFpbDtmaT1maWxsO2g9MjAwO3c9NDAw/https://pastebin.com/i/facebook.png.cf.jpg') no-repeat center center;background-size:cover;min-height:200px;position:relative;" valign="top" bgcolor="#000000" background="https://s.yimg.com/vv//api/res/1.2/x_YOsykpk_BPKDNd006jFg--~A/YXBwaWQ9bWFpbDtmaT1maWxsO2g9MjAwO3c9NDAw/https://pastebin.com/i/facebook.png.cf.jpg">  <table class="yiv2554969846yahoo-ignore-table" id="yiv2554969846yui_3_16_0_ym19_1_1509995628173_29723" style="width:100%;" cellspacing="0" cellpadding="0" border="0"><tbody class="yiv2554969846" id="yiv2554969846yui_3_16_0_ym19_1_1509995628173_29722"><tr class="yiv2554969846" id="yiv2554969846yui_3_16_0_ym19_1_1509995628173_29721"><td colspan="1" rowspan="1" class="yiv2554969846" id="yiv2554969846yui_3_16_0_ym19_1_1509995628173_29720" style="background:transparent url('https://s.yimg.com/nq/storm/assets/enhancrV2/12/overlay-tile.png') repeat left top;min-height:200px;" valign="top" bgcolor="transparent" background="https://s.yimg.com/nq/storm/assets/enhancrV2/12/overlay-tile.png">  <table class="yiv2554969846yahoo-ignore-table" id="yiv2554969846yui_3_16_0_ym19_1_1509995628173_29719" style="width:100%;min-height:185px;min-height:185px;" height="185"><tbody class="yiv2554969846" id="yiv2554969846yui_3_16_0_ym19_1_1509995628173_29795"><tr class="yiv2554969846" id="yiv2554969846yui_3_16_0_ym19_1_1509995628173_29794"><td colspan="1" rowspan="1" class="yiv2554969846card-richInfo2" id="yiv2554969846yui_3_16_0_ym19_1_1509995628173_29793" style="text-align:left;text-align:left;padding:15px 0 0 15px;vertical-align:top;">  </td><td colspan="1" rowspan="1" class="yiv2554969846card-actions" style="text-align:right;padding:15px 15px 0 0;vertical-align:top;"> <div class="yiv2554969846card-share-container"></div> </td></tr></tbody></table>  </td></tr></tbody></table> </td></tr><tr class="yiv2554969846"><td colspan="1" rowspan="1" class="yiv2554969846"> <table class="yiv2554969846card-info yiv2554969846yahoo-ignore-table" style="background:#fff;position:relative;z-index:2;width:95%;max-width:380px;border:1px solid #e0e4e9;border-bottom:3px solid #000000;margin-top:-40px;margin-left:auto;margin-right:auto;" cellspacing="0" cellpadding="0" border="0" align="center"><tbody class="yiv2554969846"><tr class="yiv2554969846"><td colspan="1" rowspan="1" class="yiv2554969846" style="background-color:#ffffff;padding:16px 0 16px 12px;vertical-align:top;">  </td><td colspan="1" rowspan="1" class="yiv2554969846" style="vertical-align:middle;padding:16px 12px;width:99%;"> <h2 class="yiv2554969846card-title" style="font-size:16px;line-height:19px;margin:0 0 4px 0;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;">Processing command: po print(self)  HandleCommand, cmd_obj : 'expressio...</h2>  <div class="yiv2554969846card-description" style="font-size:11px;line-height:15px;color:#999;"></div> </td><td colspan="1" rowspan="1" class="yiv2554969846" style="text-align:right;padding:16px 12px 16px 0;">  </td></tr></tbody></table> </td></tr></tbody></table> </td></tr></tbody></table> </a></div><div class="yiv2554969846" id="yiv2554969846yui_3_16_0_ym19_1_1509995628173_29748"><br class="yiv2554969846" clear="none"></div><div class="yiv2554969846qtdSeparateBR" id="yiv2554969846yui_3_16_0_ym19_1_1509995628173_25571"><div class="yiv2554969846" id="yiv2554969846yui_3_16_0_ym19_1_1509995628173_29750"><br class="yiv2554969846" clear="none"></div><div class="yiv2554969846" dir="ltr">This happens when REPL then try to "import PerfectTemplate"</div><div class="yiv2554969846" dir="ltr" id="yiv2554969846yui_3_16_0_ym19_1_1509995628173_29808"><a rel="nofollow" shape="rect" class="yiv2554969846enhancr2_b110cf3c-1608-9960-a248-c80d8560abc2" id="yiv2554969846yui_3_16_0_ym19_1_1509995628173_29807" target="_blank" href="https://pastebin.com/FsGgXa54">== [UserExpression::Evaluate] Parsing expression import PerfectTemplate ==  Swif - Pastebin.com</a><br class="yiv2554969846" clear="none"></div><div class="yiv2554969846"><br class="yiv2554969846" clear="none"></div><div class="yiv2554969846ymail-preserve-class yiv2554969846ymail-preserve-style yiv2554969846yahoo-link-enhancr-card" dir="ltr" id="yiv2554969846enhancr2_b110cf3c-1608-9960-a248-c80d8560abc2" style="max-width:400px;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;" data-url="https://pastebin.com/FsGgXa54" data-type="yenhancr" data-category="article" data-embed-url="" data-size="medium"> <a rel="nofollow" shape="rect" class="yiv2554969846yahoo-enhancr-cardlink" target="_blank" href="https://pastebin.com/FsGgXa54" style="text-decoration:none;"> <table class="yiv2554969846card-wrapper yiv2554969846yahoo-ignore-table" style="max-width:400px;" cellspacing="0" cellpadding="0" border="0"><tbody class="yiv2554969846"><tr class="yiv2554969846"><td colspan="1" rowspan="1" class="yiv2554969846" width="400"> <table class="yiv2554969846card yiv2554969846yahoo-ignore-table" style="max-width:400px;" width="100%" cellspacing="0" cellpadding="0" border="0"><tbody class="yiv2554969846"><tr class="yiv2554969846"><td colspan="1" rowspan="1" class="yiv2554969846card-primary-image-cell" style="background:#000 url('https://s.yimg.com/vv//api/res/1.2/x_YOsykpk_BPKDNd006jFg--~A/YXBwaWQ9bWFpbDtmaT1maWxsO2g9MjAwO3c9NDAw/https://pastebin.com/i/facebook.png.cf.jpg') no-repeat center center;background-size:cover;min-height:200px;position:relative;" valign="top" bgcolor="#000000" background="https://s.yimg.com/vv//api/res/1.2/x_YOsykpk_BPKDNd006jFg--~A/YXBwaWQ9bWFpbDtmaT1maWxsO2g9MjAwO3c9NDAw/https://pastebin.com/i/facebook.png.cf.jpg">  <table class="yiv2554969846yahoo-ignore-table" style="width:100%;" cellspacing="0" cellpadding="0" border="0"><tbody class="yiv2554969846"><tr class="yiv2554969846"><td colspan="1" rowspan="1" class="yiv2554969846" style="background:transparent url('https://s.yimg.com/nq/storm/assets/enhancrV2/12/overlay-tile.png') repeat left top;min-height:200px;" valign="top" bgcolor="transparent" background="https://s.yimg.com/nq/storm/assets/enhancrV2/12/overlay-tile.png">  <table class="yiv2554969846yahoo-ignore-table" style="width:100%;min-height:185px;min-height:185px;" height="185"><tbody class="yiv2554969846"><tr class="yiv2554969846"><td colspan="1" rowspan="1" class="yiv2554969846card-richInfo2" style="text-align:left;text-align:left;padding:15px 0 0 15px;vertical-align:top;">  </td><td colspan="1" rowspan="1" class="yiv2554969846card-actions" style="text-align:right;padding:15px 15px 0 0;vertical-align:top;"> <div class="yiv2554969846card-share-container"></div> </td></tr></tbody></table>  </td></tr></tbody></table> </td></tr><tr class="yiv2554969846"><td colspan="1" rowspan="1" class="yiv2554969846"> <table class="yiv2554969846card-info yiv2554969846yahoo-ignore-table" style="background:#fff;position:relative;z-index:2;width:95%;max-width:380px;border:1px solid #e0e4e9;border-bottom:3px solid #000000;margin-top:-40px;margin-left:auto;margin-right:auto;" cellspacing="0" cellpadding="0" border="0" align="center"><tbody class="yiv2554969846"><tr class="yiv2554969846"><td colspan="1" rowspan="1" class="yiv2554969846" style="background-color:#ffffff;padding:16px 0 16px 12px;vertical-align:top;">  </td><td colspan="1" rowspan="1" class="yiv2554969846" style="vertical-align:middle;padding:16px 12px;width:99%;"> <h2 class="yiv2554969846card-title" style="font-size:16px;line-height:19px;margin:0 0 4px 0;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;">== [UserExpression::Evaluate] Parsing expression import PerfectTemplate == ...</h2>  <div class="yiv2554969846card-description" style="font-size:11px;line-height:15px;color:#999;"></div> </td><td colspan="1" rowspan="1" class="yiv2554969846" style="text-align:right;padding:16px 12px 16px 0;">  </td></tr></tbody></table> </td></tr></tbody></table> </td></tr></tbody></table> </a></div><div class="yiv2554969846" id="yiv2554969846yui_3_16_0_ym19_1_1509995628173_29833"><br class="yiv2554969846" clear="none"></div><div class="yiv2554969846" id="yiv2554969846yui_3_16_0_ym19_1_1509995628173_29842"><br class="yiv2554969846" clear="none"></div><div class="yiv2554969846" id="yiv2554969846yui_3_16_0_ym19_1_1509995628173_29863">Also the same problem happens in Kitura (even if only use packages that depend on Swift 4)<br class="yiv2554969846" clear="none"></div><br class="yiv2554969846" clear="none"></div><div class="yiv2554969846yahoo_quoted" id="yiv2554969846yui_3_16_0_ym19_1_1509995628173_25575" style="display:block;">  <div class="yiv2554969846" id="yiv2554969846yui_3_16_0_ym19_1_1509995628173_25574" style="font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px;"> <div class="yiv2554969846" id="yiv2554969846yui_3_16_0_ym19_1_1509995628173_25573" style="font-family:HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"> <div class="yiv2554969846" dir="rtl" id="yiv2554969846yui_3_16_0_ym19_1_1509995628173_25572"> <font class="yiv2554969846" id="yiv2554969846yui_3_16_0_ym19_1_1509995628173_25576" size="2" face="Arial"> </font><hr class="yiv2554969846" id="yiv2554969846yui_3_16_0_ym19_1_1509995628173_25577" size="1"> <b class="yiv2554969846"><span class="yiv2554969846" style="font-weight:bold;">من:</span></b> Michael Gottesman &lt;<a rel="nofollow" shape="rect" class="yiv2554969846" ymailto="mailto:mgottesman@apple.com" target="_blank" href="mailto:mgottesman@apple.com">mgottesman@apple.com</a>&gt;<br class="yiv2554969846" clear="none"> <b class="yiv2554969846"><span class="yiv2554969846" style="font-weight:bold;">إلى:</span></b> Michael Gottesman &lt;<a rel="nofollow" shape="rect" class="yiv2554969846" ymailto="mailto:mgottesman@apple.com" target="_blank" href="mailto:mgottesman@apple.com">mgottesman@apple.com</a>&gt; <br class="yiv2554969846" clear="none"><b class="yiv2554969846"><span class="yiv2554969846" style="font-weight:bold;">نسخة كربونية:</span></b> "<a rel="nofollow" shape="rect" class="yiv2554969846" ymailto="mailto:swift-users@swift.org" target="_blank" href="mailto:swift-users@swift.org">swift-users@swift.org</a>" &lt;<a rel="nofollow" shape="rect" class="yiv2554969846" ymailto="mailto:swift-users@swift.org" target="_blank" href="mailto:swift-users@swift.org">swift-users@swift.org</a>&gt;; ‫Fadi Botros‬ ‫ &lt;<a rel="nofollow" shape="rect" class="yiv2554969846" ymailto="mailto:botros_fadi@yahoo.com" target="_blank" href="mailto:botros_fadi@yahoo.com">botros_fadi@yahoo.com</a>&gt;<br class="yiv2554969846" clear="none"> <b class="yiv2554969846"><span class="yiv2554969846" style="font-weight:bold;">تاريخ الإرسال:</span></b> الإثنين 6 نوفمبر، 2017‏ 7:01 م<br class="yiv2554969846" clear="none"> <b class="yiv2554969846"><span class="yiv2554969846" style="font-weight:bold;">الموضوع:</span></b> Re: [swift-users] About Swift Package Manager and LLDB<br class="yiv2554969846" clear="none">  </div> <div class="yiv2554969846y_msg_container" id="yiv2554969846yui_3_16_0_ym19_1_1509995628173_29864"><br class="yiv2554969846" clear="none"><div class="yiv2554969846" id="yiv2554969846"><div class="yiv2554969846" id="yiv2554969846yui_3_16_0_ym19_1_1509995628173_29865">Or actually:<div class="yiv2554969846"><br class="yiv2554969846" clear="none"></div><div class="yiv2554969846"><a rel="nofollow" shape="rect" class="yiv2554969846" target="_blank" href="https://github.com/apple/swift/blob/master/docs/DebuggingTheCompiler.rst#debugging-failures-in-lldb">https://github.com/apple/swift/blob/master/docs/DebuggingTheCompiler.rst#debugging-failures-in-lldb</a></div><div class="yiv2554969846"><br class="yiv2554969846" clear="none"></div><div class="yiv2554969846">I would just enable all of the logging and post it here or if the log is very big put the log into a pastebin.</div><div class="yiv2554969846yqt1391654850" id="yiv2554969846yqt14330"><div class="yiv2554969846"><br class="yiv2554969846" clear="none"><div class="yiv2554969846"><blockquote class="yiv2554969846" type="cite"><div class="yiv2554969846">On Nov 6, 2017, at 8:59 AM, Michael Gottesman via swift-users &lt;<a rel="nofollow" shape="rect" class="yiv2554969846" ymailto="mailto:swift-users@swift.org" target="_blank" href="mailto:swift-users@swift.org">swift-users@swift.org</a>&gt; wrote:</div><br class="yiv2554969846Apple-interchange-newline" clear="none"><div class="yiv2554969846"></div></blockquote></div></div></div></div><div class="yiv2554969846yqt1391654850" id="yiv2554969846yqt59169"><div class="yiv2554969846" id="yui_3_16_0_ym19_1_1509998552026_36100"><div class="yiv2554969846" style="word-wrap:break-word;" id="yui_3_16_0_ym19_1_1509998552026_36099">I am not going to answer this fully (I forwarded it to the appropriate people though). But to help them out, can you go to ./docs/DebuggingTheCompiler and enable lldb logging and post the output here?<div class="yiv2554969846"><br class="yiv2554969846" clear="none"></div><div class="yiv2554969846">Michael</div><div class="yiv2554969846" id="yui_3_16_0_ym19_1_1509998552026_36098"><br class="yiv2554969846" clear="none"><div class="yiv2554969846" id="yui_3_16_0_ym19_1_1509998552026_36097"><blockquote class="yiv2554969846" type="cite" id="yui_3_16_0_ym19_1_1509998552026_36096"><div class="yiv2554969846">On Nov 6, 2017, at 8:43 AM, ⁨‫Fadi Botros‬ ‫ via swift-users⁩ &lt;⁨<a rel="nofollow" shape="rect" class="yiv2554969846" ymailto="mailto:swift-users@swift.org" target="_blank" href="mailto:swift-users@swift.org">swift-users@swift.org</a>⁩&gt; wrote:</div><br class="yiv2554969846Apple-interchange-newline" clear="none"><div class="yiv2554969846" id="yui_3_16_0_ym19_1_1509998552026_36095"><div class="yiv2554969846" id="yui_3_16_0_ym19_1_1509998552026_36094"><div class="yiv2554969846" style="background-color:rgb(255, 255, 255);font-family:'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;font-size:13px;" id="yui_3_16_0_ym19_1_1509998552026_36093"><div class="yiv2554969846">I'm interested in doing Web Application using Swift and promoting this to be a trend someday.</div><div class="yiv2554969846">But I couldn't find a way to debug web apps without using Xcode</div><div class="yiv2554969846">This is irrelevant because web applications are mainly on Linux, so what if we want to do remote debugging ?</div><div class="yiv2554969846" id="yiv2554969846yui_3_16_0_ym19_1_1509899666408_2586"><br class="yiv2554969846" clear="none"></div><div class="yiv2554969846" dir="ltr" id="yiv2554969846yui_3_16_0_ym19_1_1509899666408_2587">I tried using the SPM, and when I try to compile a Kitura or Perfect app then try to debug it, it gives me this</div><div class="yiv2554969846" dir="ltr"><br class="yiv2554969846" clear="none"></div><div class="yiv2554969846" dir="ltr" id="yiv2554969846yui_3_16_0_ym19_1_1509899666408_2649">(lldb) po print(self)<br class="yiv2554969846" id="yiv2554969846yui_3_16_0_ym19_1_1509899666408_2644" clear="none">warning: Swift error in module &lt;moduleName&gt;.<br class="yiv2554969846" id="yiv2554969846yui_3_16_0_ym19_1_1509899666408_2645" clear="none">Debug info from this module will be unavailable in the debugger.<br class="yiv2554969846" id="yiv2554969846yui_3_16_0_ym19_1_1509899666408_2646" clear="none"><br class="yiv2554969846" id="yiv2554969846yui_3_16_0_ym19_1_1509899666408_2647" clear="none">error: in auto-import:<br class="yiv2554969846" id="yiv2554969846yui_3_16_0_ym19_1_1509899666408_2648" clear="none">failed to get module '&lt;SomeModuleName&gt;' from AST context</div><div class="yiv2554969846" dir="ltr" id="yiv2554969846yui_3_16_0_ym19_1_1509899666408_2655"><br class="yiv2554969846" clear="none"></div><div class="yiv2554969846" id="yiv2554969846yui_3_16_0_ym19_1_1509899666408_2578">I'm using macOS Sierra (sorry didn't have time to upgrade), with Swift 4 that comes with Xcode 9</div><div class="yiv2554969846">Also tried the same experiment on Xubuntu using Swift 4 debian package provided on <a rel="nofollow" shape="rect" class="yiv2554969846" target="_blank" href="http://swift.org/">swift.org</a> itself</div><div class="yiv2554969846"><br class="yiv2554969846" clear="none"></div><div class="yiv2554969846" id="yiv2554969846yui_3_16_0_ym19_1_1509899666408_2691">The only succeeded way is to generate an xcodeproj and compile it, this is irrelevant because it is only macOS, while servers are Linux.<br class="yiv2554969846" clear="none"></div></div></div>_______________________________________________<br class="yiv2554969846" clear="none">swift-users mailing list<br class="yiv2554969846" clear="none"><a rel="nofollow" shape="rect" class="yiv2554969846" ymailto="mailto:swift-users@swift.org" target="_blank" href="mailto:swift-users@swift.org">swift-users@swift.org</a><br class="yiv2554969846" clear="none"><a rel="nofollow" shape="rect" class="yiv2554969846" target="_blank" href="https://lists.swift.org/mailman/listinfo/swift-users">https://lists.swift.org/mailman/listinfo/swift-users</a><br class="yiv2554969846" clear="none"></div></blockquote></div><br class="yiv2554969846" clear="none"></div></div>_______________________________________________<br class="yiv2554969846" clear="none">swift-users mailing list<br class="yiv2554969846" clear="none"><a rel="nofollow" shape="rect" class="yiv2554969846" ymailto="mailto:swift-users@swift.org" target="_blank" href="mailto:swift-users@swift.org">swift-users@swift.org</a><br class="yiv2554969846" clear="none"><a rel="nofollow" shape="rect" class="yiv2554969846" target="_blank" href="https://lists.swift.org/mailman/listinfo/swift-users">https://lists.swift.org/mailman/listinfo/swift-users</a><br class="yiv2554969846" clear="none"><br class="yiv2554969846" clear="none"></div></div></div><br class="yiv2554969846" clear="none"><br class="yiv2554969846" clear="none"></div> </div> </div>  </div></div></div>_______________________________________________<br class="yiv2554969846" clear="none">swift-users mailing list<br class="yiv2554969846" clear="none"><a rel="nofollow" shape="rect" class="yiv2554969846" ymailto="mailto:swift-users@swift.org" target="_blank" href="mailto:swift-users@swift.org">swift-users@swift.org</a><br class="yiv2554969846" clear="none"><a href="https://lists.swift.org/mailman/listinfo/swift-users" class="">https://lists.swift.org/mailman/listinfo/swift-users</a><br class="yiv2554969846" clear="none"></div></div></blockquote></div><br class="yiv2554969846" clear="none"></div></div></div><br clear="none" class=""><br clear="none" class=""></div> </div> </div>  </div></div></div><span id="cid:1218200f-3aa0-6979-d3f4-cf785eb071d5@yahoo.com">&lt;lldb-type-log.txt&gt;</span></div></blockquote></div><br class=""></div></body></html>