numaru / vscode-ceedling-test-adapter

Ceedling Test Adapter for the VS Code Test Explorer
MIT License
37 stars 14 forks source link

Test Explorer Output in Visual Studio Code : Failed to find the project.yml file. Please check the ceedlingExplorer.projectPath option. #80

Closed AdrianWenger1988 closed 3 years ago

AdrianWenger1988 commented 3 years ago

Hi,

I cannot run the tests in Visual Code: Followin error message appears:

Failed to find the project.yml file. Please check the ceedlingExplorer.projectPath option.

image

But there actually is a project.yml file in the current dir:

image

image

tools: image

image

image

AdrianWenger1988 commented 3 years ago

The problem is repsoducable. My colleague faces the same issue!

numaru commented 3 years ago

Hello, it is working on my windows machine and I don't see obvious reason to fail in the code. But this message can happen also if the file exists but it can't load the content. I suspect a wrong project.yml file encoding. The expected file encoding is UTF-8. The encoding error message is not logged but you can try to use the extension with a clean project to see if it fixes the issue.

Usually, I use ceedling example temp_sensor to generate a project. Then I open the project.yml with vscode (make sure the file encoding is UTF-8 in the right bottom corner) and add xml_tests_report to the plugin.enabled section. I configure the ceedlingExplorer.shellPath option if ceedling is not accessible in my default shell and reload the tests.

AdrianWenger1988 commented 3 years ago

Thanks for your reply. It is not the enconding of the project.yml, but there is an issue with the project.yml file content of the seetings for gcov:

Settings which lead to the issue: image

It works with this settings: image

numaru commented 3 years ago

Ok, perfect. I can close this. 👌