sh releng/run.sh gen-eclipse -d dest/eclipse works 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

On 9 January 2016 at 11:07 Gabriël Konat commented:

Try to delete ~/.spoofax-releng-eclipsegen and run eclipsegen again, think this is a caching issue.


On 9 January 2016 at 11:09 Gabriël Konat tagged macos

On 9 January 2016 at 11:25 Daco Harkes commented:

Yes, that did the trick!


On 9 January 2016 at 11:28 Gabriël Konat tagged releng

On 9 January 2016 at 11:28 Gabriël Konat tagged eclipse

On 10 January 2016 at 11:13 Gabriël Konat closed this issue.

Log in to post comments