Comments (7)
It should work. The uncrustify configuration can be in any parent directory. Here is a working example (http://cl.ly/VhWH), I made a test with the V2.0.3 and there is no issue.
Because there can be multiple configurations for a same project, the configuration file path is not displayed in the preferences. To check wich configuration is used for a given source code file, select the source file in the navigator of Xcode and then use the menu item "Edit Uncrustify Configuration" (in the preferences, set your preferred text editor app to edit the configuration file), it will open the configuration file used for this file.
from bbuncrustifyplugin-xcode.
Thanks for the swift reply - I can edit the configuration ok but whatever I do I can't seem to get it to format using the configuration I've just edited. The editor does seem to be doing a code format on save but it's just not the format I have specified/edited.
from bbuncrustifyplugin-xcode.
I'm also experiencing this issue on a new development machine: OS X 10.9.4 & Xcode 5.1.1. The plugin finds the correct uncrustify.cfg file when editing the configuration, but no formatting is done through any of the Format Selection, Format File, etc commands.
When switching to clang-format with the plugin, formatting works as expected. I'm using clang-format for now, but it's not nearly as powerful :(
from bbuncrustifyplugin-xcode.
I had this same issue. If I ran uncrustify from command line it would format the code but, I had a few errors for Unknown symbol. My .cfg was started from a sample .cfg in the Uncrustify source on GitHub an it seems the sample contained either a few new settings or some deprecated settings. Once I commented out the offending lines in my .cfg, BBUncrustifyPlugin started working just fine.
from bbuncrustifyplugin-xcode.
how were you able to find out what the offending lines were?
from bbuncrustifyplugin-xcode.
I'm having this issue as well. Xcode 6.3, Mac OS X 10.10. I can format the files using my .cfg file in uncrustify, but it doesn't execute the formatting in Xcode. It was working great a few days ago. Maybe the new command line tools from Apple broke this somehow?
from bbuncrustifyplugin-xcode.
I have added a log viewer. At this time, the log is pretty limited but you will perhaps find an issue in it.
- Build the plugin from sources.
- Reproduce the issue.
- Go to Edit > Format Code > View Log
from bbuncrustifyplugin-xcode.
Related Issues (20)
- Remove verbose log by default "BBUncrustifyPluginVersion loaded" HOT 1
- Crashes Xcode 7.1.1 on launch HOT 1
- indent comment after comma once and again HOT 1
- Config option to add or remove space around '=' in @property getter or setter override. HOT 2
- Is there any shared configs for Swift based projects? HOT 1
- Lacks option to explicitly select project language HOT 1
- Xcode 7.2 issue HOT 2
- Header containing CPP code is forcefuly formatted as ObjC HOT 4
- Plugin not loading in Xcode 7.3 HOT 2
- every time use Command + S to format the code , the bold style disappear , becomes normal ... HOT 1
- Space before/around exclamation operator HOT 3
- impossible to add a newline between #import & @interface HOT 1
- Not enable to set shortcuts for it HOT 1
- Use system uncrustify or clang format HOT 2
- Xcode 8 extension support HOT 1
- matting C have problems
- Xcode 8 won't load plug-ins HOT 1
- Crash in Xcode 8.1 (unsigned) HOT 3
- This plugin doesn't work completely since Xcode 9 HOT 3
- Code=3587 HOT 1
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 bbuncrustifyplugin-xcode.