Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullPointerException when attempting to convert project to tern #433

Open
mgeorgy opened this issue Jul 26, 2016 · 3 comments
Open

NullPointerException when attempting to convert project to tern #433

mgeorgy opened this issue Jul 26, 2016 · 3 comments

Comments

@mgeorgy
Copy link

mgeorgy commented Jul 26, 2016

I'm new to Tern and have followed the installation instructions. After creating a general project, I attempt to convert the project to a tern project from the Project Explorer and receive the follwing error:

!ENTRY org.eclipse.core.jobs 4 2 2016-07-26 02:38:44.354
!MESSAGE An internal error occurred during: "Converting '<project_name>' to tern project...".
!STACK 0
java.lang.NullPointerException
at tern.eclipse.ide.internal.core.resources.IDETernProject.(IDETernProject.java:118)
at tern.eclipse.ide.internal.core.resources.IDEResourcesManager.getTernProject(IDEResourcesManager.java:61)
at tern.internal.resources.InternalTernResourcesManager.getTernProject(InternalTernResourcesManager.java:47)
at tern.TernResourcesManager.getTernProject(TernResourcesManager.java:58)
at tern.eclipse.ide.core.TernCorePlugin.getTernProject(TernCorePlugin.java:131)
at tern.eclipse.ide.ui.handlers.AbstractConvertProjectCommandHandler.doInstall(AbstractConvertProjectCommandHandler.java:70)
at tern.eclipse.ide.ui.handlers.AbstractConvertProjectCommandHandler.access$0(AbstractConvertProjectCommandHandler.java:66)
at tern.eclipse.ide.ui.handlers.AbstractConvertProjectCommandHandler$1.runInWorkspace(AbstractConvertProjectCommandHandler.java:113)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:39)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

I am using Eclipse 4.6 on OS X 10.11.6.

Any ideas what maybe causing this?

Thanks

@angelozerr
Copy link
Owner

It seems the location of your project is null? https://github.com/angelozerr/tern.java/blob/master/eclipse/tern.eclipse.ide.core/src/tern/eclipse/ide/internal/core/resources/IDETernProject.java#L118

Have you created your project in the default location of the workspace?

@mgeorgy
Copy link
Author

mgeorgy commented Jul 26, 2016

Thank you. It is working without a problem if my project is created in my workspace. Is there an issue if I wanted to create the project on a remote server using RSE?

@angelozerr
Copy link
Owner

I have never used RSE. tern.java uses project location, because tern.js need a working directory (file system). I'm not sure if it can work with RSE?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants