- This topic has 8 replies, 2 voices, and was last updated 7 years, 10 months ago by support-swapna.
-
AuthorPosts
-
arudmikParticipantI was able to generate javascript outline using version 2015. Just migrated to 2017 and I cannot generate the outline view of javascript files. I’m getting the following error msg:
Error while loading tern outline…
java.lang.NullPointerException
support-swapnaModeratorarudmik,
Thank you for trying MyEclipse 2017. Sorry that you are seeing this issue. I could not replicate the issue at my end with MyEclipse 2017.
Can you please give us some more information?
1. Are you working with a MyEclipse 2015 workspace in MyEclipse 2017 or is it a new workspace ?
2. Can you please clarify if the issue persists with a new simple JS file?
3. Please send us the .log file located at <workspace dir>/.metadata/.log for further investigation.Apologies for inconvenience caused.
–Swapna
MyEclipse Support
arudmikParticipantI created the following test file:
var A = {};
A.abc =function() {
var i;
}A.def = function() {
}
Still getting same exception when entering Command o
I did migrate an existing workspace. I just confirmed that the workspace has been migrated by using menu Project/Migrate Workspace
arudmikParticipantI reduced the log size – see enclosed
Attachments:
You must be logged in to view attached files.
support-swapnaModeratorarudmik,
Thank you for the log file. Unfortunately the shortened log file is missing the crucial stacktrace.
Please clear the contents of the .log file, restart MyEclipse, replicate the issue with the outline view just once and send us the .log file ( change the extension to .txt and attach it ) for further investigation.Apologies for inconvenience caused.
–Swapna
MyEclipse Support
arudmikParticipantI cleared the log file and performed the following steps:
1. Launch MyEclipse – got one error
2. Open a Javascript file using the Java tab.
3. Click on Javascript tab which generated addition errors in the log.Attachments:
You must be logged in to view attached files.
support-swapnaModeratorarudmik,
Thank you for the log file.
Can you please check if the Tern server type is set to ‘Tern with Node.js’ in the Window > Preferences > JavaScript > Tern > Server ? If it is not set, then please select ‘Tern with Node.js’, apply the changes and check if it fixes the issue. Attached is the screenshot for your reference.
Please let us know how it works for you.
–Swapna
MyEclipse SupportAttachments:
You must be logged in to view attached files.
arudmikParticipantThank you. Your suggestion fixed the issue. I’ve made note of this so that in the future I will know to set the tern server correctly.
I hope that finding out that if the Tern server is not set, then an exception is raised is helpful and perhaps MyEclipse could put out a message that the Tern server has not been specified.
support-swapnaModeratorarudmik,
Glad that it works. I have raised a bug for notifying users about Tern server not being set and the dev team is looking into it. We will keep you posted about the fix.
Sorry for inconvenience caused. Please let us know if you see any issues.
–Swapna
MyEclipse Support -
AuthorPosts