Comments (9)
My repro files
cmake-format_issue50.zip
from cmake_format.
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.
How does one build/run from tarball? I installed v0.3.6 from pip.
from cmake_format.
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.
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.
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.
starting new issue for 0.4.0rc1
from cmake_format.
(sorry, we crossed in flight, see #51)
from cmake_format.
No worries, sounds good.
from cmake_format.
Related Issues (20)
- Indent param lists HOT 1
- Maintenance status?
- Feature request: allow to include the specific inner config files
- Extension doesn't show up in vscode results for category:formatters cmake
- line_width causes seemingly inconsistent formatting
- Support pre-commit? HOT 2
- Could not find cmake-annotate
- Documentation of override_spec HOT 1
- Master failing tests
- Add option to provide original file path for cases when IDE uses temporary file
- Getting spawnsync EPIPE error from VS Code with cmake-format HOT 1
- Release of Windows executable build?
- VS Code extension: ${workspaceFolder} prefixed with '/' on Windows
- Option to always wrap arguments vertically HOT 2
- cmake-format merges two comment lines and breaks cmake-lint disable comment HOT 1
- cmake-lint: disable not working as expected? HOT 1
- Wrong assumption in get_lint that works on sorted suppression events
- Specifying a config file in `pre-commit` hook GitHub actions HOT 6
- Feature for control the style of `endif()` statement?
- Is this project still maintained? HOT 3
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 cmake_format.