Comments (2)
Original Redmine Comment
Author Name: Volker Stolz (Volker Stolz)
Original Date: 2013-11-26T16:16:26Z
The underlying problem is probably that the ABSCodeScanner violates the contract established by the grammar:
A CompilationUnit must have a parent Model, because it uses inherent attributes.
java.lang.RuntimeException: Trying to evaluate attribute in subtree not attached to main tree
at abs.frontend.ast.CompilationUnit.lookupModule(CompilationUnit.java:1298)
at abs.frontend.ast.CompilationUnit.Define_ModuleDecl_lookupModule(CompilationUnit.java:1354)
at abs.frontend.ast.ASTNode.Define_ModuleDecl_lookupModule(ASTNode.java:1662)
at abs.frontend.ast.ModuleDecl.lookupModule(ModuleDecl.java:1515)
at abs.frontend.typechecker.TypeCheckerHelper.getImportedNames(TypeCheckerHelper.java:279)
at abs.frontend.ast.ModuleDecl.getImportedNames_compute(ModuleDecl.java:1280)
at abs.frontend.ast.ModuleDecl.getImportedNames(ModuleDecl.java:1267)
at abs.frontend.typechecker.TypeCheckerHelper.getVisibleNames(TypeCheckerHelper.java:310)
at abs.frontend.ast.ModuleDecl.getVisibleNames_compute(ModuleDecl.java:1088)
at abs.frontend.ast.ModuleDecl.getVisibleNames(ModuleDecl.java:1075)
at abs.frontend.ast.ModuleDecl.resolveName(ModuleDecl.java:385)
at abs.frontend.ast.ModuleDecl.lookup_compute(ModuleDecl.java:1494)
at abs.frontend.ast.ModuleDecl.lookup(ModuleDecl.java:1481)
at abs.frontend.ast.ModuleDecl.Define_Decl_lookup(ModuleDecl.java:1604)
at abs.frontend.ast.ASTNode.Define_Decl_lookup(ASTNode.java:1669)
at abs.frontend.ast.ASTNode.Define_Decl_lookup(ASTNode.java:1669)
at abs.frontend.ast.ASTNode.Define_Decl_lookup(ASTNode.java:1669)
at abs.frontend.ast.ASTNode.Define_Decl_lookup(ASTNode.java:1669)
at abs.frontend.ast.DataTypeUse.lookup(DataTypeUse.java:401)
at abs.frontend.ast.ParametricDataTypeUse.Define_Decl_lookup(ParametricDataTypeUse.java:550)
at abs.frontend.ast.ASTNode.Define_Decl_lookup(ASTNode.java:1669)
at abs.frontend.ast.Exp.lookup(Exp.java:438)
at abs.frontend.ast.TypeUse.getDecl_compute(TypeUse.java:393)
at abs.frontend.ast.TypeUse.getDecl(TypeUse.java:381)
at abs.frontend.ast.UnresolvedTypeUse.rewriteTo(UnresolvedTypeUse.java:365)
at abs.frontend.ast.ASTNode.getChild(ASTNode.java:606)
at abs.frontend.ast.List.rewriteTo(List.java:287)
at abs.frontend.ast.ASTNode.getChild(ASTNode.java:606)
at abs.frontend.parser.SourcePosition.findPosition(SourcePosition.java:43)
from abstools.
Original Redmine Comment
Author Name: Volker Stolz (Volker Stolz)
Original Date: 2013-11-26T16:57:05Z
Fix in place, let's see how it holds up.
from abstools.
Related Issues (20)
- Forbid `new local` in the main block
- User-defined schedulers fail for primitive parameter values HOT 1
- destiny is null inside run methods
- Windows/MinGW64 does not work
- Update installation instructions on Windows
- Can not complete the install HOT 5
- my first attempt for ABS HOT 6
- The language manual should describe the overall structure of an ABS model
- no main block found
- difference between Erlang, Maude and Java compile result
- Add Float as allowed type for product feature parameters HOT 1
- Docker builds fail while trying to install SmartDeployer HOT 2
- Compiler crash with nested `foreach` loop HOT 2
- Java backend creates invalid code for Java versions >=8 HOT 1
- Java backend errors or prints additional message if a variable called `testresult` is defined in the main block
- Feature: simpler syntax for datatype with only one constructor
- Feature: optional message in `assert` statement
- DSPL error reporting
- Specify semantics of await guards HOT 1
- Race condition in test `resource_accounting` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from abstools.