- This topic has 5 replies, 3 voices, and was last updated 5 years, 6 months ago by support-swapna.
-
AuthorPosts
-
davidhedleyParticipantFollowing 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.
support-swapnaModeratorDavid,
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
davidhedleyParticipantI 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
support-swapnaModeratorDavid,
Apologies for the bad experience.
We will keep you posted when the fix is out.Thank you for your support.
–Swapna
Genuitec Support
timwebbKeymasterDavid,
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:
- Add the following line to Eclipse/configuration/config.ini
com.genuitec.code.manifest.url=http\://www.genuitec.com/updates/codemix/prerelease/codemix.json
- Restart Eclipse
- 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
support-swapnaModeratorDavid,
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 - Add the following line to Eclipse/configuration/config.ini
-
AuthorPosts