thSoft / elysium

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

fix compilation of linked files #188

Closed nittka closed 6 years ago

nittka commented 6 years ago

If a compile action is invoked on a linked file, currently the compiler cannot find it. This is because the IFile's parent (actual workspace project) may not be the phyiscal parent of the file. Changing the order - getting the location (path) and then removing the last segment - fixes this problem.

However, the linked file support is not perfect, even then. Show in score/audio might well fail because the compiled files are not automatically linked. Replacing the file extension of the source file leads to an IFile which is unknown to Eclipse.

I guess, linked files are hardly used, so even the bug fix of this PR could be ignored...

thSoft commented 6 years ago

This improves the situation in fact, so I gratefully accept this.