coqide - can't load modules from same folder

后端 未结 4 1198
陌清茗
陌清茗 2020-12-03 10:32

I can\'t load modules that are in same folder in CoqIde.

I\'m trying to load sources from Software Foundations, I\'m running coqide in folder that contains SF source

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-03 11:31

    I realize this is an old thread, however there are not many resources on this problem. I just spent some time solving it so I figured it would be good to post it on the first topic I got from googling. I'm using Coq 8.4p16 compiled with no additional configuration on Arch Linux.

    So, the manual says variables like $COQPATH, ${XDG_DATA_DIRS}/coq/ and ${XDG_DATA_HOME}/coq/ are checked, however I've had no luck with those.

    I also tried putting coqc -I /folder/path the Edit->Preferences->Externals of CoqIde, however, still no luck there.

    I write these as they may work for someone.

    The only GLOBAL way which works for me is writing a coqrc file with Add LoadPath "". in it. On Linux the file needs to be in the home folder.

    Hope this saves someone some time.

提交回复
热议问题