Go Down

Topic: Option to ignore library errors in 1.6.x? (Read 169 times) previous topic - next topic

whiteglint143

I do not use the Arduino IDE often and recently fired up 1.0.6 and updated to 1.6.9. Most of my sketches compile (haven't tried them all though) but I get numerous warnings and errors about libraries and older ATtiny cores being invalid (but work fine in 1.0.6).

Unfortunately I have close to 180 libraries installed and only need 1.6.9 for the arduino 101 and yun, otherwise 1.0.6 takes care of everything I need it to. Is there anyway to suppress all of these messages? Could a feature for this be added?

pert

You should be able to fix most of those issues if you want to make the effort. I can help with this but you need to copy/paste the warnings/errors as text using code tags(</> button on the toolbar). Posting a screenshot is not very helpful.

Another option would be to use a different sketchbook folder(File > Preferences > Sketchbook location) for Arduino IDE 1.6.9 and don't put anything in that folder that has issues with 1.6.9. The feasibility of this depends on if you need to use any of the libraries/cores that are giving the warnings with IDE 1.6.9.

As for adding an option to suppress the warnings, I think that would be a good feature. I've made some similar requests to the developers when 1.6.6 came out with so many stupid warnings but they were mostly denied. The goal is to annoy the users enough that they will complain to the library/core developers, thus forcing compliance with the standards. This is not a very user friendly approach, it causes beginners to think there is an error when it's actually just a warning that can be ignored. Many of these 3rd party projects have been abandoned by the authors so there is nobody to fix them and the average Arduino user is not going to want to edit the library/core. It's ironic that they suppress useful compiler warnings and verbose output during upload by default because "they scare beginners" but think it's acceptable to constantly spam the user with pointless warnings.

whiteglint143


Thanks, I was able so solve the majority of library warnings on my own. I still get a few invalid library warnings (I intentionally have sketches and data sheets in the library folder), it would be nice if I could suppress it still. I am not sure if I like where Arduino is headed, 1.0.6 was perfect for my purposes.


Now the biggest problem for me is the cores under 1.6.8. Admittedly, my setup is a bit more complicated than the average user. I use both a windows desktop and a mac laptop with my entire Arduino folder stored in Dropbox. This makes it very easy for me to write code and my work stays synchronized. I have accumulated hundreds of libraries since the Decimila days, most of which are abandoned. To make matters worst, I use ATtiny 85's, 2213's, the Yun, the 101, several Teensys, and numerous Uno's. The Teensyduino software has a lot of updated libraries but also include functions like yield() which don't compile under 1.0.6 unless if I remove it. (I don't own or plan on using a Due though).



There is a set of ATtiny cores here: https://github.com/TCWORLD/ATTinyCore that work particularly well for me, they have things like Serial defined where the MIT cores don't. Is there any way I could manually install this set of cores like the old way of placing under Arduino/hardware ?


pert

There is a set of ATtiny cores here: https://github.com/TCWORLD/ATTinyCore that work particularly well for me, they have things like Serial defined where the MIT cores don't. Is there any way I could manually install this set of cores like the old way of placing under Arduino/hardware ?
Are you asking if you can make ATTinyCore work with IDE 1.6.x? It should be fairly easy to do. You just need to put everything in a folder named avr and make a few changes to boards.txt. See https://github.com/arduino/Arduino/wiki/Arduino-Hardware-Cores-migration-guide-from-1.0-to-1.6. Because Arduino IDE 1.6.x has a different core folder structure(architecture folder), it is possible to have multiple copies of the core, one that is 1.0.x compatible, and one that is 1.6.x compatible in the same folder in the same sketchbook. The only problem is that the 1.0.x folders are seen as architecture folders by 1.6.x so you will get warnings like:
Code: [Select]
Could not find boards.txt in E:\sketchbook\hardware\tiny\bootloaders. Is it pre-1.5?
Whenever you open/close Boards Manager but it doesn't actually cause any problems. For an example of a core that has this system see https://github.com/LoathingKernel/Ariadne-Bootloader.

whiteglint143

Yes, if I could get my current cores from 1.0.6 to work under 1.6.8, it would solve my biggest reason for having to use both versions.


Thanks for the link, I will give it a shot. Hopefully this works

whiteglint143

#5
Jun 19, 2016, 08:48 am Last Edit: Jun 19, 2016, 10:24 am by whiteglint143
EDIT: I had a lot of difficulty fixing the old cores but I was able to find a set of cores that seem based on TCWorlds. They compile and seem to work under 1.6.8 but they are missing the ability install Optiboot to make it programmable over FTDI.


http://drazzy.com/package_drazzy.com_index.json

Looks like I will just have to live with 1.0.6 and 1.6.8 and it's 100+ warnings.. I really hope they do implement a feature to suppress those warnings.


As far as the difficulties with the cores, I was able to correct the build.board warnings but I do not know how to fix this one. 

Code: [Select]
Build options changed, rebuilding all
exec: "-w": executable file not found in $PATH
Error compiling for board ATtiny85 (internal 8 MHz clock)

whiteglint143

I also noticed 1.6.8 gives the same error repeatedly. Not sure if this is fixed under 1.6.9 (I haven't updated yet because Teensyduino for that version is still in beta)

This is obnoxious...it repeats the same warnings for another 300 lines, this is 1/4th of what it spat out

Code: [Select]


Board Breadboard Arduino:avr:atmega328bb doesn't define a 'build.board' preference. Auto-set to: AVR_ATMEGA328BB
Build options changed, rebuilding all

Sketch uses 1,406 bytes (17%) of program storage space. Maximum is 8,192 bytes.
Global variables use 20 bytes (3%) of dynamic memory, leaving 492 bytes for local variables. Maximum is 512 bytes.
Could not find boards.txt in /Users/Carb/Dropbox/Arduino/hardware/_ATTINY85_RESETIO/ATtiny85 I really, really, really want to disable reset fuse. - Arduino Forum_files. Is it pre-1.5?
WARNING: Error loading hardware folder /Users/Carb/Dropbox/Arduino/hardware/_ATTINY85_RESETIO
  No valid hardware definitions found in folder _ATTINY85_RESETIO.
Could not find boards.txt in /Users/Carb/Dropbox/Arduino/hardware/atmega8/SourceSite. Is it pre-1.5?
Could not find boards.txt in /Users/Carb/Dropbox/Arduino/hardware/atmega8/Thread. Is it pre-1.5?
WARNING: Error loading hardware folder /Users/Carb/Dropbox/Arduino/hardware/atmega8
  No valid hardware definitions found in folder atmega8.
Could not find boards.txt in /Users/Carb/Dropbox/Arduino/hardware/attiny/HighLowTech. Is it pre-1.5?
Could not find boards.txt in /Users/Carb/Dropbox/Arduino/hardware/attiny/variants. Is it pre-1.5?
Could not find boards.txt in /Users/Carb/Dropbox/Arduino/hardware/attiny45_85/cores. Is it pre-1.5?
Could not find boards.txt in /Users/Carb/Dropbox/Arduino/hardware/attiny45_85/ToasterBotics. Is it pre-1.5?
WARNING: Error loading hardware folder /Users/Carb/Dropbox/Arduino/hardware/attiny45_85
  No valid hardware definitions found in folder attiny45_85.
Could not find boards.txt in /Users/Carb/Dropbox/Arduino/hardware/OTHERS/AVRdevelopers. Is it pre-1.5?
Could not find boards.txt in /Users/Carb/Dropbox/Arduino/hardware/OTHERS/CoresGoogle. Is it pre-1.5?
WARNING: Error loading hardware folder /Users/Carb/Dropbox/Arduino/hardware/OTHERS
  No valid hardware definitions found in folder OTHERS.
Could not find boards.txt in /Users/Carb/Dropbox/Arduino/hardware/SF32u4_boards/bootloaders. Is it pre-1.5?
Could not find boards.txt in /Users/Carb/Dropbox/Arduino/hardware/SF32u4_boards/driver. Is it pre-1.5?
Could not find boards.txt in /Users/Carb/Dropbox/Arduino/hardware/SF32u4_boards/variants. Is it pre-1.5?
WARNING: Error loading hardware folder /Users/Carb/Dropbox/Arduino/hardware/SF32u4_boards
  No valid hardware definitions found in folder SF32u4_boards.
Could not find boards.txt in /Users/Carb/Dropbox/Arduino/hardware/TCWorld/bootloaders. Is it pre-1.5?
Could not find boards.txt in /Users/Carb/Dropbox/Arduino/hardware/TCWorld/cores. Is it pre-1.5?
Could not find boards.txt in /Users/Carb/Dropbox/Arduino/hardware/TCWorld/variants. Is it pre-1.5?
WARNING: Error loading hardware folder /Users/Carb/Dropbox/Arduino/hardware/TCWorld
  No valid hardware definitions found in folder TCWorld.
Invalid library found in /Users/Carb/Dropbox/Arduino/libraries/_MoreLibraries: /Users/Carb/Dropbox/Arduino/libraries/_MoreLibraries
Invalid library found in /Users/Carb/Dropbox/Arduino/libraries/_OldLibs: /Users/Carb/Dropbox/Arduino/libraries/_OldLibs
Invalid library found in /Users/Carb/Dropbox/Arduino/libraries/Attopilot: /Users/Carb/Dropbox/Arduino/libraries/Attopilot
Invalid library found in /Users/Carb/Dropbox/Arduino/libraries/LIDARLite: /Users/Carb/Dropbox/Arduino/libraries/LIDARLite
Invalid library found in /Users/Carb/Dropbox/Arduino/libraries/MATLAB: /Users/Carb/Dropbox/Arduino/libraries/MATLAB
Invalid library found in /Users/Carb/Dropbox/Arduino/libraries/Pololu_IMU: /Users/Carb/Dropbox/Arduino/libraries/Pololu_IMU
Invalid library found in /Users/Carb/Dropbox/Arduino/libraries/Serial7SegmentDisplay: /Users/Carb/Dropbox/Arduino/libraries/Serial7SegmentDisplay
Invalid library found in /Users/Carb/Dropbox/Arduino/libraries/TinyPCRemote: /Users/Carb/Dropbox/Arduino/libraries/TinyPCRemote
Invalid library found in /Users/Carb/Dropbox/Arduino/libraries/ZIPS: /Users/Carb/Dropbox/Arduino/libraries/ZIPS
Invalid library found in /Users/Carb/Dropbox/Arduino/libraries/_MoreLibraries: /Users/Carb/Dropbox/Arduino/libraries/_MoreLibraries
Invalid library found in /Users/Carb/Dropbox/Arduino/libraries/_OldLibs: /Users/Carb/Dropbox/Arduino/libraries/_OldLibs
Invalid library found in /Users/Carb/Dropbox/Arduino/libraries/Attopilot: /Users/Carb/Dropbox/Arduino/libraries/Attopilot
Invalid library found in /Users/Carb/Dropbox/Arduino/libraries/LIDARLite: /Users/Carb/Dropbox/Arduino/libraries/LIDARLite
Invalid library found in /Users/Carb/Dropbox/Arduino/libraries/MATLAB: /Users/Carb/Dropbox/Arduino/libraries/MATLAB
Invalid library found in /Users/Carb/Dropbox/Arduino/libraries/Pololu_IMU: /Users/Carb/Dropbox/Arduino/libraries/Pololu_IMU
Invalid library found in /Users/Carb/Dropbox/Arduino/libraries/Serial7SegmentDisplay: /Users/Carb/Dropbox/Arduino/libraries/Serial7SegmentDisplay
Invalid library found in /Users/Carb/Dropbox/Arduino/libraries/TinyPCRemote: /Users/Carb/Dropbox/Arduino/libraries/TinyPCRemote
Invalid library found in /Users/Carb/Dropbox/Arduino/libraries/ZIPS: /Users/Carb/Dropbox/Arduino/libraries/ZIPS
Invalid library found in /Users/Carb/Dropbox/Arduino/libraries/_MoreLibraries: /Users/Carb/Dropbox/Arduino/libraries/_MoreLibraries
Invalid library found in /Users/Carb/Dropbox/Arduino/libraries/_OldLibs: /Users/Carb/Dropbox/Arduino/libraries/_OldLibs
Invalid library found in /Users/Carb/Dropbox/Arduino/libraries/Attopilot: /Users/Carb/Dropbox/Arduino/libraries/Attopilot
Invalid library found in /Users/Carb/Dropbox/Arduino/libraries/LIDARLite: /Users/Carb/Dropbox/Arduino/libraries/LIDARLite
Invalid library found in /Users/Carb/Dropbox/Arduino/libraries/MATLAB: /Users/Carb/Dropbox/Arduino/libraries/MATLAB
Invalid library found in /Users/Carb/Dropbox/Arduino/libraries/Pololu_IMU: /Users/Carb/Dropbox/Arduino/libraries/Pololu_IMU
Invalid library found in /Users/Carb/Dropbox/Arduino/libraries/Serial7SegmentDisplay: /Users/Carb/Dropbox/Arduino/libraries/Serial7SegmentDisplay
Invalid library found in /Users/Carb/Dropbox/Arduino/libraries/TinyPCRemote: /Users/Carb/Dropbox/Arduino/libraries/TinyPCRemote
Invalid library found in /Users/Carb/Dropbox/Arduino/libraries/ZIPS: /Users/Carb/Dropbox/Arduino/libraries/ZIPS
Invalid library found in /Users/Carb/Dropbox/Arduino/libraries/_MoreLibraries: /Users/Carb/Dropbox/Arduino/libraries/_MoreLibraries
Invalid library found in /Users/Carb/Dropbox/Arduino/libraries/_OldLibs: /Users/Carb/Dropbox/Arduino/libraries/_OldLibs
Invalid library found in /Users/Carb/Dropbox/Arduino/libraries/Attopilot: /Users/Carb/Dropbox/Arduino/libraries/Attopilot
Invalid library found in /Users/Carb/Dropbox/Arduino/libraries/LIDARLite: /Users/Carb/Dropbox/Arduino/libraries/LIDARLite
Invalid library found in /Users/Carb/Dropbox/Arduino/libraries/MATLAB: /Users/Carb/Dropbox/Arduino/libraries/MATLAB
Invalid library found in /Users/Carb/Dropbox/Arduino/libraries/Pololu_IMU: /Users/Carb/Dropbox/Arduino/libraries/Pololu_IMU
Invalid library found in /Users/Carb/Dropbox/Arduino/libraries/Serial7SegmentDisplay: /Users/Carb/Dropbox/Arduino/libraries/Serial7SegmentDisplay
Invalid library found in /Users/Carb/Dropbox/Arduino/libraries/TinyPCRemote: /Users/Carb/Dropbox/Arduino/libraries/TinyPCRemote
Invalid library found in /Users/Carb/Dropbox/Arduino/libraries/ZIPS: /Users/Carb/Dropbox/Arduino/libraries/ZIPS
Invalid library found in /Users/Carb/Dropbox/Arduino/libraries/_MoreLibraries: /Users/Carb/Dropbox/Arduino/libraries/_MoreLibraries
Invalid library found in /Users/Carb/Dropbox/Arduino/libraries/_OldLibs: /Users/Carb/Dropbox/Arduino/libraries/_OldLibs


pert

#7
Jun 20, 2016, 07:46 am Last Edit: Jun 20, 2016, 07:47 am by pert
EDIT: I had a lot of difficulty fixing the old cores but I was able to find a set of cores that seem based on TCWorlds. They compile and seem to work under 1.6.8 but they are missing the ability install Optiboot to make it programmable over FTDI.


http://drazzy.com/package_drazzy.com_index.json
DrAzzy's ATTinyCore does have optiboot for some of the MCUs but not all of them.


Looks like I will just have to live with 1.0.6 and 1.6.8 and it's 100+ warnings.. I really hope they do implement a feature to suppress those warnings.
I think the correct place to request that feature is: https://github.com/arduino/arduino-builder/issues


As far as the difficulties with the cores, I was able to correct the build.board warnings but I do not know how to fix this one. 

Code: [Select]
Build options changed, rebuilding all
exec: "-w": executable file not found in $PATH
Error compiling for board ATtiny85 (internal 8 MHz clock)

Is that your IDE 1.6.x converted version of the TCWORLD core causing that error? If you want to attach your version of the files I'll give it a try and see if I can find the issue.


This is obnoxious...it repeats the same warnings for another 300 lines, this is 1/4th of what it spat out
Pretty annoying, it makes it hard to notice the important warnings. The worst is when you open then close Library Manager you get the same warnings repeated about 10 times in a row.


Code: [Select]
Could not find boards.txt in /Users/Carb/Dropbox/Arduino/hardware/_ATTINY85_RESETIO/ATtiny85 I really, really, really want to disable reset fuse. - Arduino Forum_files. Is it pre-1.5?
You can fix this by adding a blank file named boards.txt to /Users/Carb/Dropbox/Arduino/hardware/_ATTINY85_RESETIO/ATtiny85 I really, really, really want to disable reset fuse. - Arduino Forum_files. This will cause an extra divider to show in the Tools > Boards menu but it's not that big of a deal.


Code: [Select]
WARNING: Error loading hardware folder /Users/Carb/Dropbox/Arduino/hardware/_ATTINY85_RESETIO
  No valid hardware definitions found in folder _ATTINY85_RESETIO.

You can fix this by adding /Users/Carb/Dropbox/Arduino/hardware/_ATTINY85_RESETIO/avr/boards.txt


Code: [Select]
Invalid library found in /Users/Carb/Dropbox/Arduino/libraries/_MoreLibraries: /Users/Carb/Dropbox/Arduino/libraries/_MoreLibraries
You can fix this by adding a blank .h file, for example: /Users/Carb/Dropbox/Arduino/libraries/_MoreLibraries/dummy.h

Of course it would be better just to move it to a different folder.

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy