Error: 9 FAILED_PRECONDITION: Library 'Arduino_BuiltIn@1.0.0' not found

Today, I thought I would do a quick experiment to see about adding an examples library to the Teensy install.

So I created a new directory for it...
Restarted the IDE and the examples did not show up under Teensy.

Figured maybe it is same issue as updating boards.txt or platform.txt
changes to boards.txt are not picked up · Issue #1030 · arduino/arduino-ide (github.com)

So I followed the workaround and deleted the directory:
C:\Users\<user name>\AppData\Roaming\arduino-ide\
I then restarted the IDE and got the following error:

I am running on Windows 11.

Note: I then exited and ran on a recent nightly build (yesterdays)
and it did not give me that error:

Platform arduino:avr@1.8.6 already installed
Downloading Keyboard@1.0.4
Keyboard@1.0.4
Installing Keyboard@1.0.4
Installed Keyboard@1.0.4
Downloading Mouse@1.0.1
Mouse@1.0.1
Installing Mouse@1.0.1
Installed Mouse@1.0.1
Downloading SD@1.2.4
SD@1.2.4
Installing SD@1.2.4
Installed SD@1.2.4
Downloading Servo@1.1.8
Servo@1.1.8
Installing Servo@1.1.8
Installed Servo@1.1.8
Downloading Stepper@1.1.3
Stepper@1.1.3
Installing Stepper@1.1.3
Installed Stepper@1.1.3
Downloading TFT@1.0.6
TFT@1.0.6
Installing TFT@1.0.6
Installed TFT@1.0.6
Downloading Arduino_BuiltIn@1.0.0
Arduino_BuiltIn@1.0.0
Installing Arduino_BuiltIn@1.0.0
Installed Arduino_BuiltIn@1.0.0
Downloading Ethernet@2.0.1
Ethernet@2.0.1
Installing Ethernet@2.0.1
Installed Ethernet@2.0.1
Downloading Firmata@2.5.8
Firmata@2.5.8
Installing Firmata@2.5.8
Installed Firmata@2.5.8
Downloading LiquidCrystal@1.0.7
LiquidCrystal@1.0.7
Installing LiquidCrystal@1.0.7
Installed LiquidCrystal@1.0.7

Note: Maybe it was showing up earlier after all, not sure. It was showing the name from library properties and not directory so not showing up at start of list....
Will update the file.

Not, sure if the first failure was expected or known, but reported it now just in case.

I also encounter this problem sometimes. I suspect it is a concurrency issue caused by the multiple Arduino CLI processes installing the library at the same time as updating the library index. My hypothesis is that when the index download is finished, the Arduino CLI instance is reloaded and it loses its internal state knowledge of the state produced by the installation in progress.

A similar bug is tracked here:

And another here:

Unfortunately I have not managed to find a straightforward set of steps that can be used to reproduce the issue. It only occurs for me when I have my ridiculous full collection of 40 boards platforms installed. If I switch to a more normal environment with only a handful of platforms, the problem never occurs. So I think it is very timing sensitive (as is often the case with concurrency bugs).

1 Like

Thanks, I will keep an eye out to see if it reproduces with some simple setup.

Maybe sort of like the recent bug were the boards or library did not come up with the updateable option....

Quick update: I deleted that directory (C:\Users<user name>\AppData\Roaming\arduino-ide) again this morning,

And ended up failing again the same way, and second run worked.

My setup has several board types installed, but not outrageous.

Note: I do have on my machine the Teensy examples showing up.

I want them to show up at the start of the Teensy examples list. So thought maybe start the directory name with a . like: ".Teensy Exampes"
And they did not show up at all. Which I am guessing is already documented that it is probably using linux type rules, where files/directories whose name starts with a '.' are hidden.

So I removed the ., but left the . in the name property:
name=.Teensy Examples
And it now shows up at the start of the Teensy list:

Even before the title for the section. So, I will maybe next try starting the field with a 0 or the like
But at least I can now see the examples again

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.