Inconsistent project-path variable
The
project-path
is not consistent between normal language files and SPT files.normal language file:
C:\Users\Daco\workspace20160111\relations.debug
(fully qualified)
SPT file:/relations.debug
(relative to Eclipse workspace)This causes builders that use the project-path to fail.
Submitted by Daco Harkes on 12 January 2016 at 10:22
Issue Log
Can we add a primitive
prim("full_project_path")
as a workaround in the mean time? This wont break all existing (meta) languages.
There is already a
<project-path>
primitive, this is a good workaround.generate-java: (selected, position, ast, path, project-path-wrong) -> result with project-path := <project-path>; // ...
Make sure that all file interactions use fully qualified paths:
<fopen>(fileName, "w")
requiresfileName
to be fully qualified. (The language plugin, non-SPT, will also allowfopen
with paths relative to the project-path, but SPT does not support this.)
Log in to post comments