Prettier causes Atom to freeze/hang
See original GitHub issueWithin 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:
- Created 6 years ago
- Comments:10 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
no worries. Thanks for the prompt feedback. It’s nice getting things over with sooner than later 😃
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