Comments (6)
@audetto In order to better solve your problem, we need more information from you, such as a project that can reproduce this issue and some screenshots? Thank you!
from vscode-cmake-tools.
Unfortunately I cannot replicate (I was trying here https://github.com/audetto/cmake-kits)
But I have learnt 2 things
- it is prefixed with
[proc]
which I had originally omitted - it is harmless. I always thought it was a fatal error, but it is not
maybe it is something the extension does to guess the version (-v
).
cmake
handles it properly, and I see as soon as I err (permission or other), a real fatal error comes prefixed with [cmake]
.
So, probably, not worth investing more time.
from vscode-cmake-tools.
Actually yes.
Found (look at the repo https://github.com/audetto/cmake-kits)
If I rename the compiler to clang-opt.sh
, then I can reproduce.
I suspect, it tries to guess something and in this case, not being an executable it fails.
I guess it is totally harmless.
[main] Configuring project: cmake-kits
[proc] Executing command: /usr/bin/cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_CXX_COMPILER:FILEPATH=/home/andrea/projects/cvs/cmake-kits/clang-opt.sh -S/home/andrea/projects/cvs/cmake-kits -B/home/andrea/projects/cvs/cmake-kits/build/Debug-bad -G Ninja
[cmake] Not searching for unused variables given on the command line.
[cmake] -- Configuring done (0.0s)
[cmake] -- Generating done (0.0s)
[cmake] -- Build files have been written to: /home/andrea/projects/cvs/cmake-kits/build/Debug-bad
[proc] The command: clang-opt -v failed with error: Error: spawn clang-opt ENOENT
but the message could be silenced.
from vscode-cmake-tools.
@gcampbell-msft I can reproduce the problem based on the project provided by the client, but the client feels that it is possible that this is not a serious bug or not a bug, and I was hoping you could give me some advice.
Repro steps recording:
- Download the project: https://github.com/audetto/cmake-kits provided by the customer and open it in vscode.
- Run the CMake:config command.
- Configured the kit to be bad.
Actual results:
from vscode-cmake-tools.
The last line of the output is the same as mine, but since my project is linux based, you have as well some real cmake errors where the compiler is broken
.
If you run this in linux, you will have a less confusing output.
from vscode-cmake-tools.
@audetto Thank you very much for your reply, we will close this issue, it is a mini-feature that allows the suite of scripts to fully support it, if you guys want this to be a feature that explicitly supports shell scripts as a "compiler", please create a specific issue for this.
from vscode-cmake-tools.
Related Issues (20)
- There was an error running ctest to determine available test executables
- YAMLException on configure HOT 7
- sysroot arg isn't being passed properly
- usepresets context is not set after using quickstart HOT 4
- Investigate passing multiple workspace browse configurations (1 for each target+fileGroup combo) to C/C++ extension HOT 4
- After clicking Run Tests an error is reported HOT 1
- FR: Make it easier to setup a launch configuration with CMake Tools HOT 3
- Configure raises an error if CTest scripts print to stdout HOT 6
- presets: setting cmake.buildToolArgs in configuration leads to build failures HOT 3
- FR: support the terminal.integrated.automationProfile.* when launch target without debug
- The test process will remain loaded after clicking “Debug Tests” HOT 3
- Annoying unnecessary logging related to expanding strings that don't require expansion
- Doubling of cpack arguments via package preset
- Need to clean-configure when running workflow with workflow-configure-preset different than project-configure-preset
- Fix UI issues in the CMake left panel related to package preset override of settings
- Improve CMakeLists.txt support - auto formatting and auto add to CMakeLists.txt when adding files HOT 1
- Selecting CMake Tools as configuration provider has error squiggles for all standard library includes HOT 3
- IntelliSense picks up wrong include path and shows false-positive error squiggles HOT 3
- Intellisense Suddenly Stopped Working For Standard Headers & Included Directories HOT 4
- Edit CacheUI broken since last release? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-cmake-tools.