Comments (10)
This seems to be a problem with symlinks. The sql script it is trying to call is a symbolic link, but it seems you have to explicitly specify core.symlinks
as true
to create the symlink when cloning, which vimplug does not do. For anyone using vimplug
my quick solution is just go into the nvim-data/plugged
folder, remove the coq_nvim
directory, open any terminal as administrator (e.g. CMD, Windows Powershell, Git Bash) and manually clone the repo with git -c core.symlinks=true clone https://github.com/ms-jpq/coq_nvim.git
.
from coq_nvim.
I'm having the exact same issue, our outputs look identical. We both happen to be on Windows as well. How did you acquire the sqlite3
dependency? If I'd have to guess, that's probably where the issue stems from. I personally just used choco
to install it, i.e. choco install sqlite
, and have version 3.42.0 installed.
sqlite3.exe --version
3.42.0 2023-05-16 12:36:15 831d0fb2836b71c9bc51067c49fee4b8f18047814f2ff22d817d25195cf350b0
What about you?
I also do not seem to have the headers & source included on my system for sqlite3, at least not as a result of installing it through choco
, which when acquiring pysqlite
via python -m pip install pysqlite3
, causes the build to fail:
pip-install-4rf6p7vt\pysqlite3_bc844391c2da47b8a4e8d89e8c947f04\src\blob.h(4): fatal error C1083: Cannot open include file: 'sqlite3.h': No such file or directory
This may have something to do with the problem. Do your results differ?
Related SO Question, Might Help
I'm going to do a bit more research in the meantime, and try to figure out what is causing:
conn.executescript(sql("create", "pragma"))
sqlite3.OperationalError: near ".": syntax error
and try reproducing it myself in a toybox environment.
I'm also going to try and see if I have any luck using older coq_nvim
commits (so far, I don't think I went back far enough. I did get a different error though, or rather, no output, and a permission error in the old error's place, which didn't make any sense. I don't have it on hand, as I switched back to head, but I will post an update containing the other error, alongside any relevant findings as I continue to debug this)
One more thing, do you also happen to be using Lazy as your plugin manager? I'm unsure where I saw it, but in one of the stack traces, I did see a mention of Packer failing to be imported/included (unsure if it was Lua or Python). I'll try reproducing that again, but given this other issue, perhaps Lazy might also be a contributing factor?
I wonder why this is such a recent issue; hasn't anyone attempted to install coq_nvim
on Windows before now? Something must have changed, no?
from coq_nvim.
I have the same problem. I use packer
as my plugin manager. I tried to use the older commits but I got some dependency errors.
I think there is some syntax problem in the query that it's passed to executescript
from coq_nvim.
remove the
coq_nvim
directory, open any terminal as administrator (e.g. CMD, Windows Powershell, Git Bash) and manually clone the repo withgit -c core.symlinks=true clone https://github.com/ms-jpq/coq_nvim.git
This worked! In my case I use lazy.nvim so the coq_nvim
directory was in nvim-data/lazy/
instead. Thanks @54m43lJ!
from coq_nvim.
This seems to be a problem with symlinks. The sql script it is trying to call is a symbolic link, but it seems you have to explicitly specify
core.symlinks
astrue
to create the symlink when cloning, which vimplug does not do. For anyone usingvimplug
my quick solution is just go into thenvim-data/plugged
folder, remove thecoq_nvim
directory, open any terminal as administrator (e.g. CMD, Windows Powershell, Git Bash) and manually clone the repo withgit -c core.symlinks=true clone https://github.com/ms-jpq/coq_nvim.git
.
This instantly solved the problem. Thank you so much!!
from coq_nvim.
Running into this as well after updating. I've been using coq_nvim for a year or so now before this issue so it seems like something recent.
Will try the above solution
from coq_nvim.
This seems to be a problem with symlinks. The sql script it is trying to call is a symbolic link, but it seems you have to explicitly specify
core.symlinks
astrue
to create the symlink when cloning, which vimplug does not do. For anyone usingvimplug
my quick solution is just go into thenvim-data/plugged
folder, remove thecoq_nvim
directory, open any terminal as administrator (e.g. CMD, Windows Powershell, Git Bash) and manually clone the repo withgit -c core.symlinks=true clone https://github.com/ms-jpq/coq_nvim.git
.
thank you so much, helped!!!
from coq_nvim.
The current solution seems to require admin rights (to create the symbolic links). Does anyone know if there's an alternative without them?
from coq_nvim.
This seems to be a problem with symlinks. The sql script it is trying to call is a symbolic link, but it seems you have to explicitly specify
core.symlinks
astrue
to create the symlink when cloning, which vimplug does not do. For anyone usingvimplug
my quick solution is just go into thenvim-data/plugged
folder, remove thecoq_nvim
directory, open any terminal as administrator (e.g. CMD, Windows Powershell, Git Bash) and manually clone the repo withgit -c core.symlinks=true clone https://github.com/ms-jpq/coq_nvim.git
.
Woohoo! thank you!
The current solution seems to require admin rights (to create the symbolic links). Does anyone know if there's an alternative without them?
The problem i guess is vim-plug? perhaps there is a better neovim native one that somebody can recommend known to work with symlinks on windows?
from coq_nvim.
Regarding the non-admin symlink work around for Windows users...
- Install the plugin as per normal then exit neovim.
- Find the 'coq_nvim' folder your nvim plugin managed created.
- You should see folders like 'artifacts', 'autoload', 'ci' etc etc
- make a bat file called 'symlink-workaround.bat' with the contents below and save in under the 'coq_nvim' directory (eg. 'coq_nvim\symlink-workaround.bat`)
:: symlink-workaround.bat
cd /d "%~dp0"
copy coq\clients\buffers\db\sql\create\pragma.sql coq\clients\cache\db\sql\create\pragma.sql
copy coq\clients\buffers\db\sql\create\pragma.sql coq\clients\registers\db\sql\create\pragma.sql
copy coq\clients\snippet\db\sql\create\pragma.sql coq\clients\tags\db\sql\create\pragma.sql
copy coq\clients\buffers\db\sql\create\pragma.sql coq\clients\tmux\db\sql\create\pragma.sql
copy coq\clients\buffers\db\sql\create\pragma.sql coq\clients\tree_sitter\db\sql\create\pragma.sql
copy coq\clients\buffers\db\sql\create\pragma.sql coq\databases\insertions\sql\create\pragma.sql
copy coq\server\completion.lua lua\coq\completion.lua
copy coq\lsp\requests\lsp.lua lua\coq\lsp-request.lua
copy coq\treesitter\request.lua lua\coq\ts-request.lua
- Then run the bat file by double clicking it / via command prompt etc.
Unfortunately this is a temp fix that will break when ever more symlinks are added / moved etc.
Also when ever some package managers 'sync' the copied files will be gone (Jetpack I'm looking at you), so You might want to add a 'do' action thing in your vim-plug config etc to call that bat file - but Ill leave that as an exercise for the reader.
from coq_nvim.
Related Issues (20)
- disable navigation within menu with arrow keys
- Can't start coq on Windows. Sqlite syntax error HOT 2
- Highlight LSP Kind
- :COQnow shows error HOT 2
- Autocompletion on numbers
- Slow When Loading Python File
- Autoimport doesn't work HOT 2
- Failed to start server: no such file or directory HOT 1
- COQnow fails in tmux after upgrading to Fedora 39 HOT 3
- pragma.sql `FileNotFoundError` raised by pathlib.py HOT 1
- Unable to be used on NixOs HOT 6
- COQ exited -1 on nvim launch
- Update completions after manually triggering them HOT 1
- Double insert when auto completing functions in rust
- How to install and configure coq using lazy plugin manager? HOT 7
- "UnicodeEncodeError: 'utf-8' codec can't encode character '\udcc8' in position 0: surrogates not allowed" when typing brackets
- TMUX crashes coq_nvim HOT 3
- Text I've already typed gets duplicated when I accept a completion HOT 3
- Selection gets cleared in menu without fast_close.
- UNIQUE constraint failed: lines.buffer_id, lines.line_num
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coq_nvim.