Coder Social home page Coder Social logo

Comments (9)

mikew-lunarg avatar mikew-lunarg commented on August 23, 2024

My repro files
cmake-format_issue50.zip

from cmake_format.

cheshirekow avatar cheshirekow commented on August 23, 2024

Fixed I believe in the upcoming release. If you're able, please try https://github.com/cheshirekow/cmake_format/releases/tag/v0.4.0rc1 and lte me know how it goes

from cmake_format.

mikew-lunarg avatar mikew-lunarg commented on August 23, 2024

How does one build/run from tarball? I installed v0.3.6 from pip.

from cmake_format.

cheshirekow avatar cheshirekow commented on August 23, 2024

It's pure python so there's no build, and there's a number of ways mostly depending on your preference. My suggestion would be to extract the tarball somewhere temporary and then use the PYTHONPATH environment variable to point to that location. If you're on a linux/mac here's what I would do:

$ cd /tmp/
$ wget https://github.com/cheshirekow/cmake_format/archive/v0.4.0rc1.tar.gz
$ tar xf v0.4.0rc1.tar.gz
$ cd ~/path/to/your/project
$ PYTHONPATH=/tmp/v0.4.0rc1 python -Bm cmake_format ./path/to/CMakeLists.txt

from cmake_format.

mikew-lunarg avatar mikew-lunarg commented on August 23, 2024

Thanks, those run instructions were very helpful. Perhaps insert in the docs somewhere ;-)

I believe rc1 addresses the original topic of this issue.
I like your refinements to the formatting layout.

Thanks very much!

from cmake_format.

cheshirekow avatar cheshirekow commented on August 23, 2024

Ok great, thanks for testing that out. I think it's fine for us to discuss those new issues here. I have an idea of why (1.) is doing what it's doing. I'll add a test for that and should be able to fix it quickly. I'm not sure about that set() though...

Thanks for the linking the file. I'll give it a try myself and dig into what's going on with that one.

from cmake_format.

mikew-lunarg avatar mikew-lunarg commented on August 23, 2024

starting new issue for 0.4.0rc1

from cmake_format.

mikew-lunarg avatar mikew-lunarg commented on August 23, 2024

(sorry, we crossed in flight, see #51)

from cmake_format.

cheshirekow avatar cheshirekow commented on August 23, 2024

No worries, sounds good.

from cmake_format.

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.