Giter VIP home page Giter VIP logo

Comments (9)

benny20832 avatar benny20832 commented on September 3, 2024

Unfortunately we just facing the same problem here.

from grunt-jsbeautifier.

vkadam avatar vkadam commented on September 3, 2024

I have pushed a fix in version 0.2.9, see #45 & #46 Let me know if this does fix for you.

from grunt-jsbeautifier.

Odi55555 avatar Odi55555 commented on September 3, 2024

Unfortunately this didn't fix it.
If you have an formatted js file with UNIX line endings (LF) and run the jsbeautifier task everything is fine. But if you change the line endings to Windows (CR LF) und run the task again, it will change the line endings back to LF.
This causes uncommited changes in GIT, but GIT will ignore the changes if you try to stage them. IntelliJ on Windows also has problems with that and shows all "beautified" files as changed.
Do you know what causes the line endings change?
Thx for your help.

from grunt-jsbeautifier.

chris-gunawardena avatar chris-gunawardena commented on September 3, 2024

Having the same issue on Windows, our git is setup to checkout with Windows line endings and commit back with Unix line endings. All the files come up as changed on git even when no changes are made. This is preventing us from using this as a part of our workflow, Maybe we should log this in https://github.com/beautify-web/js-beautify ?

from grunt-jsbeautifier.

vkadam avatar vkadam commented on September 3, 2024

There is a bug open in beautifier/js-beautify#260

I am also doing new line check in this plugin but its only for back compatibility. This check in plugin was added when new line support from js-beautify was limited.

from grunt-jsbeautifier.

sethflowers avatar sethflowers commented on September 3, 2024

+1 - facing the same issue with git... we can't use the plugin as is. It doesn't look like there is any traction on the referenced open js-beautify issue from almost a year and a half ago.

from grunt-jsbeautifier.

bitwiseman avatar bitwiseman commented on September 3, 2024

beautifier/js-beautify#260 ... Fixed.

from grunt-jsbeautifier.

vkadam avatar vkadam commented on September 3, 2024

@everyone,
First of all apologies for not following up on this. But looks like js-beautify bug is fixed. Will you please check and confirm if that fixed the issue for you as well. If it does then report here so I can close the ticket.

Thanks a lot in advance.

from grunt-jsbeautifier.

vkadam avatar vkadam commented on September 3, 2024

Not heard for long back, hope issue is fixed so closing ticket. If this issue still persist, please open new bug.

from grunt-jsbeautifier.

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.