Mbed tools are not present when creating a new Mbed OS 2 program with --mbedlib
- Dominant language
- Python
- Stars
- 339
- Forks
- 187
- PR merge metrics
- No merged PRs in 30d
Description
**mbed-cli version:** 1.7.3
I follow the instructions in the Mbed CLI README documentation for creating a new Mbed OS 2 program (https://github.com/ARMmbed/mbed-cli#creating-a-new-program-for-mbed-os-2) and I receive the following output:
```
~/Repos $ mbed new mbed-classic-program --mbedlib
[mbed] Creating new program "mbed-classic-program" (git)
[mbed] Adding library "builds" from "https://mbed.org/users/mbed_official/code/mbed/builds" at branch/tag "tip"
[mbed] Downloading library build "5aab5a7997ee" (might take a while)
[mbed] Unpacking library build "5aab5a7997ee" in "/Users/jenplu01/Repos/mbed-classic-program/builds"
[mbed] Unpacking library build "5aab5a7997ee" in "/Users/jenplu01/Repos/mbed-classic-program/builds"
[mbed] Updating reference "builds" -> "https://mbed.org/users/mbed_official/code/mbed/builds/5aab5a7997ee"
[mbed] WARNING: Cannot find the mbed tools directory in "/Users/jenplu01/Repos/mbed-classic-program"
---
```
Unlike in the README, the Mbed 2.0 build tools are not downloaded. So, when I try to use commands like `mbed export`, `mbed compile` etc. I get the following output:
```
~/Repos/mbed-classic-program $ mbed compile
[mbed] ERROR: The mbed tools were not found in "/Users/jenplu01/Repos/mbed-classic-program".
[mbed] ERROR: Run `mbed deploy` to install dependencies and tools.
---
~/Repos/mbed-classic-program $ mbed export
[mbed] ERROR: The mbed tools were not found in "/Users/jenplu01/Repos/mbed-classic-program".
[mbed] ERROR: Run `mbed deploy` to install dependencies and tools.
---
```
So then I try to run `mbed deploy`...
```
~/Repos/mbed-classic-program $ mbed deploy
[mbed] Updating library "builds" to rev #5aab5a7997ee
[mbed] WARNING: Cannot find the mbed tools directory in "/Users/jenplu01/Repos/mbed-classic-program"
---
```
And now I'm stuck in a loop of being unable to do anything with this new Mbed OS 2 directory.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.