0

Index error: could not find referenced tool
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Index error: could not find referenced tool

by szedula on Sun Mar 21, 2021 7:31 pm

When using Adruino IDE 1.8.13.

After adding:

https://adafruit.github.io/arduino-boar ... index.json

To "Additional Boards Manager UrLs" and then going to
to "Boards Manager..." and installed "Adafruit AVR Boards", got these errors:

Index error: could not find referenced tool name=xtensa-esp32-elf-gcc version=1.22.0-80-g6c4433a-5.2.0 packager=esp32
Index error: could not find referenced tool name=esptool_py version=2.6.1 packager=esp32
Index error: could not find referenced tool name=mkspiffs version=0.2.3 packager=esp32
Index error: could not find referenced tool name=xtensa-esp32-elf-gcc version=1.22.0-80-g6c4433a-5.2.0 packager=esp32
Index error: could not find referenced tool name=esptool_py version=2.6.1 packager=esp32
Index error: could not find referenced tool name=mkspiffs version=0.2.3 packager=esp32
Exception in thread "AWT-EventQueue-0" java.util.ConcurrentModificationException
at java.util.LinkedList$LLSpliterator.forEachRemaining(LinkedList.java:1239)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472)
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
.....
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Index error: could not find referenced tool name=xtensa-esp32-elf-gcc version=1.22.0-80-g6c4433a-5.2.0 packager=esp32
Index error: could not find referenced tool name=esptool_py version=2.6.1 packager=esp32
Index error: could not find referenced tool name=mkspiffs version=0.2.3 packager=esp32

Get these errors each time "Boards Manager..." is opened and then closed:

Index error: could not find referenced tool name=xtensa-esp32-elf-gcc version=1.22.0-80-g6c4433a-5.2.0 packager=esp32
Index error: could not find referenced tool name=esptool_py version=2.6.1 packager=esp32
Index error: could not find referenced tool name=mkspiffs version=0.2.3 packager=esp32
Index error: could not find referenced tool name=xtensa-esp32-elf-gcc version=1.22.0-80-g6c4433a-5.2.0 packager=esp32
Index error: could not find referenced tool name=esptool_py version=2.6.1 packager=esp32
Index error: could not find referenced tool name=mkspiffs version=0.2.3 packager=esp32

I think I can ignore these errors because I can compile sketchs with the Adafruit boards.

Just thought you might like to know and/or had some info for me about this.

thanks, Joe.

szedula
 
Posts: 29
Joined: Tue Jul 07, 2015 10:51 pm

Re: Index error: could not find referenced tool

by adafruit_support_mike on Tue Mar 23, 2021 8:55 pm

That usually means the board support package is messed up.

The easiest solution is to find your Arduino15 folder, throw it away, and reinstall the board support package from scratch.

adafruit_support_mike
 
Posts: 62787
Joined: Thu Feb 11, 2010 2:51 pm

Re: Index error: could not find referenced tool

by szedula on Wed Mar 24, 2021 12:37 am

I've done as you suggested and deleted the "Arduino15" folder and started over.

This page: https://forum.arduino.cc/index.php?topic=490285.0

said to delete everything but "preferences.txt"

I found out just deleting the URLs seemed to make the problem go away as well. It seems packages without matching URLs get deleted at startup.

I got these to board files to work:
https://files.pololu.com/arduino/packag ... index.json
https://adafruit.github.io/arduino-boar ... index.json
https://raw.githubusercontent.com/damel ... index.json

Adding this one:
https://raw.githubusercontent.com/spark ... index.json

generated the errors:
Index error: could not find referenced tool name=xtensa-esp32-elf-gcc version=1.22.0-80-g6c4433a-5.2.0 packager=esp32
Index error: could not find referenced tool name=esptool_py version=2.6.1 packager=esp32
Index error: could not find referenced tool name=mkspiffs version=0.2.3 packager=esp32

It appears the "package_sparkfun_index.json" seems to be the problem after trying all sorts of combinations and orders.

szedula
 
Posts: 29
Joined: Tue Jul 07, 2015 10:51 pm

Re: Index error: could not find referenced tool

by adafruit_support_mike on Wed Mar 24, 2021 9:35 pm

Glad to hear you got it working!

adafruit_support_mike
 
Posts: 62787
Joined: Thu Feb 11, 2010 2:51 pm

Re: Index error: could not find referenced tool

by solder2code on Mon May 03, 2021 1:32 pm

You make my day dude!
for Arduino-IDE v1.8.11 removing of:
https://raw.githubusercontent.com/spark ... index.json
solves my issue as well.
Thx :-)

solder2code
 
Posts: 1
Joined: Mon May 03, 2021 1:26 pm

Please be positive and constructive with your questions and comments.