atom-ide-ui
atom-ide-ui copied to clipboard
Failed to format code: No code formatting providers found!
When I format the code, I get an error Atom : 1.28.2 Electron: 2.0.5 Chrome : 61.0.3163.100 Node : 8.9.3
@molvqingtai Thanks for filing this issue! Can you provide us with some more details like what other packages you have installed and what language(s) you're using?
I am using JavaScript, atom-ide-ui how to format it What else do I need to install?
@molvqingtai, have you installed a language package for Javascript such as ide-typescript?
The atom-ide-ui package only provides the UI pieces and depending on the language you'll need to install an additional package for that language to provide the feature support.
ok, same problem and have installed ide-typescript

@kcaze I have installed ide-typescript, the code still can't be format, and there is no error message.
@molvqingtai if you install eslint-format it should work with atom-ide-ui
After installing eslint-format, I no longer get the Failed to format code: No code formatting providers found! error when I run the Code Format: Format Code command.
However, now it just doesn't do anything, it does not format any code, and I have the ide-typescript package installed (for example).
Also, should it be asking us to install eslint-format as a dependency?
ide-typescript and eslint-format are not related in any way. They are two separate packages. ide-typescript just hasn't implemented code formatting yet so I created a package that does.
I'm not sure why it doesn't do anything for you. That might be an issue with priority