numaru / vscode-ceedling-test-adapter

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

Linux, Ceedling failed to run in the configured shell, how to troubleshoot? #68

Open ykoehler opened 3 years ago

ykoehler commented 3 years ago

I have set the ceedlingExplorer.shellPath to point to the proper location (somewhere where ceedling binary is located, one level before).

Yet I am still getting this message

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

I am not that knowledgeable about VSCode yet as to understand how I can troubleshoot what is happening. I am using VScode on Windows with a Remote environment using SSH on Linux CentOS7

In the Terminal plugin within vscode, I can confirm my paths are correct, that the binary is working fine. I can use my test script to run the ceedling test as well. The VScode ceeding plugin is the only place where things fall apart.

numaru commented 3 years ago

Do you use the ms-vscode-remote.remote-ssh plugin? We faced the same issue with the WSL and the remote plugin was a workaround.

Also, what is your ceedlingExplorer.shellPath option?

numaru commented 3 years ago

Unfortunately, there is no debug log nor unit tests for this extension. Here is how I debug:

hpe-ykoehler commented 1 year ago

I think the issue is that this is expected to be a shell program like bash... where I thought it was going to be the path to the Ceedling binary...

Aptahar commented 4 months ago

I have the same issue, output:
2024-05-16 14:17:42.701 [error] Ceedling failed to run in the configured shell. Please check the ceedlingExplorer.shellPath option. Tried bash and null and bin/bash in ceedlingExplorer.shellPath, same error.
OS Ubuntu.

hpe-ykoehler commented 3 months ago

have you try "/bin/bash"? and validated that bash is in that /bin folder? The missing / at the beginning of the string may be why it is not working for you.

Aptahar commented 3 months ago

have you try "/bin/bash"? and validated that bash is in that /bin folder? The missing / at the beginning of the string may be why it is not working for you.

Yes, even tried exec /bin/bash -c "ceedling summary" in terminal in project folder and it work