lancaster-university / microbit-dal

http://lancaster-university.github.io/microbit-docs
Other
258 stars 131 forks source link

problem with Module.json file #314

Open DebzM opened 7 years ago

DebzM commented 7 years ago

Found error in build

(workspace) C:\Users\seand\projects\tutorial>yotta init Enter the module name: example for youtube Enter the initial version: <0.0.0> 0.0.0 Is this an executable (instead of a re-usable library module)? yes Short description: example Author: Sean Dunlevy What is the license for this project (Apache-2.0, ISC, MIT etc.)? free

(workspace) C:\Users\seand\projects\tutorial>yotta target bbc-microbit-classic-gcc warning: tutorial has invalid module.json: warning: name value u'example for youtube' does not match u'^[a-z]+[a-z0-9-]*$' info: get versions for bbc-microbit-classic-gcc info: download bbc-microbit-classic-gcc@0.2.3 from the public module registry info: get versions for mbed-gcc info: download mbed-gcc@0.1.3 from the public module registry

jamesadevine commented 7 years ago

Hiya,

You need to enter the module name with dashes rather than spaces.

If you haven't already, take a look at the microbit-samples project:

https://github.com/lancaster-university/microbit-samples

James.

On 20 Aug 2017, at 09:47, DebzM notifications@github.com<mailto:notifications@github.com> wrote:

Found error in build

(workspace) C:\Users\seand\projects\tutorial>yotta init Enter the module name: example for youtube Enter the initial version: <0.0.0> 0.0.0 Is this an executable (instead of a re-usable library module)? yes Short description: example Author: Sean Dunlevy What is the license for this project (Apache-2.0, ISC, MIT etc.)? free

(workspace) C:\Users\seand\projects\tutorial>yotta target bbc-microbit-classic-gcc warning: tutorial has invalid module.json: warning: name value u'example for youtube' does not match u'^[a-z]+[a-z0-9-]*$' info: get versions for bbc-microbit-classic-gcc info: download bbc-microbit-classic-gcc@0.2.3 from the public module registry info: get versions for mbed-gcc info: download mbed-gcc@0.1.3 from the public module registry

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/lancaster-university/microbit-dal/issues/314, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AEheKdXHxva0tayxyeNUZKfU89S8v_P6ks5saGMCgaJpZM4O8qlq.

DebzM commented 7 years ago

thanks james, will give it a go, and yes i am using the tutorial you suggested - was hoping it was something simple i had missed, will let you know