thSoft / elysium

LilyPond IDE for Eclipse
http://elysium.thsoft.hu
14 stars 3 forks source link

Exception when include uri points to directory #125

Closed nittka closed 6 years ago

nittka commented 8 years ago

\include ".." causes an exception. Should we just suppress directories and accept any file (file extension does not matter) or just known extensions.

thSoft commented 8 years ago

Good catch! There should be a validation rule that gives errors for including directories.

nittka commented 8 years ago

When creating the scope, only known file extensions are considered. Even if the LilyPond compiler works when including arbitrary text files with the correct content, we cannot register our parser for any file extension.

If the file extension is unknown a warning appears, informing the user about potential linking errors.