Why I cannot use JSLint eclipse plugin by Rockstartapps? - eclipse

I am running eclipse (Eclipse for PHP Developers).
After installing JSLint plugin from Rockstartapps (http://update.rockstarapps.com), the plugin don't validate.
When I am trying to apply validation to particular file (Right click on the file -> Rockstarapps -> Validate with JSLint...) it does absolutely nothing.
When saving a file it throws eclipse error:
Errors occurred during the build.
Errors running builder 'Rockstarapps JsLint Builder' on project 'testapp'.
java.lang.NullPointerException
Any clue why this happens?
Update
Found a very good replacement solution. Works completely the same as plugin by Rockstarapps worked before, perhaps rules are even a bit updated.

Looks like a bug in that plug-in.

Related

Scale IDE error when I try to make a new scala project

I installed Scala IDE 4.7.0 and tried to make a new scala project.
But there was "No Applicable Items". (File > New > No Applicable Items)
So, I opened the opening wizard by cmd+N, and chose the scala project.
And, Here is the error code:
Problem Opening Wizard
The selected wizard could not be started.
Plug-in org.scala-ide.sdt.core was unable to load class org.scalaide.ui.internal.wizards.ScalaProjectWizard.
An error occurred while automatically activating bundle org.scala-ide.sdt.core (333).
I did almost everything, e.g. reinstall, remove workspace directory, etc.
But nothing helped out.
Appreciate if someone fix this!

PhantomJS Project in Eclipse (with Nodeclipse): NullPointerException when trying to run js file that is present in a folder

I wish to create a PhantomJS Project in Eclipse for which I have installed the Nodeclipse PhantomJS 0.12+ plugin. I am selecting the below project type:
The script runs fine when I arrange the project in the following way (without any folders).
But, when I place the same .js file in a folder and try to run it, I end up getting a NullPointerException (see screenshot below).
The error that I'm getting is below:
An internal error occurred during: "Launching PhantomJSTest-Test1.js".
java.lang.NullPointerException
Screenshot:
What I have tried:
I found a similar question on Stackoverflow with the same error but for Android. I have tried cleaning, building the project. But, the error occurs only when I create a folder structure in my project. If I don't, then the script runs fine. In short, I am not able to organize the project.
Questions:
I'd like to know what type of folder structure is valid / will work for a PhantomJS project?
Why is the NullPointerException occuring?
Are there any other easy alternatives to setting up a PhantomJS project?
Any help / guidance regarding the folder structure is highly appreciated.
First get the latest version, that is 0.17, see news/history at http://www.nodeclipse.org/
If the problem is still on, raise issue on https://github.com/nodeclipse/nodeclipse-1/ (and reference this question)
To the questions:
PhantomJS launcher is rather simple https://github.com/Nodeclipse/nodeclipse-1/tree/master/org.nodeclipse.phantomjs, and it should work for any .js file (in any project type). PhantomJS project type is for beauty sake only, as it is just JavaScript project.
NullPointerException should occur never, so it may be bug.
You can create general project as well. But with JSDT and Tern you would get some Content Assist. For new module support with Tern raise issue at https://github.com/angelozerr/tern.java/
I switched to using Enide Studio and that solved the folder structure issue for me.
Here's what is needed to setup PhantomJS Project:
PhantomJS
Enide Studio
Steps:
Download PhantomJS
Download and launch Enide Studio
Goto Window->Preferences->Nodeclipse->PhantomJS and set PhantomJS Path to 'phantomjs.exe' file path
Create a PhantomJS Project (like any normal project)

Errors running builder 'CDT Builder' on project 'proj1' (eclipse CDT)

I have a question about how to import an project that contains an existing make file into eclipse.
From reading the eclipse documentation it seems that i should use a "Makefile Project"
Is this correct?
If so then the import of the project files seems ok, but when I run build I get:
Errors occurred during the build.
Errors running builder 'CDT Builder' on project 'proj1'.
Internal error building project proj1 configuration Default
java.lang.NullPointerException
Internal error building project proj1 configuration Default
java.lang.NullPointerException
ok. So I i assume that i am getting this because the build target points to nothing. So i got to Project-> Properties -> C/C++ Build and all the "builder settings" are grayed out.
My next attempt was to go to Project -> Make Target -> Create. What i see here is:
Target name:
Make Target:
Use Builder settings:
I made several attempts at putting values into these fields and running make again, but I get the same error.
When using eclipse CDT in the past i have always created the project myself so eclipse handled the whole make thing for me. But I am at a loss of how i actually tell CDT what make file to use or why I am receiving the above error message.
So i gues my question is if i want to import a C project with an existing file how do i tell eclipse what make file to use? In the flow i chose these options seemed grayed out.
I tried looking this up on stack exchange, but have not found an exact match for my situation
Thanks in advance.
It looks like something went wrong with your import. You should have imported your code via Existing Code as Makefile Project. The build command can be defined in the project-properties dialog, under C/C++ Build, Behaviour tab, in case you have a specific situation.

Checkstyle Eclipse plugin doesn't work

I'm using eclipse checkstyle plugin with Juno Eclipse distribution. Anytime the code is checked for checkstyle error I get the following error:
cannot initialize module TreeWalker - Unable to instantiate DoubleCheckedLocking
Does anybody know how to fix this problem? Is it a plugin compatibility issue or something else?
The DoubleCheckedLocking check has been removed in Checkstyle 5.6 and must be manually removed from your Checkstyle configuration.
See also: http://sourceforge.net/tracker/index.php?func=detail&aid=3571442&group_id=29721&atid=397078
Open the Checkstyle preferences, create your own Check Configuration, go into your own check configuration, find the TreeWalker module, click it and then un-check the DoubleCheckedLocking. As simple as that.
just comment or remove "DoubleCheckedLocking" from the checkstyle file and it will work
Under your Eclipse Workspace Search for file internal_config__*.xml
Remove the following line from the file
<module name="DoubleCheckedLocking"/>
Reload Workspace.
This will work for any discontinued module which produces the error message "Unable to instantiate"

Build error in eclipse

I am using eclipse HELIOS. I am getting the following error message whenever I build my project.
Has anyone else experienced such error? Is it a problem of eclipse or the project? It never occured to me before but for this project its happening. It says NullPointerException but that should not pop up such message.
Please help, its driving me nuts. I need to check in my codes but I cant test them due to this building error.
Let me know if more details is reqd.
I found the solution. It was a maven plugin issue. Cleaning up the repository solved it.
First try;
Clean your all project from under project menu and eclipse tries rebuild.
Second try;
Remove your project from eclipse
Delete all files(eclipse project
files like .project) except .java
files and other necessary code files
like .xml
And create a new project from
existing these source codes.
Otherwise you can check your java compiler or eclipse builder path or builder version.