AppCode 2.0 EAP build #126.19

Hey guys,

it’s been a while since the last AppCode 2.0 EAP build, and you may be sure we haven’t spent this time uselessly. Actually, we’ve been busy preparing some new exciting features for you.

However before we’ll get into details, we would like to acknowledge the help of Bogdan Popescu, the developer of Dash browser. He was very responsive and improved Dash-AppCode integration so that with version 1.7.5 it provides more precise results, when called with AppCode’s Show External Documentation action (Shift+F1).
You can download fully functional version from App Store and enable integration in AppCode | Preferences | External Documentation.

OK, back to the new features in AppCode, here is what’s on the table:

  • Core Data object renderers in debugger.

  • Exception stack trackes in console are now linked to the actual code.

  • Integrated Clang Analyzer (Code | Inspect Code…).

  • Implement (Cmd+I) and Override (Cmd+O) now work with C++ classes, namespaces and top-level functions.
  • We are also working on auto-completion improvements: it will now show in-editor preview of the first variant that can be accepted by Enter or Tab, characters like dot, space and other won’t accept it. This behaviour can be changed in Preferences | Editor | Code completion.

Plus, quite a few other fixes and improvements.

Download and try the latest build from EAP page and tell us what you think! Issue reports and feature suggestions are very welcome in the tracker.

There’s more coming, so stay tuned!
The AppCode Team

This entry was posted in Announcement, Early Access Preview. Bookmark the permalink.

13 Responses to AppCode 2.0 EAP build #126.19

  1. iffi says:

    I’ve downloaded the EAP build, and a get tens of errors like this:

    Argument 1 for @NotNull parameter of com/jetbrains/objc/preprocessor/OCLanguageKindCalculator.tryFileTypeAndExtension must not be null: Argument 1 for @NotNull parameter of com/jetbrains/objc/preprocessor/OCLanguageKindCalculator.tryFileTypeAndExtension must not be null
    java.lang.IllegalArgumentException: Argument 1 for @NotNull parameter of com/jetbrains/objc/preprocessor/OCLanguageKindCalculator.tryFileTypeAndExtension must not be null
    at com.jetbrains.objc.preprocessor.OCLanguageKindCalculator.tryFileTypeAndExtension(
    at com.jetbrains.cidr.xcode.model.XcodeMetaData.collectConfigurationLanguageKind(
    at com.jetbrains.cidr.xcode.model.XcodeMetaData.access$400(
    at com.jetbrains.cidr.xcode.model.XcodeMetaData$5.compute(
    at com.jetbrains.cidr.xcode.model.XcodeMetaData$5.compute(
    at com.jetbrains.cidr.xcode.model.XcodeMetaData$12.compute(
    at com.intellij.psi.impl.PsiCachedValueImpl.doCompute(
    at com.intellij.util.CachedValueBase.getValueWithLock(
    at com.intellij.psi.impl.PsiCachedValueImpl.getValue(
    at com.jetbrains.cidr.xcode.model.XcodeMetaData.getConfigurationLanguageKind(
    at com.jetbrains.objc.preprocessor.OCLanguageKindCalculator.calculateLanguageKind(
    at com.jetbrains.objc.psi.impl.OCFileImpl.calcFileKind(
    at com.jetbrains.objc.psi.impl.OCFileImpl.getKind(
    at com.jetbrains.objc.preprocessor.OCImportsGraph.getAllRootHeaders(
    at com.jetbrains.objc.preprocessor.OCImportsGraph.buildSymbolAndRootHeaderCache(
    at com.jetbrains.objc.symbols.FileSymbolTablesCache.ensurePendingFilesProcessed(
    at com.jetbrains.objc.symbols.FileSymbolTablesCache.ensurePendingFilesProcessed(
    at com.jetbrains.objc.psi.impl.symbols.OCFileGlobalSymbolsCache.processFile(
    at com.jetbrains.objc.psi.impl.symbols.OCLightFileGlobalSymbols.buildSymbols(
    at com.jetbrains.objc.psi.impl.symbols.OCFileGlobalSymbolsCache$2.createValue(
    at com.jetbrains.objc.psi.impl.symbols.OCFileGlobalSymbolsCache$2.createValue(
    at com.intellij.util.containers.SLRUCache.get(
    at com.jetbrains.objc.psi.impl.symbols.OCFileGlobalSymbolsCache.lightTableForFile(
    at com.jetbrains.objc.psi.impl.OCFileImpl.getMembersContainer(
    at com.jetbrains.objc.resolve.OCResolveUtil.processGlobalSymbols(
    at com.jetbrains.objc.symbols.OCImplementationSymbol.getInterface(
    at com.jetbrains.objc.symbols.OCImplementationSymbol.getInterface(
    at com.jetbrains.objc.symbols.OCImplementationSymbol.getAssociatedSymbol(
    at com.jetbrains.objc.lang.OCLineMarkerProvider.getRelatedSymbol(
    at com.jetbrains.objc.lang.OCLineMarkerProvider.getAction(
    at com.jetbrains.objc.lang.OCLineMarkerProvider.getDeclDefMarker(
    at com.jetbrains.objc.lang.OCLineMarkerProvider.getLineMarkerInfo(
    at com.intellij.codeInsight.daemon.impl.LineMarkersPass.addLineMarkers(
    at com.intellij.codeInsight.daemon.impl.LineMarkersPass.collectInformationWithProgress(
    at com.intellij.codeInsight.daemon.impl.ProgressableTextEditorHighlightingPass.doCollectInformation(
    at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(
    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1$
    at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(
    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(
    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.doRun(
    at com.intellij.codeInsight.daemon.impl.PassExecutorService$
    at com.intellij.concurrency.JobLauncherImpl$
    at com.intellij.concurrency.JobLauncherImpl$
    at java.util.concurrent.FutureTask$Sync.innerRun(
    at com.intellij.concurrency.PrioritizedFutureTask.access$101(
    at com.intellij.concurrency.PrioritizedFutureTask$
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
    at java.util.concurrent.ThreadPoolExecutor$

    They are constantly popping up on the whole right side of the screen and the IDE is unusable :(

    • Anton Makeev says:

      Sorry for that, we’ll fix ASAP,
      meanwhile, open the project in Xcode, and check Build Phases | Compile Sources for each target – make sure there are no broken (red) files in them.
      If you fix these files, AppCode should work correctly.

      • iffi says:

        There was only one broken file, I removed it from the Compile Sources Phase. No the errors do not pop up, but they still occur in the event log, for 5 minutes, there are 79now and still counting.
        But the bigger problem is that go to Declaration is not working. When I cmd+click or comd+B, I get another error: update failed for AnAction with ID=GotoDeclaration: Argument 1 for @NotNull parameter of com/jetbrains/objc/preprocessor/OCLanguageKindCalculator.tryFileTypeAndExtension must not be null
        I tried invalidating the cache, but that didn’t help.

        • Anton Makeev says:

          It means that project still has some broken files in the Build Phases. Please file a bug report and we’ll continue discussion there. If possible, also attach your project.

          • iffi says:

            I’ve removed all broken files from the project (not only from build phases). Everything seems fine now. I’ll file a bug report, though I cannot attach my project.
            Thanks for the help :)

  2. maniacus says:

    This error also rendered IDE unusable for me unfortunately, is it possible to download the previous build again? At least until this bug is fixed…

    • maniacus says:

      Well, maybe it’s not a bug, maybe it just should be handled differently (Xcode tolerates this)

      • Anton Makeev says:

        Have you managed to workaround the problem by removing broken references?
        But anyway, you can download the previous build here:

        • maniacus says:

          Hi Anton,

          Unfortunately there is some complicated (and probably not right) setup in our project that “requires” these red files to be shown, otherwise it won’t build (it’s a long story). It most likely can be fixed but the project is too big to do that now. I liked AppCode2 so much that I can’t go back to Xcode anymore :-), thank you for the link, I’ll be waiting for future builds.

  3. orip says:

    This latest build is also very unstable for me. I even found a bug that drove me crazy: I opened a file with Cmd-Shift-O, edited, everything works except that the file doesn’t change on disk.

    I double check everything, and my changes affect the built app, but my working directory has no changes. Restarting AppCode doesn’t fix this.

    After scratching my head I figure out that AppCode opened a derived version of the file instead of the one in my working directory:

    Closing the file and opening again (with Cmd-Shift-O) opened the right one.

  4. Marcel Bradea says:

    How does the exception stack traces feature work? Do you need to do anything to enable it? Exceptions in the console still show up like this:

    2013-01-27 09:32:07.693 Foodo-Mobile[4154:9407] *** Terminating app due to uncaught exception ‘NSInternalInconsistencyException’, reason: ‘No matching items.’
    *** First throw call stack:
    (0x2177012 0x15b4e7e 0x9770f 0x5d054 0xb4986 0x5ed17 0x4cff53f 0x4d11014 0x4d022e8 0x4d02450 0x99fcde12 0x99fb5cca)
    libc++abi.dylib: terminate called throwing an exception
    Signal: 6 (signal SIGABRT)

    Are there certain build settings that have to be enabled perhaps?

    • Anton Makeev says:

      Marcel, to make use of stack trace navigation, you need to print -[NSException callStackSymbols] using NSLog or other technique.
      The feature you are looking for, though, is stack trace symbolication, that is not yet implemented.

Leave a Reply to Anton Makeev Cancel reply

Your email address will not be published. Required fields are marked *