Comments (5)
Hi @MSoegtropIMC , I'm sorry it took you 4 months to get sertop running, I was not aware you were having problems, I guess most of the time is due to path length issues? Is there any other issue that I'm not aware of?
I think the difference in this case is that the Linux snap is likely setting COQLIB
whereas in OSX you are using a different relocation method?
sertop
determines the path for coqlib in an almost standard way:
- command line parameter
--coqlib
- search for COQLIB env var
- if not use the path passed to configure
So I'd suggest you set COQLIB for the smoke test for now, IMHO that's an acceptable workaround for users too if the auto-detection is not working properly.
As I've mentioned some other times, I'd be great to refactor sertop and Coq's init code so they share all this logic. As of today this is not the case as sertop added its own init code back in the day when Coq's API didn't allow to be used.
Later, Coq API was refactored to support different methods, but it was done without coordination with the other toplevels. So as of today some coding needs to happen to unify this, but I'm afraid I don't have the resources to take care of that myself :(
from coq-serapi.
Yes, most of the issues were path length issues on Windows, and this time it really required quite a bit of restructuring of the Coq Platform path structure to make it work (with 1 character margin left). If the paths get any longer - without fixing in either OCaml or dune - I need to disable it on Windows.
I am quite sure that COQLIB is not set in the Windows and Mac case, but indeed I can't exclude that it is set in the snap case via the alias mechanism - it is quite possible. So this explains the difference between MacOS and Linux snap, but it doesn't explain why it works on Windows. Is it possible that you have special handling on Windows?
from coq-serapi.
We don't have anything specific for Windows, but maybe you update Coq configure in a different way?
That would explain the difference.
from coq-serapi.
I am using opam to install coq and serapi, so nothing special I am aware of.
Also on all platforms we are talking about relocated installations, where the final path does not match the configure path.
For coqc on Windows this works by an environment file which is written by the installer, but serapi does not use this (afaik). Also there is a mechanism in ocamlfind to find libraries after relocation (as discussed), but this does not influence finding .vo files.
from coq-serapi.
Next SerAPI release will be the last, so IMHO not worth fixing this.
SerAPI has been now replaced by all purposes by coq-lsp, which should integrate with the platform better.
from coq-serapi.
Related Issues (20)
- installation HOT 4
- what version of coq serapi works with coq 8.10.2? HOT 9
- what is the best version of coq-serapi that works with coq 8.12? HOT 5
- Please pick the version you prefer for Coq 8.17 in Coq Platform 2023.03 HOT 12
- Segfault on (Query () Goals) with sertop 8.15.0+0.15.3 HOT 4
- What is the purpose of coq-serapi's existance and why can't everything be done in coqtop? HOT 5
- Expose Section Variable Determining API in SerAPI HOT 6
- Incorrect goals when providing -topfile in sertop 8.10.0+0.7.2 HOT 2
- Please pick the version you prefer for Coq 8.18 in Coq Platform 2023.10 HOT 1
- Missing conversion functions for types for the extraction plugin? HOT 3
- Can't run `make test` due to an error related to `eqType` HOT 4
- Windows PATH length (again) HOT 21
- Run tests with MC 2 HOT 3
- Please pick the version you prefer for Coq 8.19 in Coq Platform 2024.01 HOT 5
- Segmentation fault in coq/getDocument call HOT 4
- New versioning scheme. HOT 1
- License issue HOT 1
- CoqSerapi Usage Question HOT 6
- [PATCH] Compilation with yojson >= 2.2 HOT 3
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-serapi.