dj0tt / arduino

Automatically exported from code.google.com/p/arduino
Other
0 stars 0 forks source link

[arduino 1.5] "Not a valid library" importing Bitlash #1079

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello:

I am testing the brand new Arduino 1.5 beta here on OS X.  When I try to import 
the Bitlash library into 1.5, I get "Not a valid library".  Anyone know why, 
and how I can fix it?

You can get Bitlash here if it's needed for testing: 
https://github.com/billroy/bitlash

Related bug: after the "Not a valid library" message appears, the "Import 
Library..." item is gone from the Sketch menu.

Other libraries which appear not to import to this version, in my 
configuration: AFMotor, ArdOSC, Fat16, NewSoftSerial, RF22, and SDFat.

-br

Original issue reported on code.google.com by bill....@palmeta.com on 22 Oct 2012 at 9:22

GoogleCodeExporter commented 9 years ago
The AFMotor and NewSoftSerial libraries can be fixed by renaming the "Examples" 
folder they contain to "examples".  After restart they are recognized and 
appear in the IDE menu.

All the libraries which fail, including Bitlash, seem to have additional 
subdirectories besides "examples" in them.  Is this now somehow prohibited?  It 
would impact many libraries if so.

-br

Original comment by bill....@palmeta.com on 22 Oct 2012 at 9:42

GoogleCodeExporter commented 9 years ago
Thanks billroy,

the issue with "Example" folder with capital E will be fixed on the next beta 
release.

about the other libraries, you're right: libraries can't use folders (except 
for 'example' and 'utilities').This is due to the way the 1.5 IDE support 
"multiplatform" libraries. Probably its better to disable such "feature" on the 
next beta release until further discussions about the multiplatform library 
format happens.

C

Original comment by c.mag...@bug.st on 22 Oct 2012 at 10:23

GoogleCodeExporter commented 9 years ago
The context is interesting here C.  I've been working on a library that 
includes some source from other libraries and includes them whole-cloth into my 
Arduino library folder as subdirectories.

It's good to see some insight as to what your thoughts are so I can plan 
accordingly.  Thank you!

Jordan

Original comment by Jordan.H...@gmail.com on 22 Oct 2012 at 10:33

GoogleCodeExporter commented 9 years ago
C: Thanks for your quick reply.  I agree with your judgement and would look 
forward to a quick beta 2 with this restriction disabled.

Thanks,

-br

Original comment by bill....@palmeta.com on 22 Oct 2012 at 10:43

GoogleCodeExporter commented 9 years ago

Might just be a case comparison is being made when a non case comparison could 
be used.

Original comment by rick.rickanderson on 23 Oct 2012 at 4:03

GoogleCodeExporter commented 9 years ago
No it was the fat/non-fat library detection that was wrong. Now it should work 
as expected.

Guys can you update the IDE from github and retry to see if its fixed?
C

Original comment by c.mag...@bug.st on 24 Oct 2012 at 3:58

GoogleCodeExporter commented 9 years ago
Thanks for the update.  I'm happy to try it.  Excuse a dumb question, though: 
how do I build and start the app on OS X, given the repo is in hand?  I have 
current Xcode...

-br

Original comment by bill....@palmeta.com on 24 Oct 2012 at 6:13

GoogleCodeExporter commented 9 years ago
I'll answer my own question to save you the trouble: 
http://code.google.com/p/arduino/wiki/BuildingArduino

Best,

-br

Original comment by bill....@palmeta.com on 24 Oct 2012 at 6:22

GoogleCodeExporter commented 9 years ago
C: It appears to be fixed, bravo.  Bitlash and the other formerly missing 
libraries are in the menu.  The bitlash demos compile.  I note that one of them 
has grown by 44 bytes since 1.0.1 but everything else looks as expected.

Hope we'll see a beta update soon.

I value and appreciate your responsiveness.  Thank you,

-br

Original comment by bill....@palmeta.com on 24 Oct 2012 at 6:29

GoogleCodeExporter commented 9 years ago
On further reflection I'm not sure I have the right version in hand to test.  

When I start the version I get from github via:

> git clone https://github.com/arduino/Arduino.git
> cd Arduino/build
> ant
> ant run

....I have my complete, old boards.txt boards menu, and no new Due options.  
The libraries are detected properly at startup, but I have a feeling that maybe 
I am not looking at the most current code.

The latest checkin to that repo was 6 days ago.  It makes me wonder.  Could you 
please confirm I have the right repo location and that I'm starting the app 
right?

Thanks,

-br

Original comment by bill....@palmeta.com on 24 Oct 2012 at 8:02

GoogleCodeExporter commented 9 years ago
I was testing the master branch.  I re-tested in the ide-1.5.x branch and it 
worked fine there too.  Here is the necessary incantation:

> git clone https://github.com/arduino/Arduino.git
> cd Arduino
> git fetch origin ide-1.5.x
> git checkout ide-1.5.x
> cd build
> ant
> ant run

-br

Original comment by bill....@palmeta.com on 24 Oct 2012 at 9:59

GoogleCodeExporter commented 9 years ago
Yes the correct branch is ide-1.5.x, so all ok.

i'm closing this bug.

Original comment by c.mag...@bug.st on 25 Oct 2012 at 1:33

GoogleCodeExporter commented 9 years ago

Original comment by mega...@gmail.com on 25 Oct 2012 at 1:36