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

Error: spawn ctest ENOENT #701

Closed
oiltanker opened this issue Jun 23, 2019 · 4 comments
Closed

Error: spawn ctest ENOENT #701

oiltanker opened this issue Jun 23, 2019 · 4 comments

Comments

@oiltanker
Copy link

Error

[rollbar] Unhandled exception: Unhandled Promise rejection: Post-folder-open Error: spawn ctest ENOENT {"folder":{"uri":{"$mid":1,"fsPath":"c:\\<PATH_TO_PROJECT>","_sep":1,"external":"file:///c%3A/<PATH_TO_PROJECT>","path":"/c:/<PATH_TO_PROJECT>","scheme":"file"},"name":"<PROJECT_NAME>","index":0}}

Generator kit

{
  "name": "MinGW-W64 GCC 8.1.0 - 64 bit",
  "compilers": {
    "C": "C:/MinGW-W64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/x86_64-w64-mingw32-gcc-8.1.0.exe",
    "CXX": "C:/MinGW-W64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/x86_64-w64-mingw32-g++.exe"
  },
  "preferredGenerator": {
    "name": "MinGW Makefiles"
  },
  "environmentVariables": {
    "PATH": "%PATH%;C:\\MinGW-W64\\x86_64-8.1.0-posix-seh-rt_v6-rev0\\mingw64\\bin;"
  },
  "cmakeSettings": {
    "CMAKE_CXX_FLAGS": "-m64"
  }
}

Variant

"linkage": "static",
"buildType": "Debug"
@oiltanker
Copy link
Author

Issue temporarily can be fixed by deleting binary folder, but then appears again, when VSCode is reloaded.

@oiltanker
Copy link
Author

Found the issue. The extension does not expand the PATH variables such as %PATH%;<CUSTOM_PATHS>. It all has to be defined before hand.

@oiltanker
Copy link
Author

A good thing to implement would be to add some expression that would represent an existing environment variable value, in order to allow appending to environment variables that might be subject to change.

@itbgcthate
Copy link

itbgcthate commented Jul 19, 2019

Same issue, but I'm not sure what you mean by "it all has to be defined before hand". Defined by whom and where? I get the following:

[rollbar] Unhandled exception: Unhandled Promise rejection: Post-folder-open Error: spawn ctest ENOENT {"folder":{"uri":{"$mid":1,
"fsPath":"c:\Users\Me\Documents\Projects\Embedded\VSCode\MyProject","_sep":1,
"external":"file:///c%3A/Users/Me/Documents/Projects/Embedded/VSCode/MyProject",
"path":"/c:/Users/Me/Documents/Projects/Embedded/VSCode/MyProject","scheme":"file"},
"name":"MyProject","index":0}}

It seems to be having a problem with the definition of "external". This is all from the boilerplate generated by CMakeTools during initial setup. Everything configures and builds fine until VSCode is restarted.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants