cancel
Showing results for 
Search instead for 
Did you mean: 

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

dean.avenger
Associate

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?

1 REPLY 1
Bob S
Principal

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.