mbed-os-example-ble: missing file: pretty_printer.h on example mbed-os-6.5.0

Description of defect

pretty_printer.h file missing on this 6.5.0 release. 02f839a cannot run example code since that file not found by compiler.

[Fatal Error] main.cpp@20,10: 'pretty_printer.h' file not found
[ERROR] .\source\main.cpp:20:10: fatal error: 'pretty_printer.h' file not found
#include "pretty_printer.h"
^~~~~~~~~~~~~~~~~~
1 error generated.

Target(s) affected by this defect ?

Nucleo-WB55

Toolchain(s) (name and version) displaying this defect ?

Mbed Studio 1.3.1

What version of Mbed-os are you using (tag or sha) ?

mbed-os-6.5.0 f227856

What version(s) of tools are you using. List all that apply (E.g. mbed-cli)

Mbed Studio 1.3.1

How is this defect reproduced ?

Always

Thanks.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 24 (13 by maintainers)

Most upvoted comments

@paul-szczepanek-arm

Pretty printer is part of mbed-os-ble-utils. This should be checked out by running mbed deploy inside the chosen example.

This arises some questions:

  1. How should people get informed about this?? Especially as there is not a word about that throughout the documentation neither here nor here. Not to mention this page is stated to be a getting started page, but the content is absolutely useless. I mean 100 millions use Bluetooth daily and everyone knows that it is a wireless technology to send information. There is no need telling that. Then at the very bottom of all the bull**** one can find a link to the mbed-os-example-ble repo, which again does not tell a word about the need of mbed-os-ble-utils, nor does that repo do any onboarding despite it is the only useful content on the getting started page. Going one step further in that repo it turns out, the examples are OUTDATED (yet again) and it simply does not even compile. This is very bad user experience.
  2. What if someone uses the online compiler or Mbed Studio?? How should they deploy mbed-os-ble-utils?
  3. Without any real explanations/tutorials how do you think anyone could understand how to use BLE with Mbed? For sure BLE engineers already know the ins and outs but exactly that is why they do not even need a documentation.

I hope all these make sense and there will be a tutorial that really onboards people with current and working examples.

They’re both python libraries and AFAIK they use some common tools so likely mbed-tools deploy and mbed deploy does the exact same thing. It just looks like there’s a problem with your installation of mbed-cli and powershell just can’t find the executable although honestly I don’t know how it works on windows - I’m sure the tools team can give you a hand with that.

Yes, it’s been refactored out into a common repo as it’s used by all examples. Please reopen if there’s still an issue.