Skip to content
This repository has been archived by the owner on Dec 13, 2018. It is now read-only.

Failed to format code: No code formatting providers found! #286

Open
molvqingtai opened this issue Jul 18, 2018 · 8 comments
Open

Failed to format code: No code formatting providers found! #286

molvqingtai opened this issue Jul 18, 2018 · 8 comments

Comments

@molvqingtai
Copy link

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

@brianchenlee
Copy link

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

@molvqingtai
Copy link
Author

molvqingtai commented Jul 26, 2018

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

@kcaze
Copy link

kcaze commented Jul 26, 2018

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

@edarblanco
Copy link

ok, same problem and have installed ide-typescript
image

@molvqingtai
Copy link
Author

molvqingtai commented Sep 2, 2018

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

@UziTech
Copy link
Contributor

UziTech commented Sep 25, 2018

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

@trusktr
Copy link

trusktr commented Oct 9, 2018

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?

@UziTech
Copy link
Contributor

UziTech commented Oct 9, 2018

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants