Skip to content

core search does not work on 3rd party boards when the query term contains whitespace #569

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
kittaakos opened this issue Jan 30, 2020 · 2 comments
Labels
conclusion: invalid Issue/PR not valid

Comments

@kittaakos
Copy link
Contributor

Bug Report

Current behavior

If I install a 3rd party core and run a core search where the query term has whitespace, I get back zero matches. It works for the official boards, such as Arduino 101.

Steps to reproduce:

akos.kitta@Akoss-MacBook-Pro build % ./arduino-cli version
arduino-cli Version: 0.7.1 Commit: 7668c46
akos.kitta@Akoss-MacBook-Pro build % ./arduino-cli core search
ID                   Version   Name                                             
Arrow:samd           2.1.0     Arrow Boards                                     
Intel:arc32          2.0.4     Intel Curie Boards                               
Intel:i586           1.6.7+1.0 Intel i586 Boards                                
Intel:i686           1.6.7+1.0 Intel i686 Boards                                
Microsoft:win10      1.1.2     Windows 10 Iot Core                              
arduino:avr          1.8.2     Arduino AVR Boards                               
arduino:mbed         1.1.4     Arduino nRF528x Boards (Mbed OS)                 
arduino:megaavr      1.8.5     Arduino megaAVR Boards                           
arduino:nrf52        1.0.2     Arduino nRF52 Boards                             
arduino:sam          1.6.12    Arduino SAM Boards (32-bits ARM Cortex-M3)       
arduino:samd         1.8.4     Arduino SAMD Boards (32-bits ARM Cortex-M0+)     
arduino:samd_beta    1.6.25    Arduino SAMD Beta Boards (32-bits ARM Cortex-M0+)
atmel-avr-xminis:avr 0.6.0     Atmel AVR Xplained-minis                         
emoro:avr            3.2.2     EMORO 2560                                       
esp32:esp32          1.0.4                                                      
industruino:samd     1.0.1     Industruino SAMD Boards (32-bits ARM Cortex-M0+) 
littleBits:avr       1.0.0     littleBits Arduino AVR Modules                   

akos.kitta@Akoss-MacBook-Pro build % ./arduino-cli core search "arduino 101"
ID          Version Name              
Intel:arc32 2.0.4   Intel Curie Boards

akos.kitta@Akoss-MacBook-Pro build % ./arduino-cli core search "esp32"      
ID          Version Name
esp32:esp32 1.0.4       

akos.kitta@Akoss-MacBook-Pro build % ./arduino-cli core search "esp32 dev"
No platforms matching your search.

Expected behavior

Running core search "esp32 d" gives back the esp32:esp32 1.0.4core match, such ascore search "esp32"`.

Environment

  • CLI version (output of arduino-cli version):
    arduino-cli Version: 0.7.1 Commit: 7668c46
  • OS and platform:
    macOS 10.15.1

Additional context

@kittaakos
Copy link
Contributor Author

It is just a guess, but perhaps esp32 works, as it matches the ID of the ESP32 core, but it cannot match against the board names, hence esp32 d won't work.

@kittaakos
Copy link
Contributor Author

Yes, this works as expected:

./arduino-cli core search "esp32 d" --additional-urls https://dl.espressif.com/dl/package_esp32_index.json
ID          Version Name 
esp32:esp32 1.0.4   esp32

I am going to close it.

@per1234 per1234 added the conclusion: invalid Issue/PR not valid label Jan 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: invalid Issue/PR not valid
Projects
None yet
Development

No branches or pull requests

2 participants