zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
47.25k stars 2.73k forks source link

Eslint formatter inserting invalid syntax #13001

Closed yHSJ closed 3 months ago

yHSJ commented 3 months ago

Check for existing issues

Describe the bug / provide steps to reproduce it

When using formatting, Eslint is replacing any with a long string of unknown and never.

gif

settings.json

{
  "base_keymap": "VSCode",
  "theme": "Ayu Mirage",
  "ui_font_size": 14,
  "buffer_font_size": 14,
  "languages": {
    "TypeScript": {
      "code_actions_on_format": {
        "source.organizeImports": true,
        "source.fixAll.eslint": true
      }
    }
  }
}

Environment

Zed: v0.139.3 (Zed) OS: macOS 13.2.1 Memory: 16 GiB Architecture: aarch64

If applicable, add mockups / screenshots to help explain present your vision of the feature

No response

If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.

No response

notpeter commented 3 months ago

@yHSJ Eek! That looks bad! Can you provide a snippet that triggers this behavior?

yHSJ commented 3 months ago

@notpeter, Interestingly, I can't seem to reproduce this behavior now. I reproduced the environment to the best of my ability, but have not seen the same behavior.

I suppose we can close the issue as I can't reproduce.