Skip to content

[tools!] Improve error for missing name from mbed_lib.json #2433

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

Merged
merged 1 commit into from
Aug 15, 2016

Conversation

theotherjimmy
Copy link
Contributor

resolves #2083

It now tells you something like

[ERROR] Library configured at /home/----/src/mbedmicro/Nucleo_blink_led/mbed-os/features/net/network-socket/mbed_lib.json has no name field

@theotherjimmy theotherjimmy changed the title Improve error for missing name from mbed_lib.json [tools!] Improve error for missing name from mbed_lib.json Aug 11, 2016
@0xc0170
Copy link
Contributor

0xc0170 commented Aug 12, 2016

+1

cc @bogdanm

@0xc0170
Copy link
Contributor

0xc0170 commented Aug 12, 2016

/morph test

@mbed-bot
Copy link

Result: SUCCESS

Your command has finished executing! Here's what you wrote!

/morph test

Output

mbed Build Number: 636

All builds and test passed!

@@ -241,6 +241,9 @@ def add_config_files(self, flist):
cfg = json_file_to_dict(f)
cfg["__config_path"] = full_path
# If there's already a configuration for a module with the same name, exit with error

if "name" not in cfg:
Copy link
Contributor

@bogdanm bogdanm Aug 12, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change is good, but the comment at line 243 (above) is confusing: it was supposed to apply to the next if (line 247 below).

@0xc0170 0xc0170 merged commit dd8060b into ARMmbed:master Aug 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

mbed_lib.json without name field fails with cryptic error
4 participants