Skip to content

Looping on Save #20

Closed
Closed

Description

After installing JS-CSS-HTML-formatter, when I try to save any JSON file on a mac, it keeps looping and blocks IDE from responding.

Here is the Video Link for the issue: http://www.screencast.com/t/MH4yLw7p

Activity

  1. agkphysics commented on Aug 28, 2016

    @agkphysics

    I am having a similar problem on Linux. It occurs with both HTML and JSON and seems to have something to do with the last line of the file being a single newline.

    Setting the config option "end_with_newline": true for JS, CSS and HTML seems to solve the problem for me, or you can set "onSave": false in order to only manually format each file.

  2. dreed47 commented on Sep 18, 2016

    @dreed47

    same problem for me...on a Mac

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions