Skip to content

Execute cmake in docker fails  #30

@nrlmol2018

Description

@nrlmol2018

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions