coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Michael Greenberg <michael.greenberg AT pomona.edu>
- To: <coq-club AT inria.fr>, Cao Qinxiang <caoqinxiang AT gmail.com>
- Subject: Re: [Coq-Club] Issues with paths in CoqIDE 8.6.1
- Date: Wed, 7 Feb 2018 10:59:09 -0800
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=michael.greenberg AT pomona.edu; spf=Pass smtp.mailfrom=Michael.Greenberg AT pomona.edu; spf=None smtp.helo=postmaster AT esa1.pomona.iphmx.com
- Ironport-phdr: 9a23:Gnx9+RM+HDLpBejFCC4l6mtUPXoX/o7sNwtQ0KIMzox0I/3+rarrMEGX3/hxlliBBdydt6odzbKO+4nbGkU4qa6bt34DdJEeHzQksu4x2zIaPcieFEfgJ+TrZSFpVO5LVVti4m3peRMNQJW2aFLduGC94iAPERvjKwV1Ov71GonPhMiryuy+4ZLebxlViDanfb9+MAi9oBnMuMURnYZsMLs6xAHTontPdeRWxGdoKkyWkh3h+Mq+/4Nt/jpJtf45+MFOTav1f6IjTbxFFzsmKHw65NfqtRbYUwSC4GYXX3gMnRpJBwjF6wz6Xov0vyDnuOdxxDWWMMvrRr0vRz+s87lkRwPpiCcfNj427mfXitBrjKlGpB6tvgFzz5LIbI2QMvd1Y6HTcs4ARWdZQ8hfSSJBDIO/YYUBAeUOMuRXoJX8p1YVtxSyGROhCfnzxjJGhHL727Ax3eQ7EQHB2QwtB9UAsHXIo9X1LqgdT+S1x7TJwzXZcfxZxzH955PWfRA7rvGHQLV9cc/QyUYzFwPKlEufqYj/MzOazOQCrXaU7+x7Wu2xkW4npBp8oiCoxscpjYnJgJgaxkra+ipk3YY4PNu1Q1N1b96jFZtfrSCaN41uT8M5X2Fnojo1yr4BuZ6lYicK0ponxxrYa/2JaYSH/hXjVOOXLDxlh3xlYKqyihex/ES61OHxWNe43ExXoidKj9XArG4B2wHS58SfV/dw8Eis1SyS2w3R5OxIO0M5mKrBJ5I8wLM9kpweulnZECDsgkX5lqqWe10k+ue27+TnZa3rqYGHN4Bulw3yKLwumsu6AeQ/NAgBRXKX+eWk1L3j+E34T69GgeExkqncqJzaJMIbqbClAwJN04su6AyzAymo3dgGh3ULMV1IdA+dg4T3Jl3DIej0DfKljFStlDdryerGPrrkApjVKXbDkavufbZn5EFCzAo/19FR54hKBb4fJvL8QVH+tMbXDhIiKwy0xOPnCNJ71owEQ26AHLKWML7KvV+S+u0vO/WMZJMSuDvlN/cl4OfugWYlll8ZYKmmxoAaaGu4H/RjO0WWe2DggtYHEWcQvwoxVvbmiFOYUW0bW3HnC6k7/3QwDJ+sJYbFXIGkxrKbimPzNZRRLllHDECNGHHnP9GPUvAVaSSCI8ZnnRQLULGgT8kq0hT45yHgzL8yC+vf+iQVsdrMztV44efejx56oTl1BMSU3mXLQHt5k2UCSiU59Lh4pEt7wxGO3bUu0K8QLsBa+/4cClRyDpXb1eEvTomqAluQLOfMc06vR5CdOR90S9swx9EUZEMkQYe6iRXE2SPsDrMIxeXSWM4Et5nE1n20HP5Tjm7c3fB73UEhR8xJPCurirMtr1GOVb6MqF2QkuORTYpZ3CPJ8z3Yn2eVtRgeSAl1VqPMG3EHZk7G69/+4xGaQg==
On 2018-2-7 10:12 AM, Cao Qinxiang
wrote:
Hi Michael,
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!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.
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.