facebook

Bug in 2019.6 CodeMix

  1. CodeMix & Angular IDE
  2.  > 
  3. Getting Help
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #616015 Reply

    davidhedley
    Participant

    Following the recent CodeMix update, I am now getting the following exception when trying to open a JavaScript file:

    java.lang.NullPointerException
    at com.genuitec.eclipse.code.ui.editor.CodeEditor.calculateSideBySide(CodeEditor.java:1543)
    at com.genuitec.eclipse.code.ui.editor.CodeEditor.isSideBySide(CodeEditor.java:1524)
    at com.genuitec.eclipse.server.ui.editor.preview.PreviewController.isSideBySideEditor(PreviewController.java:1068)
    at com.genuitec.eclipse.server.ui.editor.preview.PreviewController.adjustPreviewSize(PreviewController.java:238)
    at com.genuitec.eclipse.server.ui.editor.preview.PreviewController.createContainer(PreviewController.java:212)
    at com.genuitec.eclipse.code.ui.editor.CodeEditor.createSourceViewer(CodeEditor.java:570)
    at org.eclipse.ui.texteditor.AbstractTextEditor.createPartControl(AbstractTextEditor.java:3338)
    at org.eclipse.ui.texteditor.StatusTextEditor.createPartControl(StatusTextEditor.java:64)
    at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.createPartControl(AbstractDecoratedTextEditor.java:452)
    at com.genuitec.eclipse.code.ui.editor.CodeEditor.createPartControl(CodeEditor.java:402)
    at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.createPartControl(CompatibilityPart.java:156)
    at org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor.createPartControl(CompatibilityEditor.java:102)
    at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:367)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    Other javascript files open fine. This one is different as it’s been modified relative to its base SVN version.

    #616016 Reply

    support-swapna
    Moderator

    David,

    Sorry that you are seeing this issue. Thank you for the stacktrace.
    The dev team is looking into it.

    For now, you can turn off Live Preview for .js files to continue working.
    To exclude the .js files from Live Preview : Go to Window > Preferences > CodeMix > Miscellaneous > Live Preview > Includes/Excludes and remove the .js entry from the Includes list. Apply the changes and if you are still seeing the problem, then restart the IDE.

    We will get back to you soon with our findings.

    Apologies for inconvenience caused.

    –Swapna
    Genuitec Support

    #616154 Reply

    davidhedley
    Participant

    I have had to disable CodeMix for now.

    If you release a fix for this then can you respond on this ticket so I will know it is available?

    Thanks

    #616156 Reply

    support-swapna
    Moderator

    David,

    Apologies for the bad experience.
    We will keep you posted when the fix is out.

    Thank you for your support.

    –Swapna
    Genuitec Support

    #616183 Reply

    timwebb
    Keymaster

    David,

    Thank you again for reporting this issue. We’ve made a prerelease build that should fix the exception you are hitting in Live Preview. It would be great to have you try this to confirm this fixes the issue for you — unfortunately, it’s been a bit hard to reproduce the exact break you see but from the details provided, we are fairly confident this build will work for you.

    Pre-release is now available:

    To use the preview release, follow these steps:

    1. Add the following line to Eclipse/configuration/config.ini
      com.genuitec.code.manifest.url=http\://www.genuitec.com/updates/codemix/prerelease/codemix.json
    2. Restart Eclipse
    3. An update will be detected as shown bottom left — when the update is applied, click the Restart icon to reload Eclipse with the prerelease version of CodeMix
    #616329 Reply

    support-swapna
    Moderator

    David,

    We released CodeMix 2019.6.19 which has the fix for the NPE you reported when opening a JS file with Live Preview enabled.
    Please update via Help > Check for Updates and let us know how it works for you.

    Thank you for once again for reporting the issue.

    –Swapna
    Genuitec Support

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Bug in 2019.6 CodeMix

You must be logged in to post in the forum log in