-
-
Notifications
You must be signed in to change notification settings - Fork 398
[grpc] lib list
and board details
throw incorrect error when directories.data
folder does not exist at daemon startup
#1262
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
Comments
The same error happens when I do |
lib list --fqbn the:board:fqn --all
throws incorrect error when directories.data
folder does not exist at daemon startuplib list
and board details
throw incorrect error when directories.data
folder does not exist at daemon startup
Signed-off-by: Akos Kitta <[email protected]>
Signed-off-by: Akos Kitta <[email protected]>
Signed-off-by: Akos Kitta <[email protected]>
Signed-off-by: Akos Kitta <[email protected]>
I do not know if this is still valid, but I checked, and the IDE2 code still has a guard against it:
|
This issue works as expected when using the CLI from a terminal:
When using the gRPC APIs, the libraries and platform index must be updated before the
{
"instance": {
"id": 1
}
}
{
"downloadProgress": {
"start": {
"url": "https://downloads.arduino.cc/packages/package_index.tar.bz2",
"label": "Downloading index: package_index.tar.bz2"
}
}
}
{
"downloadProgress": {
"update": {
"downloaded": "45861",
"totalSize": "45861"
}
}
}
{
"downloadProgress": {
"end": {
"success": true
}
}
}
{
"downloadProgress": {
"start": {
"url": "https://downloads.arduino.cc/libraries/library_index.tar.bz2",
"label": "Downloading index: library_index.tar.bz2"
}
}
}
{
"downloadProgress": {
"update": {
"downloaded": "1678461",
"totalSize": "2357079"
}
}
}
{
"downloadProgress": {
"update": {
"downloaded": "2357079",
"totalSize": "2357079"
}
}
}
{
"downloadProgress": {
"end": {
"success": true
}
}
}
{
}
{
"initProgress": {
"taskProgress": {
"name": "Downloading missing tool builtin:[email protected]"
}
}
}
{
"initProgress": {
"downloadProgress": {
"start": {
"url": "https://downloads.arduino.cc/discovery/mdns-discovery/mdns-discovery_v1.0.6_macOS_64bit.tar.gz",
"label": "builtin:[email protected]"
}
}
}
}
{
"initProgress": {
"downloadProgress": {
"update": {
"downloaded": "1612012",
"totalSize": "2418658"
}
}
}
}
{
"initProgress": {
"downloadProgress": {
"update": {
"downloaded": "2418658",
"totalSize": "2418658"
}
}
}
}
{
"initProgress": {
"downloadProgress": {
"end": {
"success": true
}
}
}
}
{
"initProgress": {
"taskProgress": {
"completed": true
}
}
}
{
"initProgress": {
"taskProgress": {
"name": "Installing builtin:[email protected]"
}
}
}
{
"initProgress": {
"taskProgress": {
"message": "builtin:[email protected] installed",
"completed": true
}
}
}
{
"initProgress": {
"taskProgress": {
"name": "Downloading missing tool builtin:[email protected]"
}
}
}
{
"initProgress": {
"downloadProgress": {
"start": {
"url": "https://downloads.arduino.cc/monitor/serial-monitor/serial-monitor_v0.12.0_macOS_64bit.tar.gz",
"label": "builtin:[email protected]"
}
}
}
}
{
"initProgress": {
"downloadProgress": {
"update": {
"downloaded": "1321196",
"totalSize": "1881420"
}
}
}
}
{
"initProgress": {
"downloadProgress": {
"update": {
"downloaded": "1881420",
"totalSize": "1881420"
}
}
}
}
{
"initProgress": {
"downloadProgress": {
"end": {
"success": true
}
}
}
}
{
"initProgress": {
"taskProgress": {
"completed": true
}
}
}
{
"initProgress": {
"taskProgress": {
"name": "Installing builtin:[email protected]"
}
}
}
{
"initProgress": {
"taskProgress": {
"message": "builtin:[email protected] installed",
"completed": true
}
}
}
{
"initProgress": {
"taskProgress": {
"name": "Downloading missing tool builtin:[email protected]"
}
}
}
{
"initProgress": {
"downloadProgress": {
"start": {
"url": "https://downloads.arduino.cc/tools/ctags-5.8-arduino11-pm-x86_64-apple-darwin.zip",
"label": "builtin:[email protected]"
}
}
}
}
{
"initProgress": {
"downloadProgress": {
"update": {
"downloaded": "118296",
"totalSize": "118296"
}
}
}
}
{
"initProgress": {
"downloadProgress": {
"end": {
"success": true
}
}
}
}
{
"initProgress": {
"taskProgress": {
"completed": true
}
}
}
{
"initProgress": {
"taskProgress": {
"name": "Installing builtin:[email protected]"
}
}
}
{
"initProgress": {
"taskProgress": {
"message": "builtin:[email protected] installed",
"completed": true
}
}
}
{
"initProgress": {
"taskProgress": {
"name": "Downloading missing tool builtin:[email protected]"
}
}
}
{
"initProgress": {
"downloadProgress": {
"start": {
"url": "https://downloads.arduino.cc/discovery/serial-discovery/serial-discovery_v1.3.3_macOS_64bit.tar.gz",
"label": "builtin:[email protected]"
}
}
}
}
{
"initProgress": {
"downloadProgress": {
"update": {
"downloaded": "1182856",
"totalSize": "1699756"
}
}
}
}
{
"initProgress": {
"downloadProgress": {
"update": {
"downloaded": "1699756",
"totalSize": "1699756"
}
}
}
}
{
"initProgress": {
"downloadProgress": {
"end": {
"success": true
}
}
}
}
{
"initProgress": {
"taskProgress": {
"completed": true
}
}
}
{
"initProgress": {
"taskProgress": {
"name": "Installing builtin:[email protected]"
}
}
}
{
"initProgress": {
"taskProgress": {
"message": "builtin:[email protected] installed",
"completed": true
}
}
}
I also verified the behavior in IDE2.
The caught exceptions on the IDE2 side do not contain this {"code":9,"details":"Platform 'arduino:samd' not found: platform arduino:samd is not installed","metadata":{"content-type":["application/grpc"]}} {"code":5,"details":"Unknown FQBN: platform arduino:samd is not installed","metadata":{"content-type":["application/grpc"]}} The (gRPC) commands where
Feel free to close it. |
@kittaakos regarding the error formatting, that comes from
I'll create an issue for each of the other two points |
Bug Report
As a gRPC consumer of the CLI, I receive an incorrect error message from
lib list
when thedirectories.data
location does not exist before theInitRequest
.Current behavior
I cannot attach code, but this is my workflow:
directories.data
location (on macOS is itrm -rf ~/Library/Arduino15/
),InitRequest
.Arduino15
folder exists on my filesystem:Arduino15 % ls -al total 8 drwxr-xr-x 6 akos.kitta staff 192 Apr 12 17:02 . drwx------@ 92 akos.kitta staff 2944 Apr 12 17:02 .. -rw-r--r-- 1 akos.kitta staff 104 Apr 12 17:02 inventory.yaml drwxr-xr-x 3 akos.kitta staff 96 Apr 12 17:02 packages drwxr-xr-x 3 akos.kitta staff 96 Apr 12 17:02 staging drwxr-xr-x 2 akos.kitta staff 64 Apr 12 17:02 tmp
LibraryListRequest
Expected behavior
LibraryListRequest
fails, but with the following error message:Environment
arduino-cli version
):arduino-cli alpha Version: nightly-20210408 Commit: a4ee670a Date: 2021-04-08T01:26:00Z
Additional context
RescanRequest
right after theInitRequest
and before theLibraryListRequest
. TheRescanResponse
was completely broken on my side: it had one library and multiple platform errors.The text was updated successfully, but these errors were encountered: