Eclipse generation fails on OSX
sh releng/run.sh gen-eclipse -d dest/eclipseworks fine on the buildfarm, but not locally (both new-spoofax-plugin branch).
Locally it generates files in the wrong places:
dest/eclipse/Info.plist (should be inside Eclipse.app) dest/eclipse/MacOS/eclipse (should be inside Eclipse.app) dest/eclipse/Resources/Eclipse.icns (should be inside Eclipse.app) dest/eclipse/Eclipse.app/Contents/MacOS/eclipse.ini (should be in Eclipse.app/Contents/Eclipse and triggers an error)
(and many other files in the app)
Resulting in the following error:
Traceback (most recent call last): File "/Users/daco/spoofax-deploy/releng/src/main.py", line 6, in <module> MetaborgReleng.run() File "/Users/daco/Library/Python/3.4/lib/python/site-packages/plumbum/cli/application.py", line 352, in run inst, retcode = subapp.run(argv, exit = False) File "/Users/daco/Library/Python/3.4/lib/python/site-packages/plumbum/cli/application.py", line 348, in run retcode = inst.main(*tailargs) File "/Users/daco/spoofax-deploy/releng/src/metaborg/releng/cmd.py", line 525, in main generator.Facade(fixIni = True, addJre = self.addJre, archiveJreSeparately = self.archiveJreSeparately) File "/Users/daco/spoofax-deploy/releng/src/metaborg/util/eclipse.py", line 97, in Facade self.FixIni() File "/Users/daco/spoofax-deploy/releng/src/metaborg/util/eclipse.py", line 174, in FixIni with open(iniLocation, "r") as iniFile: FileNotFoundError: [Errno 2] No such file or directory: 'dest/eclipse/Eclipse.app/Contents/Eclipse/eclipse.ini'
Because files are in the wrong place the .app is not executable on mac.Submitted by Daco Harkes on 8 January 2016 at 23:39
Try to delete
~/.spoofax-releng-eclipsegenand run eclipsegen again, think this is a caching issue.
Yes, that did the trick!
Log in to post comments