coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Cao Qinxiang <caoqinxiang AT gmail.com>
- To: coq-club AT inria.fr
- Subject: Re: [Coq-Club] Issues with paths in CoqIDE 8.6.1
- Date: Wed, 7 Feb 2018 13:12:27 -0500
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=caoqinxiang AT gmail.com; spf=Pass smtp.mailfrom=caoqinxiang AT gmail.com; spf=None smtp.helo=postmaster AT mail-lf0-f53.google.com
- Ironport-phdr: 9a23:m/hewBaeVPR9pAO0r1wOC07/LSx+4OfEezUN459isYplN5qZoMiybnLW6fgltlLVR4KTs6sC17KP9fi4EUU7or+5+EgYd5JNUxJXwe43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6arXK99yMdFQviPgRpOOv1BpTSj8Oq3Oyu5pHfeQpFiCagbb9oMBm6sRjau9ULj4dlNqs/0AbCrGFSe+RRy2NoJFaTkAj568yt4pNt8Dletuw4+cJYXqr0Y6o3TbpDDDQ7KG81/9HktQPCTQSU+HQRVHgdnwdSDAjE6BH6WYrxsjf/u+Fg1iSWIdH6QLYpUjmk8qxlSgLniD0fOjE7/mHZisJ+gqFGrhy/uxNy2JTbbJ2POfdkYq/RYdEXSGxcVchRTSxBBYa8YpMRAuUbOuZTspLzp1oIrRqxBAmjHuXvyjBVjXLxwaI1yeMhERjH3AwmENMOsW7brNP6NKoJXuC1ybPHzTTHb/9MxTj9743IfwknrPqRU7xwds/RxlMuFwPDlliQspDlMCmJ2eQOtGib8fRvVfihi24jrAFwrCKjydsrionMgI8e11PK9T1hzYorOdG1TFR3bN2kHZdKqS2WKot7TtkiTmxmvisx16cItoShfCcQzZQq3x7fZOKDc4iP+h/jUfyeITZ8hH58fLK/iQq+/VGuyuD8WMS4yllKri1CktnDsnACyQbf5dSASvt45kuh2DCP2B7P6uxcP0w4ia7WJ4Qiz7MwjJYfr1nPEy/slEj2gqKabkAk9fKp6+TjbLXmvJicN4pshw7iKKsundW/AeU+MgkBXmiU4+K81LL48E32RbVFlPw2kq3DvJ/GIsQbo7a1AxVJ3YY79xa/EzCm3cwEknkANVJJYQ6Ij4z0O17VO/34Fve+g1G0kDhx3fzGP7vhAo/MLnfZirvhc6x9uAZgz184yska7JZJAJkAJujyUwn/ro/2FBg8Zie9xK7eCdNt14oYVirbCaaeKaLUoV6B4O0HLOyFZYtTszH4fat2r8XyhGM0zAdONZKi2oEaPSjhT6ZWZn6BaH+pue8vVGIDvw4wVuvv0QTQXjtaZnL0VKU5tGhiVNCWSLzbT4Xou4SvmT+hF8QPNG9DA1GIV3zvctfcAqpeWGepOsZk1wc8e/2hRosmj0z8sQb7z/9jILKR9HBD853k09dx6qvYkhRgrTE=
Hi Michael,
Here is what I did in a small seminar last year (in that seminar, I use an even more complicated Coq library than software foundation)
1. For windows users, give them all .vo file directly (which were compiled on my windows laptop using Cygwin command line. The audience do not need to install Cygwin.). The reason that it works is that since those audience install the same Coq binary, then both my laptop and their laptop are based on the same set of STD library .vo files. So, loading my .vo file on their laptop will not cause any .vo inconsistency.
2. For Mac and Linux users, teach them how to configure the CONFIGURE file so that they can set up COQBIN in Makefile. Mac and Linux have command line. Let those audience compile .vo files using "make" command.
Hope that helps!
Qinxiang
On Wed, Feb 7, 2018 at 1:00 PM, Michael Greenberg <michael.greenberg AT pomona.edu> wrote:
Hi all,
I'm teaching an abbreviated form of Software Foundations' first volume as part of a discrete math course.
Many students are having significant issues with compilation; in particular, it's quite complicated to configure the loadpath in CoqIDE 8.6.1. Students trying to "Compile > Compile buffer" succeed for the initial file, Basics.v, but later dependencies don't show up. Mysteriously, running the code in CoqIDE works fine---that is, the interactive coqtop session can find imports perfectly, but the call to coqc can't. It's critical that students be able to compile their code to ensure that it will run with our autograder.
I found <https://stackoverflow.com/questions/16202666/coqide-cant-load-modules-from-same-folder> as a potential solution, but having students put Add LoadPath directives in submitted code is a non-starter. I haven't found an incantation for _CoqProject that will make it work.
I've shown some students how to access coqc directly themselves, but this is an unsatisfactory solution---for many students, this is their second course in computer science!
The best solution I've found so far has been to set the external for coqc to have a -I flag to the appropriate directory. It's nice because it doesn't change the .v files, but some students don't yet know their way around a filesystem. If there were a way to offer *visual* navigation to the directory, we'd be in better shape. Is there a reason CoqIDE doesn't have a GUI-configurable loadpath option?
Am I missing some other obvious solution that is even better, i.e., requires the students to know even less about their filesystem?
Cheers,
Michael
- [Coq-Club] Issues with paths in CoqIDE 8.6.1, Michael Greenberg, 02/07/2018
- Re: [Coq-Club] Issues with paths in CoqIDE 8.6.1, Cao Qinxiang, 02/07/2018
- Re: [Coq-Club] Issues with paths in CoqIDE 8.6.1, Michael Greenberg, 02/07/2018
- Re: [Coq-Club] Issues with paths in CoqIDE 8.6.1, Pierre Courtieu, 02/07/2018
- Re: [Coq-Club] Issues with paths in CoqIDE 8.6.1, Michael Greenberg, 02/07/2018
- Re: [Coq-Club] Issues with paths in CoqIDE 8.6.1, Cao Qinxiang, 02/07/2018
Archive powered by MHonArc 2.6.18.