Skip to content

"Import Arduino libraries in the current project" doesn't bring up useful dialog #42

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
brodykenrick opened this issue Oct 14, 2013 · 11 comments · Fixed by #51
Closed

Comments

@brodykenrick
Copy link
Contributor

<First off thanks for all the effort Jantje!>

"Import Arduino libraries in the current project" is not allowing for the selection of Arduino libraries (either Arduino or Sketchbook/Private) on my system.

Setup:
Ubuntu 13.04 (64-bit)
Eclipse 3.8.1 (installed to system via apt-get)
Arduino 1.5.2 (installed to a directory)
arduino-eclipse-plugin V2.1.0.4 (installed from update site)

Arduino IDE path: /home/brody/arduino-1.5

Private Library Path: /home/brody/Dropbox/Arduino/arduino_sketchbook/libraries
(has 25 entries -- many of which are symlinked)

I right click on my project in the project explorer pane, select Import.
Select "Import Arduino libraries in the current project" from under Arduino

Then I receive a "select the Arduino libraries" dialog but it is empty. It contains a field for options but contains no entries/check boxes. I am expecting that there would be a list of arduino and libraries in my private/sketchbook options - but ehre is nothing.

I can click finish and nothing happens (as nothing was selected) other than the dialog closing.

This was working on the older version -- I just updated and re-created my project.

This is low priority issue. I have a workaround for as "Import a folder cont....." works -- but introduces linker (combiner) order issues -- which then has another workaround.

@brodykenrick
Copy link
Contributor Author

screenshot from 2013-10-14 13 46 32

@jantje
Copy link
Member

jantje commented Oct 14, 2013

Hi
You are right that you should see a list of libraries to import. I must say I have not seen this screen before. It looks like it is a mixture of the "import a folder" and "import a library". Here is an example of how it looks on my system
http://iloapp.baeyens.it/data/_gallery/public/1/137950377839940200_resized.png
I'm a bit confused because to me your setup should not be able to work (but the issue you report should work)
You are using eclipse 3.8 which is a indigo bugfix. Version 1.5.2 of the plugin needs juno to compile properly.
Can you try selecting Arduino in the menu an then import libraries?
If it doesn't work can you open the error view (window->show view->other->error log)
Delete the log (right click delete log) try the import again and provide the info that is in the error log?
Best regards
Jantje

@brodykenrick
Copy link
Contributor Author

Hi Jantje,

You are using eclipse 3.8 which is a indigo bugfix. Version 1.5.2 of the plugin needs juno to compile properly.

I am using V2.1.0.4 - should that work with 3.8?

Can you try selecting Arduino in the menu an then import libraries?

Yes this other way works. Too much right-clicking on my behalf got me into trouble. Thanks for the help.

I pulled up the error log and executed the right-clicking commands. However there were no entries that made it to the logs as the commands fail in this peculiar way.

Regards,
Brody

@jantje
Copy link
Member

jantje commented Oct 14, 2013

I'm sorry for the confusion. I meant Arduino IDE 1.5.2 beta needs arduino eclipse plugin V2.1.0.4 beta.
So I'm a bit surprised it works for you. You may have upgraded your CDT (because there is the change that is needed)
The fact it works via the menu and not via the project -> import is again confusing me. This because it is calling the same code.
It may be related with issue 30. But that is only a wild guess.
So I'm not sure what to do with this issue.

@jantje
Copy link
Member

jantje commented Oct 14, 2013

och yes and arduino eclipse plugin V2.1.0 Beta needs juno. (Or at least the CDT version that goes with juno)

@brodykenrick
Copy link
Contributor Author

You may have upgraded your CDT (because there is the change that is needed)

I would have updated CDT - my Eclipse is up to date.

The fact it works via the menu and not via the project -> import is again confusing me. This because it is calling the same code. ... So I'm not sure what to do with this issue.

As for this issue, I suggest you don't fix it if there is not an obvious cause to you. I am working in an unsupported environment and I have a better work around now that I can use the menus to get the libraries in. I'll eventually move to Eclipse 4.2 and then if the issue remains I can look into it again.

@jantje
Copy link
Member

jantje commented Oct 14, 2013

cool. This one is now official on hold till it can be reproduced in a supported environment.

@brodykenrick
Copy link
Contributor Author

I reproduced in Juno. Fixed in the pull request #50.

jantje added a commit that referenced this issue Oct 22, 2013
Fix #42 -- Bad dialog for import library from menu. Also added import source folder from Arduino menu
Looks good :-)
@niesteszeck
Copy link

I have the same problem.

My config

Ubuntu 12.04 x64
Eclipse Juno downloaded from eclipse.org:
Version: Juno Service Release 2
Build id: 20130225-0426
Plug in version: 2.1.0.4
Arduino 1.5.2

Problem happens when I click (right) on my project and try an import lib.
Also if I select File -> Import

From the strange dialog if I press back, then click again on "Import Ardiono......current project" and then press next it looks normal, so I select some libs to import but when I click on Finish nothing happens.

As you mention, from Arduino menu it works properly (this is fine for me now)

@jantje
Copy link
Member

jantje commented Dec 9, 2013

That is normal as this merge is not yet officially released.

@nandasahu
Copy link

I too have probelm in the Arduino Libraries while building.

I received the following error:

  • "/home/ethercat/arduinointel/arduino-1.5.3-Intel.1.0.4/libraries/WiFi/src/utility/server_drv.cpp" -o "libraries/WiFi/src/utility/server_drv.cpp.o"
    /home/ethercat/arduinointel/arduino-1.5.3-Intel.1.0.4/libraries/WiFi/src/utility/server_drv.cpp:3:32: fatal error: utility/server_drv.h: No such file or directory compilation terminated.
    make: *** [libraries/WiFi/src/utility/server_drv.cpp.o] Error 1

    I am using Ubuntu 12.04-32 bit
    Eclipse Version: Juno Service Release 2
    Build id: 20130225-0426
    Arduino 1.5.3-Intel 1.0.4
    http://www.baeyens.it/eclipse/V2 plugin version-2.2.0.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment