numaru / vscode-ceedling-test-adapter

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

Extension does not work on Mac catalina, vscodium, oh-my-zsh shell #66

Closed krish2487 closed 4 years ago

krish2487 commented 4 years ago

Hello, I have installed and use this configuration on mac catalina with vscodium and oh-my-zsh shell. No matter what the value of "ceedlingExplorer.shellPath": is set to, the test explorer is not discovering any tests. I have tried with various combinations of zsh, sh, bash, null with and without double quotes.

I get the usual

Ceedling failed to run in the configured shell. Please check the ceedlingExplorer.shellPath option.

/bin/sh: ceedling: command not found
zsh:1: command not found: ceedling
bash: ceedling: command not found

Ceedling is installed as a gem and is available on the system path. In fact, I tried it on an existing project to test the extension.

And yes, the xml_reports plugin is enabled in the plugins section of the project.yml.

I would be grateful if anyone can help me fix this issue. I am guessing I am doing something wrong.. but am unable to figure out where.

numaru commented 4 years ago

What I did to try to reproduce the issue:

image

Could you try to generate the temp_sensor on your machine too ?

krish2487 commented 4 years ago

Hello @numaru . Thank you for the rapid response. I am able to replicate your findings with the temp_sensor project.

On a hunch, I deleted the contents of settings.json in my original project folder, after reading the last point you have mentioned. And the plugin now works even in this project. I am able to see the tests and the plugin doesnt throw an error message.

Thank you @numaru . You have been very helpful. I am closing this issue now.

krish2487 commented 4 years ago

Uhh.. Looks like I spoke to soon. I restarted my machine to continue and the same issue seems to reappear again.

Both in my project and the temp_sensor project. I cant see the tests anymore and It throws the same "Ceedling : command not found" Screenshot 2020-09-13 at 18 23 22 Screenshot 2020-09-13 at 18 23 29

@numaru Any other information or logs I can provide to make troubleshooting easier ?

Thank you again so much and I apologize for reopening a rather petty. I am almost certain its something I must be doing wrong.

krish2487 commented 4 years ago

Okay. I have had some more time to experiment and found a more or less repeatable way to reproduce the issue, and maybe a potential solution.

The test explorer always fails to discover any tests when I start vscodium from the spotlight or the dock, irrespective of the project.

However running code . or code <project_folder_name> to open the project files results in the vscodium editor results in the test explorer working just fine and the tests run as well.

I am not sure if this is intentional or a corner case, for now I will use this workflow and continue ahead. @numaru Thanks again for the help. :-) I ll close the issue again for now. :-P