vscode-ceedling-test-adapter icon indicating copy to clipboard operation
vscode-ceedling-test-adapter copied to clipboard

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

Open ykoehler opened this issue 5 years ago • 7 comments

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.

ykoehler avatar Nov 24 '20 16:11 ykoehler

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 avatar Dec 07 '20 07:12 numaru

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

  • First, I try to reproduce the problem with the vscode window opened by pressing F5 in the extension repository.
  • Then, I put breakpoints in the code and watch the memory until I find what's wrong.

numaru avatar Dec 07 '20 07:12 numaru

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...

hpe-ykoehler avatar Dec 14 '22 15:12 hpe-ykoehler

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.

Aptahar avatar May 16 '24 11:05 Aptahar

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.

hpe-ykoehler avatar May 16 '24 14:05 hpe-ykoehler

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

Aptahar avatar May 16 '24 16:05 Aptahar