mblode / vscode-twig-language

VS Code extension with snippets, syntax highlighting, hover, and formatting for Twig.
https://marketplace.visualstudio.com/items?itemName=mblode.twig-language
MIT License
42 stars 7 forks source link

Sorry, but there is no formatter for 'twig'-files installed? #11

Closed keithmancuso closed 6 years ago

keithmancuso commented 6 years ago

I think i have everything setup right but its not formatting on save or when I manually call "Format Document"? It just says "Sorry, but there is no formatter for 'twig'-files installed."

Im sure im missing something dumb

richjava commented 6 years ago

I'm getting the same thing.

mblode commented 6 years ago

Are you still having this issue? If so, can you explain your setup so I can recreate the bug? Thank you 😄

davorpeic commented 6 years ago

Yeah, I think the issue is related with installing your "Twig language", which does give error message others reported. I fixed the problem by installing "Twig language 2" which you made I suppose to correct this issue https://marketplace.visualstudio.com/items?itemName=mblode.twig-language-2

Maybe you could add some disclaimer message at the beginning of first version? dp

kuworking commented 4 years ago

Definitively it is not clear what should be installed, whether the two plugins or only one of them

In my case this has worked after restarting vscode and disabling the "other" twig extension (from whatwedo) (one of these two things solved the problem)

That said, wonderful and very needed extension, big thanks (!!)

Ibrahima-prog commented 9 months ago

Definitively it is not clear what should be installed, whether the two plugins or only one of them

In my case this has worked after restarting vscode and disabling the "other" twig extension (from whatwedo) (one of these two things solved the problem)

That said, wonderful and very needed extension, big thanks (!!)

I reloaded the window and it worked!! otherwise, VS Code was telling me that no twig formatter was installed.

Maybe the author should mention that in the documentation.

P.S: I am working on docker containers.