Community
Participate
Working Groups
Under windows starting the same eclipse installation again prompts the message: workspace is already in use choose another one. If yo choose another you can simlutaneously work with more than one workspace at a time. Under MacOS no such dialog appears. Starting the application again does nothing. (Seems to be normal MacOS behaviour. I am currently switching and new to the Mac.) In eclipse itself there is only the possibility to switch the workspace. This is not enough. A option to start a new workspce is desperately needed. E.g. for working on different branches. Please fix this before final 3.2.
Could you precise which build of eclipse you are running and which version of macos x you have? Silenio do you think this could be caused by the recent changed in the launcher? Marking for RC3 to make sure we investigate.
I am using eclipse 3.2M6 under MacOS 10.4.6 with an Intel based MBP.
Could you give a try to RC2 that has just been made available?
Exactly the same behaviour with RC2. Could not start eclipse a second time. BTW there is not even an startup animation. Simply nothing happens.
On MacOS you can only launch a UI program more then once if you have separate copies of the program on disk. The reason for this behavior is that every UI application on Mac can open multiple documents, so typically there is no need to open a program "twice". Since Eclipse cannot open more than one workspace, this means you have to make a copy of the Eclipse install if you want to open more then one workspace at the same time. Since this behavior (and the workaround) is fairly standard for Mac programs that cannot deal with multiple documents, I don't consider this issue as a "major bug" (and I don't see a need to fix this for 3.2). Pascal, what exactly happens with the "configuration" folder in the case that not the Eclipse install is duplicated but just the tiny Eclipse.app (<200k)? What happens on Windows in that case?
Strange... I thought that use to work with eclipse 3.1, but I would not bet :-) >What exactly happens with the "configuration" folder The contract of the configuration folder is that it can be shared across multiple eclipse instances running simultaneously. Therefore, readers and writers must take the appropriate precautions.
Please keep in mind that there are some issues with running multiple instance of Eclipse using the same configuration location (assuming configuration is not specified as a read-only). The bug 129365 has some details.
bug 129365 is about running multiple instances of eclipse from an uninitialized eclipse configuration. It is always recommended to initialize eclipse (using -initialize option) before launching multiple instances from the same configuration.
Thanks for the info about the "configuration" folder. So this means the safest way to have more than one workspace open, is to make *full copies* of an Eclipse install directory and run the corresponding Eclipse.app with diffreent workspaces. And the adventurous can just make a copy of Eclipse.app inside the Eclipse install, and hope that they won't corrupt the (shared) configuration directory... (I'm doing this all the time and cannot remember having any problems with this). May be this is something for the Eclipse ReadMe?
If you can't run an app twice, how would you launch a runtime workbench for self-hosting?
>Silenio do you think this could be caused by the recent changed in the >launcher? No, this is not new. This happens in 3.1.x.
Randy, the fact that a UI application can only run once is not a OS limitation X but just a UI concept of the Mac OS Finder: double clicking (launching) iTunes does not start a second instance of iTunes. So the Finder (via the LaunchManager) tracks that not multiple instances of an application are running (and the Dock shows this: there is only a single icon for iTunes or MS Word even if multiple documents are open). However, if you start applications via regular Unix concepts ("exec") as we do in Eclipse, multiple instances of the same executable are possible.
Re comment #12. Sharing the configuration has nothing of adventureous :-) This is a supported feature since 3.0 and any bug in this space should be reported. Decreasing priority but leaving open to add an entry in the readme as Andre suggested.
Only a documentation hint for mac os users? That is disappointing. Is the option to start a new workspace from eclipse such a huge task? Would be nice to see this at least in 3.2.1 :-)
It will stay a readme until someone from the community provides a patch :-)
Yes, MacOS X and Windows behave differently when it comes to launching multiple instances of the same application. Since Eclipse does not support multiple workspaces within one application process (the "Mac" way), the Mac version of Eclipse would have to fork new processes to simulate the Windows behavior (I'm not sure about the Linux behavior). This would require Mac specific code in the Eclipse launching mechanism, which albeit possible, is not a small task... BTW, you are the first asking for this, so it does not seem to be a big issue for Mac users...
I found running this script works too. No Workspace switching and no splash screen. Any other features that I loose when starting elcipse without the starter? I think copying only the Eclipse.app folder will be my preferred way. Thank you all very much for your support and patience. #!/bin/bash java -Xbootclasspath/p:plugins/org.eclipse.jdt.debug_3.2.0.v20060329b/jdi.jar \ -XstartOnFirstThread \ -Xms40m \ -Xmx256m \ -Dorg.eclipse.swt.internal.carbon.smallFonts \ -Dorg.eclipse.swt.internal.carbon.noFocusRing \ -jar startup.jar -os macosx -ws carbon -arch ppc -name Eclipse -showsplash 600 -exitdata 70000 -vm /usr/bin/java
re comment 13. Exactly! I regularly run 3-5 copies of the same Eclipse configuration but on different workspaces.
The readme will be released for 3.2. Leaving this bug open as the real problem is not solved.
open a terminal and cd to the eclipse folder, run ./eclipse& to start another instance. (under 10.4.x)
Or just duplicate the Eclipse.app and edit its Info.plist file. Then you can launch multiple instances by double clicking. Since Eclipse.app is small (164k), duplication should not be a problem.
In order to work as expected on the Mac platform there would need to be: a) an additional option in the file menu: "Open workspace..." to compliment "Switch workspace" b) workspaces treated as documents (and thus available by name in the Window menu) c) configuration settings not saved in eclipse/configuration/.settings but in ~/Library/Application\ Support/eclipse and thus leaving the installed application clean. Also default to installing plugins/features here (unless an admin user selects otherwise) d) user preferences stored in ~/Library/Preferences/org.eclipse.eclipse.plist to be a standard plist. e) etc. Making copies of Eclipse.app is a fiddly hack compared to a simple menu option to open an additional workspace.
Re: comment #22, this bug isn't about the fact that it's not laid out like a proper Mac application; there's a separate bug for that.
As I understand it, this bug is about the option to run multiple workspaces *from within* eclipse is a missing feature. I have simply commented on the items that would need to accompany any fix for that.
Changing OS from Mac OS to Mac OS X as per bug 185991
Most of this bug has been revolving around how to start multiple instances of Eclipse, so I found the summary misleading and changed it (previous value was: Could not run multiple workspaces simultaneously I have started bug 245399 to discuss the real ability of a single Eclipse instance to open multiple workspaces simultaneously, with a reference to comment #22 here. I'm wondering whether this bug can be closed now, referencing the README for Mac that has been added as per comment #19? Also, I was not sure whether a "depends on" bugzilla dependency to the new bug should be added.
Ok, closing. No point having two bugs with a similar subject.