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.

Validation error after 0.31.1 update

See original GitHub issue

Unable to run prettier from key board shortcut after updating my plugin today.

Error showing up on screen:

 Validation Error:
  Option "tabWidth" must be of type:
    number
  but instead received:
    string
  Example:
  {
    "tabWidth": 2
  }

Debug:

Atom version: 1.17.0
prettier-atom version: 0.31.1
prettier version: 1.3.1
prettier-eslint version: 6.2.2
prettier-atom configuration: {
  "prettierOptions": {
    "jsxBracketSameLine": true,
    "printWidth": 110,
    "singleQuote": true,
    "tabWidth": "4",
    "bracketSpacing": true,
    "semi": true,
    "useTabs": false,
    "trailingComma": "none",
    "parser": "babylon"
  },
  "silenceErrors": false,
  "useEslint": false,
  "useEditorConfig": true,
  "formatOnSaveOptions": {
    "enabled": false,
    "respectEslintignore": true,
    "showInStatusBar": false,
    "scopes": [
      "source.js",
      "source.jsx",
      "source.js.jsx",
      "source.babel",
      "source.js-semantic",
      "text.html.basic",
      "text.html.vue"
    ],
    "excludedGlobs": [],
    "whitelistedGlobs": []
  },
  "prettierEslintOptions": {
    "prettierLast": false
  }
}

Here are my settings: image

I have tried to unset and reset the tab width setting but it still saves as a string. Seems like there is a cast missing

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:9

github_iconTop GitHub Comments

1reaction
darahakcommented, Jun 1, 2017

If someone gets this error again, could you try this and retry?

Open Atom with this CLI option: --clear-window-storage. See Clearing Saved State from Atom’s documentation.

1reaction
marcusmotillcommented, May 17, 2017

I went into my config.cson file and change the value from a string to an integer manually and it worked. Clearing cache and restarting did not work

Read more comments on GitHub >

github_iconTop Results From Across the Web

Validation Error after Studio Update - UiPath Community Forum
Error ERROR Validation Error Internal constraint exception while running constraint with name 'Constraint' against activity of type System.
Read more >
VM update on Prism Central fails with "Validation error ...
Summary: VM Update operation on Prism central can fail with error message as "Validation error. Cannot change NIC model during update."
Read more >
Validation errors explained - Filing candidate reports - FEC
A failing message means that the error or problem identified by the validator will prevent the filing from being successfully processed.
Read more >
Upgrade validation check fails to execute on shelves and ...
Issue. The following error message occurs during validation of an ONTAP upgrade: ::> cluster image show-update-progress. Estimated Elapsed
Read more >
You see validation errors for users in the Office 365 portal or in ...
After you correct it, the value will be updated in your Microsoft Online Services directory during the next Active Directory synchronization. SOLUTION. The ......
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