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)
- 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 5
- Intellisense Suddenly Stopped Working For Standard Headers & Included Directories HOT 5
- Edit CacheUI broken since last release? HOT 1
- Filename not mentioned in error HOT 3
- VSCODE reports symbols not found, while jump to declaration works correctly. HOT 8
- Extension display language not right HOT 2
- How to set the default ``cmake_minimum_required`` version in QuickStart command HOT 2
- Customer request: Add a setting for hierarchy delimiter to Test Explorer HOT 1
- CTest as the run-layer
- Broken API usage of latest WSL "No cache object found" HOT 9
- "Test results not found" for successful CTests from a CMakeLists file HOT 24
- Add setting to toggle Project Outline View
- Quick Start: Does not work with WSL on Windows HOT 3
- [loc] The content of the prompt box is not translated when hovering over the default value in the project status
- [loc] The custom configure preset is not translated in the VS Code Command Palette drop-down options
- Regression on running CTest with v1.18.41 update HOT 24
- XDG_SESSION_ID and XDG_SESSION_TYPE environment in debugConfig.environment or console's environment are overrided by getConfigureEnvironment HOT 5
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.