Skip to content

ModuleSystem panic #1330

@weaversa

Description

@weaversa

It seems that Cryptol panics if a file includes a file that imports a module.

$ more modA.cry
module modA where

x = 1
$ more include.cry 
import modA

y = 3
$ more main.cry 
include "include.cry"

z = 3
$ cryptol main.cry 
┏━╸┏━┓╻ ╻┏━┓╺┳╸┏━┓╻  
┃  ┣┳┛┗┳┛┣━┛ ┃ ┃ ┃┃  
┗━╸╹┗╸ ╹ ╹   ╹ ┗━┛┗━╸
version 2.12.0.99
https://cryptol.net  :? for help

Loading module Cryptol
Loading module Main
cryptol: You have encountered a bug in Cryptol's implementation.
*** Please create an issue at https://github.com/GaloisInc/cryptol/issues

%< --------------------------------------------------- 
  Revision:  UNKNOWN
  Branch:    UNKNOWN
  Location:  ModuleSystem
  Message:   Interface not available
             modA
CallStack (from HasCallStack):
  panic, called at src/Cryptol/Utils/Panic.hs:21:9 in cryptol-2.12.0.99-inplace:Cryptol.Utils.Panic
  panic, called at src/Cryptol/ModuleSystem/Monad.hs:475:18 in cryptol-2.12.0.99-inplace:Cryptol.ModuleSystem.Monad
%< --------------------------------------------------- 

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething not working correctly

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions