Closed toh995 closed 2 years ago
I was unable to reproduce using this config: https://github.com/NullVoxPopuli/coc-ember/blob/master/docs/minimal-config.vim I also added to the README additional reproduction steps: https://github.com/NullVoxPopuli/coc-ember#to-use-local-coc-ember-in-your-nvim
lemme know if that behaves any different
@NullVoxPopuli Thanks for the response!
I followed the instructions and used the minimal config, but now my :CocList extensions
doesn't list coc-ember
. So it doesn't work at all.
Could it be different operating systems? I'm using Mac OS X.
oh potentially -- I'm using Linux. I'm not sure where nvim and coc stores its configs -- is it the same place?
:CocList extensions doesn't list coc-ember
:thinking: This is suspicious. when using the minimal config, where does it say your extensions live?
Hi @NullVoxPopuli sorry for the late response. How can I see where the extensions live? I've been trying to figure it out for the past few hours but having trouble doing so.
Were you able to reproduce using my minimal vim config that I shared?
How can I see where the extensions live?
:CocList extensions
Were you able to reproduce using my minimal vim config that I shared?
I was not -- with your minimal config, I get proper ember language server integration
Okay, thanks for the response. :CocList extensions
doesn't show coc-ember
at all when using your minimal config... It only seems to show up on the :CocList extensions
if I include coc-ember
within g:coc_global_extensions
Did you run CocUpdate
? or :CocInstall
?
Yeah, neither of those work for me on your minimal config.
Going back to my minimal config, :CocList extensions
shows me that coc-ember
is located in ~/.config/coc/extensions/node_modules/coc-ember
is your neovim up to date?
I think so, my neovim is on 0.6.1
:thinking: I have 0.7.0-dev -- can you try that one?
I have a solution now, thanks to @NullVoxPopuli and @andrewheartsxd!
See this comment: https://github.com/NullVoxPopuli/coc-ember/issues/401#issuecomment-1107943114
My solution is to override the filetype
set here in vim-ember-hbs
: https://github.com/joukevandermaas/vim-ember-hbs/blob/master/ftdetect/handlebars.vim
In my init.vim
, I put a line like:
au BufNewFile,BufRead *.handlebars,*.hbs set filetype=handlebars
Now it works for me!
Is this happening for anyone else?
I can't use
coc-ember
with neovim.Using neovim, when I open a random
.hbs
file in my ember project,ember-language-server
seems to just be stuck on[init]
. i.e. when I use:CocList services
within neovim, then I constantly see this:I followed the instructions for debugging this extension, and noticed I get
Using
console.info()
statements, I have determined that the async function seems to be hanging on theawait client.onReady()
, i.e. that promise is not resolving for some reason. https://github.com/NullVoxPopuli/coc-ember/blob/master/src/index.ts#L95When I comment out the
await client.onReady()
, I get a different debug output error:Note that I am using a very minimal
init.vim
file for testing purposes, see below:I have verified that both
coc.nvim
andcoc-ember
are up-to-date.