<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office"><head><!--[if gte mso 9]><xml><o:OfficeDocumentSettings><o:AllowPNG/><o:PixelsPerInch>96</o:PixelsPerInch></o:OfficeDocumentSettings></xml><![endif]--></head><body><div style="color:#000; background-color:#fff; font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px"><div id="yui_3_16_0_ym19_1_1509995628173_25578"><span>This happens when try to print(self)</span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1509995628173_29711"><span id="yui_3_16_0_ym19_1_1509995628173_29709"><a href="https://pastebin.com/15b52C1x" class="enhancr2_bfda01b2-be54-224f-47c2-1510788078bd" id="yui_3_16_0_ym19_1_1509995628173_29708">Processing command: po print(self) HandleCommand, cmd_obj : 'expression' Handl - Pastebin.com</a><br></span></div><div id="yui_3_16_0_ym19_1_1509995628173_29717"><br></div><div id="enhancr2_bfda01b2-be54-224f-47c2-1510788078bd" class="yahoo-link-enhancr-card ymail-preserve-class ymail-preserve-style" 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" dir="ltr" contenteditable="false"> <a href="https://pastebin.com/15b52C1x" style="text-decoration:none !important; color: #000 !important;" class="yahoo-enhancr-cardlink" target="_blank" rel="noreferrer" id="yui_3_16_0_ym19_1_1509995628173_29732"> <table class="card-wrapper yahoo-ignore-table" style="max-width:400px;" id="yui_3_16_0_ym19_1_1509995628173_29731" cellspacing="0" cellpadding="0" border="0"> <tbody id="yui_3_16_0_ym19_1_1509995628173_29730"><tr id="yui_3_16_0_ym19_1_1509995628173_29729"> <td id="yui_3_16_0_ym19_1_1509995628173_29728" width="400"> <table class="card yahoo-ignore-table" style="max-width:400px;" id="yui_3_16_0_ym19_1_1509995628173_29727" width="100%" cellspacing="0" cellpadding="0" border="0"> <tbody id="yui_3_16_0_ym19_1_1509995628173_29726"><tr id="yui_3_16_0_ym19_1_1509995628173_29725"> <td class="card-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;height:200px;position:relative;" id="yui_3_16_0_ym19_1_1509995628173_29724" 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"> <!--[if gte mso 9]><v:rect fill="true" stroke="false" style="width:400px;height:218px;position:absolute;top:0;left:0;"><v:fill type="frame" color="#000000" src="https://s.yimg.com/vv//api/res/1.2/x_YOsykpk_BPKDNd006jFg--~A/YXBwaWQ9bWFpbDtmaT1maWxsO2g9MjAwO3c9NDAw/https://pastebin.com/i/facebook.png.cf.jpg"/></v:rect><![endif]--> <table class="yahoo-ignore-table" valign="top" style="width:100%;" id="yui_3_16_0_ym19_1_1509995628173_29723" cellspacing="0" cellpadding="0" border="0"> <tbody id="yui_3_16_0_ym19_1_1509995628173_29722"><tr id="yui_3_16_0_ym19_1_1509995628173_29721"> <td style="background:transparent url('https://s.yimg.com/nq/storm/assets/enhancrV2/12/overlay-tile.png') repeat left top;height:200px;" id="yui_3_16_0_ym19_1_1509995628173_29720" valign="top" bgcolor="transparent" background="https://s.yimg.com/nq/storm/assets/enhancrV2/12/overlay-tile.png"> <!--[if gte mso 9]><v:rect fill="true" stroke="false" style="width:400px;height:218px;position:absolute;top:-18px;left:0;"><v:fill type="pattern" color="#000000" src="https://s.yimg.com/nq/storm/assets/enhancrV2/12/overlay-tile.png"/><v:textbox inset="0,0,20px,0"><![endif]--> <table class="yahoo-ignore-table" style="width:100%;height:185px;min-height:185px;" id="yui_3_16_0_ym19_1_1509995628173_29719" height="185"> <tbody id="yui_3_16_0_ym19_1_1509995628173_29795"><tr id="yui_3_16_0_ym19_1_1509995628173_29794"> <td class="card-richInfo2" style="text-align:left;text-align:left;padding:15px 0 0 15px;vertical-align:top;" id="yui_3_16_0_ym19_1_1509995628173_29793"> </td> <td class="card-actions" style="text-align:right;padding:15px 15px 0 0;vertical-align:top;"> <div class="card-share-container"></div> </td> </tr> </tbody></table> <!--[if gte mso 9]></v:textbox></v:rect><![endif]--> </td> </tr> </tbody></table> </td> </tr> <tr> <td> <table class="card-info yahoo-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><tr> <td style="background-color:#ffffff;padding:16px 0 16px 12px;vertical-align:top;"> </td> <td style="vertical-align:middle;padding:16px 12px;width:99%;"> <h2 class="card-title" style="font-size: 16px; line-height:19px; margin:0 0 4px 0;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;word-break:break-word;">Processing command: po print(self) HandleCommand, cmd_obj : 'expressio...</h2> <div class="card-description" style="font-size:11px;line-height:15px;color:#999;word-break:break-word;"></div> </td> <td style="text-align:right;padding:16px 12px 16px 0;"> </td> </tr> </tbody></table> </td> </tr> </tbody></table> </td> </tr> </tbody></table> </a></div><div id="yui_3_16_0_ym19_1_1509995628173_29748"><br></div><div class="qtdSeparateBR" id="yui_3_16_0_ym19_1_1509995628173_25571"><div id="yui_3_16_0_ym19_1_1509995628173_29750"><br></div><div dir="ltr">This happens when REPL then try to "import PerfectTemplate"</div><div dir="ltr" id="yui_3_16_0_ym19_1_1509995628173_29808"><a href="https://pastebin.com/FsGgXa54" class="enhancr2_b110cf3c-1608-9960-a248-c80d8560abc2" id="yui_3_16_0_ym19_1_1509995628173_29807">== [UserExpression::Evaluate] Parsing expression import PerfectTemplate == Swif - Pastebin.com</a><br></div><div><br></div><div id="enhancr2_b110cf3c-1608-9960-a248-c80d8560abc2" class="yahoo-link-enhancr-card ymail-preserve-class ymail-preserve-style" 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" dir="ltr" contenteditable="false"> <a href="https://pastebin.com/FsGgXa54" style="text-decoration:none !important; color: #000 !important;" class="yahoo-enhancr-cardlink" target="_blank" rel="noreferrer"> <table class="card-wrapper yahoo-ignore-table" style="max-width:400px;" cellspacing="0" cellpadding="0" border="0"> <tbody><tr> <td width="400"> <table class="card yahoo-ignore-table" style="max-width:400px;" width="100%" cellspacing="0" cellpadding="0" border="0"> <tbody><tr> <td class="card-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;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"> <!--[if gte mso 9]><v:rect fill="true" stroke="false" style="width:400px;height:218px;position:absolute;top:0;left:0;"><v:fill type="frame" color="#000000" src="https://s.yimg.com/vv//api/res/1.2/x_YOsykpk_BPKDNd006jFg--~A/YXBwaWQ9bWFpbDtmaT1maWxsO2g9MjAwO3c9NDAw/https://pastebin.com/i/facebook.png.cf.jpg"/></v:rect><![endif]--> <table class="yahoo-ignore-table" valign="top" style="width:100%;" cellspacing="0" cellpadding="0" border="0"> <tbody><tr> <td style="background:transparent url('https://s.yimg.com/nq/storm/assets/enhancrV2/12/overlay-tile.png') repeat left top;height:200px;" valign="top" bgcolor="transparent" background="https://s.yimg.com/nq/storm/assets/enhancrV2/12/overlay-tile.png"> <!--[if gte mso 9]><v:rect fill="true" stroke="false" style="width:400px;height:218px;position:absolute;top:-18px;left:0;"><v:fill type="pattern" color="#000000" src="https://s.yimg.com/nq/storm/assets/enhancrV2/12/overlay-tile.png"/><v:textbox inset="0,0,20px,0"><![endif]--> <table class="yahoo-ignore-table" style="width:100%;height:185px;min-height:185px;" height="185"> <tbody><tr> <td class="card-richInfo2" style="text-align:left;text-align:left;padding:15px 0 0 15px;vertical-align:top;"> </td> <td class="card-actions" style="text-align:right;padding:15px 15px 0 0;vertical-align:top;"> <div class="card-share-container"></div> </td> </tr> </tbody></table> <!--[if gte mso 9]></v:textbox></v:rect><![endif]--> </td> </tr> </tbody></table> </td> </tr> <tr> <td> <table class="card-info yahoo-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><tr> <td style="background-color:#ffffff;padding:16px 0 16px 12px;vertical-align:top;"> </td> <td style="vertical-align:middle;padding:16px 12px;width:99%;"> <h2 class="card-title" style="font-size: 16px; line-height:19px; margin:0 0 4px 0;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;word-break:break-word;">== [UserExpression::Evaluate] Parsing expression import PerfectTemplate == ...</h2> <div class="card-description" style="font-size:11px;line-height:15px;color:#999;word-break:break-word;"></div> </td> <td style="text-align:right;padding:16px 12px 16px 0;"> </td> </tr> </tbody></table> </td> </tr> </tbody></table> </td> </tr> </tbody></table> </a></div><div id="yui_3_16_0_ym19_1_1509995628173_29833"><br></div><div id="yui_3_16_0_ym19_1_1509995628173_29842"><br></div><div id="yui_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></div><br></div><div class="yahoo_quoted" id="yui_3_16_0_ym19_1_1509995628173_25575" style="display: block;"> <div style="font-family: Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 13px;" id="yui_3_16_0_ym19_1_1509995628173_25574"> <div style="font-family: HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;" id="yui_3_16_0_ym19_1_1509995628173_25573"> <div dir="rtl" id="yui_3_16_0_ym19_1_1509995628173_25572"> <font id="yui_3_16_0_ym19_1_1509995628173_25576" size="2" face="Arial"> <hr id="yui_3_16_0_ym19_1_1509995628173_25577" size="1"> <b><span style="font-weight:bold;">من:</span></b> Michael Gottesman <mgottesman@apple.com><br> <b><span style="font-weight: bold;">إلى:</span></b> Michael Gottesman <mgottesman@apple.com> <br><b><span style="font-weight: bold;">نسخة كربونية:</span></b> "swift-users@swift.org" <swift-users@swift.org>; Fadi Botros <botros_fadi@yahoo.com><br> <b><span style="font-weight: bold;">تاريخ الإرسال:</span></b> الإثنين 6 نوفمبر، 2017 7:01 م<br> <b><span style="font-weight: bold;">الموضوع:</span></b> Re: [swift-users] About Swift Package Manager and LLDB<br> </font> </div> <div class="y_msg_container" id="yui_3_16_0_ym19_1_1509995628173_29864"><br><div id="yiv1946371496"><div id="yui_3_16_0_ym19_1_1509995628173_29865">Or actually:<div class="yiv1946371496"><br class="yiv1946371496" clear="none"></div><div class="yiv1946371496"><a rel="nofollow" shape="rect" class="yiv1946371496" 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="yiv1946371496"><br class="yiv1946371496" clear="none"></div><div class="yiv1946371496">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="yiv1946371496yqt1391654850" id="yiv1946371496yqt14330"><div class="yiv1946371496"><br class="yiv1946371496" clear="none"><div><blockquote class="yiv1946371496" type="cite"><div class="yiv1946371496">On Nov 6, 2017, at 8:59 AM, Michael Gottesman via swift-users <<a rel="nofollow" shape="rect" class="yiv1946371496" ymailto="mailto:swift-users@swift.org" target="_blank" href="mailto:swift-users@swift.org">swift-users@swift.org</a>> wrote:</div><br class="yiv1946371496Apple-interchange-newline" clear="none"><div class="yiv1946371496"></div></blockquote></div></div></div></div><div class="yiv1946371496yqt1391654850" id="yiv1946371496yqt59169"><div><div class="yiv1946371496" style="word-wrap:break-word;">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="yiv1946371496"><br class="yiv1946371496" clear="none"></div><div class="yiv1946371496">Michael</div><div class="yiv1946371496"><br class="yiv1946371496" clear="none"><div class="yiv1946371496"><blockquote class="yiv1946371496" type="cite"><div class="yiv1946371496">On Nov 6, 2017, at 8:43 AM, Fadi Botros via swift-users <<a rel="nofollow" shape="rect" class="yiv1946371496" ymailto="mailto:swift-users@swift.org" target="_blank" href="mailto:swift-users@swift.org">swift-users@swift.org</a>> wrote:</div><br class="yiv1946371496Apple-interchange-newline" clear="none"><div class="yiv1946371496"><div class="yiv1946371496"><div class="yiv1946371496" style="background-color:rgb(255, 255, 255);font-family:'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;font-size:13px;"><div class="yiv1946371496">I'm interested in doing Web Application using Swift and promoting this to be a trend someday.</div><div class="yiv1946371496">But I couldn't find a way to debug web apps without using Xcode</div><div class="yiv1946371496">This is irrelevant because web applications are mainly on Linux, so what if we want to do remote debugging ?</div><div class="yiv1946371496" id="yiv1946371496yui_3_16_0_ym19_1_1509899666408_2586"><br class="yiv1946371496" clear="none"></div><div class="yiv1946371496" dir="ltr" id="yiv1946371496yui_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="yiv1946371496" dir="ltr"><br class="yiv1946371496" clear="none"></div><div class="yiv1946371496" dir="ltr" id="yiv1946371496yui_3_16_0_ym19_1_1509899666408_2649">(lldb) po print(self)<br class="yiv1946371496" id="yiv1946371496yui_3_16_0_ym19_1_1509899666408_2644" clear="none">warning: Swift error in module <moduleName>.<br class="yiv1946371496" id="yiv1946371496yui_3_16_0_ym19_1_1509899666408_2645" clear="none">Debug info from this module will be unavailable in the debugger.<br class="yiv1946371496" id="yiv1946371496yui_3_16_0_ym19_1_1509899666408_2646" clear="none"><br class="yiv1946371496" id="yiv1946371496yui_3_16_0_ym19_1_1509899666408_2647" clear="none">error: in auto-import:<br class="yiv1946371496" id="yiv1946371496yui_3_16_0_ym19_1_1509899666408_2648" clear="none">failed to get module '<SomeModuleName>' from AST context</div><div class="yiv1946371496" dir="ltr" id="yiv1946371496yui_3_16_0_ym19_1_1509899666408_2655"><br class="yiv1946371496" clear="none"></div><div class="yiv1946371496" id="yiv1946371496yui_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="yiv1946371496">Also tried the same experiment on Xubuntu using Swift 4 debian package provided on <a rel="nofollow" shape="rect" class="yiv1946371496" target="_blank" href="http://swift.org/">swift.org</a> itself</div><div class="yiv1946371496"><br class="yiv1946371496" clear="none"></div><div class="yiv1946371496" id="yiv1946371496yui_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="yiv1946371496" clear="none"></div></div></div>_______________________________________________<br class="yiv1946371496" clear="none">swift-users mailing list<br class="yiv1946371496" clear="none"><a rel="nofollow" shape="rect" class="yiv1946371496" ymailto="mailto:swift-users@swift.org" target="_blank" href="mailto:swift-users@swift.org">swift-users@swift.org</a><br class="yiv1946371496" clear="none"><a rel="nofollow" shape="rect" class="yiv1946371496" target="_blank" href="https://lists.swift.org/mailman/listinfo/swift-users">https://lists.swift.org/mailman/listinfo/swift-users</a><br class="yiv1946371496" clear="none"></div></blockquote></div><br class="yiv1946371496" clear="none"></div></div>_______________________________________________<br class="yiv1946371496" clear="none">swift-users mailing list<br class="yiv1946371496" clear="none"><a rel="nofollow" shape="rect" class="yiv1946371496" ymailto="mailto:swift-users@swift.org" target="_blank" href="mailto:swift-users@swift.org">swift-users@swift.org</a><br class="yiv1946371496" clear="none">https://lists.swift.org/mailman/listinfo/swift-users<br class="yiv1946371496" clear="none"><br class="yiv1946371496" clear="none"></div></div></div><br><br></div> </div> </div> </div></div></body></html>