lgt8fx icon indicating copy to clipboard operation
lgt8fx copied to clipboard

Package name with space makes arduino-cli awkward

Open majenkotech opened this issue 5 years ago • 1 comments

Having the global package name "LGT8fx Boards" in the packages .json file makes it awkward to use arduino-cli. All boards, and the core itself, get an awkward name that has a space in it, making escaping that space a pain, and not simple to do in a platform-agnostic way.

$ arduino-cli board listall | grep -i lgt8
LGT8F328                                    LGT8fx Boards:avr:328                         
LGT8F88                                     LGT8fx Boards:avr:88                   

Ideally the package name should be just lgt8fx which results in the much easier to use:

$ arduino-cli board listall | grep -i lgt8
LGT8F328                                    lgt8fx:avr:328                                
LGT8F88                                     lgt8fx:avr:88  

You still get the "pretty" name of the core in the platform name:

$ arduino-cli core search lgt8fx
ID         Version Name         
lgt8fx:avr 1.0.6   LGT8fx Boards

No other core has a space in its name - and for good reason: it's a right pain if there is a space.

majenkotech avatar Aug 30 '20 12:08 majenkotech

Thanks for the issue, I'll change the name in the json in the next release (to LGT8fx)

dbuezas avatar Sep 09 '20 06:09 dbuezas

Did this actually get fixed in the next release?

dwillmore avatar Jan 12 '23 19:01 dwillmore

It looks like I had "fixed" it wrong in the build script. Fixing this now.

dbuezas avatar Jan 12 '23 20:01 dbuezas