standard / vscode-standard

VS Code extension for JavaScript Standard Style (`standard`) with automatic fixing
https://marketplace.visualstudio.com/items?itemName=standard.vscode-standard
MIT License
123 stars 24 forks source link

Fix all auto-fixable problems not working #450

Open TechNomad615 opened 2 years ago

TechNomad615 commented 2 years ago

What version of this package are you using? v2.1.0

What operating system, Node.js, and npm version? I am getting the same errors on both Arch Linux and Windows Arch Linux NodeJS: 18.7.0 NPM: 8.17.0

Windows 10 NodeJS:17.17.3 NPM:8.12.2

What happened? Press CTRL + SHIFT + P, select JavaScript Standar Style: Fix all auto-fixable Problems and an error pops up. 'undefined is not validating any files yet Source StandardJS - JavaScript Standard Style (Extension)

What did you expect to happen? The extension to format the document

Are you willing to submit a pull request to fix this bug? Never done that before, but I am willing to learn

I also reverted back to the vscode-standardjs (old version) by Sam Chen using ext install chenxsan.vscode-standardjs. This package works as intended on both systems (Linux and Windows). This only started happening after I migrated to the new supported version

TechNomad615 commented 2 years ago

since there has been no updates on this issue I have switched to eslint which works as expected. so I am closing this issue

Robsonsjre commented 1 year ago

Same issue..newer version of standardJS not working as intended

kolyasya commented 11 months ago

I can't get the VSCode extension as well, same issue

maxwellsmart84 commented 6 months ago

// "editor.codeActionsOnSave": { // "source.fixAll": "explicit", // },

"standard.autoFixOnSave": true,

This fixed autosaving for me with standard - you have to disable vsCode's config

itaiperi commented 4 months ago

Hey @maxwellsmart84, maybe you can help me, because I'm getting the same error as the author. This is my settings.json file:

{
  "liveshare.presence": true,
  "explorer.confirmDelete": false,
  "editor.accessibilitySupport": "off",
  "go.autocompleteUnimportedPackages": true,
  "terminal.integrated.fontSize": 16,
  "security.workspace.trust.untrustedFiles": "open",
  "go.useLanguageServer": true,
  "editor.rulers": [
    80
  ],
  "editor.fontFamily": "'Jetbrains Mono', 'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'",
  "terminal.integrated.env.osx": {
    "FIG_NEW_SESSION": "1",
    "CW_NEW_SESSION": "1",
    "Q_NEW_SESSION": "1"
  },
  "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
  "editor.fontSize": 16,
  "[yaml]": {
    "editor.tabSize": 2,
    "gitlens.codeLens.scopes": [
      "document"
    ],
    "editor.autoIndent": "advanced",
    "editor.insertSpaces": true
  },
  "terminal.integrated.fontFamily": "MesloLGS NF",
  "markdown.extension.list.indentationSize": "inherit",
  "explorer.confirmDragAndDrop": false,
  "workbench.iconTheme": "eq-material-theme-icons",
  "python.analysis.typeCheckingMode": "basic",
  "python.jediEnabled": false,
  "workbench.editorAssociations": {
    "*.ipynb": "jupyter.notebook.ipynb"
  },
  "editor.fontLigatures": true,
  "git.confirmSync": false,
  "debug.javascript.autoAttachFilter": "smart",
  "editor.suggestSelection": "first",
  "files.autoSave": "onFocusChange",
  "python.languageServer": "Pylance",
  "editor.inlineSuggest.enabled": true,
  "github.copilot.enable": {
    "*": true,
    "yaml": true,
    "plaintext": false,
    "markdown": false
  },
  "files.exclude": {
    "**/__pycache__": true,
    "venv": true
  },
  "terminal.integrated.enableMultiLinePasteWarning": false,
  "editor.formatOnPaste": true,
  "editor.formatOnSave": true,
  "githubPullRequests.createOnPublishBranch": "never",
  "githubPullRequests.queries": [
    {
      "label": "Waiting For My Review",
      "query": "is:open review-requested:${user}"
    },
    {
      "label": "Assigned To Me",
      "query": "is:open assignee:${user}"
    },
    {
      "label": "Assigned to me (with Closed)",
      "query": "author:${user}"
    },
    {
      "label": "Created By Me",
      "query": "is:open author:${user}"
    },
  ],
  "githubPullRequests.fileListLayout": "tree",
  "githubPullRequests.pushBranch": "always",
  "window.zoomLevel": 1,
  "opa.path": "/Users/itaiperi/opa",
  "githubPullRequests.pullBranch": "never",
  "files.insertFinalNewline": true,
  "files.trimFinalNewlines": true,
  "editor.find.autoFindInSelection": "multiline",
  "[python]": {
    "editor.formatOnType": true
  },
  "python.pylanceLspNotebooksEnabled": false,
  "notebook.lineNumbers": "on",
  "typescript.format.insertSpaceAfterOpeningAndBeforeClosingEmptyBraces": false,
  "editor.tabSize": 2,
  // "editor.codeActionsOnSave": {
  //   "source.fixAll.eslint": "explicit"
  // },
  // "eslint.validate": [
  //   "javascript",
  //   "typescript"
  // ],
  "terminal.integrated.gpuAcceleration": "off",
  "typescript.updateImportsOnFileMove.enabled": "always",
  "diffEditor.experimental.showMoves": true,
  "javascript.updateImportsOnFileMove.enabled": "always",
  "jupyter.askForKernelRestart": false,
  "workbench.startupEditor": "none",
  "prisma.showPrismaDataPlatformNotification": false,
  "github.copilot.editor.enableAutoCompletions": true,
  "typescript.preferences.includePackageJsonAutoImports": "on",
  "standard.engine": "ts-standard",
  "standard.autoFixOnSave": true,
  "standard.validate": [
    "javascript",
    "javascriptreact",
    "typescript",
    "typescriptreact"
  ],
  "javascript.format.insertSpaceBeforeFunctionParenthesis": true
}

Any clue to why the auto fixing doesn't work?