Eclipse Blackberry Preprocessor Not Working? - eclipse

I've already followed the directions # Using preprocessor directives in BlackBerry JDE plugin for eclipse? for making sure the blackberry plugin preprocessing hook is (theoretically) enabled.
I'm using Eclipse 3.5.1 with Blackberry Plugin 1.1 with BB SDKs 4.7.0 and 4.6.0.
I have my preprocessor defines set (and I've tried in both the Project's Blackberry Properties as well as the Workspace Blackberry Build settings), and checked their capitalization and spelling carefully too.
I'm fairly confident the actual code to say "this stuff should be preprocessed" is good, because including/excluding preprocessed code seems to work fine on command line builds:
//#preprocess --- at beginning of file
and then code blocks like this throughout:
//#ifndef jde_4_7
/*
//#endif
//#ifdef jde_4_7
import net.rim.device.api.ui.TouchEvent;
//#endif
//#ifndef jde_4_7
*/
//#endif
So what I can't figure out what else could be wrong that would cause Eclipse to not compile in my preprocessed code unless I remove the comments that are supposed to prevent the touch code from building into a build for blackberries that don't support touch.
At one point it used to work (and no I haven't updated Eclipse), but sometime in the last couple of weeks it seemed to just stop working. And I'm getting kind of tired of the error-prone process of searching for ifdefs and manually commenting/uncommenting touch code and looking for a better solution while I do testing and initial development requiring testing both touch and non-touch functionality.
Any other ideas on what could be wrong or how to fix it?

I managed to get this working by adding this in the eclipse ini file
osgi.framework.extensions=net.rim.ejde.preprocessing.hook
you would probably already have osgi.framework.extensions. Just add net.rim.ejde.preprocessing.hook to it.

Yeah, I've had the same experience with this. Seems like they've dropped support for it with their new plug-in. Sometimes it feels like those guys can't get anything right. If you want preprocessing I'm afraid you'll have to use Eclipse 3.4 and the old plug-in (1.0.67). You can go here and fetch a bundled eclipse 3.4 with the said plug-in and any other component pack you may need.

Related

Arduino with multiple libraries in Eclipse IDE

I have an Arduino code and want to continue programming in Eclipse IDE. Basically it consists of 2 main projects which use a lot of common, mostly self-written libraries and structs.
I want to include the two main projects and the libraries in Eclipse.
The problem is, that the compiler can't find the Libraries.
I already Googled a lot but didn't come to a working solution yet.
There are many possible solutions to this problem:
- Move the libraries to C:\Users\Andreas.arduinocdt\libaries - does not work.
- The best one: Set the Arduino Sketchbook location of the Eclipse Arduino IDE. But I can't find the location of this setting.
- Tell the compiler all location of the libraries.
- Write something ugly like this: #define INCLUDE_PATH(N) - But it doesn't work with external (downloaded) libraries or libraries consisting of multiple files.
But I didn't get any Solution to work.
Eclipse Version: 2020-03 (4.15.0)
Can you help me, please! Thank you very much!
Andreas
The current structure of the project. The SettingsGateway is one of many libraries.
Hi I ditched Eclipse for Arduino (microcontroller) development. I use a combination of ArduinoIDE wirh notepad++ as Editor (with plugins) and doxygen for documentation. I write code in C, C++, Javascript CSS, HTML so pretty different code bases. The "problem" with eclipse: it saves the libs woth the project, so if I change something in a lib I have found so far no easy way to automaticlly distribute it to the other projects using the same lib.>br>I am sure there is some plugin, but my job is to code and not to readd ocumentation of an ever changing IDE. If you stay with eclipse for Arduino Sloeber is your easiest option: http://eclipse.baeyens.it/index.shtml Everything together in a central place, you can then install other modules if needed

AVR - Can't add Programmer on Eclipse

I want to use Eclipse to develop code I will be uploading to my Atmega 2560 microcontroller. I could easily use the Arduino IDE to do this, but in my opinion, developing on Eclipse is a whole lot easier.
So, I followed this guide.
I get to the step where I have to add a programmer, but when I click on the Add button, nothing happens.
Does anyone have an idea as to what might be the problem?
The issue here is that 6.0.x series of avrdude uses a different configuration file which the avr-eclipse plugin is not able to parse. There is a ticket filed for this in the bug tracker in SourceForge.
A temporary solution would be to downgrade to avrdude 5.11.x.
Cheers.
I tried to use Eclipse for Arduino development and I followed this tutorial too but it didn't work for me. Also I couldn't find normal description of how I have to use it. From the other side so called Arduino IDE in my opinion isn't IDE it's very primitive buggy editor(looks like amateur product).
To upload my program to Atmega controller I decided to use avrdude direct from the console, where I specify programmer type and hex file that I want to upload. In this case I write program in c and use avrgcc toolchain for compiling and linking. However the question about IDE is still opened for me(the main problem for me that I don't know how to debug my code without IDE).
Also exist Atmel IDE AVrStudio. I didn'y try to use it, my I will mention it like a variant that you can try if you want.
Getting AVRDude (used by the AVR-ecplipse plugin) running on Windows with USB connected AVR programmers can be a real pain, often involving very specific driver uninstall/install sequences, such as those described at the bottom of this forum topic. I used to use Eclipse for my AVR programming, but have since moved to the new iteration of Atmel Studio. Version 6 is now available, and its relatively straight forward to get everything working well. There are a few things odd about it, but it has improved a lot since AS4.

discover which Eclipse projects are opened

Is there any way to discover programatically (but not in PDE code) which eclipse projects are opened?
I was hoping that would exist a .metadata anywhere telling me that, but couldn't find any non binary data.
The closer I got was something like:
"$WORKSPACE.metadata/.plugins/org.eclipse.core.resources/.projects/%s/org.eclipse.jdt.core/state.dat" where %s refers to the project name
I think m2eclipse uses that guy for some kind of control, because on a m2project this file gets removed as soon as the projects build.
Also, i found some information on .metadata/.plugins/org.eclipse.ui.workbench/workingsets.xml but none of them give me the full info I was hoping to find.
Does anyone knows how to solve it?
I was trying on eclipse 3.7.
On eclipse 4.3 , at least, its possible to parse $WORKSPACE/.metadata/.plugins/org.eclipse.ui.workbench/workingsets.xml and look up whether the desired project has a factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory", meaning it is opened.
I Didn't try this on 4.2 tough, maybe it works there as well.
To do it "programmatically", you call the APIs from the org.eclipse.core.resources plug-in. Otherwise, you are doing it wrong.

Integrating LLVM-GCC with eclipse

I'm currently doing some development on the llvm-gcc compiler, using llvm-gcc-4.2-2.0 front-end and the llvm-2.9 back-end. For about seven months I've been doing the development using text viewers, building the compiler using the terminal and debugging using print statements "you could probably imagine what kind of pain that is".
Here's what I need help with. How do I integrate llvm and gcc into an Eclipse Juno IDE?
I'm interested in building the compiler from eclipse, code completion and run-time debugging. I already tried integrating it but it didn't really work out, I keep getting errors in the source files, some header files can't be found and opened.
I would appreciate any help I could get. Thanks in advance.

Is there a way to use axdt with eclim?

I've got Eclipse 3.6 + eclim set up and working for PHP and JavaScript.
As I'm slowly moving away from the Flash IDE for my actionscript projects I've sucessfully installed the — limited but working — axdt plugin for Eclipse but eclim doesn't seem to work for actionscript files.
Neither FDT nor Flash Builder nor asdt/axdt being listed anywhere on eclim's site I think as3 is not supported by eclim. Am I Right?
As of now, vrapper is helping me a lot, but is there a workaround — other than buying Flash Builder/FDT/IntelliJ IDEA Ultimate — to this situation ?
Thanks.
Sounds like you are a Linux user, otherwise you would surely know about FlashDevelop (it's experimental now, but you should be able, to an extent, to run it through Wine, too...).
Other than that, I used this for some time and it was OK for what I needed. It has some problems on top of some problems the original has, some features entirely removed, but it's still better then AXDT.
Here are some other suggestions about AS3 editor on Linux: http://flashdevelop.org/community/viewtopic.php?f=9&t=3973 . Unfortunately, they are not as good as commercial solutions for Win / Mac.