Comments (16)
Ah, that might be it then. Vim's documentation (:h python-2-and-3
) says that can sometimes cause issues. I'll read more and see what we should do.
from coqtail.
I tried a couple different versions of vim and python and wasn't able to reproduce this error. What versions are you using and did this just start after a recent pull?
from coqtail.
Hm, I should have suspected it may be tricky to reproduce.
I have python 3.7.3, vim 8.1 (I'm on Arch) and the latest pull of Coqtail.
from coqtail.
And I've had this issue for a while actually.
I couldn't get any change by turning off various other plugins and options.
from coqtail.
Have you tried doing a clean reinstall of Coqtail? I moved the python files from autoload/
to python/
at some point and I wonder if some lingering .pyc
files might be confusing the import or something?
from coqtail.
Also, what is your pyxversion
option set to?
from coqtail.
I have pyxversion=3
and the issue is still there with a clean reinstall (though there were a couple of old files as you mention).
The issue existed for me for as long as the FindLib
function existed (since commit 4850e89).
from coqtail.
Stranged, based on the error message it looks like Coqtail
isn't imported, but if that was the case you shouldn't be able to do anything. If you copy the Py from coqtail import Coqtail
on line 36 to inside coqtail#FindLib
does that do anything? Or changing pyxeval
to py3eval
?
from coqtail.
No luck :( (nothing changes)
from coqtail.
Does the GotoDef
function raise the same error (e.g. :CoqGotoDef nat
)?
from coqtail.
It throws some error:
Error detected while processing function coqtail#GotoDef:
line 2:
Traceback (most recent call last):
File "<string>", line 1, in <module>
NameError: name 'Coqtail' is not defined
E858: Eval did not return a valid python object
line 3:
E691: Can only compare List with List
line 7:
E714: List required
line 11:
E121: Undefined variable: l:searches
Thanks for going through this, I wouldn't know how to troubleshoot this!
from coqtail.
In the output of vim --version
do you have +python3
and -python
or is there something like +python3/dyn
?
from coqtail.
+python/dyn +python3/dyn
from coqtail.
Ok, could you try pulling the python-fix branch and see if that did it?
from coqtail.
That works! I see autocompletion for the libraries, very cool!
from coqtail.
Great, then I'll merge it into master.
from coqtail.
Related Issues (20)
- Set Firstorder Solver idtac. HOT 1
- Feature Request: option to omit proofs when scripting (auto-admit) HOT 1
- Breaking with after/syntax directory HOT 5
- [Syntax] Is there a lack of support for math symbol shortcuts? HOT 2
- Detach panels from neovim instance HOT 3
- Unexpected error when debugging Unicoq HOT 2
- Coqtail doesn't recognize the option `-arg "-w all"`
- Coqtail does not officially support your version of Coq (8.19.0) HOT 7
- Feature: better support for dune HOT 4
- :Coq Set Printing Width not persistent HOT 1
- Comments inside of strings are not highlighted correctly
- Error on some large operations HOT 4
- Wrong syntax highlight for `Structure` HOT 2
- :CoqJumpToEnd hangs neovim if Coqtail hasn't been fired yet. HOT 2
- Running vim without filename: E492: Not an editor command: CoqStart HOT 4
- `:CoqGotoDef` Broken for Local Definitions with No `.vo`
- race between coqtail#start and CoqToLine HOT 2
- feature: automatic CoqJumpToEnd after stepping? HOT 1
- After 8aadf87 ("Better dune support"), vim falls into a weird state after querying an identifier that ends with single quote
- Feature Request: Conceal Common Coq Symbols HOT 1
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 coqtail.