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.

Prettier causes Atom to freeze/hang

See original GitHub issue

Within the past week, Prettier has caused Atom to hang while saving some of my Javascript (React) files AND while using the shortcut (CTRL-ALT-F). I’ll eventually get a dialog box with an option to keep waiting or force-close. I’ve verified that if I disabled Prettier, I have no such freezes. Also, this does not happen with all my files, just a handful. I’m not sure what’s different in those JS files that would cause the hang.

Software:

  • macOS High Sierra 10.13.3
  • atom@1.24.0
  • prettier-atom@0.51.0

Debug output:

Atom version: 1.24.0
prettier-atom version: 0.51.0
prettier version: 1.10.2
prettier-eslint version: 8.8.1
prettier-atom configuration: {
  "formatOnSaveOptions": {
    "enabled": true,
    "respectEslintignore": true,
    "showInStatusBar": false,
    "javascriptScopes": [
      "source.js",
      "source.jsx",
      "source.js.jsx",
      "source.babel",
      "source.js-semantic",
      "text.html.basic",
      "text.html.vue"
    ],
    "typescriptScopes": [
      "source.ts",
      "source.tsx",
      "source.ts.tsx"
    ],
    "cssScopes": [
      "source.css",
      "source.less",
      "source.css.less",
      "source.scss",
      "source.css.scss",
      "source.css.postcss"
    ],
    "jsonScopes": [
      "source.json"
    ],
    "graphQlScopes": [
      "source.graphql"
    ],
    "markdownScopes": [
      "source.md",
      "source.gfm",
      "text.md"
    ],
    "vueScopes": [
      "text.html.vue"
    ],
    "excludedGlobs": [],
    "whitelistedGlobs": [],
    "isDisabledIfNotInPackageJson": false,
    "isDisabledIfNoConfigFile": false
  },
  "prettierOptions": {
    "singleQuote": true,
    "bracketSpacing": true,
    "semi": true,
    "useTabs": false,
    "jsxBracketSameLine": false,
    "printWidth": 80,
    "tabWidth": "auto",
    "trailingComma": "none",
    "parser": "babylon",
    "arrowParens": "avoid"
  },
  "useEslint": false,
  "useStylelint": false,
  "useEditorConfig": true,
  "prettierEslintOptions": {
    "prettierLast": false
  }
}

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
olsonpmcommented, Feb 23, 2018

no worries. Thanks for the prompt feedback. It’s nice getting things over with sooner than later 😃

1reaction
olsonpmcommented, Feb 23, 2018

it will be easiest to just see if i can reproduce your problem and work from there. Anything else would be a shot in the dark and I try to save those approaches for windows related issues haha

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix on save causing atom to crash randomly #481 - GitHub
With format on save enabled, the editor hangs indefinitely and prompts me to close it. When turned off, all works as expected.
Read more >
The pseudoscience of creating beautiful (or ugly) water
The molecule of water is V-shaped with the oxygen atom at the ... Consequently, open bodies of water freeze from the top down...
Read more >
Modern IDEs are magic. Why are so many coders still using ...
Atom is a free, open-source text editor that bills itself as being “hackable to the core,” allowing for multiple customizations. It has cross- ......
Read more >
3 Minerals – An Introduction to Geology - OpenGeology
2 Crystallization from Magma. A lava flow Lava, magma at the earth's surface Heat is energy that causes atoms in substances to vibrate....
Read more >
FAQ: Water expansion on freezing - IAPWS
The liquid contracts as it is cooled; because the molecules are moving slower they are less able to overcome the attractive intermolecular forces...
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