MiguelCastillo / Brackets-InteractiveLinter

Interactive linting for Brackets
Other
119 stars 26 forks source link

Lost undo history after save #171

Open hyuan opened 8 years ago

hyuan commented 8 years ago

If I save the file I can't undo the last modifications.

How to reproduce:

If I disable this extension, then the problem is gone.

Brackets Version: Release 1.5 build 1.5.0-16538 (release cf9cf4698) Brackets-InteractiveLinter Version: 1.0.5 OS: Windows 10 Other installed extensions:

MiguelCastillo commented 8 years ago

Yuck- sorry about this! It's a rather odd behavior I don't know how it could happen just yet. What linter do you have configured? I am assuming you were working on a JS file. Is that correct?

hyuan commented 8 years ago

The problem happens to both JS and HTML files at least. Here is my configure file:

{
    "node": true,
    "esnext": true,
    "bitwise": true,
    "camelcase": true,
    "curly": true,
    "eqeqeq": true,
    "immed": true,
    "indent": 4,
    "latedef": true,
    "newcap": true,
    "noarg": true,
    "quotmark": "single",
    "regexp": true,
    "undef": true,
    "unused": true,
    "strict": true,
    "trailing": true,
    "smarttabs": true,
    "white": true,
    "predef": ["angular"]
}
hyuan commented 8 years ago

After I added the following lines in brackets.json, the issue is gone:

{
    ...
    "linting.prefer": [
      "JSHint",
      "JSCS"
    ],
    "linting.usePreferredOnly": true,
    ...
}

Could it be a conflict between the extension and the default of JSLint?

MiguelCastillo commented 8 years ago

Hmmmm, I disable the built-in JS linter to avoid wasting valuable cycles... But this at least gives me some ideas to go on. Really appreciate your research :)

blackmiaool commented 8 years ago

It happens after I updated brackets to 1.6 .