Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to immediately see Swift errors in AppCode?

Is there a way to immediately see Swift errors in AppCode? On their website they talk about static code analysis, but nowhere could I find a claim that this happens instantly. When you type some Swift code in Xcode you usually see warnings, errors etc. immediately. In AppCode I first have to make the build (⌘F9), then go through the list in the Messages Build view (which got way nicer in AppCode 2016.01 RC2):

AppCode 2016.01 RC2 Messages Build

I find this tedious, especially when you make some small typos that lead to syntax errors. They could be avoided upfront.

like image 675
Rafael Bugajewski Avatar asked Mar 27 '16 16:03

Rafael Bugajewski


2 Answers

Currently this feature is not yet implemented for Swift and we are working on it right now. The most probably it will appear in the EAP for the next update.

UPD: implemented since AppCode 2016.2

UPD 2: if you still have such problem - since 2019.2 you can run Find Action | Run Swift IDE Report and attach to the ticket in our tracker. Most probably it's a specific problem and such report will help us to analyze this issue.

like image 132
Stanislav Dombrovsky Avatar answered Oct 25 '22 23:10

Stanislav Dombrovsky


You can see all build errors in the "Messages" tab (on the bottom of the screen for me).

If you have a lot of warnings in your project, you can filter that tab to just show build errors with the filter button on the left. Set the filter to "Errors Only".

Filter Screenshot

like image 23
Kyle Venn Avatar answered Oct 25 '22 22:10

Kyle Venn