<div dir="ltr">Hi all<div><br></div><div>I guess like many other iOS devs with c/c++ background I really wanted to get into Swift development one day, at least a tiny bit, at least to understand how things work.</div><div><br></div><div>So new refactoring tools and starter tasks finally pulled me in.</div><div><br></div><div>With a lot of struggle and a lot of help from community I was able to understand how lit works, how to walk the AST and write changes back to the editor. I've got code and tests for new refactoring kind and new refactoring action, so I was like "yay, time to build the keychain and just try it in Xcode!!!".</div><div><br></div><div>That's where I was thrown back to the "what do I do?" state again...</div><div><br></div><div>I pulled latest <b>master</b> branch and ran <b>build-toolchain </b>and all of that just to be told after almost an hour or so that there are 3 failing tests...</div><div><br></div><div>So I thought:</div><div><br></div><div>cd swift</div><div>git checkout swift-DEVELOPMENT-SNAPSHOT-2017-09-15-a<br></div><div>cd ..</div><div>./swift/utils/update-checkout --tag swift-DEVELOPMENT-SNAPSHOT-2017-09-15-a</div><div><br></div><div>then build and fail again :(...</div><div><br></div><div>OK then, so I just disable the tests and give it another go:</div><div><br></div><div># build-presets.ini</div><div><div style="color:rgb(212,212,212);background-color:rgb(30,30,30);font-family:Menlo,Monaco,"Courier New",monospace;font-size:12px;line-height:18px;white-space:pre"><div><span style="color:rgb(96,139,78)">#test</span></div><div><span style="color:rgb(96,139,78)">#validation-test</span></div><div><span style="color:rgb(96,139,78)">#long-test</span></div></div></div><div><br></div><div>Yay! I got a toolchain!</div><div>I copy it over to /Library/Developer/Toolchains/ </div><div>Select it in Xcode (latest Xcode 9 GM) and... no luck</div><div>The source code highlighting disappears, </div><div>I get "An internal error occurred. Source editor functionality is limited..." error.</div><div>All of the refactoring actions are disabled.</div><div><br></div><div>I guess those 3 failing tests did matter in the end...</div><div><br></div><div><br></div><div>I may be frustrated, because I don't understand what's going on, but I don't feel like giving up.</div><div><br></div><div>I'd appreciate any help or advice I can get!</div><div><br></div><div>Should I choose an older tag from before to get all tests passing?</div><div>Should I build using Xcode beta rather then GM?<br></div><div>Is there any way to build/re-build the OS X toolchain any faster? </div><div>Why does it take so long even if I just re-run same command again?</div><div>Where did I get it wrong so the toolchain doesn't really work with Xcode?</div><div>Can I connect lldb to process that runs my lit tests?</div><div><br></div><div>I'm sorry for having so many questions, but you can imagine there isn't a lot of information for newbies like me trying to get into Swift compiler development. Well, let's just say I couldn't find much :) I've just realized that this mail list is better option that StackOverflow about an hour ago :) Though, of course, I have read Brian Gesiak's posts and the <a href="http://swift.org">swift.org</a> blog post on refactoring.</div><div><br></div><div>Just to sum up all of the above, how to I get to build local Xcode toolchain which I can plug in to Xcode and test?</div><div><br></div><div>Thank you!</div></div>