Skip to content

Error when using 'mbed new .' on exported Online project #429

@MarceloSalazar

Description

@MarceloSalazar

Reproduce with these steps:

  1. Download ZIP file from existing online project:
    https://developer.mbed.org/teams/mbed-os-examples/code/mbed-os-example-blinky/export

  2. Unzip and change to directory

  3. dir /A

29/01/2017  15:10                32 .gitignore
29/01/2017  15:10    <DIR>          .hg
29/01/2017  15:10    <DIR>          img
29/01/2017  15:10               213 main.cpp
29/01/2017  15:12    <DIR>          mbed-os
29/01/2017  15:10                77 mbed-os.lib
29/01/2017  15:10             2,737 README.md
  1. mbed new .

Output:

[mbed] ERROR: A repository already exists in "C:\mbed\xxx\mbed-os-example-blinky_zip_NUCLEO_F429ZI\mbed-os-example-blinky" based on git. Please select a different name or location.
---
  1. mbed compile
[mbed] WARNING: Could not find mbed program in current path "C:\mbed\xxx\mbed-os-example-blinky_zip_NUCLEO_F429ZI\mbed-os-example-blinky".
[mbed] WARNING: You can fix this by calling "mbed new ." in the root of your program.
...

Either the exported should not have a .gitignore directory, or mbed CLI should be able to handle this.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions