Giter VIP home page Giter VIP logo

Comments (6)

treyhunner avatar treyhunner commented on July 28, 2024

Are you proposing this information be provided in the error string raised or as properties in the actual exceptions?

I agree that the strings raised could be more verbose. I don't think it's necessary to maintain these error properties in any way besides in a human-readable string though.

from editorconfig.

xuhdev avatar xuhdev commented on July 28, 2024

I think the syntax error file and error line is necessary. It could help users find where they got wrong. But we could put it aside if this causes too much trouble.

from editorconfig.

xuhdev avatar xuhdev commented on July 28, 2024

I mean properties, not in the string.

from editorconfig.

xuhdev avatar xuhdev commented on July 28, 2024

As a textmate plugin post has been made on gun.io, Do you think we should fix this? TextMate plugin may probably use the Python core according to #50.

BTW, should the Plugin How-To page be linked on the gun.io post?

from editorconfig.

treyhunner avatar treyhunner commented on July 28, 2024

If the plugin uses a library I believe it would need to use the C core because I don't think Python code can modify TextMate behavior. If no library is used then the Python core would work, but the exceptions wouldn't be used at that point. I may be misinterpreting the documentation I read about TextMate plugins though.

That being said, I still need to figure out how I want to handle passing this information. I want to find some examples of other well-written Python libraries that pass information via exceptions before making a concrete decision about this behavior.

No I don't think we should post the link there. It would probably be appropriate to post it on the TextMate issue or email thread. People looking to show support for a TextMate plugin will probably search for those threads/issues first.

from editorconfig.

xuhdev avatar xuhdev commented on July 28, 2024

You're right. TextMate should be written in Object-C: http://manual.macromates.com/en/appendix#plug-in_api
Thus C library should be used.

I believe it's easier to wrap C to ObjC instead of Python.

from editorconfig.

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.