Coder Social home page Coder Social logo

Comments (8)

MisterTea avatar MisterTea commented on June 5, 2024

I added debug logging and still can't see anything interesting to report: https://github.com/MisterTea/EternalTerminal/runs/1891057095?check_suite_focus=true

from cppbuildtasks-validation.

MisterTea avatar MisterTea commented on June 5, 2024

The issue was that the project name in the manifest had capital letters.

from cppbuildtasks-validation.

lukka avatar lukka commented on June 5, 2024

@MisterTea thanks for creating this report. If i understood correctly, this was the fix.
I am not finding a correlation between the fact that the 'Ninja' tool is not in the path, with the package name wrongly spelled. I'd expect to get an error like "cannot install package xyz because it is not found".

Do you have any insight?

from cppbuildtasks-validation.

MisterTea avatar MisterTea commented on June 5, 2024

Totally agree that it's a very obscure error message.

Change the package name to capitals in this repo and see if it is reproducible?

from cppbuildtasks-validation.

lukka avatar lukka commented on June 5, 2024

@MisterTea I reproduced this locally, it is not related to 'ninja', but it is certainly a vcpkg problem.
The scenario is that, when bootstrapping vcpkg from CMake, and when the vcpkg.json contains a not package name with a capital case character, the error that the user see is the following:

VERBOSE=1 cmake .. -DCMAKE_TOOLCHAIN_FILE=..../vcpkg/scripts/buildsystems/vcpkg.cmake 
Re-run cmake no build system arguments
-- Running vcpkg install
-- Running vcpkg install - failed
CMake Error at ...../vcpkg/scripts/buildsystems/vcpkg.cmake:672 (message):
  vcpkg install failed.  See logs for more information:
  ......./vcpkg_manifest/build/vcpkg-manifest-install.log
Call Stack (most recent call first):
  /usr/local/Cellar/cmake/3.17.2/share/cmake/Modules/CMakeDetermineSystem.cmake:93 (include)
  CMakeLists.txt:3 (project)

CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!

But the actual error stored in log file vcpkg-manifest-install.log is the following:

Errors occurred while parsing .../vcpkg_manifest/vcpkg.json
    $.name (an identifier): must be lowercase alphanumeric+hyphens and not reserved
    $.dependencies[0] (a dependency): must be lowercase alphanumeric+hyphens, split with periods, and not reserved
    $.dependencies[1] (a dependency): must be lowercase alphanumeric+hyphens, split with periods, and not reserved
See https://github.com/Microsoft/vcpkg/tree/master/docs/users/manifests.md for more information.

from cppbuildtasks-validation.

MisterTea avatar MisterTea commented on June 5, 2024

That's the error message you get on linux, but on windows you get an error related to ninja

from cppbuildtasks-validation.

lukka avatar lukka commented on June 5, 2024

@MisterTea I narrowed down the error to how CMake handles the FATAL_ERRORs in toolchain files, created this issue: https://gitlab.kitware.com/cmake/cmake/-/issues/21813

from cppbuildtasks-validation.

MisterTea avatar MisterTea commented on June 5, 2024

Thanks for following up!!

from cppbuildtasks-validation.

Related Issues (5)

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.