Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import project by passing it as command-line argument on MacOS is not functional in OSX 13 (Intel and AArch64) #149

Open
madhephaestus opened this issue Sep 9, 2023 · 1 comment

Comments

@madhephaestus
Copy link

madhephaestus commented Sep 9, 2023

Functionality referenced here:

https://eclipse.dev/eclipse/news/4.12/platform.php

using Eclipse version:

https://download.eclipse.org/eclipse/downloads/drops4/R-4.28-202306050440/

the following command:

% open /Users/kharrington/bin/eclipse/Eclipse.app -a /Users/kharrington/Documents/bowler-workspace/gitcache/github.com/BancroftRoboDogs/LabCodeRepoSetup/ 

causes the following error:

The application /Users/kharrington/Documents/bowler-workspace/gitcache/github.com/BancroftRoboDogs/LabCodeRepoSetup cannot be opened for an unexpected reason, error=Error Domain=NSOSStatusErrorDomain Code=-10827 "kLSNoExecutableErr: The executable is missing" UserInfo={_LSLine=4101, _LSFunction=_LSOpenStuffCallLocal}

The directory referenced can be imported as an existing project through the UI.

Correcting for the new MacOS command line arguments:

% open /Users/kharrington/bin/eclipse/Eclipse.app --args /Users/kharrington/Documents/bowler-workspace/gitcache/github.com/BancroftRoboDogs/LabCodeRepoSetup/ 

causes Eclipse to open normal if not open, or receive a signal to bring the Eclipse window to the front. No error is printed. The project does not launch the import existing project wizard as the documentation suggests. This functionality is tested working on Linux and WIndows versions.

  1. The MacOS instructions in the original 4.12 feature announcement are incorrect
  2. there is no other known documented way to get the Eclipse.app to import a project via command line arguments passed from another program or script.
  3. The command line import is not documented in the core documentation: https://help.eclipse.org/latest/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fmisc%2Fruntime-options.html
  4. It is also possible that this issue constitutes a bug, perhaps it should work but does not.

Tested on:

MacOS Ventura 13.4.1
@madhephaestus
Copy link
Author

Note to the future, as this is resolved, update the StackOverflow issue: https://stackoverflow.com/questions/8908219/eclipse-import-project-using-command-line/77072708#77072708

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant