Sat Aug 18, 2018 2:31 pm
Login Register Lost Password? Contact Us


Error in ECL Bundle

Discuss and share ideas around ECL Bundle support which is a framework for creating and managing installable ECL code components

Thu Jan 08, 2015 2:32 pm Change Time Zone

I am facing an issue in creating the ECL bundle.

The Bundle is copied from the ML library and only name has been changed.

My directory structure is following:

Code: Select all
./test/Bundle.ecl
./test/Similarity.ecl
./test/SimilarityRecordDefinitions.ecl


When I move to ./test/ and run the following command:
ecl-bundle install -v Bundle.ecl


Code: Select all
I get the following output and error:
Running eclcc --nologfile -showpaths
Running eclcc - --nologfile --nostdinc -Me --nobundles -I.
with input IMPORT Bundle.Bundle as B; [ (UTF8) B.name, (UTF8) B.version, B.description, B.license, B.copyright ] + [ (UTF8) COUNT(b.authors) ] + B.authors +  [ (UTF8) COUNT(B.dependsOn) ] + B.dependsOn +  [ (UTF8) #IFDEFINED(B.platformVersion, '')]
eclcc return code was 2, output to stderr:
stdin:(1,8): error C2171: Object 'Bundle' does not have a field named 'Bundle'
stdin:(1,37): error C2167: Unknown identifier "B"
2 errors, 0 warning
Bundle.ecl cannot be parsed as a bundle


Any pointers on how to resolve this.
lokesh
 
Posts: 10
Joined: Thu Dec 19, 2013 11:45 am

Thu Jan 08, 2015 9:53 pm Change Time Zone

Did you rename the module within the bundle file to match the bundle's filename? In general, they need to match, so you'll probably have to either rename the module to match the filename, or the filename to match the module name.

Cheers,

Dan
DSC
Community Advisory Board Member
Community Advisory Board Member
 
Posts: 552
Joined: Tue Oct 18, 2011 4:45 pm

Fri Jan 09, 2015 5:58 am Change Time Zone

DSC wrote:Did you rename the module within the bundle file to match the bundle's filename? In general, they need to match, so you'll probably have to either rename the module to match the filename, or the filename to match the module name.

Cheers,

Dan


Thanks Dan,

I did that.

Here is my Bundle.ecl:
Code: Select all
IMPORT Std;

EXPORT Bundle := MODULE(Std.BundleBase)
    EXPORT name := 'test';
    EXPORT description := 'ECL test Bundle';
    EXPORT authors := ['Lokesh'];
    EXPORT license := '';
    EXPORT copyright := 'Copyright (C)';
    EXPORT dependsOn := [];
    EXPORT version := '0.0.1';
    EXPORT platformversion := '5.0.4.1';
END;
lokesh
 
Posts: 10
Joined: Thu Dec 19, 2013 11:45 am


Return to ECL Bundles

Who is online

Users browsing this forum: No registered users and 1 guest

cron