Skip to content

'core list' doesn't work if a core is installed in sketchbook/hardware folder #15

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

Closed
manchoz opened this issue Aug 27, 2018 · 4 comments

Comments

@manchoz
Copy link
Contributor

manchoz commented Aug 27, 2018

for example:

$ arduino-cli core --debug list
INFO[0000] Initiating configuration
INFO[0000] Unserializing configurations from /usr/local/bin/.cli-config.yml
WARN[0000] Error reading config, using default configuration  error="open /usr/local/bin/.cli-config.yml: no such file or directory"
WARN[0000] Did not manage to get config file, using default configuration  error="open /usr/local/bin/.cli-config.yml: no such file or directory"
INFO[0000] Checking if CLI is Bundled into the IDE
INFO[0000] Candidate IDE Directory: /usr/local/bin
INFO[0000] CLI is not bundled into the IDE
INFO[0000] Configuration set
INFO[0000] Starting root command preparation (`arduino`)
INFO[0000] Formatter set
INFO[0000] Executing `arduino core list`
INFO[0000] Loading the default Package index
INFO[0000] Loading hardware from: /Users/mancho/Library/arduino15/packages
INFO[0000] Loading package arduino from: /Users/mancho/Library/arduino15/packages/arduino/hardware
INFO[0000] Loaded platform                               platform="arduino:[email protected]"
INFO[0000] Loaded platform                               platform="arduino:[email protected]"
INFO[0000] Loaded platform                               platform="arduino:[email protected]"
INFO[0000] Checking existence of 'tools' path: /Users/mancho/Library/arduino15/packages/arduino/tools
INFO[0000] Loading tools from dir: /Users/mancho/Library/arduino15/packages/arduino/tools
INFO[0000] Loaded tool                                   tool="arduino:[email protected]"
INFO[0000] Loaded tool                                   tool="arduino:[email protected]"
INFO[0000] Loaded tool                                   tool="arduino:[email protected]"
INFO[0000] Loaded tool                                   tool="arduino:[email protected]"
INFO[0000] Loaded tool                                   tool="arduino:[email protected]"
INFO[0000] Loaded tool                                   tool="arduino:[email protected]"
INFO[0000] Loaded tool                                   tool="arduino:arm-none-eabi-gcc@7-2017q4"
INFO[0000] Loaded tool                                   tool="arduino:[email protected]"
INFO[0000] Loaded tool                                   tool="arduino:[email protected]"
INFO[0000] Loaded tool                                   tool="arduino:[email protected]"
INFO[0000] Loaded tool                                   tool="arduino:[email protected]"
INFO[0000] Loaded tool                                   tool="arduino:[email protected]"
INFO[0000] Loaded tool                                   tool="arduino:[email protected]"
INFO[0000] Loading package builtin from: /Users/mancho/Library/arduino15/packages/builtin
INFO[0000] Checking existence of 'tools' path: /Users/mancho/Library/arduino15/packages/builtin/tools
INFO[0000] Loading tools from dir: /Users/mancho/Library/arduino15/packages/builtin/tools
INFO[0000] Loaded tool                                   tool="builtin:[email protected]"
INFO[0000] Loading hardware from: /Users/mancho/Documents/Arduino/hardware
INFO[0000] Loading package arduino-new from: /Users/mancho/Documents/Arduino/hardware/arduino-new
INFO[0000] Loaded platform                               platform="arduino-new:samd@"
INFO[0000] Loading package esp8266com from: /Users/mancho/Documents/Arduino/hardware/esp8266com
INFO[0000] Loaded platform                               platform="esp8266com:esp8266@"
INFO[0000] Loading package espressif from: /Users/mancho/Documents/Arduino/hardware/espressif
INFO[0000] Loaded platform                               platform="espressif:esp32@"
%!s(PANIC=runtime error: invalid memory address or nil pointer dereference)
@tttapa
Copy link

tttapa commented Aug 28, 2018

I have the same problem on Ubuntu 16.04.

$ ./arduino-cli-0.2.0-alpha.preview-linux64 --debug core list
INFO[0000] Initiating configuration                     
INFO[0000] Unserializing configurations from /home/pieter/Downloads/.cli-config.yml 
WARN[0000] Error reading config, using default configuration  error="open /home/pieter/Downloads/.cli-config.yml: no such file or directory"
WARN[0000] Did not manage to get config file, using default configuration  error="open /home/pieter/Downloads/.cli-config.yml: no such file or directory"
INFO[0000] Checking if CLI is Bundled into the IDE      
INFO[0000] Candidate IDE Directory: /home/pieter/Downloads 
INFO[0000] CLI is not bundled into the IDE              
INFO[0000] Configuration set                            
INFO[0000] Starting root command preparation (`arduino`) 
INFO[0000] Formatter set                                
INFO[0000] Executing `arduino core list`                
INFO[0000] Loading the default Package index            
INFO[0000] Loading hardware from: /home/pieter/.arduino15/packages 
INFO[0000] Loading package ATTinyCore from: /home/pieter/.arduino15/packages/ATTinyCore/hardware 
INFO[0000] Loaded platform                               platform="ATTinyCore:[email protected]"
INFO[0000] Loading package SparkFun from: /home/pieter/.arduino15/packages/SparkFun/hardware 
INFO[0000] Loaded platform                               platform="SparkFun:[email protected]"
INFO[0000] Loading package arduino from: /home/pieter/.arduino15/packages/arduino/hardware 
INFO[0000] Loaded platform                               platform="arduino:[email protected]"
INFO[0000] Loaded platform                               platform="arduino:[email protected]"
INFO[0000] Checking existence of 'tools' path: /home/pieter/.arduino15/packages/arduino/tools 
INFO[0000] Loading tools from dir: /home/pieter/.arduino15/packages/arduino/tools 
INFO[0000] Loaded tool                                   tool="arduino:[email protected]"
INFO[0000] Loaded tool                                   tool="arduino:[email protected]"
INFO[0000] Loaded tool                                   tool="arduino:[email protected]"
INFO[0000] Loaded tool                                   tool="arduino:[email protected]"
INFO[0000] Loaded tool                                   tool="arduino:[email protected]"
INFO[0000] Loading package esp8266 from: /home/pieter/.arduino15/packages/esp8266/hardware 
INFO[0000] Loaded platform                               platform="esp8266:[email protected]"
INFO[0000] Checking existence of 'tools' path: /home/pieter/.arduino15/packages/esp8266/tools 
INFO[0000] Loading tools from dir: /home/pieter/.arduino15/packages/esp8266/tools 
INFO[0000] Loaded tool                                   tool="esp8266:[email protected]"
INFO[0000] Loaded tool                                   tool="esp8266:[email protected]"
INFO[0000] Loaded tool                                   tool="esp8266:[email protected]"
INFO[0000] Loading hardware from: /home/pieter/Arduino/hardware 
INFO[0000] Loading package espressif from: /home/pieter/Arduino/hardware/espressif 
INFO[0000] Loaded platform                               platform="espressif:esp32@"
%!s(PANIC=runtime error: invalid memory address or nil pointer dereference)

@cmaglie
Copy link
Member

cmaglie commented Aug 28, 2018

Fixed in 69d6e0a

@animeshitsme
Copy link

@manchoz can you provide me tool, tool="builtin:[email protected]"
screenshot_5

@cmaglie
Copy link
Member

cmaglie commented Aug 29, 2018

@animeshitsme this is a bug in the 0.2.0-alpha.preview, please wait for the next alpha release or build it from source.

@arduino arduino locked as resolved and limited conversation to collaborators Aug 29, 2018
@cmaglie cmaglie added the bug label Aug 30, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants