Windows parser cache file names too long
The path
C:\Users\Daco\Downloads\ecoop2017-artifact\ecoop2017-artifact\icedust-source\icedust2\target\stratego-cache/C++Users+Daco+Downloads+ecoop2017-artifact+ecoop2017-artifact+spoofax+org.metaborg.spoofax.eclipse.dist-2.2.0-windows-x64+spoofax+plugins+org.metaborg.meta.lib.analysis.eclipse_2.2.0+target+unpacked+latest+src-gen+signatures+analysis+Instruction-sig.str.cache
is 367 characters long, but Windows only supports up to 260 characters.Resulting in the following error:
16:09 | INFO | stderr - [ strj | warning ] Unable to cache parse result to C:\Users\Daco\Downloads\ecoop2017-artifact\ecoop2017-artifact\icedust-source\icedust2\target\stratego-cache/C++Users+Daco+Downloads+ecoop2017-artifact+ecoop2017-artifact+spoofax+org.metaborg.spoofax.eclipse.dist-2.2.0-windows-x64+spoofax+plugins+org.metaborg.meta.lib.analysis.eclipse_2.2.0+target+unpacked+latest+src-gen+signatures+analysis+Instruction-sig.str.cache
The build does not fail (it probably gets slower).
Proposed fix: use a hash rather than the full filename.
Related: https://yellowgrass.org/issue/Spoofax/102
Submitted by Daco Harkes on 18 April 2017 at 16:16
Log in to post comments