Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 326262 - Open File from command line starts new instance after new session is accidentally started
Summary: Open File from command line starts new instance after new session is accident...
Status: CLOSED DUPLICATE of bug 316821
Alias: None
Product: Platform
Classification: Eclipse Project
Component: IDE (show other bugs)
Version: 3.7   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-26 16:35 EDT by Jed Brown CLA
Modified: 2010-09-27 13:32 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jed Brown CLA 2010-09-26 16:35:02 EDT
Build Identifier: Build id: I20100921-1024

The primary problem is that it is possible for a running session to get "lost" so that files can no longer be opened from the command line.

Unknown command line options are also not warned about (I would prefer this over the very heavy and probably not desirable opening of a new session).

It would also be standard behavior for "eclipse path/to/newfile" to create a new file at that path rather than an error.

Reproducible: Always

Steps to Reproduce:
$ ls -l `which indigo`
lrwxrwxrwx 1 jed users 41 Sep 26 21:46 /home/jed/bin/indigo -> /home/jed/src/eclipse-3.7/eclipse/eclipse
$ indigo &    # Wait for it to start up
$ touch a.txt
$ indigo a.txt # opens in running session (good)
$ indigo b.txt # file does not exist, eclipse dialog tells me so
$ indigo -unknown # starts a new session (normal speed), does not warn about unknown option
                  # dialog says "Workspace in use or cannot be created, choose a different one
                  # I click "OK" (no choice), get a dialog to choose a
                  # workspace, I press cancel
$ indigo a.txt # This file exists, I still have my original running instance.
               # Nonetheless, a new instance starts, but very slowly
               # (about 1 minute to give startup screen), complains about
               # the workspace being in use
Comment 1 Andrew Niefer CLA 2010-09-27 11:04:28 EDT
This is probably a duplicate of bug 316821
Comment 2 Oleg Besedin CLA 2010-09-27 13:32:19 EDT
(In reply to comment #1)
> This is probably a duplicate of bug 316821

+1, it does seem to be the same issue.

*** This bug has been marked as a duplicate of bug 316821 ***