Skip to content

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

@madhephaestus

Description

@madhephaestus

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions