Skip to content

Renaming module files and names crashes module reloading code. #2591

@jurgenvinju

Description

@jurgenvinju

Describe the bug

  • rename a module that was previously loaded on the REPL (on the commandline or in VScode)
  • type any command
  • typical output (here I've renamed 4 modules):
rascal>import lang::rascal::tests::extends5::Top;
[INFO] reloading module: lang::rascal::tests::extends5::D
[INFO] reloading module: lang::rascal::tests::extends5::C
[INFO] reloading module: lang::rascal::tests::extends5::B
[INFO] reloading module: lang::rascal::tests::extends5::A
[INFO] reloading module: lang::rascal::tests::extends5::Top
[ERROR] Could not import module lang::rascal::tests::extends5::D: can not find in search path
Advice: |https://www.rascal-mpl.org/docs/Rascal/Errors/CompileTimeErrors/ModuleImport|
[ERROR] Could not import module lang::rascal::tests::extends5::C: can not find in search path
Advice: |https://www.rascal-mpl.org/docs/Rascal/Errors/CompileTimeErrors/ModuleImport|
[ERROR] Could not import module lang::rascal::tests::extends5::B: can not find in search path
Advice: |https://www.rascal-mpl.org/docs/Rascal/Errors/CompileTimeErrors/ModuleImport|
[ERROR] Could not import module lang::rascal::tests::extends5::A: can not find in search path
Advice: |https://www.rascal-mpl.org/docs/Rascal/Errors/CompileTimeErrors/ModuleImport|
  • the error is persistent (which can be a different issue)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions