04-11-2010 05:02 PM
Artifacts have been cleaned out, I've learned all the different files (not individually) that are installed or created by the Eclipse Plugin so I knew which ones to delete or move.
I know the pre-processor is working because some elements that are not supposed to run don't run and those that are currently defined do.
I just don't know why stuff like this happens, is it Eclipse's "auto-build" or something else? I am certain that it has to do with Eclipse because, as stated before, the compile is coming out correct (for the classes/projects that do compile) but Eclipse complains about other stuff.
At the rate that I'm going it might be better to write my own pre-processor and have it execute before the Resource Builder. At least then I can implement support for define operations (//#ifdef DEFINE1 || DEFINE2) and the like.
I'll bring this post up tomorrow when MSohm roams the forums (about 12PM-3PM my time).
04-12-2010 02:09 PM
So has anybody have a fix or know what might cause something like this? Is it an Eclipse thing or a Plug-In thing?
07-26-2010 05:48 PM
IM having this same issue =(
i imported a project from Eclipse 3.4.2 Plugin 1.0
into Eclipse 3.5 Plugin 1.1
its really important for me since the debugger wasnt working but now i got this =( on my new setup and it wont compile...
"Errors Ocurred during the build.
Errors running builder 'Blackberry Pre-Process Builder' on project '[MY PROJECTS NAME]'
An error ocurred while traversing resources:
java.lang.NullPointerException
An error ocurred while traversing resources:
java.lang.NullPointerException"
yes, it says that twice.
i have no clue on this =(
any help will be very appreciated.
thanks!
07-26-2010 05:54 PM - edited 07-26-2010 05:55 PM
If all else fails you can use Netbeans to create pre-processed files and use Eclipse for building the final pre-processed code.
Preprocessing support in Eclipse plug in is so bad that I gave up on it long ago. Using a third party tool is much more efficient and allows a lot more freedom of action.
07-26-2010 07:54 PM
I have not found a solution for this yet but do have to agree that it needs to be improved heavily.
07-26-2010 10:12 PM
The problem is that Eclipse does not know about the preprocessor and just ignores the directives. If you take them away, it has to still be valid Java. This trick works:
//#ifdef DEFINE public CLASS1 item = new CLASS1(); /* //#else public CLASS2 item = new CLASS1(); //#endif //#ifdef DEFINE */ //#endif
07-26-2010 10:40 PM
Hmm, I had learned that trick a little after making this post but "in one ear, out the other". I will give that a try next time I can get to the problematic code.
On a side note, I wonder if there is a way to get Eclipse to see the preprocessed code instead of the unprocessed code. The preprocessor is a Java application that can be modified (with some work since it is obfuscated) to work better.
07-26-2010 11:01 PM
It seems to me that it should be possible to integrate the preprocessor and Eclipse a little better. The Antenna preprocessor, for instance, manages to tell Eclipse about itself. Perhaps someday RIM will rewrite their plugin to use the same tricks that Antenna uses.
07-27-2010 08:02 AM
Antenna definitly looks nice and would be a vast improvment over the current plugin. I'll see if I can mix the two, use the intergration of the BB Preprocessor (so you don't need to change your source code files if you already use the BB Preprocessor though that doesn't seem like a challenging thing) and the actual preprocessing of Antenna.
01-24-2011 11:38 AM
i have this same error message. Has this been resolved by anyone?
nsx_nawe wrote:IM having this same issue =(
i imported a project from Eclipse 3.4.2 Plugin 1.0
into Eclipse 3.5 Plugin 1.1
its really important for me since the debugger wasnt working but now i got this =( on my new setup and it wont compile...
"Errors Ocurred during the build.
Errors running builder 'Blackberry Pre-Process Builder' on project '[MY PROJECTS NAME]'An error ocurred while traversing resources:
java.lang.NullPointerExceptionAn error ocurred while traversing resources:
java.lang.NullPointerException"
yes, it says that twice.
i have no clue on this =(
any help will be very appreciated.
thanks!