Skip to main content
dean.avenger
Associate
September 6, 2019
Question

Trying to build my project in headless mode but getting WARNING: No Project matched

  • September 6, 2019
  • 1 reply
  • 1326 views

I have a project in STM32CubeIDE I run this project from command line in headless mode with this command:

headless-bat -project "my-project-name/Debug" -build

and it builds successfully. But when I try to copy the same project to other directory and try to run it I am getting this error WARNING: No Project matched with my project name written with it. I copied the project to c:/myworkplace and then I run this command:

headless-bat -project "my-project-name/Debug" -workplace "c:\myworkplace" -build

But I got the error which I have mentioned above. Anyone has any idea?

This topic has been closed for replies.

1 reply

Bob S
Super User
September 6, 2019

What is your current directory in the 2nd case? And where is your project?

I believe the --workspace option only tells eclipse where to store its metadata. I don't think it tells eclipse where the actual project is. So if you have your project stored under "C:\myworkplace" (in C:\myworkplace\my-project-name) you may need to have C:\myworkplace as your current directory when calling headless-build.bat.