facebook

Not able to view javascript outline using 2017 C1 1

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #507905 Reply

    arudmik
    Participant

    I 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

    #507987 Reply

    support-swapna
    Moderator

    arudmik,

    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

    #507994 Reply

    arudmik
    Participant

    I 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

    #507995 Reply

    arudmik
    Participant

    I reduced the log size – see enclosed

    Attachments:
    You must be logged in to view attached files.
    #508266 Reply

    support-swapna
    Moderator

    arudmik,

    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

    #508273 Reply

    arudmik
    Participant

    I 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.
    #508372 Reply

    support-swapna
    Moderator

    arudmik,

    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 Support

    Attachments:
    You must be logged in to view attached files.
    #508394 Reply

    arudmik
    Participant

    Thank 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.

    #508412 Reply

    support-swapna
    Moderator

    arudmik,

    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

Viewing 9 posts - 1 through 9 (of 9 total)
Reply To: Not able to view javascript outline using 2017 C1 1

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