Quantcast
Viewing latest article 2
Browse Latest Browse All 9

Eclipse –‘Building workspace’ has encountered a problem

I’ve got a web project that uses some 3rd party JavaScript libraries.  Unfortunately whenever Eclipse (Indigo) builds the project, it gives an error “‘Building workspace’ has encountered a problem”.

The details of the error read:

Errors occurred during the build.
Errors running builder ‘JavaScript Validator’ on project ‘project’.
java.lang.NullPointerException

On first inspection, it looks as though the solution would be to edit the JavaScript validator preferences and make it a bit less verbose.  Unfortunately though, there doesn’t seem to be any options in Eclipse to do this.

One solution though appears to be to edit the project Builders (Right click on Project, select “Properties” | “Builders”) and un-tick the JavaScript Validator option.

When you do this, Eclipse complains that this is an advanced operation and may cause side effects, so it doesn’t feel like the correct way to progress to me.  Having said that, it does eliminate the problem and allows Eclipse to build the project without NPEs.

Has anyone else experienced this problem and have a workaround that doesn’t involve disabling the ‘JavaScript Validator’ Builder, or is this the best approach in this situation?


Viewing latest article 2
Browse Latest Browse All 9

Trending Articles