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

Classloading issue of unit language #883

Open
alexanderpann opened this issue Mar 28, 2024 · 0 comments
Open

Classloading issue of unit language #883

alexanderpann opened this issue Mar 28, 2024 · 0 comments
Labels
bug MPS 2021.3 Target MPS version of the issue MPS 2022.2 Target MPS version of the issue MPS 2022.3 Target MPS version of the issue MPS 2023.2 Target MPS version of the issue

Comments

@alexanderpann
Copy link
Member

I don't know how to reproduce it but you have to restart the project if it happens:

an error occurred while applying rule to node (instance of NumberLiteral)

jetbrains.mps.classloading.ModuleClassLoader$ModuleClassLoaderIsDisposedException: ClassLoader of the module 'org.iets3.core.expr.typetags.units [language]' is disposed and not operable!
at jetbrains.mps.classloading.ModuleClassLoader.checkNotDisposed(ModuleClassLoader.java:88)
at jetbrains.mps.classloading.ModuleClassLoader.loadClass(ModuleClassLoader.java:117)
at jetbrains.mps.classloading.ModuleClassLoader.loadClass(ModuleClassLoader.java:113)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
at org.iets3.core.expr.typetags.units.plugin.UnitTypeHelper.hasSingleUnitSpecificationTag(UnitTypeHelper.java:19)
at org.iets3.core.expr.typetags.units.plugin.UnitTypesPrimitiveTypeMapper$1.accept(UnitTypesPrimitiveTypeMapper.java:40)
at org.iets3.core.expr.typetags.units.plugin.UnitTypesPrimitiveTypeMapper$1.accept(UnitTypesPrimitiveTypeMapper.java:38)
at jetbrains.mps.internal.collections.runtime.IWhereFilter.invoke(IWhereFilter.java:12)
at jetbrains.mps.internal.collections.runtime.IWhereFilter.invoke(IWhereFilter.java:7)
at jetbrains.mps.internal.collections.runtime.impl.FilteringSequence$FilteringIterator.moveToNext(FilteringSequence.java:63)
at jetbrains.mps.internal.collections.runtime.impl.FilteringSequence$FilteringIterator.hasNext(FilteringSequence.java:34)
at jetbrains.mps.internal.collections.runtime.IterableUtils.isNotEmpty(IterableUtils.java:55)
at jetbrains.mps.internal.collections.runtime.AbstractSequence.isNotEmpty(AbstractSequence.java:183)
at jetbrains.mps.internal.collections.runtime.AbstractSequence.any(AbstractSequence.java:44)
at org.iets3.core.expr.typetags.units.plugin.UnitTypesPrimitiveTypeMapper.computeSupertype(UnitTypesPrimitiveTypeMapper.java:38)
at org.iets3.core.expr.base.runtime.runtime.PTF.computeSupertype(PTF.java:103)
at org.iets3.core.expr.base.typesystem.TypingHelper.computeRegularSupertype(TypingHelper.java:269)
at org.iets3.core.expr.base.typesystem.TypingHelper.calcCommonTypeCore(TypingHelper.java:144)
at org.iets3.core.expr.base.typesystem.TypingHelper$1.run(TypingHelper.java:49)
at jetbrains.mps.newTypesystem.context.typechecking.IncrementalTypechecking.runApplyRulesTo(IncrementalTypechecking.java:166)
at jetbrains.mps.newTypesystem.context.IncrementalTypecheckingContext$ContextRunnable.lambda$run$0(IncrementalTypecheckingContext.java:223)
at jetbrains.mps.newTypesystem.context.component.IncrementalTypecheckingComponent.runWithAccessTracking(IncrementalTypecheckingComponent.java:66)
at jetbrains.mps.newTypesystem.context.IncrementalTypecheckingContext$ContextRunnable.run(IncrementalTypecheckingContext.java:222)
at jetbrains.mps.newTypesystem.state.blocks.WhenConcreteBlock.performAction(WhenConcreteBlock.java:58)
at jetbrains.mps.newTypesystem.operation.block.RemoveBlockOperation.execute(RemoveBlockOperation.java:49)
at jetbrains.mps.newTypesystem.state.State.executeOperation(State.java:309)
at jetbrains.mps.newTypesystem.state.State.becameConcrete(State.java:193)
at jetbrains.mps.newTypesystem.state.State.testInputsResolved(State.java:217)
at jetbrains.mps.newTypesystem.state.State.substitute(State.java:179)
at jetbrains.mps.newTypesystem.operation.equation.AddEquationOperation.execute(AddEquationOperation.java:41)
at jetbrains.mps.newTypesystem.state.State.executeOperation(State.java:309)
at jetbrains.mps.newTypesystem.state.Equations.processEquation(Equations.java:174)
at jetbrains.mps.newTypesystem.state.Equations.addEquation(Equations.java:143)
at jetbrains.mps.newTypesystem.state.State.addEquation(State.java:241)
at jetbrains.mps.newTypesystem.state.State.addEquation(State.java:251)
at jetbrains.mps.newTypesystem.context.BaseTypecheckingContext.createEquation(BaseTypecheckingContext.java:115)
at jetbrains.mps.typesystem.inference.TypeCheckingContext.createEquation(TypeCheckingContext.java:97)
at org.iets3.core.expr.typetags.typesystem.typeof_TaggedExpression_InferenceRule$1.run(typeof_TaggedExpression_InferenceRule.java:36)
at jetbrains.mps.newTypesystem.context.typechecking.IncrementalTypechecking.runApplyRulesTo(IncrementalTypechecking.java:166)
at jetbrains.mps.newTypesystem.context.IncrementalTypecheckingContext$ContextRunnable.lambda$run$0(IncrementalTypecheckingContext.java:223)
at jetbrains.mps.newTypesystem.context.component.IncrementalTypecheckingComponent.runWithAccessTracking(IncrementalTypecheckingComponent.java:66)
at jetbrains.mps.newTypesystem.context.IncrementalTypecheckingContext$ContextRunnable.run(IncrementalTypecheckingContext.java:222)
at jetbrains.mps.newTypesystem.state.blocks.WhenConcreteBlock.performAction(WhenConcreteBlock.java:58)
at jetbrains.mps.newTypesystem.operation.block.RemoveBlockOperation.execute(RemoveBlockOperation.java:49)
at jetbrains.mps.newTypesystem.state.State.executeOperation(State.java:309)
at jetbrains.mps.newTypesystem.state.State.becameConcrete(State.java:193)
at jetbrains.mps.newTypesystem.state.State.testInputsResolved(State.java:217)
at jetbrains.mps.newTypesystem.state.State.substitute(State.java:179)
at jetbrains.mps.newTypesystem.operation.equation.AddEquationOperation.execute(AddEquationOperation.java:41)
at jetbrains.mps.newTypesystem.state.State.executeOperation(State.java:309)
at jetbrains.mps.newTypesystem.state.Equations.processEquation(Equations.java:174)
at jetbrains.mps.newTypesystem.state.Equations.addEquation(Equations.java:143)
at jetbrains.mps.newTypesystem.state.State.addEquation(State.java:241)
at jetbrains.mps.newTypesystem.state.State.addEquation(State.java:251)
at jetbrains.mps.newTypesystem.context.BaseTypecheckingContext.createEquation(BaseTypecheckingContext.java:115)
at jetbrains.mps.typesystem.inference.TypeCheckingContext.createEquation(TypeCheckingContext.java:97)
at org.iets3.core.expr.simpleTypes.typesystem.typeof_NumberLiteral_InferenceRule.applyRule(typeof_NumberLiteral_InferenceRule.java:27)
at jetbrains.mps.newTypesystem.operation.ApplyRuleOperation.execute(ApplyRuleOperation.java:48)
at jetbrains.mps.newTypesystem.state.State.executeOperation(State.java:316)
at jetbrains.mps.newTypesystem.state.State.applyRuleToNode(State.java:160)
at jetbrains.mps.newTypesystem.context.component.SimpleTypecheckingComponent.applyRulesToNode(SimpleTypecheckingComponent.java:146)
at jetbrains.mps.newTypesystem.context.component.TypeSystemComponent.lambda$applyRulesToNode$0(TypeSystemComponent.java:203)
at jetbrains.mps.newTypesystem.context.typechecking.IncrementalTypechecking.runApplyRulesTo(IncrementalTypechecking.java:166)
at jetbrains.mps.newTypesystem.context.component.TypeSystemComponent.applyRulesToNode(TypeSystemComponent.java:201)
at jetbrains.mps.newTypesystem.context.component.SimpleTypecheckingComponent.applyRulesAndTrackAccess(SimpleTypecheckingComponent.java:246)
at jetbrains.mps.newTypesystem.context.component.SimpleTypecheckingComponent.drainQueue(SimpleTypecheckingComponent.java:234)
at jetbrains.mps.newTypesystem.context.component.SimpleTypecheckingComponent.computeTypesSpecial(SimpleTypecheckingComponent.java:264)
at jetbrains.mps.newTypesystem.context.component.SimpleTypecheckingComponent.computeTypes(SimpleTypecheckingComponent.java:124)
at jetbrains.mps.newTypesystem.context.component.TypeSystemComponent.computeTypes(TypeSystemComponent.java:96)
at jetbrains.mps.newTypesystem.context.component.SimpleTypecheckingComponent.computeTypes(SimpleTypecheckingComponent.java:109)
at jetbrains.mps.newTypesystem.context.typechecking.BaseTypechecking.computeTypes(BaseTypechecking.java:107)
at jetbrains.mps.newTypesystem.context.SimpleTypecheckingContext.lambda$checkRoot$1(SimpleTypecheckingContext.java:269)
at jetbrains.mps.languageScope.LanguageScopeExecutor.execWithModelScope(LanguageScopeExecutor.java:63)
at jetbrains.mps.languageScope.LanguageScopeExecutor.execWithModelScope(LanguageScopeExecutor.java:43)
at jetbrains.mps.newTypesystem.context.SimpleTypecheckingContext.checkRoot(SimpleTypecheckingContext.java:268)
at jetbrains.mps.newTypesystem.context.SimpleTypecheckingContext.checkAll(SimpleTypecheckingContext.java:254)
at jetbrains.mps.newTypesystem.context.SimpleTypecheckingContext.checkIfNotChecked(SimpleTypecheckingContext.java:242)
at jetbrains.mps.typesystem.LegacyTypecheckingProvider$AbstractLegacyTypecheckingQueries.lambda$checkRecursively$3(LegacyTypecheckingProvider.java:226)
at jetbrains.mps.typesystem.LegacyTypecheckingProvider$IncrementalLegacyTypecheckingQueries.run(LegacyTypecheckingProvider.java:307)
at jetbrains.mps.typesystem.LegacyTypecheckingProvider$AbstractLegacyTypecheckingQueries.checkRecursively(LegacyTypecheckingProvider.java:221)
at jetbrains.mps.typechecking.backend.TypecheckingController.checkRecursively(TypecheckingController.java:111)
at jetbrains.mps.typechecking.TypecheckingFacade.checkRecursively(TypecheckingFacade.java:126)
at jetbrains.mps.typesystem.checking.TypesEditorChecker.lambda$doCreateMessages$0(TypesEditorChecker.java:74)
at jetbrains.mps.typechecking.backend.TypecheckingSessionHandler.computeWithSession(TypecheckingSessionHandler.java:61)
at jetbrains.mps.typesystem.checking.TypesEditorChecker.doCreateMessages(TypesEditorChecker.java:66)
at jetbrains.mps.typesystem.checking.AbstractTypesystemEditorChecker.lambda$update$0(AbstractTypesystemEditorChecker.java:112)
at jetbrains.mps.typechecking.backend.TypecheckingSessionHandler.computeWithSession(TypecheckingSessionHandler.java:61)
at jetbrains.mps.typesystem.checking.AbstractTypesystemEditorChecker.update(AbstractTypesystemEditorChecker.java:110)
at jetbrains.mps.nodeEditor.highlighter.HighlighterUpdateSession$HighlighterReadAction.perform(HighlighterUpdateSession.java:308)
at jetbrains.mps.nodeEditor.highlighter.EditorCheckerWrapper.withChecker(EditorCheckerWrapper.java:69)
at jetbrains.mps.nodeEditor.highlighter.HighlighterUpdateSession$HighlighterReadAction.execute(HighlighterUpdateSession.java:302)
at jetbrains.mps.smodel.CancellableReadAction.run(CancellableReadAction.java:86)
at jetbrains.mps.smodel.ActionDispatcher.dispatch(ActionDispatcher.java:98)
at jetbrains.mps.smodel.ActionDispatcher.lambda$wrap$0(ActionDispatcher.java:135)
at jetbrains.mps.smodel.LockRunnable.run(LockRunnable.java:60)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:915)
at jetbrains.mps.smodel.WorkbenchModelAccess.runReadAction(WorkbenchModelAccess.java:84)
at jetbrains.mps.smodel.ModelAccessBase.runReadAction(ModelAccessBase.java:56)
at jetbrains.mps.nodeEditor.highlighter.HighlighterUpdateSession.updateEditor(HighlighterUpdateSession.java:211)
at jetbrains.mps.nodeEditor.highlighter.HighlighterUpdateSession.updateEditorComponent(HighlighterUpdateSession.java:183)
at jetbrains.mps.nodeEditor.highlighter.HighlighterUpdateSession.lambda$doUpdate$0(HighlighterUpdateSession.java:99)
at jetbrains.mps.typechecking.backend.TypecheckingSessionHandler.runWithSession(TypecheckingSessionHandler.java:76)
at jetbrains.mps.nodeEditor.highlighter.HighlighterUpdateSession.doUpdate(HighlighterUpdateSession.java:97)
at jetbrains.mps.nodeEditor.highlighter.HighlighterUpdateSession.update(HighlighterUpdateSession.java:250)
at jetbrains.mps.nodeEditor.Highlighter$ScheduleHighlighterUpdate.update(Highlighter.java:490)
at jetbrains.mps.nodeEditor.Highlighter$ScheduleHighlighterUpdate.lambda$run$0(Highlighter.java:471)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:833)

@alexanderpann alexanderpann added MPS 2021.3 Target MPS version of the issue MPS 2022.2 Target MPS version of the issue MPS 2022.3 Target MPS version of the issue MPS 2023.2 Target MPS version of the issue bug labels Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug MPS 2021.3 Target MPS version of the issue MPS 2022.2 Target MPS version of the issue MPS 2022.3 Target MPS version of the issue MPS 2023.2 Target MPS version of the issue
Projects
None yet
Development

No branches or pull requests

1 participant