Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error: Can't disambiguate name: Main.yprefix, YafflePaths.yprefix #77

Closed
edwinb opened this issue May 20, 2020 · 3 comments
Closed
Labels
Installation Issue Problem compiling or running Idris

Comments

@edwinb
Copy link
Collaborator

edwinb commented May 20, 2020

Issue by LeifW
Friday May 15, 2020 at 13:47 GMT
Originally opened as edwinb/Idris2-boot#375


Just did a git pull (at 21507e6), and running "make install" fails with:

...
Type checking ./Idris/IDEMode/REPL.idr
Type checking ./Idris/Main.idr
./Idris/Main.idr:49:15-21:
   |
49 |               Nothing => setPrefix yprefix
   |               ~~~~~~~
When checking right hand side of Main.case block in updatePaths at ./Idris/Main.idr:47:15-21 with expected type
        Core ()

Can't disambiguate name: Main.yprefix, YafflePaths.yprefix

./Idris/Main.idr:212:7-213:19:
    |
212 |     = do putStrLn yprefix
    |       ~~~~~~~~~~~~~~~~~~~ ...
When checking right hand side of quitOpts with expected type
        IO Bool

Can't disambiguate name: Main.yprefix, YafflePaths.yprefix

make: *** [Makefile:92: dist/idris2.c] Error 1

Using Idris 1.3.2 provided by Arch Linux (which pulls the tarball down from GitHub releases: https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/idris#n21)

@edwinb edwinb added the Installation Issue Problem compiling or running Idris label May 20, 2020
@edwinb
Copy link
Collaborator Author

edwinb commented May 20, 2020

Comment by edwinb
Friday May 15, 2020 at 14:58 GMT


Did you clean everything first? You might have an out of date YafflePaths.idr

@buzden
Copy link
Collaborator

buzden commented May 20, 2020

When I had this problem, cleaning helped.

@edwinb
Copy link
Collaborator Author

edwinb commented May 20, 2020

I'm going to close this since the build system is entirely different now. If there's still a problem, please reopen (or maybe better, open a new issue).

@edwinb edwinb closed this as completed May 20, 2020
melted pushed a commit to melted/Idris2 that referenced this issue Jun 1, 2020
If a default method implementation refers to another method in the
interface, it's going to be one from the interface being defined, so
push it through explicitly.
This is only going to be guaranteed to be the case for default method
implementations - we can't assume anything for other implementations.
Fixes idris-lang#77
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Installation Issue Problem compiling or running Idris
Projects
None yet
Development

No branches or pull requests

2 participants