question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Saving in sequence gives different output

See original GitHub issue

Im having issues using autosave for vue files. Im not quite sure if this is a bug or a feature.

So, given Im using prettier over a vue files, I get different output each time I hit the save key (without changes).

Here is a small video to demonstrate my issue:

grabaciondepantalla201810

On the video, Im saving three times till I get a “stable” output. When using prettier-eslint-cli I get a final nice output.

Im wondering if this a limit of one on the iterations over the code or an issue with vscode integration.

This is my settings.json on vscode:

{
  "editor.formatOnSave": false,
  "javascript.format.enable": false,
  "eslint.autoFixOnSave": true,
  "eslint.alwaysShowStatus": true,
  "eslint.options": {
    "extensions": [ ".html", ".js", ".vue", ".jsx" ]
  },
  "eslint.validate": [
    { "language": "html", "autoFix": true },
    { "language": "vue", "autoFix": true },
    { "language": "javascript", "autoFix": true },
    { "language": "javascriptreact", "autoFix": true }
  ],
  "prettier.eslintIntegration": true,
  "vetur.format.defaultFormatter.js": "prettier",
  "vetur.format.defaultFormatter.css": "prettier"
}

I have prettier vscode extension installed and enabled, along with eslint vscode extension.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
RobinMalfaitcommented, Oct 21, 2018

You have "eslint.autoFixOnSave": true, and "editor.formatOnSave": false, so prettier and eslint are fighting to be the first. Use one of them on the correct files, not both.

0reactions
github-actions[bot]commented, Apr 12, 2020

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to save in a sequence of files each output of a "for" loop
I am running a script that includes a "for" loop to manupulate these files and I want each time the output is saved...
Read more >
Storing values from multiple for loop sequence iterations in r
To store values from a loop, you first need to initialize your object, then you can add values one at a time by...
Read more >
Sequence Input/Output — test test documentation - Biopython
SeqIO.parse() function returns an iterator which gives SeqRecord objects. ... case to consider is when your sequence files have multiple records, ...
Read more >
Loading and Saving Your Data | Spark Tutorial - Intellipaat
Spark supports multiple input and output sources to save the file. ... Sequence Files, Object Files, and Hadoop Input and Output Formats.
Read more >
Sequence function in Power Apps - Microsoft Learn
The Sequence function generates a single column table of sequential ... ForAll can also be used to transform the value into other data...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found