chapeldev / cdo

Chapel Data Object
Apache License 2.0
10 stars 6 forks source link

throwing_error #28

Open 12mohaned opened 3 years ago

12mohaned commented 3 years ago

The following errors are thrown when I try to run one of the example.

./Cdo.chpl:482: In method '__cdo_mapRelation': ./Cdo.chpl:493: error: Attempt to 'new' a function or undefined symbol ./Cdo.chpl:437: In method 'writeThis': ./Cdo.chpl:437: error: 'channel' undeclared (first use this function)

The error on line 437 can be solved by adding importing IO module, I did not opened a pull request to make sure that this bug not specific to me. Also, the error on line 493 can be solved by instantiate a object of type ModelRelationInfo and call the _cdo_mapRelation with it.

ben-albrecht commented 3 years ago

Which example are you running and what version of Chapel? I'd be curious if https://github.com/chapeldev/cdo/pull/26 resolves this issue for you. It is a large refactor with various fixes and improvements to testing (including unit tests instead of examples).

12mohaned commented 3 years ago

I am using version 1.23.0, it will resolve the first error by importing IO module, I am not sure about the second error because the addition will change the logic itself.