-
Notifications
You must be signed in to change notification settings - Fork 49
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
[2023.08] [coq-lsp 0.2.0] [v8.17] Draft Windows build #368
base: main
Are you sure you want to change the base?
Conversation
a77617b
to
cc1569d
Compare
@ejgallego : I saw that you created a different cygwin root. Is this cause of path length issues? |
Both to prevent path length issues and to be able to distribute this installer without conflicting with the official release. Things build OK,
|
cc1569d
to
1376912
Compare
Update: built from source on Windows, works very smoothly, other than the missing libgmp.
But other than that, which I shall solve soon, the coq-lsp platform installer should be ready soon. The missing libgmp is only a problem for builds from source, once the installer puts that lib in There are some problems with URIs and Windows paths too, these should be easy to solve, tho I am a bit confused on whether That could possibly be very wrong? |
5b9f6ce
to
013cede
Compare
The cygwin build path has noting to do with the install path - it exists only during build time. The installer is relocatable (which is the reason I am using a patched ocamlfind). You say you are having issues with libgmp: this is quite strange since it is used in many places and this usually works. Did you add opam packages which need libgmp but don't declare this?
|
Should I dig out a description of the findlib changes I did, or are you aware how this works? |
One more note: it is a recommended use case to reuse coq platform cygwin installations. If you build on the same machine a standard and modified coq platform, or say several Coq versions, you can reuse the cygwin installed once and use it as any other opam environment. You can run the coq platform script from inside the cygwin shell and it will create a new opam switch. |
The issue only happens in a build from source: binaries generated that way cannot be called from the explorer unless libgmp is placed somewhere windows can find it. IMHO not a big deal (tho for VSCode testing it gets in the way)
In this particular case the problem is that VSCode sends the
I think I'm good for now @MSoegtropIMC , thanks! I am totally lost on what the problem is, so let me try to make some more progress first. It seems like Coq things a plugin was loaded, but actually it was not; then Coq crashes as the |
Hi @MSoegtropIMC , I finally found the problem, it was indeed tricky, but somehow using an unpatched findlib + procmon I got to understand it. The problem is as follows, the Is that due to this line?
The missing |
@ejgallego : yes, the I hope my ocamlfind changes are not a problem. |
The first commit where this appears is this one 74ffe47 , doesn't seem to explain a lot, maybe it rings a bell to you?
I think the ocamlfind changes are not a problem, but given that plugin loading was failing I went to debug them. Indeed I think we could drop the ocamlfind patch in favor of making Coq relocatable. In a sense I already do that for the JS version of Coq, all that we would need is to consolidate the code in Coq's Happy to help with that if you folks are interested. |
76196c1
to
5682978
Compare
Indeed after removing I still have no idea why findlib didn't raise an exception or the exception handling code didn't print the warning, but that's a separate issue. I'm gonna consolidate upstream some changes needed for windows that I saw on my testing, and build a complete installer soon. |
77fe053
to
78787d1
Compare
f278bdc
to
e08d985
Compare
5a9f2f7
to
eb65d8f
Compare
1fe838e
to
cf8242f
Compare
Changes: - Simplify some paths and logic - Don't exclude `sexplib0` - Pin to latest Coq's v8.17+lsp branch - Pin to latest coq-lsp's branch for 8.17 - Slightly reduced package set - Added waterproof
cf8242f
to
eb905ec
Compare
Changes:
sexplib0