atom-ide-ui icon indicating copy to clipboard operation
atom-ide-ui copied to clipboard

Failed to format code: No code formatting providers found!

Open molvqingtai opened this issue 7 years ago • 8 comments

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 avatar Jul 18 '18 11:07 molvqingtai

@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?

brianchenlee avatar Jul 20 '18 19:07 brianchenlee

I am using JavaScript, atom-ide-ui how to format it What else do I need to install?

molvqingtai avatar Jul 26 '18 14:07 molvqingtai

@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.

kcaze avatar Jul 26 '18 23:07 kcaze

ok, same problem and have installed ide-typescript image

edarblanco avatar Aug 03 '18 22:08 edarblanco

@kcaze I have installed ide-typescript, the code still can't be format, and there is no error message.

molvqingtai avatar Sep 02 '18 15:09 molvqingtai

@molvqingtai if you install eslint-format it should work with atom-ide-ui

UziTech avatar Sep 25 '18 19:09 UziTech

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?

trusktr avatar Oct 09 '18 17:10 trusktr

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

UziTech avatar Oct 09 '18 19:10 UziTech