Giter Site home page Giter Site logo

Comments (8)

dascandy avatar dascandy commented on June 20, 2024

Hmm.... if this is on working code that's a bug. Can you try to reduce your CMakeList to find why it thinks the parens are not balanced?

from cpp-dependencies.

pmontalb avatar pmontalb commented on June 20, 2024

I encountered the same issue, I'll try to get a reproduceable example

from cpp-dependencies.

codeling avatar codeling commented on June 20, 2024

Same issue here. Anyone got a clue what the problem might be already?

from cpp-dependencies.

dascandy avatar dascandy commented on June 20, 2024

Still no idea what kind of code leads to this assert; have only seen this bug report but no examples yet.

from cpp-dependencies.

Warchant avatar Warchant commented on June 20, 2024

https://github.com/tomtom-international/cpp-dependencies/blob/master/src/Input.cpp#L263-L264
If number of closing parenthesis is bigger than number of opening parenthesis, and file stream is at eof, then parenLevel will be equal to -1.

from cpp-dependencies.

RomanValov avatar RomanValov commented on June 20, 2024

Hi,

I'm experiencing the same issue. I found following subprojects used in my project caused the exception:

https://github.com/webmproject/libwebp / tag v1.2.4 (current HEAD also fails)
https://github.com/gabime/spdlog.git / tag v1.10.0 (current HEAD also fails)

based on grep results CMakeLists.txt of those projects have inconsistent number of opening and closing parens.

from cpp-dependencies.

PeterBindels-TomTom avatar PeterBindels-TomTom commented on June 20, 2024

Found it. It triggers on

option(
SPDLOG_NO_ATOMIC_LEVELS
"prevent spdlog from using of std::atomic log levels (use only if your code never modifies log levels concurrently"
OFF)

in spdlog. Note the unbalanced parenthesis in the comment. Will fix.

from cpp-dependencies.

RomanValov avatar RomanValov commented on June 20, 2024

Hi, thank you for spending time fixing this. The fix is actually working for spdlog.
However it won't for libwebp. Please check #63

from cpp-dependencies.

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.