Bug 558674 - using ./eclipse <path> does not work to import on OS X
Summary: using ./eclipse <path> does not work to import on OS X
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.15   Edit
Hardware: PC Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo, usability
Depends on:
Blocks:
 
Reported: 2019-12-29 05:18 EST by Max Rydahl Andersen CLA
Modified: 2020-10-14 06:56 EDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Max Rydahl Andersen CLA 2019-12-29 05:18:21 EST
In https://twitter.com/mickaelistria/status/1211224135763931138 its stated that eclipse <path> should open eclipse with import wizard.

It does not.

Makes it really tedious to open projects in Eclipse compared to other IDE's.

p.s. I reported/commented on similar in past but wasn't able to find it in bugzilla ;/
Comment 1 Lakshmi P Shanmugam CLA 2020-01-02 00:08:50 EST
On Mac, please try with the following command:

open -a Eclipse.app /path/to/project

The N&N entry also specifies the Mac command to be used - https://www.eclipse.org/eclipse/news/4.12/platform.php#pass-directory-to-launcher
Comment 2 Lakshmi P Shanmugam CLA 2020-01-09 05:37:23 EST
(In reply to Lakshmi Shanmugam from comment #1)
> On Mac, please try with the following command:
> 
> open -a Eclipse.app /path/to/project
> 
> The N&N entry also specifies the Mac command to be used -
> https://www.eclipse.org/eclipse/news/4.12/platform.php#pass-directory-to-
> launcher

Does this work for you on Mac?
Comment 3 Pierre-Yves Bigourdan CLA 2020-01-09 10:53:12 EST
(In reply to Lakshmi Shanmugam from comment #2)
> (In reply to Lakshmi Shanmugam from comment #1)
> > On Mac, please try with the following command:
> > 
> > open -a Eclipse.app /path/to/project
> > 
> > The N&N entry also specifies the Mac command to be used -
> > https://www.eclipse.org/eclipse/news/4.12/platform.php#pass-directory-to-
> > launcher
> 
> Does this work for you on Mac?

This does indeed works. However, it's not consistent with the Windows/Linux equivalent, is confusing/less convenient for users. I believe IntelliJ and VSCode support simple "idea <path>" and "code <path>" commands on macOS.
Comment 4 Max Rydahl Andersen CLA 2020-01-10 04:00:27 EST
that does work and is nice, any reason why on osx the eclipse binary itself does not allow this kind of usage ?
Comment 5 Max Rydahl Andersen CLA 2020-01-12 02:10:22 EST
related issue: https://bugs.eclipse.org/bugs/show_bug.cgi?id=559075
Comment 6 Max Rydahl Andersen CLA 2020-02-13 09:43:30 EST
fyi, for now I worked around this on osx by adding `/usr/local/bin/eclipse` that contains `open -a ~/java-latest-released/Eclipse.app $@`

would be great if eclipse could offer to set this up on its own via a command.
Comment 7 Max Rydahl Andersen CLA 2020-10-14 06:56:36 EDT
bumped into this again - really would be nice if eclipse would help osx users to get a decent out-of-box behavior.

Opened https://bugs.eclipse.org/bugs/show_bug.cgi?id=567828 incase the installer is more suited for fixing this.