coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Pierre Courtieu <pierre.courtieu AT gmail.com>
- To: coq-club AT inria.fr
- Cc: Cao Qinxiang <caoqinxiang AT gmail.com>
- Subject: Re: [Coq-Club] Issues with paths in CoqIDE 8.6.1
- Date: Wed, 07 Feb 2018 20:08:38 +0000
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=pierre.courtieu AT gmail.com; spf=Pass smtp.mailfrom=pierre.courtieu AT gmail.com; spf=None smtp.helo=postmaster AT mail-oi0-f44.google.com
- Ironport-phdr: 9a23:W3+cxBUC7SezVAGhgIDODgxYvaLV8LGtZVwlr6E/grcLSJyIuqrYbBaHt8tkgFKBZ4jH8fUM07OQ7/i5HzRYqb+681k6OKRWUBEEjchE1ycBO+WiTXPBEfjxciYhF95DXlI2t1uyMExSBdqsLwaK+i764jEdAAjwOhRoLerpBIHSk9631+ev8JHPfglEnjWwba9vIBmssQndqtQdjJd/JKo21hbHuGZDdf5MxWNvK1KTnhL86dm18ZV+7SleuO8v+tBZX6nicKs2UbJXDDI9M2Ao/8LrrgXMTRGO5nQHTGoblAdDDhXf4xH7WpfxtTb6tvZ41SKHM8D6Uaw4VDK/5KpwVhTmlDkIOCI48GHPi8x/kqRboA66pxdix4LYeZyZOOZicq/Ye94RWGhPUdtLVyFZDYy8YYkAAeoPM+hbsofzuUcBoACkCgWwHu7i0CNEimP00KA8zu8vERvG3AslH98WqnrUrcv6NL0IUe+r0aLF0zLDb+5M2Tfh6YjHbA0hquyLULJocMre11MvFxnbgVmKtYPlOC6V1v4Rs2ia8eVgSPmii2Eiqw5rozivwt0ghZXOhoIQ013J8zhyzogyJd29UkF7YNikHYNLtyGGLYR5XsAiQ2Z2uCkk0L0Gt5q7fC8EyZg92xHfbPmHfo6V6RzgTOacOSl0iG5hdb6lhBu/8VKsxvPhWsS3ylpHoSVIn9/RvX4XzRPT8NKISv5l80ehxzmP0wfT5/lBIU8ulKrbL4ctwrkxlpYPqEjDECD7lUrsgK+ZcUUk/eeo6+D5bbn8upCcMIp0hhn/MqQohMO/Hfw1PhYSU2Wf4+ix173u8VfnTLlXjfA6iKbUvZ/CKcQevKG5AgtV0og56xa4CjeryMwYnXgZI1JfYhKIkZLlNE3JIPDlF/e/n1Wsnyl2x/3dMb3hB4/CLnnHkLv7Ybl97EtcxBIpzd9D/5JUFq0BIPXrV0Dts9zYFwY1PBCww+b6E9pwzZgeWGKKAq+BKqzeq16I5uQ1I+mNfoAZojj9K+J2r8Lp2HQ+gBoWebSj9ZoRcnGxWPp8cGuDZn+5utYMC30H9iE5Ufb2iVCfGWpLZnuoRa967TYmEp6nAJrrSYWkgbjH1yC+SM4FLltaA0yBRC+7P76PXO0BPWfLepc4w240EIO5Qopk7imA8Qrzyr5pNO3Ro3RKupfq1dwz7OrWx0hrqW5ESv+F2mTIdFla23sSTmZvjq96qE15jFyE1Pog2qEKJZlo//pMFzwCG9vcwuh9UY2gXwvAepKOSQ7jTIn6Rz42Sd01zpkFZEMvQ9g=
Sorry for this naive statement but it may make things clearer for others too:
coqide reads _coqProject, *but coqc doesn’t*. The recommended way is to use coq_makefile -f _coqProject -o Makefile to generate a makefile and then call make. This is probably more or less what ‘compile > make’ does.
Having a -f option for coqc is something that may deserve a feature wish and a discussion.
Hope this helps.
Pierre
Le mer. 7 févr. 2018 à 19:59, Michael Greenberg <michael.greenberg AT pomona.edu> a écrit :
On 2018-2-7 10:12 AM, Cao Qinxiang wrote:
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.The issue I'm having is not that they can't get a .vo file, but rather that CoqIDE doesn't find them when put in the same directory as the .v file!
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.This seems a little too complicated for our purposes, but it does seem that choosing 'Compile > make makefile' and then 'Compile > make' does work!
Michael
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.