Coder Social home page Coder Social logo

Comments (3)

Alhadis avatar Alhadis commented on June 15, 2024 1

Atom's whitespace package behaves differently to editorconfig: it doesn't respect (or even acknowledge the existence of) .editorconfig files, so when the two packages disagree about what settings to enforce for a particular editor, well… you can see how that would present a problem.

For example, given the following…

[*.foo]
insert_final_newline = false
trim_trailing_whitespace = false
# ~/.atom/config.cson
"*":
	whitespace:
		removeTrailingWhitespace: true
		ensureSingleTrailingNewline: true

… how should trailing whitespace be handled when saving a .foo file? Bear in mind Atom doesn't support EditorConfig, and has a different approach to syntax-specific editor-settings.

The problem here is that there is a warning displayed against a core built-in package - hence, no, disabling a core package is not a solution for me and I don't think that a plugin should be conflicting with core functionalities resulting in displaying a warning/error messages during startup.

It's also worth noting that Atom's core packages aren't infallible, and more often than not, community forks or alternatives exist to replace them. Ergo, the fact that whitespace is a "core" package only means it's shipped with the editor and will work when booting Atom in safe mode.

from atom-editorconfig.

Alhadis avatar Alhadis commented on June 15, 2024

What exactly is the issue, here? The explanation (and solution) was already included in the text you quoted (emphasis mine):

It is possible that the whitespace-package prevents the following properties from working reliably: insert_final_newline, trim_trailing_whitespace. You may try reconfiguring or disabling the whitespace‑package to solve regarding issues.

Moreover, you haven't told us anything about the affected files, or even how they're being affected…

from atom-editorconfig.

rantoniuk avatar rantoniuk commented on June 15, 2024

Sorry for not stating it clearly enough, I thought that the title was descriptive enough.
The problem here is that there is a warning displayed against a core built-in package - hence, no, disabling a core package is not a solution for me and I don't think that a plugin should be conflicting with core functionalities resulting in displaying a warning/error messages during startup.
If you think otherwise, feel free to close as a non-bug, possibly advising how this warning can be avoided.

from atom-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.