softlang / megalib

A library of megamodels
6 stars 5 forks source link

Path issues #9

Closed le-cram closed 7 years ago

le-cram commented 7 years ago

Linux has issues with getting the correct path.

kkoehn commented 7 years ago

I tried the following:

$ java -jar ../checker/checker.jar 
Checking ./MicrosoftOfficeCompatibility.megal
Loading:
 MicrosoftOfficeCompatibility

File '/home/karol/uni/sle/ass2/megalib/models/.\\MicrosoftOfficeCompatibility.megal' does not exist
  Congratulations! There are no well-formedness issues at creation time.
  Congratulations! There are no warnings.
Checking ./Owncloud.megal
line 3:0 mismatched input 'C++' expecting {'import', BLOCKCOMMENT}
Syntactic errors exist : Fix them before further checks

The error is somewhat different with this call:


$ java -jar ../checker/checker.jar -f MicrosoftOfficeCompatibility.megal 
Checking MicrosoftOfficeCompatibility.megal
Loading:
 MicrosoftOfficeCompatibility

File '/home/karol/uni/sle/ass2/megalib/models\\MicrosoftOfficeCompatibility.megal' does not exist
  Congratulations! There are no well-formedness issues at creation time.
  Congratulations! There are no warnings.
le-cram commented 7 years ago

Please retry now :-) . I'm forwarding absolute paths instead of relative ones. It should hopefully work.

kkoehn commented 7 years ago

Same error. does the .jar not have to be updated?

le-cram commented 7 years ago

Pushed new .jar

kkoehn commented 7 years ago

again the same error :(

le-cram commented 7 years ago

Try again if you have time :-) Pushed a new .jar.

kkoehn commented 7 years ago

looks fine now.

$ java -jar ../checker/checker.jar -f MicrosoftOfficeCompatibility.megal 
Checking /home/karol/uni/sle/ass2/megalib/models/MicrosoftOfficeCompatibility.megal
Loading:
 MicrosoftOfficeCompatibility

  Congratulations! There are no well-formedness issues at creation time.
State a defining artifact or an implementing technology for the language C++.
State a defining artifact or an implementing technology for the language XML.
State a defining artifact or an implementing technology for the language XSD.
le-cram commented 7 years ago

Forgot that there were issues in Linux when using \ in a path. Java does not automatically translate paths.