usethesource / rascal-language-servers

An LSP server for Rascal which includes an easy-to-use LSP generator for languages implemented in Rascal, and an interactive terminal REPL.
BSD 2-Clause "Simplified" License
15 stars 8 forks source link

Rascal check crashed unexpectedly with: MultipleKeyat: |std:///Map.rsc|(2659,708,<109,0>,<130,54>) #521

Open BlackHart98 opened 1 week ago

BlackHart98 commented 1 week ago

Context: Please provide context

Exception thrown:

|std:///Map.rsc|:109,0: MultipleKey(
  |file:///Users/pius/Desktop/Dev/adept-base/src/main/rascal/actions/DataTypes.rsc|(370,20,<28,6>,<28,26>),
  |rascal+constructor:///actions/DataTypes/TranslationException$20d5946984077a87|,
  |rascal+constructor:///actions/DataTypes/TranslationException$7c1fb502a9df0a18|)

Stacktrace:

    at *** somewhere ***(|std:///Map.rsc|(2659,708,<109,0>,<130,54>))
    at invertUnique(|lib://typepal/analysis/typepal/Collector.rsc|(11366,3,<256,51>,<256,54>))
    at removeTModel(|lib://rascal-core/lang/rascalcore/check/CheckerCommon.rsc|(9118,42,<237,13>,<237,55>))
    at removeOldestTModelFromCache(|lib://rascal-core/lang/rascalcore/check/CheckerCommon.rsc|(9638,28,<253,13>,<253,41>))
    at getTModelForModule(|lib://rascal-core/lang/rascalcore/check/CheckerCommon.rsc|(11020,32,<283,13>,<283,45>))
    at importsAndExtendsAreBinaryCompatible(|lib://rascal-core/lang/rascalcore/check/Import.rsc|(9630,26,<236,30>,<236,56>))
    at rascalTModelForLocs(|lib://rascal-core/lang/rascalcore/check/Checker.rsc|(7532,64,<210,41>,<210,105>))
    at check(|lib://rascal-core/lang/rascalcore/check/Checker.rsc|(19552,64,<475,9>,<475,73>))
    at $shell$(|main://$shell$|)
PaulKlint commented 1 week ago

Thanks @BlackHart98 for reporting. Usually this is caused by not clearing the target folder or not using the latest release of the various libraries. We are collecting reports on this and will try to handle this in a more friendly manner.