Giter Site home page Giter Site logo

Comments (4)

andreasabel avatar andreasabel commented on June 28, 2024

Ouch! The internal error is here:

withRangesOf :: ModuleName -> List1 C.Name -> ModuleName
MName ms `withRangesOf` ns = if m < n then __IMPOSSIBLE__ else MName $
zipWith setRange (replicate (m - n) noRange ++ map getRange (List1.toList ns)) ms
where
m = length ms
n = length ns

However, the cause is probably in our dreaded imports logic.

from agda.

andreasabel avatar andreasabel commented on June 28, 2024

Agda 2.6.1 still says:

The file /Users/abel/play/agda/bugs/Issue7208/A.agda can be
accessed via several project roots. Both A and Issue7208.A point to
this file.
when scope checking the declaration
  import Issue7208.A

from agda.

andreasabel avatar andreasabel commented on June 28, 2024

Bisection says:
6c29efd is the first bad commit @rwe
Date: Tue Nov 24 15:26:01 2020 -0800

imports/refact: Move ifile module name validation into getStoredInterface

Interfaces made with `createInterface` will already have been checked by
the scope checker, and cached interfaces will already have been either
there or here.

src/full/Agda/Interaction/Imports.hs | 14 +++++++-------

from agda.

andreasabel avatar andreasabel commented on June 28, 2024

This commit does not cleanly revert, so one has to understand what is going on to restore the proper error. But blaming this commit might help understanding.

from agda.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.