Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extension fails to load with "missing main file" #18

Open
rsimmonsjr opened this issue May 16, 2020 · 5 comments
Open

Extension fails to load with "missing main file" #18

rsimmonsjr opened this issue May 16, 2020 · 5 comments

Comments

@rsimmonsjr
Copy link

I am a new coc user and I tried to install the elixir plugin and got this error.

`[coc.nvim] extension "coc-elixir" doesn't contain main file /home/rsimmonsjr/.vim/plugged/coc-elixir/lib/index.js.1

@amiralies
Copy link
Collaborator

I think this happens when using vim plug installation method without post-install hook, try this:

Plug 'amiralies/coc-elixir', {'do': 'yarn install --frozen-lockfile && yarn run build'}

@rsimmonsjr
Copy link
Author

Not the problem. Here are the relevant lines:

Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'amiralies/coc-elixir', {'do': 'yarn install --frozen-lockfile && yarn run build'}

@amiralies
Copy link
Collaborator

Don't know if it's relevent to your problem or not (since you're facing missing main file error),
but I just realized installation instructions for vim plug is wrong (I'm going to update).
Anyway, can you cd to where coc-vim is cloned inside your ~/.vim and run yarn prepack and see if it works?

@kpruehss
Copy link

kpruehss commented May 18, 2020

I am running into a similar issue. I've installed the extension via CocInstall coc-elixir. Was working great until this morning when Coc updated the extension. Now its not loading (not seeing any error messages though)

EDIT: Completely removing the extension and reinstalling does seem to fix it thanks, @collegeimprovements

@collegeimprovements
Copy link

collegeimprovements commented May 19, 2020

Same thing happens for me. It doesn't format the code automatically on save now.
Edit: Uninstalling and reinstalling fixes the issue.

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

No branches or pull requests

4 participants