coq_nvim icon indicating copy to clipboard operation
coq_nvim copied to clipboard

Adding blocking version of COQdeps

Open Midren opened this issue 3 years ago • 6 comments

I'm using neovim instance inside docker image. However, it is not possible to install deps in cli mode like: nvim --headless +COQdeps +qall as command is not blocking and nvim instantly exits.

Maybe, if you could help to find some workaround which I don't know, I would be thankful 😁

Midren avatar Oct 04 '21 10:10 Midren

Maybe you can cd to install directory of COQ and run python3 -m coq deps.

zeertzjq avatar Oct 04 '21 11:10 zeertzjq

@zeertzjq Thanks, that helped! Maybe worth adding 'do': python3 -m coq deps for vim-plug to Install section in README

Midren avatar Oct 05 '21 16:10 Midren

yeah what @zeertzjq said.

idk if I want to add a do, since that does not work for XDG, in which case the xdg dirs values are actually pulled from nvim instead of elsewhere.

i would then have to write like a section explaining it just for xdg dir users how to set the correct dir manually and I think it would be confusing, so I didn't just do it

ms-jpq avatar Oct 21 '21 23:10 ms-jpq

So doing python3 -m coq deps doesn't work for me. Which is weird because COQdeps works for the same config on 2 other computers.

For the computer that has this issue, these are the innards of .vars after running python3 -m coq deps -

.
└── runtime
   ├── bin
   │  ├── python -> python3
   │  ├── python3 -> /usr/bin/python3
   │  └── python3.9 -> python3
   ├── include
   ├── lib
   │  └── python3.9
   │     └── site-packages
   ├── lib64 -> lib
   └── pyvenv.cfg

I have removed .vars and trying again, I've tried removing coq and reinstalling through packer entirely; but this is what I end up with always.

DhruvDh avatar Nov 13 '21 04:11 DhruvDh

Ok so I think I found the problem, at least I fixed it for myself.

First thing I did is commented out this line, so that stdout comes inte the terminal https://github.com/ms-jpq/coq_nvim/blob/coq/coq/main.py#L78 So I started geting this message

➜  coq_nvim git:(coq) ✗ python3 -m coq deps
...
The virtual environment was not created successfully because ensurepip is not
available.  On Debian/Ubuntu systems, you need to install the python3-venv
package using the following command.

    apt-get install python3-venv

You may need to use sudo with that command.  After installing the python3-venv
package, recreate your virtual environment.

Failing command: ['/home/user/.config/nvim/plugged/coq_nvim/.vars/runtime/bin/python3', '-Im', 'ensurepip', '--upgrade', '--default-pip']

So I installed python3-venv, deleted .vars and ran the command again and it all worked

Eugene-msc avatar Nov 16 '21 20:11 Eugene-msc

Ah, thanks. I’ll try that later.

EDIT: That works.

DhruvDh avatar Nov 16 '21 20:11 DhruvDh