"trinay" wrote:
hi,
I have installed the brightscript plugin in eclipse 3.7.2 .when i create new bright script project.I got the below errors
Errors occurred during the build.
Errors running builder 'Script Builder' on project 'sample'.
java.lang.NullPointerException
How to fix the above error.
Thanks
Although you haven't yet provided enough info for me to be sure, for now I'm going to assume the problem is the memory management issue others have had in the past couple of months.
Recent releases of the plugin require more memory than previous versions due to the type inference system ( which provides auto-completion, hover-help, type checking, and other significant benefits ).
The source of the issue you are seeing is usually a combination of one or more of the following things in rank order:
1) Your eclipse instance is running a version of java that's older than 1.7 ( older java versions in the 1.5 and 1.6 range have a known bug involving memory management, and some of the older,early 1.7 releases also have this bug ). Updating to the latest version of Java may clear up the error, or at least cause the real underlying error to be displayed ( out-of-memory ).
2) You are running a 64-bit version of eclipse ( which has a higher memory overhead than 32-bit eclipse, and generally does not provide any advantages over the 32-bit version except being able to address memory over 4GB... the latter, btw, is why most web browsers are still 32-bit apps even for the 64-bit operating systems). Switching from a 64-bit version of eclipse to a 32-bit version will decrease the amount of memory overhead needed, and may be enough to help you avoid the out-of-memory condition.
3) You haven't increased your max heap memory setting for your instance of eclipse to the level needed to accommodate your open projects ( eclipse ships with a low default max heap setting in the eclipse.ini file ). The default value is 384m, but I've found I need 1024m for most projects now. The max heap setting is "-Xmx" in your eclipse.ini file ( same directory as your eclipse executable ) is usually found at the bottom of the file.
4) You have limited available physical memory and/or other running processes that are consuming a significant percentage of your memory ( YMMV ).
So, the questions are:
a) what version of java is your eclipse instance running?
b) Are you running a 32-bit or 64-bit version of eclipse?
c) What is your eclipse max heap size ( in eclipse.ini )?
d) Have you closed all unnecessary apps ( and other eclipse projects not required by your current BrightScript project )?
I can easily determine the answer to (a),(b), and (c) for you if you PM me your eclipse configuration, which is gettable in eclipse by: Help->About Eclipse->Installation Details->Configuration
Cheers