Unverified Commit f7b22f76 authored by Umberto Baldi's avatar Umberto Baldi Committed by GitHub

fix `core list --all` sometimes crashing (#1519)

* fix packages being added to the package manager even if they were not respecting the specification

* add test to check if if the bug it's fixed

* fix platform release being nil and causing panic with indexes not compliant with specs

* add test to check if the bug is fixed

* add comments and optimize the code a little bit

* Apply suggestions from code review
Co-authored-by: default avatarper1234 <accounts@perglass.com>
Co-authored-by: default avatarper1234 <accounts@perglass.com>
parent 8e6f93f7
......@@ -145,6 +145,10 @@ func (pm *PackageManager) LoadHardwareFromDirectory(path *paths.Path) []*status.
statuses = append(statuses, errs...)
}
}
// If the Package does not contain Platforms or Tools we remove it since does not contain anything valuable
if len(targetPackage.Platforms) == 0 && len(targetPackage.Tools) == 0 {
delete(pm.Packages, packager)
}
}
return statuses
......@@ -262,7 +266,6 @@ func (pm *PackageManager) loadPlatform(targetPackage *cores.Package, platformPat
// case: ARCHITECTURE/VERSION/boards.txt
// let's dive into VERSION directories
platform := targetPackage.GetOrCreatePlatform(architecture)
versionDirs, err := platformPath.ReadDir()
if err != nil {
return status.Newf(codes.FailedPrecondition, tr("reading dir %[1]s: %[2]s"), platformPath, err)
......@@ -280,6 +283,7 @@ func (pm *PackageManager) loadPlatform(targetPackage *cores.Package, platformPat
if err != nil {
return status.Newf(codes.FailedPrecondition, tr("invalid version dir %[1]s: %[2]s"), versionDir, err)
}
platform := targetPackage.GetOrCreatePlatform(architecture)
release := platform.GetOrCreateRelease(version)
if err := pm.loadPlatformRelease(release, versionDir); err != nil {
return status.Newf(codes.FailedPrecondition, tr("loading platform release %[1]s: %[2]s"), release, err)
......
......@@ -38,19 +38,23 @@ func GetPlatforms(req *rpc.PlatformListRequest) ([]*rpc.Platform, error) {
for _, platform := range targetPackage.Platforms {
platformRelease := packageManager.GetInstalledPlatformRelease(platform)
// The All flags adds to the list of installed platforms the installable platforms (from the indexes)
// If both All and UpdatableOnly are set All takes precedence
if req.All {
installedVersion := ""
if platformRelease == nil {
if platformRelease == nil { // if the platform is not installed
platformRelease = platform.GetLatestRelease()
} else {
installedVersion = platformRelease.Version.String()
}
rpcPlatform := commands.PlatformReleaseToRPC(platform.GetLatestRelease())
// it could happen, especially with indexes not perfectly compliant with specs that a platform do not contain a valid release
if platformRelease != nil {
rpcPlatform := commands.PlatformReleaseToRPC(platformRelease)
rpcPlatform.Installed = installedVersion
res = append(res, rpcPlatform)
continue
}
}
if platformRelease != nil {
latest := platform.GetLatestRelease()
......@@ -58,11 +62,10 @@ func GetPlatforms(req *rpc.PlatformListRequest) ([]*rpc.Platform, error) {
return nil, &arduino.PlatformNotFoundError{Platform: platform.String(), Cause: fmt.Errorf(tr("the platform has no releases"))}
}
if req.UpdatableOnly {
if latest == platformRelease {
// show only the updatable platforms
if req.UpdatableOnly && latest == platformRelease {
continue
}
}
rpcPlatform := commands.PlatformReleaseToRPC(platformRelease)
rpcPlatform.Installed = platformRelease.Version.String()
......
......@@ -33,7 +33,7 @@ msgstr "%[1]s, protocol version: %[2]d"
msgid "%s already downloaded"
msgstr "%s already downloaded"
#: commands/upload/upload.go:529
#: commands/upload/upload.go:530
msgid "%s and %s cannot be used together"
msgstr "%s and %s cannot be used together"
......@@ -41,7 +41,7 @@ msgstr "%s and %s cannot be used together"
msgid "%s downloaded"
msgstr "%s downloaded"
#: commands/bundled_tools.go:55
#: commands/bundled_tools.go:56
msgid "%s installed"
msgstr "%s installed"
......@@ -66,11 +66,11 @@ msgstr "%s must be installed."
msgid "%s pattern is missing"
msgstr "%s pattern is missing"
#: commands/instances.go:850
#: commands/instances.go:851
msgid "%s uninstalled"
msgstr "%s uninstalled"
#: commands/errors.go:671
#: arduino/errors.go:674
msgid "'%s' has an invalid signature"
msgstr "'%s' has an invalid signature"
......@@ -95,7 +95,7 @@ msgstr "--git-url and --zip-path flags allow installing untrusted files, use it
msgid "A new release of Arduino CLI is available:"
msgstr "A new release of Arduino CLI is available:"
#: commands/errors.go:207
#: arduino/errors.go:210
msgid "A programmer is required to upload"
msgstr "A programmer is required to upload"
......@@ -127,8 +127,8 @@ msgstr "Aliases:"
msgid "All the cores are already at the latest version"
msgstr "All the cores are already at the latest version"
#: commands/instances.go:719
#: commands/lib/install.go:96
#: commands/instances.go:720
#: commands/lib/install.go:97
msgid "Already installed %s"
msgstr "Already installed %s"
......@@ -223,7 +223,7 @@ msgstr "Binary file to upload."
msgid "Board Name"
msgstr "Board Name"
#: commands/board/attach.go:93
#: commands/board/attach.go:94
msgid "Board found: %s"
msgstr "Board found: %s"
......@@ -243,28 +243,28 @@ msgstr "Bootloader file specified but missing: {0}"
msgid "Builds of 'core.a' are saved into this path to be cached and reused."
msgstr "Builds of 'core.a' are saved into this path to be cached and reused."
#: commands/instances.go:532
#: commands/instances.go:533
msgid "Can't create data directory %s"
msgstr "Can't create data directory %s"
#: commands/errors.go:377
#: arduino/errors.go:380
msgid "Can't create sketch"
msgstr "Can't create sketch"
#: commands/lib/download.go:60
#: commands/lib/download.go:63
#: commands/lib/download.go:65
#: commands/lib/download.go:61
#: commands/lib/download.go:64
#: commands/lib/download.go:66
msgid "Can't download library"
msgstr "Can't download library"
#: commands/core/install.go:126
#: commands/core/uninstall.go:52
#: commands/instances.go:758
#: commands/instances.go:770
#: commands/core/install.go:127
#: commands/core/uninstall.go:53
#: commands/instances.go:759
#: commands/instances.go:771
msgid "Can't find dependencies for platform %s"
msgstr "Can't find dependencies for platform %s"
#: commands/errors.go:390
#: arduino/errors.go:393
msgid "Can't open sketch"
msgstr "Can't open sketch"
......@@ -282,11 +282,11 @@ msgstr "Can't use both --dest-file and --dest-dir flags at the same time."
msgid "Can't write config file: %v"
msgstr "Can't write config file: %v"
#: commands/compile/compile.go:180
#: commands/compile/compile.go:181
msgid "Cannot create build cache directory"
msgstr "Cannot create build cache directory"
#: commands/compile/compile.go:150
#: commands/compile/compile.go:151
msgid "Cannot create build directory"
msgstr "Cannot create build directory"
......@@ -298,19 +298,19 @@ msgstr "Cannot create config file directory: %v"
msgid "Cannot create config file: %v"
msgstr "Cannot create config file: %v"
#: commands/errors.go:634
#: arduino/errors.go:637
msgid "Cannot create temp dir"
msgstr "Cannot create temp dir"
#: commands/errors.go:652
#: arduino/errors.go:655
msgid "Cannot create temp file"
msgstr "Cannot create temp file"
#: commands/debug/debug.go:66
#: commands/debug/debug.go:67
msgid "Cannot execute debug tool"
msgstr "Cannot execute debug tool"
#: commands/board/attach.go:106
#: commands/board/attach.go:107
msgid "Cannot export sketch metadata"
msgstr "Cannot export sketch metadata"
......@@ -324,19 +324,19 @@ msgstr "Cannot find absolute path: %v"
msgid "Cannot get executable path: %v"
msgstr "Cannot get executable path: %v"
#: commands/core/install.go:133
#: commands/core/install.go:134
msgid "Cannot install platform"
msgstr "Cannot install platform"
#: commands/bundled_tools.go:52
#: commands/bundled_tools.go:53
msgid "Cannot install tool %s"
msgstr "Cannot install tool %s"
#: commands/upload/upload.go:420
#: commands/upload/upload.go:421
msgid "Cannot perform port reset: %s"
msgstr "Cannot perform port reset: %s"
#: commands/core/install.go:151
#: commands/core/install.go:152
msgid "Cannot upgrade platform"
msgstr "Cannot upgrade platform"
......@@ -349,7 +349,7 @@ msgstr "Category: %s"
msgid "Check dependencies status for the specified library."
msgstr "Check dependencies status for the specified library."
#: commands/lib/install.go:101
#: commands/lib/install.go:102
msgid "Checking lib install prerequisites"
msgstr "Checking lib install prerequisites"
......@@ -377,8 +377,8 @@ msgstr "Comma-separated list of additional URLs for the Boards Manager."
msgid "Command keeps running and prints list of connected boards whenever there is a change."
msgstr "Command keeps running and prints list of connected boards whenever there is a change."
#: commands/debug/debug_info.go:118
#: commands/upload/upload.go:358
#: commands/debug/debug_info.go:119
#: commands/upload/upload.go:359
msgid "Compiled sketch not found in %s"
msgstr "Compiled sketch not found in %s"
......@@ -419,11 +419,11 @@ msgstr "Configuration of the port."
msgid "Configuration options for %s"
msgstr "Configuration options for %s"
#: commands/instances.go:857
#: commands/instances.go:858
msgid "Configuring platform"
msgstr "Configuring platform"
#: commands/core/install.go:166
#: commands/core/install.go:167
msgid "Configuring platform."
msgstr "Configuring platform."
......@@ -444,11 +444,11 @@ msgstr "Core"
msgid "Core name"
msgstr "Core name"
#: commands/download.go:31
#: commands/download.go:32
msgid "Could not connect via HTTP"
msgstr "Could not connect via HTTP"
#: commands/instances.go:373
#: commands/instances.go:374
msgid "Could not create index directory"
msgstr "Could not create index directory"
......@@ -496,7 +496,7 @@ msgstr "Debug Arduino sketches. (this command opens an interactive gdb session)"
msgid "Debug interpreter e.g.: %s"
msgstr "Debug interpreter e.g.: %s"
#: commands/debug/debug_info.go:141
#: commands/debug/debug_info.go:142
msgid "Debugging not supported for board %s"
msgstr "Debugging not supported for board %s"
......@@ -578,17 +578,17 @@ msgstr "Do not perform the actual upload, just log out actions"
msgid "Do not terminate daemon process if the parent process dies"
msgstr "Do not terminate daemon process if the parent process dies"
#: commands/instances.go:708
#: commands/instances.go:767
#: commands/lib/download.go:57
#: commands/instances.go:709
#: commands/instances.go:768
#: commands/lib/download.go:58
msgid "Downloading %s"
msgstr "Downloading %s"
#: commands/instances.go:93
#: commands/instances.go:94
msgid "Downloading missing tool %s"
msgstr "Downloading missing tool %s"
#: commands/core/install.go:86
#: commands/core/install.go:87
msgid "Downloading packages"
msgstr "Downloading packages"
......@@ -634,7 +634,7 @@ msgstr "Error calculating relative file path"
msgid "Error cleaning caches: %v"
msgstr "Error cleaning caches: %v"
#: commands/compile/compile.go:280
#: commands/compile/compile.go:281
msgid "Error copying output file %s"
msgstr "Error copying output file %s"
......@@ -647,7 +647,7 @@ msgstr "Error copying output file %s"
msgid "Error creating instance: %v"
msgstr "Error creating instance: %v"
#: commands/compile/compile.go:260
#: commands/compile/compile.go:261
msgid "Error creating output dir"
msgstr "Error creating output dir"
......@@ -670,43 +670,43 @@ msgstr "Error detecting boards: %v"
msgid "Error downloading %[1]s: %[2]v"
msgstr "Error downloading %[1]s: %[2]v"
#: commands/instances.go:478
#: commands/instances.go:482
#: commands/instances.go:487
#: commands/instances.go:479
#: commands/instances.go:483
#: commands/instances.go:488
msgid "Error downloading index '%s'"
msgstr "Error downloading index '%s'"
#: commands/instances.go:511
#: commands/instances.go:517
#: commands/instances.go:512
#: commands/instances.go:518
msgid "Error downloading index signature '%s'"
msgstr "Error downloading index signature '%s'"
#: commands/instances.go:710
#: commands/instances.go:712
#: commands/instances.go:711
#: commands/instances.go:713
msgid "Error downloading library"
msgstr "Error downloading library"
#: commands/instances.go:387
#: commands/instances.go:390
#: commands/instances.go:388
#: commands/instances.go:391
msgid "Error downloading library_index.json.gz"
msgstr "Error downloading library_index.json.gz"
#: commands/instances.go:397
#: commands/instances.go:400
#: commands/instances.go:398
#: commands/instances.go:401
msgid "Error downloading library_index.json.sig"
msgstr "Error downloading library_index.json.sig"
#: commands/core/download.go:70
#: commands/core/download.go:74
#: commands/instances.go:793
#: commands/instances.go:795
#: commands/core/download.go:71
#: commands/core/download.go:75
#: commands/instances.go:794
#: commands/instances.go:796
msgid "Error downloading platform %s"
msgstr "Error downloading platform %s"
#: commands/core/download.go:83
#: commands/core/download.go:88
#: commands/instances.go:786
#: commands/core/download.go:84
#: commands/core/download.go:89
#: commands/instances.go:787
#: commands/instances.go:788
msgid "Error downloading tool %s"
msgstr "Error downloading tool %s"
......@@ -749,11 +749,11 @@ msgstr "Error during uninstall: %v"
msgid "Error during upgrade: %v"
msgstr "Error during upgrade: %v"
#: commands/instances.go:406
#: commands/instances.go:407
msgid "Error extracting library_index.json.gz"
msgstr "Error extracting library_index.json.gz"
#: commands/upload/upload.go:355
#: commands/upload/upload.go:356
msgid "Error finding build artifacts"
msgstr "Error finding build artifacts"
......@@ -769,11 +769,11 @@ msgstr "Error getting absolute path of sketch archive"
msgid "Error getting board details: %v"
msgstr "Error getting board details: %v"
#: commands/board/list.go:146
#: commands/board/list.go:147
msgid "Error getting board info from Arduino Cloud"
msgstr "Error getting board info from Arduino Cloud"
#: commands/board/list.go:211
#: commands/board/list.go:212
msgid "Error getting board list"
msgstr "Error getting board list"
......@@ -781,8 +781,8 @@ msgstr "Error getting board list"
msgid "Error getting current directory for compilation database: %s"
msgstr "Error getting current directory for compilation database: %s"
#: commands/compile/compile.go:289
#: commands/lib/list.go:106
#: commands/compile/compile.go:290
#: commands/lib/list.go:107
msgid "Error getting information for library %s"
msgstr "Error getting information for library %s"
......@@ -817,11 +817,11 @@ msgstr "Error installing Git Library: %v"
msgid "Error installing Zip Library: %v"
msgstr "Error installing Zip Library: %v"
#: commands/instances.go:814
#: commands/instances.go:815
msgid "Error installing platform %s"
msgstr "Error installing platform %s"
#: commands/instances.go:804
#: commands/instances.go:805
msgid "Error installing tool %s"
msgstr "Error installing tool %s"
......@@ -841,7 +841,7 @@ msgstr "Error listing platforms: %v"
msgid "Error opening source code overrides data file: %v"
msgstr "Error opening source code overrides data file: %v"
#: commands/compile/compile.go:270
#: commands/compile/compile.go:271
msgid "Error reading build directory"
msgstr "Error reading build directory"
......@@ -870,19 +870,19 @@ msgstr "Error retrieving core list: %v"
msgid "Error retrieving outdated cores and libraries: %v"
msgstr "Error retrieving outdated cores and libraries: %v"
#: commands/instances.go:830
#: commands/instances.go:831
msgid "Error rolling-back changes"
msgstr "Error rolling-back changes"
#: commands/core/install.go:148
#: commands/core/install.go:149
msgid "Error rolling-back changes: %s"
msgstr "Error rolling-back changes: %s"
#: commands/instances.go:536
#: commands/instances.go:537
msgid "Error saving downloaded index %s"
msgstr "Error saving downloaded index %s"
#: commands/instances.go:540
#: commands/instances.go:541
msgid "Error saving downloaded index signature"
msgstr "Error saving downloaded index signature"
......@@ -902,9 +902,9 @@ msgstr "Error searching for platforms: %v"
msgid "Error serializing compilation database: %s"
msgstr "Error serializing compilation database: %s"
#: commands/board/list.go:196
#: commands/board/list.go:199
#: commands/board/list.go:240
#: commands/board/list.go:197
#: commands/board/list.go:200
#: commands/board/list.go:241
msgid "Error starting board discoveries"
msgstr "Error starting board discoveries"
......@@ -912,12 +912,12 @@ msgstr "Error starting board discoveries"
msgid "Error uninstalling %[1]s: %[2]v"
msgstr "Error uninstalling %[1]s: %[2]v"
#: commands/core/uninstall.go:80
#: commands/core/uninstall.go:81
msgid "Error uninstalling platform %s"
msgstr "Error uninstalling platform %s"
#: commands/core/uninstall.go:96
#: commands/instances.go:846
#: commands/core/uninstall.go:97
#: commands/instances.go:847
msgid "Error uninstalling tool %s"
msgstr "Error uninstalling tool %s"
......@@ -946,8 +946,8 @@ msgstr "Error updating library index: %v"
msgid "Error upgrading libraries: %v"
msgstr "Error upgrading libraries: %v"
#: commands/core/install.go:143
#: commands/instances.go:825
#: commands/core/install.go:144
#: commands/instances.go:826
msgid "Error upgrading platform: %s"
msgstr "Error upgrading platform: %s"
......@@ -955,12 +955,12 @@ msgstr "Error upgrading platform: %s"
msgid "Error upgrading: %v"
msgstr "Error upgrading: %v"
#: commands/instances.go:411
#: commands/instances.go:521
#: commands/instances.go:412
#: commands/instances.go:522
msgid "Error verifying signature"
msgstr "Error verifying signature"
#: legacy/builder/container_find_includes.go:354
#: legacy/builder/container_find_includes.go:353
msgid "Error while detecting libraries included by {0}"
msgstr "Error while detecting libraries included by {0}"
......@@ -973,11 +973,11 @@ msgstr "Error while determining sketch size: %s"
msgid "Error writing compilation database: %s"
msgstr "Error writing compilation database: %s"
#: commands/instances.go:420
#: commands/instances.go:421
msgid "Error writing library_index.json"
msgstr "Error writing library_index.json"
#: commands/instances.go:423
#: commands/instances.go:424
msgid "Error writing library_index.json.sig"
msgstr "Error writing library_index.json.sig"
......@@ -1005,8 +1005,8 @@ msgstr "Examples:"
msgid "Executable to debug"
msgstr "Executable to debug"
#: commands/debug/debug_info.go:121
#: commands/upload/upload.go:361
#: commands/debug/debug_info.go:122
#: commands/upload/upload.go:362
msgid "Expected compiled sketch in directory %s, but is a file instead"
msgstr "Expected compiled sketch in directory %s, but is a file instead"
......@@ -1023,23 +1023,23 @@ msgstr "FQBN"
msgid "FQBN:"
msgstr "FQBN:"
#: commands/upload/upload.go:450
#: commands/upload/upload.go:451
msgid "Failed chip erase"
msgstr "Failed chip erase"
#: commands/upload/upload.go:457
#: commands/upload/upload.go:458
msgid "Failed programming"
msgstr "Failed programming"
#: commands/upload/upload.go:453
#: commands/upload/upload.go:454
msgid "Failed to burn bootloader"
msgstr "Failed to burn bootloader"
#: commands/instances.go:123
#: commands/instances.go:124
msgid "Failed to create data directory"
msgstr "Failed to create data directory"
#: commands/instances.go:113
#: commands/instances.go:114
msgid "Failed to create downloads directory"
msgstr "Failed to create downloads directory"
......@@ -1063,7 +1063,7 @@ msgstr "Failed to listen on TCP port: %s. Address already in use."
msgid "Failed to read: {0}"
msgstr "Failed to read: {0}"
#: commands/upload/upload.go:461
#: commands/upload/upload.go:462
msgid "Failed uploading"
msgstr "Failed uploading"
......@@ -1104,7 +1104,7 @@ msgstr "GDB Server path"
msgid "GDB Server type"
msgstr "GDB Server type"
#: commands/debug/debug.go:172
#: commands/debug/debug.go:173
msgid "GDB server '%s' is not supported"
msgstr "GDB server '%s' is not supported"
......@@ -1174,8 +1174,8 @@ msgstr "Includes %s directory in the archive."
msgid "Installed"
msgstr "Installed"
#: commands/instances.go:733
#: commands/lib/install.go:112
#: commands/instances.go:734
#: commands/lib/install.go:113
msgid "Installed %s"
msgstr "Installed %s"
......@@ -1186,13 +1186,13 @@ msgstr "Installed %s"
msgid "Installed version"
msgstr "Installed version"
#: commands/bundled_tools.go:48
#: commands/instances.go:716
#: commands/lib/install.go:92
#: commands/bundled_tools.go:49
#: commands/instances.go:717
#: commands/lib/install.go:93
msgid "Installing %s"
msgstr "Installing %s"
#: commands/core/install.go:109
#: commands/core/install.go:110
msgid "Installing platform %s"
msgstr "Installing platform %s"
......@@ -1206,11 +1206,11 @@ msgstr "Installs one or more cores and corresponding tool dependencies."
msgid "Installs one or more specified libraries into the system."
msgstr "Installs one or more specified libraries into the system."
#: legacy/builder/container_find_includes.go:378
#: legacy/builder/container_find_includes.go:377
msgid "Internal error in cache"
msgstr "Internal error in cache"
#: commands/errors.go:263
#: arduino/errors.go:266
msgid "Invalid '%[1]s' property: %[2]s"
msgstr "Invalid '%[1]s' property: %[2]s"
......@@ -1218,19 +1218,19 @@ msgstr "Invalid '%[1]s' property: %[2]s"
msgid "Invalid Call : should show Help, but it is available only in TEXT mode."
msgstr "Invalid Call : should show Help, but it is available only in TEXT mode."
#: commands/board/attach.go:65
#: commands/board/attach.go:66
msgid "Invalid Device URL format"
msgstr "Invalid Device URL format"
#: commands/errors.go:57
#: arduino/errors.go:60
msgid "Invalid FQBN"
msgstr "Invalid FQBN"
#: commands/errors.go:75
#: arduino/errors.go:78
msgid "Invalid URL"
msgstr "Invalid URL"
#: commands/instances.go:193
#: commands/instances.go:194
msgid "Invalid additional URL: %v"
msgstr "Invalid additional URL: %v"
......@@ -1247,7 +1247,7 @@ msgstr "Invalid argument passed: %v"
msgid "Invalid data size regexp: %s"
msgstr "Invalid data size regexp: %s"
#: commands/board/attach.go:75
#: commands/board/attach.go:76
msgid "Invalid device port type provided"
msgstr "Invalid device port type provided"
......@@ -1255,7 +1255,7 @@ msgstr "Invalid device port type provided"
msgid "Invalid eeprom size regexp: %s"
msgstr "Invalid eeprom size regexp: %s"
#: commands/errors.go:43
#: arduino/errors.go:46
msgid "Invalid instance"
msgstr "Invalid instance"
......@@ -1263,7 +1263,7 @@ msgstr "Invalid instance"
msgid "Invalid item %s"
msgstr "Invalid item %s"
#: commands/errors.go:93
#: arduino/errors.go:96
msgid "Invalid library"
msgstr "Invalid library"
......@@ -1279,8 +1279,8 @@ msgstr "Invalid option for --log-level: %s"
msgid "Invalid output format: %s"
msgstr "Invalid output format: %s"
#: commands/instances.go:454
#: commands/instances.go:528
#: commands/instances.go:455
#: commands/instances.go:529
msgid "Invalid package index in %s"
msgstr "Invalid package index in %s"
......@@ -1288,11 +1288,11 @@ msgstr "Invalid package index in %s"
msgid "Invalid parameter %s: version not allowed"
msgstr "Invalid parameter %s: version not allowed"
#: commands/board/list.go:57
#: commands/board/list.go:58
msgid "Invalid pid value: '%s'"
msgstr "Invalid pid value: '%s'"
#: commands/monitor/monitor.go:122
#: commands/monitor/monitor.go:123
msgid "Invalid recipe in platform.txt"
msgstr "Invalid recipe in platform.txt"
......@@ -1300,11 +1300,11 @@ msgstr "Invalid recipe in platform.txt"
msgid "Invalid size regexp: %s"
msgstr "Invalid size regexp: %s"
#: commands/errors.go:111
#: arduino/errors.go:114
msgid "Invalid version"
msgstr "Invalid version"
#: commands/board/list.go:54
#: commands/board/list.go:55
msgid "Invalid vid value: '%s'"
msgstr "Invalid vid value: '%s'"
......@@ -1332,11 +1332,11 @@ msgstr "LIBRARY_NAME"
msgid "Latest"
msgstr "Latest"
#: commands/lib/uninstall.go:36
#: commands/lib/uninstall.go:37
msgid "Library %s is not installed"
msgstr "Library %s is not installed"
#: commands/errors.go:311
#: arduino/errors.go:314
msgid "Library '%s' not found"
msgstr "Library '%s' not found"
......@@ -1344,12 +1344,12 @@ msgstr "Library '%s' not found"
msgid "Library can't use both '%[1]s' and '%[2]s' folders. Double check {0}"
msgstr "Library can't use both '%[1]s' and '%[2]s' folders. Double check {0}"
#: commands/errors.go:427
#: arduino/errors.go:430
msgid "Library install failed"
msgstr "Library install failed"
#: commands/lib/install.go:122
#: commands/lib/install.go:132
#: commands/lib/install.go:123
#: commands/lib/install.go:133
msgid "Library installed"
msgstr "Library installed"
......@@ -1414,13 +1414,13 @@ msgstr "Lists all connected boards."
msgid "Lists cores and libraries that can be upgraded"
msgstr "Lists cores and libraries that can be upgraded"
#: commands/instances.go:207
#: commands/instances.go:218
#: commands/instances.go:329
#: commands/instances.go:208
#: commands/instances.go:219
#: commands/instances.go:330
msgid "Loading index file: %v"
msgstr "Loading index file: %v"
#: commands/instances.go:338
#: commands/instances.go:339
msgid "Loading libraries: %v"
msgstr "Loading libraries: %v"
......@@ -1452,19 +1452,19 @@ msgstr "Messages with this level and above will be logged. Valid levels are: %s"
msgid "Missing '{0}' from library in {1}"
msgstr "Missing '{0}' from library in {1}"
#: commands/errors.go:127
#: arduino/errors.go:130
msgid "Missing FQBN (Fully Qualified Board Name)"
msgstr "Missing FQBN (Fully Qualified Board Name)"
#: commands/errors.go:169
#: arduino/errors.go:172
msgid "Missing port"
msgstr "Missing port"
#: commands/errors.go:157
#: arduino/errors.go:160
msgid "Missing port protocol"
msgstr "Missing port protocol"
#: commands/errors.go:195
#: arduino/errors.go:198
msgid "Missing programmer"
msgstr "Missing programmer"
......@@ -1472,11 +1472,11 @@ msgstr "Missing programmer"
msgid "Missing size regexp"
msgstr "Missing size regexp"
#: commands/errors.go:363
#: arduino/errors.go:366
msgid "Missing sketch path"
msgstr "Missing sketch path"
#: commands/errors.go:244
#: arduino/errors.go:247
msgid "Monitor '%s' not found"
msgstr "Monitor '%s' not found"
......@@ -1535,7 +1535,7 @@ msgstr "No libraries matching your search.\n"
"Did you mean...\n"
""
#: commands/errors.go:183
#: arduino/errors.go:186
msgid "No monitor available for the port protocol %s"
msgstr "No monitor available for the port protocol %s"
......@@ -1543,7 +1543,7 @@ msgstr "No monitor available for the port protocol %s"
msgid "No platforms matching your search."
msgstr "No platforms matching your search."
#: commands/board/attach.go:91
#: commands/board/attach.go:92
msgid "No supported board found at %s"
msgstr "No supported board found at %s"
......@@ -1551,11 +1551,11 @@ msgstr "No supported board found at %s"
msgid "No updates available."
msgstr "No updates available."
#: commands/upload/upload.go:410
#: commands/upload/upload.go:411
msgid "No upload port found, using %s as fallback"
msgstr "No upload port found, using %s as fallback"
#: commands/errors.go:330
#: arduino/errors.go:333
msgid "No valid dependencies solution found"
msgstr "No valid dependencies solution found"
......@@ -1675,27 +1675,27 @@ msgstr "Path to the file where logs will be written."
msgid "Path where to save compiled files. If omitted, a directory will be created in the default temporary path of your OS."
msgstr "Path where to save compiled files. If omitted, a directory will be created in the default temporary path of your OS."
#: commands/upload/upload.go:391
#: commands/upload/upload.go:392
msgid "Performing 1200-bps touch reset on serial port %s"
msgstr "Performing 1200-bps touch reset on serial port %s"
#: commands/core/install.go:72
#: commands/core/install.go:73
msgid "Platform %s already installed"
msgstr "Platform %s already installed"
#: commands/core/install.go:176
#: commands/core/install.go:177
msgid "Platform %s installed"
msgstr "Platform %s installed"
#: commands/core/uninstall.go:84
#: commands/core/uninstall.go:85
msgid "Platform %s uninstalled"
msgstr "Platform %s uninstalled"
#: commands/errors.go:348
#: arduino/errors.go:351
msgid "Platform '%s' is already at the latest version"
msgstr "Platform '%s' is already at the latest version"
#: commands/errors.go:292
#: arduino/errors.go:295
msgid "Platform '%s' not found"
msgstr "Platform '%s' not found"
......@@ -1741,7 +1741,7 @@ msgstr "Port"
msgid "Port closed:"
msgstr "Port closed:"
#: commands/errors.go:521
#: arduino/errors.go:524
msgid "Port monitor error"
msgstr "Port monitor error"
......@@ -1770,7 +1770,7 @@ msgstr "Prints the current configuration"
msgid "Prints the current configuration."
msgstr "Prints the current configuration."
#: commands/errors.go:225
#: arduino/errors.go:228
msgid "Programmer '%s' not found"
msgstr "Programmer '%s' not found"
......@@ -1790,7 +1790,7 @@ msgstr "Programmers:"
msgid "Progress {0}"
msgstr "Progress {0}"
#: commands/errors.go:277
#: arduino/errors.go:280
msgid "Property '%s' is undefined"
msgstr "Property '%s' is undefined"
......@@ -1807,8 +1807,8 @@ msgstr "Provides includes: %s"
msgid "Removes one or more values from a setting."
msgstr "Removes one or more values from a setting."
#: commands/instances.go:726
#: commands/lib/install.go:105
#: commands/instances.go:727
#: commands/lib/install.go:106
msgid "Replacing %[1]s with %[2]s"
msgstr "Replacing %[1]s with %[2]s"
......@@ -1856,7 +1856,7 @@ msgstr "Search for one or more libraries data (case insensitive search)."
msgid "Searches for one or more libraries data."
msgstr "Searches for one or more libraries data."
#: commands/board/attach.go:108
#: commands/board/attach.go:109
msgid "Selected fqbn: %s"
msgstr "Selected fqbn: %s"
......@@ -1864,7 +1864,7 @@ msgstr "Selected fqbn: %s"
msgid "Sentence: %s"
msgstr "Sentence: %s"
#: commands/download.go:62
#: commands/download.go:63
msgid "Server responded with: %s"
msgstr "Server responded with: %s"
......@@ -2000,7 +2000,7 @@ msgstr "Sketches with .pde extension are deprecated, please rename the following
msgid "Skip linking of final executable."
msgstr "Skip linking of final executable."
#: commands/upload/upload.go:384
#: commands/upload/upload.go:385
msgid "Skipping 1200-bps touch reset: no serial port selected!"
msgstr "Skipping 1200-bps touch reset: no serial port selected!"
......@@ -2012,15 +2012,15 @@ msgstr "Skipping archive creation of: {0}"
msgid "Skipping compile of: {0}"
msgstr "Skipping compile of: {0}"
#: legacy/builder/container_find_includes.go:325
#: legacy/builder/container_find_includes.go:324
msgid "Skipping dependencies detection for precompiled library {0}"
msgstr "Skipping dependencies detection for precompiled library {0}"
#: commands/instances.go:863
#: commands/instances.go:864
msgid "Skipping platform configuration"
msgstr "Skipping platform configuration"
#: commands/core/install.go:172
#: commands/core/install.go:173
msgid "Skipping platform configuration."
msgstr "Skipping platform configuration."
......@@ -2083,17 +2083,17 @@ msgid "This commands shows a list of installed cores and/or libraries\n"
msgstr "This commands shows a list of installed cores and/or libraries\n"
"that can be upgraded. If nothing needs to be updated the output is empty."
#: commands/bundled_tools.go:43
#: commands/core/install.go:79
#: commands/instances.go:777
#: commands/bundled_tools.go:44
#: commands/core/install.go:80
#: commands/instances.go:778
msgid "Tool %s already installed"
msgstr "Tool %s already installed"
#: commands/core/uninstall.go:100
#: commands/core/uninstall.go:101
msgid "Tool %s uninstalled"
msgstr "Tool %s uninstalled"
#: commands/debug/debug.go:133
#: commands/debug/debug.go:134
msgid "Toolchain '%s' is not supported"
msgstr "Toolchain '%s' is not supported"
......@@ -2151,16 +2151,16 @@ msgstr "Unable to get user home dir: %v"
msgid "Unable to open file for logging: %s"
msgstr "Unable to open file for logging: %s"
#: commands/core/uninstall.go:76
#: commands/lib/uninstall.go:38
#: commands/core/uninstall.go:77
#: commands/lib/uninstall.go:39
msgid "Uninstalling %s"
msgstr "Uninstalling %s"
#: commands/core/uninstall.go:92
#: commands/core/uninstall.go:93
msgid "Uninstalling %s, tool is no more required"
msgstr "Uninstalling %s, tool is no more required"
#: commands/instances.go:842
#: commands/instances.go:843
msgid "Uninstalling %s: tool is no more required"
msgstr "Uninstalling %s: tool is no more required"
......@@ -2178,7 +2178,7 @@ msgstr "Uninstalls one or more libraries."
msgid "Unknown"
msgstr "Unknown"
#: commands/errors.go:141
#: arduino/errors.go:144
msgid "Unknown FQBN"
msgstr "Unknown FQBN"
......@@ -2206,25 +2206,25 @@ msgstr "Updates the libraries index to the latest version."
msgid "Updates the libraries index."
msgstr "Updates the libraries index."
#: commands/instances.go:459
#: commands/instances.go:485
#: commands/instances.go:515
#: commands/instances.go:460
#: commands/instances.go:486
#: commands/instances.go:516
msgid "Updating index: %s"
msgstr "Updating index: %s"
#: commands/instances.go:386
#: commands/instances.go:387
msgid "Updating index: library_index.json.gz"
msgstr "Updating index: library_index.json.gz"
#: commands/instances.go:396
#: commands/instances.go:397
msgid "Updating index: library_index.json.sig"
msgstr "Updating index: library_index.json.sig"
#: commands/instances.go:799
#: commands/instances.go:800
msgid "Updating platform %s"
msgstr "Updating platform %s"
#: commands/core/upgrade.go:54
#: commands/core/upgrade.go:55
msgid "Upgrade doesn't accept parameters with version"
msgstr "Upgrade doesn't accept parameters with version"
......@@ -2245,7 +2245,7 @@ msgstr "Upgrades installed libraries."
msgid "Upgrades one or all installed platforms to the latest version."
msgstr "Upgrades one or all installed platforms to the latest version."
#: commands/core/install.go:113
#: commands/core/install.go:114
msgid "Upgrading platform %[1]s with %[2]s"
msgstr "Upgrading platform %[1]s with %[2]s"
......@@ -2261,7 +2261,7 @@ msgstr "Upload Arduino sketches. This does NOT compile the sketch prior to uploa
msgid "Upload port address, e.g.: COM3 or /dev/ttyACM2"
msgstr "Upload port address, e.g.: COM3 or /dev/ttyACM2"
#: commands/upload/upload.go:408
#: commands/upload/upload.go:409
msgid "Upload port found on %s"
msgstr "Upload port found on %s"
......@@ -2313,7 +2313,7 @@ msgstr "User directory not set"
msgid "Using board '{0}' from platform in folder: {1}"
msgstr "Using board '{0}' from platform in folder: {1}"
#: legacy/builder/container_find_includes.go:337
#: legacy/builder/container_find_includes.go:336
msgid "Using cached library dependencies for file: {0}"
msgstr "Using cached library dependencies for file: {0}"
......@@ -2371,11 +2371,11 @@ msgstr "Version"
msgid "Versions: %s"
msgstr "Versions: %s"
#: commands/core/install.go:168
#: commands/core/install.go:169
msgid "WARNING cannot configure platform: %s"
msgstr "WARNING cannot configure platform: %s"
#: commands/instances.go:859
#: commands/instances.go:860
msgid "WARNING: cannot run post install: %s"
msgstr "WARNING: cannot run post install: %s"
......@@ -2383,7 +2383,7 @@ msgstr "WARNING: cannot run post install: %s"
msgid "WARNING: library {0} claims to run on {1} architecture(s) and may be incompatible with your current board which runs on {2} architecture(s)."
msgstr "WARNING: library {0} claims to run on {1} architecture(s) and may be incompatible with your current board which runs on {2} architecture(s)."
#: commands/upload/upload.go:397
#: commands/upload/upload.go:398
msgid "Waiting for upload port..."
msgstr "Waiting for upload port..."
......@@ -2395,7 +2395,7 @@ msgstr "Warning: Board {0}:{1}:{2} doesn''t define a %s preference. Auto-set to:
msgid "Warning: platform.txt from core '{0}' contains deprecated {1}, automatically converted to {2}. Consider upgrading this core."
msgstr "Warning: platform.txt from core '{0}' contains deprecated {1}, automatically converted to {2}. Consider upgrading this core."
#: commands/upload/upload.go:293
#: commands/upload/upload.go:294
msgid "Warning: tool '%s' is not installed. It might not be available for your OS."
msgstr "Warning: tool '%s' is not installed. It might not be available for your OS."
......@@ -2435,11 +2435,11 @@ msgstr "archivePath"
msgid "arduino-preprocessor pattern is missing"
msgstr "arduino-preprocessor pattern is missing"
#: commands/upload/upload.go:554
#: commands/upload/upload.go:555
msgid "autodetect build artifact: %s"
msgstr "autodetect build artifact: %s"
#: commands/upload/upload.go:539
#: commands/upload/upload.go:540
msgid "binary file not found in %s"
msgstr "binary file not found in %s"
......@@ -2447,7 +2447,7 @@ msgstr "binary file not found in %s"
msgid "board %s not found"
msgstr "board %s not found"
#: commands/board/list.go:41
#: commands/board/list.go:42
msgid "board not found"
msgstr "board not found"
......@@ -2474,7 +2474,7 @@ msgstr "can't find latest release of %s"
msgid "can't find main Sketch file in %s"
msgstr "can't find main Sketch file in %s"
#: arduino/cores/packagemanager/loader.go:799
#: arduino/cores/packagemanager/loader.go:803
msgid "can't find pattern for discovery with id %s"
msgstr "can't find pattern for discovery with id %s"
......@@ -2490,8 +2490,8 @@ msgstr "can't retrieve standard output stream: %s"
msgid "candidates"
msgstr "candidates"
#: commands/upload/upload.go:496
#: commands/upload/upload.go:503
#: commands/upload/upload.go:497
#: commands/upload/upload.go:504
msgid "cannot execute upload tool: %s"
msgstr "cannot execute upload tool: %s"
......@@ -2553,11 +2553,11 @@ msgstr "communication out of sync, expected 'stop', received '%s'"
msgid "computing hash: %s"
msgstr "computing hash: %s"
#: commands/upload/upload.go:611
#: commands/upload/upload.go:612
msgid "could not find a valid build artifact"
msgstr "could not find a valid build artifact"
#: arduino/cores/packagemanager/loader.go:736
#: arduino/cores/packagemanager/loader.go:740
msgid "creating discovery: %s"
msgstr "creating discovery: %s"
......@@ -2578,7 +2578,7 @@ msgstr "data section exceeds available space in board"
msgid "decoding sketch metadata: %s"
msgstr "decoding sketch metadata: %s"
#: commands/lib/resolve_deps.go:54
#: commands/lib/resolve_deps.go:55
msgid "dependency '%s' is not available"
msgstr "dependency '%s' is not available"
......@@ -2598,11 +2598,11 @@ msgstr "directory doesn't exist: %s"
msgid "discovery %[1]s process not started: %[2]w"
msgstr "discovery %[1]s process not started: %[2]w"
#: arduino/cores/packagemanager/loader.go:727
#: arduino/cores/packagemanager/loader.go:731
msgid "discovery not found: %s"
msgstr "discovery not found: %s"
#: arduino/cores/packagemanager/loader.go:731
#: arduino/cores/packagemanager/loader.go:735
msgid "discovery not installed: %s"
msgstr "discovery not installed: %s"
......@@ -2620,7 +2620,7 @@ msgstr "download a specific version (in this case 1.6.9)."
msgid "download the latest version of Arduino SAMD core."
msgstr "download the latest version of Arduino SAMD core."
#: commands/instances.go:95
#: commands/instances.go:96
msgid "downloading %[1]s tool: %[2]s"
msgstr "downloading %[1]s tool: %[2]s"
......@@ -2640,11 +2640,11 @@ msgstr "error opening serial monitor"
msgid "error parsing value: %v"
msgstr "error parsing value: %v"
#: commands/board/list.go:87
#: commands/board/list.go:88
msgid "error processing response from server"
msgstr "error processing response from server"
#: commands/board/list.go:102
#: commands/board/list.go:103
msgid "error querying Arduino Cloud Api"
msgstr "error querying Arduino Cloud Api"
......@@ -2664,7 +2664,7 @@ msgstr "extracting archive: %w"
msgid "failed to compute hash of file \"%s\""
msgstr "failed to compute hash of file \"%s\""
#: commands/board/list.go:70
#: commands/board/list.go:71
msgid "failed to initialize http client"
msgstr "failed to initialize http client"
......@@ -2739,7 +2739,7 @@ msgstr "getting build properties for board %[1]s: %[2]s"
msgid "getting discovery dependencies for platform %[1]s: %[2]s"
msgstr "getting discovery dependencies for platform %[1]s: %[2]s"
#: arduino/cores/packagemanager/loader.go:680
#: arduino/cores/packagemanager/loader.go:684
msgid "getting parent dir of %[1]s: %[2]s"
msgstr "getting parent dir of %[1]s: %[2]s"
......@@ -2755,7 +2755,7 @@ msgstr "importing sketch metadata: %s"
msgid "install directory not set"
msgstr "install directory not set"
#: commands/instances.go:99
#: commands/instances.go:100
msgid "installing %[1]s tool: %[2]s"
msgstr "installing %[1]s tool: %[2]s"
......@@ -2856,7 +2856,7 @@ msgstr "invalid path writing inventory file: %[1]s error: %[2]w"
msgid "invalid platform archive size: %s"
msgstr "invalid platform archive size: %s"
#: arduino/cores/packagemanager/loader.go:370
#: arduino/cores/packagemanager/loader.go:374
msgid "invalid pluggable monitor reference: %s"
msgstr "invalid pluggable monitor reference: %s"
......@@ -2868,7 +2868,7 @@ msgstr "invalid port configuration value for %s: %s"
msgid "invalid port configuration: %s"
msgstr "invalid port configuration: %s"
#: commands/upload/upload.go:483
#: commands/upload/upload.go:484
msgid "invalid recipe '%[1]s': %[2]s"
msgstr "invalid recipe '%[1]s': %[2]s"
......@@ -2876,7 +2876,7 @@ msgstr "invalid recipe '%[1]s': %[2]s"
msgid "invalid value '%[1]s' for option '%[2]s'"
msgstr "invalid value '%[1]s' for option '%[2]s'"
#: arduino/cores/packagemanager/loader.go:281
#: arduino/cores/packagemanager/loader.go:284
msgid "invalid version dir %[1]s: %[2]s"
msgstr "invalid version dir %[1]s: %[2]s"
......@@ -2913,17 +2913,17 @@ msgstr "listing ports from discovery %[1]s: %[2]w"
msgid "listing serial ports"
msgstr "listing serial ports"
#: arduino/cores/packagemanager/loader.go:308
#: arduino/cores/packagemanager/loader.go:317
#: arduino/cores/packagemanager/loader.go:322
#: arduino/cores/packagemanager/loader.go:312
#: arduino/cores/packagemanager/loader.go:321
#: arduino/cores/packagemanager/loader.go:326
msgid "loading %[1]s: %[2]s"
msgstr "loading %[1]s: %[2]s"
#: arduino/cores/packagemanager/loader.go:358
#: arduino/cores/packagemanager/loader.go:362
msgid "loading boards: %s"
msgstr "loading boards: %s"
#: arduino/cores/packagemanager/loader.go:635
#: arduino/cores/packagemanager/loader.go:639
msgid "loading bundled tools from %[1]s: %[2]s"
msgstr "loading bundled tools from %[1]s: %[2]s"
......@@ -2941,20 +2941,20 @@ msgstr "loading library from %[1]s: %[2]s"
msgid "loading library.properties: %s"
msgstr "loading library.properties: %s"
#: arduino/cores/packagemanager/loader.go:257
#: arduino/cores/packagemanager/loader.go:285
#: arduino/cores/packagemanager/loader.go:261
#: arduino/cores/packagemanager/loader.go:289
msgid "loading platform release %[1]s: %[2]s"
msgstr "loading platform release %[1]s: %[2]s"
#: arduino/cores/packagemanager/loader.go:208
#: arduino/cores/packagemanager/loader.go:212
msgid "loading platform.txt: %v"
msgstr "loading platform.txt: %v"
#: arduino/cores/packagemanager/loader.go:602
#: arduino/cores/packagemanager/loader.go:606
msgid "loading tool release in %[1]s: %[2]s"
msgstr "loading tool release in %[1]s: %[2]s"
#: arduino/cores/packagemanager/loader.go:201
#: arduino/cores/packagemanager/loader.go:205
msgid "looking for boards.txt in %[1]s: %[2]s"
msgstr "looking for boards.txt in %[1]s: %[2]s"
......@@ -2987,7 +2987,7 @@ msgstr "monitor release not found: %s"
msgid "moving extracted archive to destination dir: %s"
msgstr "moving extracted archive to destination dir: %s"
#: commands/upload/upload.go:606
#: commands/upload/upload.go:607
msgid "multiple build artifacts found: '%[1]s' and '%[2]s'"
msgstr "multiple build artifacts found: '%[1]s' and '%[2]s'"
......@@ -3003,11 +3003,11 @@ msgstr "no compatible version of %s tools found for the current os"
msgid "no executable specified"
msgstr "no executable specified"
#: commands/daemon/daemon.go:100
#: commands/daemon/daemon.go:101
msgid "no instance specified"
msgstr "no instance specified"
#: commands/upload/upload.go:561
#: commands/upload/upload.go:562
msgid "no sketch or build directory/file specified"
msgstr "no sketch or build directory/file specified"
......@@ -3015,7 +3015,7 @@ msgstr "no sketch or build directory/file specified"
msgid "no unique root dir in archive, found '%[1]s' and '%[2]s'"
msgstr "no unique root dir in archive, found '%[1]s' and '%[2]s'"
#: commands/upload/upload.go:478
#: commands/upload/upload.go:479
msgid "no upload port provided"
msgstr "no upload port provided"
......@@ -3023,7 +3023,7 @@ msgstr "no upload port provided"
msgid "no valid sketch found in %[1]s: missing %[2]s"
msgstr "no valid sketch found in %[1]s: missing %[2]s"
#: commands/core/download.go:84
#: commands/core/download.go:85
msgid "no versions available for the current OS"
msgstr "no versions available for the current OS"
......@@ -3032,7 +3032,7 @@ msgstr "no versions available for the current OS"
msgid "opening archive file: %s"
msgstr "opening archive file: %s"
#: arduino/cores/packagemanager/loader.go:274
#: arduino/cores/packagemanager/loader.go:277
msgid "opening boards.txt: %s"
msgstr "opening boards.txt: %s"
......@@ -3063,7 +3063,7 @@ msgstr "package '%s' not found"
msgid "package not found"
msgstr "package not found"
#: arduino/cores/packagemanager/loader.go:228
#: arduino/cores/packagemanager/loader.go:232
msgid "parsing IDE bundled index: %s"
msgstr "parsing IDE bundled index: %s"
......@@ -3076,7 +3076,7 @@ msgstr "parsing fqbn: %s"
msgid "parsing library_index.json: %s"
msgstr "parsing library_index.json: %s"
#: arduino/cores/packagemanager/loader.go:190
#: arduino/cores/packagemanager/loader.go:194
msgid "path is not a platform directory: %s"
msgstr "path is not a platform directory: %s"
......@@ -3094,8 +3094,8 @@ msgstr "platform %s is not installed"
#: arduino/cores/packagemanager/install_uninstall.go:65
#: arduino/cores/packagemanager/install_uninstall.go:108
#: arduino/cores/packagemanager/loader.go:464
#: commands/compile/compile.go:127
#: arduino/cores/packagemanager/loader.go:468
#: commands/compile/compile.go:128
msgid "platform not installed"
msgstr "platform not installed"
......@@ -3131,17 +3131,17 @@ msgstr "quitting discovery %[1]s: %[2]w"
msgid "reading %[1]s directory: %[2]s"
msgstr "reading %[1]s directory: %[2]s"
#: arduino/cores/packagemanager/loader.go:685
#: arduino/cores/packagemanager/loader.go:689
msgid "reading %[1]s: %[2]s"
msgstr "reading %[1]s: %[2]s"
#: arduino/cores/packagemanager/loader.go:268
#: arduino/cores/packagemanager/loader.go:271
#: arduino/libraries/librariesmanager/librariesmanager.go:196
msgid "reading dir %[1]s: %[2]s"
msgstr "reading dir %[1]s: %[2]s"
#: arduino/cores/packagemanager/loader.go:163
#: arduino/cores/packagemanager/loader.go:593
#: arduino/cores/packagemanager/loader.go:167
#: arduino/cores/packagemanager/loader.go:597
msgid "reading directory %[1]s: %[2]s"
msgstr "reading directory %[1]s: %[2]s"
......@@ -3185,7 +3185,7 @@ msgstr "reading package root dir: %s"
msgid "reading sketch metadata %[1]s: %[2]s"
msgstr "reading sketch metadata %[1]s: %[2]s"
#: commands/upload/upload.go:472
#: commands/upload/upload.go:473
msgid "recipe not found '%s'"
msgstr "recipe not found '%s'"
......@@ -3232,7 +3232,7 @@ msgstr "retrieving Arduino public keys: %s"
msgid "scanning examples: %s"
msgstr "scanning examples: %s"
#: arduino/cores/packagemanager/loader.go:671
#: arduino/cores/packagemanager/loader.go:675
msgid "searching for builtin_tools_versions.txt in %[1]s: %[2]s"
msgstr "searching for builtin_tools_versions.txt in %[1]s: %[2]s"
......@@ -3253,7 +3253,7 @@ msgstr "sketch path is not valid"
msgid "sketchPath"
msgstr "sketchPath"
#: arduino/cores/packagemanager/loader.go:527
#: arduino/cores/packagemanager/loader.go:531
msgid "skipping loading of boards %s: malformed custom board options"
msgstr "skipping loading of boards %s: malformed custom board options"
......@@ -3269,7 +3269,7 @@ msgstr "start syncing discovery %[1]s: %[2]w"
msgid "starting discovery %[1]s: %[2]w"
msgstr "starting discovery %[1]s: %[2]w"
#: commands/board/list.go:302
#: commands/board/list.go:303
msgid "stopping discoveries: %s"
msgstr "stopping discoveries: %s"
......@@ -3297,11 +3297,11 @@ msgstr "testing local archive integrity: %s"
msgid "text section exceeds available space in board"
msgstr "text section exceeds available space in board"
#: commands/core/list.go:57
#: commands/core/list.go:62
msgid "the platform has no releases"
msgstr "the platform has no releases"
#: commands/board/list.go:78
#: commands/board/list.go:79
msgid "the server responded with status %s"
msgstr "the server responded with status %s"
......@@ -3348,7 +3348,7 @@ msgstr "tool release not found: %s"
msgid "tool version %s not found"
msgstr "tool version %s not found"
#: commands/lib/install.go:58
#: commands/lib/install.go:59
msgid "two different versions of the library %[1]s are required: %[2]s and %[3]s"
msgstr "two different versions of the library %[1]s are required: %[2]s and %[3]s"
......@@ -3413,7 +3413,7 @@ msgstr "upgrade arduino:samd to the latest version"
msgid "upgrade everything to the latest version"
msgstr "upgrade everything to the latest version"
#: commands/upload/upload.go:507
#: commands/upload/upload.go:508
msgid "uploading error: %s"
msgstr "uploading error: %s"
......@@ -3421,7 +3421,7 @@ msgstr "uploading error: %s"
msgid "writing sketch metadata %[1]s: %[2]s"
msgstr "writing sketch metadata %[1]s: %[2]s"
#: commands/board/list.go:94
#: commands/board/list.go:95
msgid "wrong format in server response"
msgstr "wrong format in server response"
......
......@@ -777,3 +777,21 @@ def test_core_list_outdated_core(run_command):
latest_version = semver.parse_version_info(samd_core["latest"])
# Installed version must be older than latest
assert installed_version.compare(latest_version) == -1
def test_core_loading_package_manager(run_command, data_dir):
# Create empty architecture folder (this condition is normally produced by `core uninstall`)
(Path(data_dir) / "packages" / "foovendor" / "hardware" / "fooarch").mkdir(parents=True)
result = run_command(["core", "list", "--all", "--format", "json"])
assert result.ok # this should not make the cli crash
def test_core_index_without_checksum(run_command):
assert run_command(["config", "init", "--dest-dir", "."])
url = "https://raw.githubusercontent.com/keyboardio/ArduinoCore-GD32-Keyboardio/ae5938af2f485910729e7d27aa233032a1cb4734/package_gd32_index.json" # noqa: E501
assert run_command(["config", "add", "board_manager.additional_urls", url])
assert run_command(["core", "update-index"])
result = run_command(["core", "list", "--all"])
assert result.ok # this should not make the cli crash
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment