CLion 2016.3 EAP: highlight code in accordance with build/run configuration

Posted on by Anastasia Kazakova

Hi,

New CLion 2016.3 EAP build (163.5644.7) is available for download. Read the highlights of the changes below.

Automatic switching of the resolve context

Code highlighting (as well as find usages, refactorings, code generation, code analysis and more) may depend on the set of variables and flags used while resolving the code. Now when you switch the build/run configuration (that may affect these settings), CLion automatically switches the resolve context of the current file for you:
resolve_switch
As before, you can change it manually using the switcher in the bottom right corner of the editor (however, for now keep this in mind).

Other changes

This EAP also brings new design for branches and tags in Git/Hg Log. It looks cleaner and easier to use now:
git_log

Besides, CMake 3.6.2 was bundled into this build.

As usual, full release notes are available by the link.

Download the build or get a patch update in case you are using previous CLion EAP, build 163.5219.6.


Download CLion 2016.3 EAP

Your CLion Team

JetBrains
The Drive to Develop

Comments below can no longer be edited.

6 Responses to CLion 2016.3 EAP: highlight code in accordance with build/run configuration

  1. Olof says:

    October 5, 2016

    I copy pasted into a cmake file and got the exception below. I use the ideavim plugin version 0.46 and I was in normal mode.

    Write access is allowed from write-safe contexts only. Please ensure you’re using invokeLater/invokeAndWait with a correct modality state (not “any”). See TransactionGuard documentation for details.
    current modality=ModalityState.NON_MODAL
    known modalities={ModalityState.NON_MODAL=true}
    java.lang.Throwable
    at com.intellij.openapi.diagnostic.Logger.error(Logger.java:132)
    at com.intellij.openapi.application.TransactionGuardImpl.assertWriteActionAllowed(TransactionGuardImpl.java:246)
    at com.intellij.psi.impl.PsiDocumentManagerBase.commitDocument(PsiDocumentManagerBase.java:297)
    at com.jetbrains.cidr.lang.editor.OCEnterInBlockCommentHandler.preprocessEnter(OCEnterInBlockCommentHandler.java:40)
    at com.intellij.codeInsight.editorActions.EnterHandler.a(EnterHandler.java:126)
    at com.intellij.codeInsight.editorActions.EnterHandler.b(EnterHandler.java:79)
    at com.intellij.psi.impl.source.PostprocessReformattingAspect.c(PostprocessReformattingAspect.java:113)
    at com.intellij.psi.impl.source.PostprocessReformattingAspect.disablePostprocessFormattingInside(PostprocessReformattingAspect.java:121)
    at com.intellij.psi.impl.source.PostprocessReformattingAspect.disablePostprocessFormattingInside(PostprocessReformattingAspect.java:112)
    at com.intellij.codeInsight.editorActions.EnterHandler.executeWriteAction(EnterHandler.java:78)
    at com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler$1.run(EditorWriteActionHandler.java:49)
    at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:923)
    at com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler.doExecute(EditorWriteActionHandler.java:62)
    at com.intellij.openapi.editor.actionSystem.EditorActionHandler.execute(EditorActionHandler.java:222)
    at com.intellij.codeInsight.template.impl.editorActions.EnterHandler.executeWriteAction(EnterHandler.java:49)
    at com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler$1.run(EditorWriteActionHandler.java:49)
    at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:923)
    at com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler.doExecute(EditorWriteActionHandler.java:62)
    at com.intellij.openapi.editor.actionSystem.EditorActionHandler$3$1.perform(EditorActionHandler.java:206)
    at com.intellij.openapi.editor.actionSystem.EditorActionHandler.doIfEnabled(EditorActionHandler.java:109)
    at com.intellij.openapi.editor.actionSystem.EditorActionHandler.access$000(EditorActionHandler.java:38)
    at com.intellij.openapi.editor.actionSystem.EditorActionHandler$3.perform(EditorActionHandler.java:203)
    at com.intellij.openapi.editor.impl.CaretModelImpl.a(CaretModelImpl.java:355)

    • Anastasia Kazakova says:

      October 5, 2016

      Thanks. We are checking it.

    • Anastasia Kazakova says:

      October 5, 2016

      I’ve put to the tracker: https://youtrack.jetbrains.com/issue/IDEA-162134. Follow it there pls.

    • Anastasia Kazakova says:

      October 5, 2016

      Is it possible to provide a full stack trace in the corresponding ticket: https://youtrack.jetbrains.com/issue/IDEA-162134?

      • Olof says:

        October 6, 2016

        Found two examples in my log. I think it is the same case. Submitted.

        • Anastasia Kazakova says:

          October 6, 2016

          Thanks! We’ll investigate.

Subscribe

Subscribe for updates