Swift-Sublime-Package
Swift-Sublime-Package copied to clipboard
Build System
Hi, I've created a build system but the swift path is hard coded.
I couldn't find a way to make it read my $path.
I followed your folder structure but don't know if this will work when installing from package manager.
If you like I can send a PR. https://github.com/mtrovilho/Swift-Sublime-Package/commit/d27a497ce15ed227fdd8efb16c09cfc1ce9d72a8
Usage:
cmd + b: Build
cmd + shift + b: Build and Run
Hey thanks for getting started on this. I figured out how to do it without hard-coding the swift path, and I'll push the changes soon
Great! Thank you.
Dunno if you have a good file_regex in there, but this works for me
"file_regex": "^(...*?):([0-9]*):?([0-9]*)?:? (.*)$"
which prints e.g. error: variable used within its own initial value in the status line, and correctly jumps from line to line in the source file. It seems to continue matching into ST's own output after swift's errors, which I don't have the regex-fu to fix, but as long as one stops F4-ing after the last actual swift error...