Giter Club home page Giter Club logo

Comments (6)

v-frankwang avatar v-frankwang commented on June 1, 2024

@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.

audetto avatar audetto commented on June 1, 2024

Unfortunately I cannot replicate (I was trying here https://github.com/audetto/cmake-kits)
But I have learnt 2 things

  1. it is prefixed with [proc] which I had originally omitted
  2. 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.

audetto avatar audetto commented on June 1, 2024

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.

v-frankwang avatar v-frankwang commented on June 1, 2024

@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:

  1. Download the project: https://github.com/audetto/cmake-kits provided by the customer and open it in vscode.
  2. Run the CMake:config command.
  3. Configured the kit to be bad.

image

Actual results:

image

from vscode-cmake-tools.

audetto avatar audetto commented on June 1, 2024

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.

v-frankwang avatar v-frankwang commented on June 1, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.