Giter Club home page Giter Club logo

Comments (7)

benoitsan avatar benoitsan commented on July 16, 2024

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.

oliver-dungey avatar oliver-dungey commented on July 16, 2024

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.

jsievenpiper avatar jsievenpiper commented on July 16, 2024

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.

 avatar commented on July 16, 2024

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.

niebloomj avatar niebloomj commented on July 16, 2024

how were you able to find out what the offending lines were?

from bbuncrustifyplugin-xcode.

srosmd avatar srosmd commented on July 16, 2024

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.

benoitsan avatar benoitsan commented on July 16, 2024

I have added a log viewer. At this time, the log is pretty limited but you will perhaps find an issue in it.

  1. Build the plugin from sources.
  2. Reproduce the issue.
  3. Go to Edit > Format Code > View Log

screen shot 2015-04-15 at 23 38 55

from bbuncrustifyplugin-xcode.

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.