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

Execute cmake in docker fails #30

Open
nrlmol2018 opened this issue Sep 23, 2024 · 0 comments
Open

Execute cmake in docker fails #30

nrlmol2018 opened this issue Sep 23, 2024 · 0 comments

Comments

@nrlmol2018
Copy link

Hi, I wanted to create a small wrapper-script to let CMakeBuilder execute "cmake ..." inside a docker container. Assuming I have a running container "ContainerName" I created a small script "cmakewrap.sh":

#!/bin/bash
docker exec -t -w /path/in/container ContainerName /usr/bin/cmake "$@"

I put this into ~/bin/ and did set "cmake_binary" to be

{
"cmake_binary": "/Users/mausername/bin/cmakewrap.sh"
}

in the setting.

(Calling cmakewrap.sh from command line works fine, e.g:

cmakewrap.sh -E capabilities
{"fileApi":{"requests":[{"kind":"codemodel","version":[{"major":2,"minor":3}]},{"kind":"cache","version":[{"major":2,"minor":0}]},{"kind":"cmakeFiles","version":[{"major":1,"minor":0}]},{"kind":"toolchains","version":[{"major":1,"minor":0}]}]},"generators":[{"extraGenerators":[],"name":"Watcom WMake","platformSupport":false,"toolsetSupport":false},{"extraGenerators":[],"name":"Ninja Multi-Config","platformSupport":false,"toolsetSupport":false},{"extraGenerators":["CodeBlocks","CodeLite","Eclipse CDT4","Kate","Sublime Text 2"],"name":"Ninja","platformSupport":false,"toolsetSupport":false},{"extraGenerators":["CodeBlocks","CodeLite","Eclipse CDT4","Kate","Sublime Text 2"],"name":"Unix Makefiles","platformSupport":false,"toolsetSupport":false},{"extraGenerators":[],"name":"Green Hills MULTI","platformSupport":true,"toolsetSupport":true}],"serverMode":false,"version":{"isDirty":false,"major":3,"minor":22,"patch":3,"string":"3.22.3","suffix":""}}
)

However, CMakeBuilder throws an error:

'There was an error loading cmake's capabilities. Your "cmake_binary" setting is set to ..."

Anyone has an idea what is going wrong here ?

BTW: is there a way to debug, I would look into it myself, however I have no idea where ST (on Mac) stores the actual (Python-)Code for the plugin ...

Best,
Torsten.

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

No branches or pull requests

1 participant