Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows 10: Ceedling failed to run in the configured Shell #46

Open
kbsteere opened this issue Mar 20, 2020 · 9 comments
Open

Windows 10: Ceedling failed to run in the configured Shell #46

kbsteere opened this issue Mar 20, 2020 · 9 comments
Labels
bug Something isn't working fail to reproduce

Comments

@kbsteere
Copy link

I have attempted to include the bash.exe, powershell.exe and all paths to those as well but I still get the error message: "Ceedling failed to run in the configured shell. Please check the ceedlingExplorer.shellPath option."

@numaru
Copy link
Owner

numaru commented Mar 20, 2020

Can you run the ceedling command line in those shells ?

@kbsteere
Copy link
Author

kbsteere commented Mar 20, 2020 via email

@numaru
Copy link
Owner

numaru commented Mar 20, 2020

Is this message prompted when you clicked the error in the tree view?

image

If yes, I think the issue is that the extension require the xml_test_report plugin to parse the results. Also, a line needs to be added in the project.yml

:plugins:
  :load_paths:
    - vendor/ceedling/plugins
  :enabled:
+   - xml_tests_report
    - stdout_pretty_tests_report
    - module_generator
    - gcov

@numaru
Copy link
Owner

numaru commented Mar 21, 2020

Also, what is your ceedling version?

I tried with these ones on w10:

C:\Users\kin\Documents\Laboratory\github\win32\vscode-ceedling-test-adapter [master ≡]
> ceedling version
Welcome to Ceedling!
  Ceedling::   0.28.3
  CMock::      2.4.5
  Unity::      2.4.2
  CException:: 1.3.1
C:\Users\kin\Documents\Laboratory\github\win32\vscode-ceedling-test-adapter [master ≡]
> (get-command ceedling).path
C:\Ruby24-x64\bin\ceedling.bat

with no ceedlingExplorer.shellPath defined and I don't get this issue.

@kbsteere
Copy link
Author

kbsteere commented Mar 23, 2020 via email

@numaru
Copy link
Owner

numaru commented Mar 23, 2020

I updated my Ceedling version and I'm still be able to use the extension. 🐱

To find out if the issue come from the environment or the Ceedling project, can you create a new project using the command ceedling example temp_sensor? I'm using this project to test the extension. I assume we are testing with the lastest ceedling and vscode versions, using no extension settings.

The extension shows the error message if it fails to run the command ceedling summary in the ceedlingExplorer.projectPath.

e.g.

C:\Users\kin\Documents\Laboratory\github\win32\temp_sensor
> ceedling summary ; write-host $? ; write-host $env:comspec

--------------------
OVERALL TEST SUMMARY
--------------------
TESTED:  47
PASSED:  47
FAILED:   0
IGNORED:  0


--------------------------
GCOV: OVERALL TEST SUMMARY
--------------------------

No tests executed.


NOTE: Summaries may be out of date with project sources.

True
C:\WINDOWS\system32\cmd.exe

@mb81
Copy link

mb81 commented May 1, 2020

I can do this:
ceedling

But i am not able to get the plugin running due to "Ceedling failed to run in the configured shell. Please check the ceedlingExplorer.shellPath option." Is there a way to get this running using wsl?
Ceedling:: 0.29.1
Unity:: 2.5.0
CMock:: 2.5.1
CException:: 1.3.2

@numaru
Copy link
Owner

numaru commented May 1, 2020

@mb81 Despite the fact the error message is the same, I see the problem you are describing as a separated one because this is not the same shell used. I think it deserve its own issue.

Anyway, I tried with:

  • The temp_sensor example generated with ceedling example temp_sensor and the xml_report plugin added in project.yml.
  • The following .vscode/settings.json
{
    "ceedlingExplorer.shellPath": "bash"
}
  • The following versions:
vscode 1.44.2
wsl v1, Ubuntu 18.04.3 LTS
ceedling 0.29.1

and it works.

A workaround could be to use the wsl extension of vscode. see #39

@mb81
Copy link

mb81 commented May 2, 2020

Thank you for letting me trying again the "bash" in shellPath, which i tried several times, and in different variants. It works ^^ .
Also it works with the remote Wsl connection.
Nice tool :)

@numaru numaru added bug Something isn't working fail to reproduce labels Sep 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fail to reproduce
Projects
None yet
Development

No branches or pull requests

3 participants