Bug 88782 - [readme] DebugOptions looks for .options in wrong place on Mac.
Summary: [readme] DebugOptions looks for .options in wrong place on Mac.
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Runtime (show other bugs)
Version: 3.1   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: 3.1 RC4   Edit
Assignee: Mike Wilson CLA Friend
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-22 14:01 EST by Mike Wilson CLA Friend
Modified: 2005-06-23 10:06 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 Mike Wilson CLA Friend 2005-03-22 14:01:24 EST
On my Mac, the performance plugin is looking for its .options file at:
    file:/Users/mcq/Desktop/eclipse/Eclipse.app/Contents/MacOS/.options

Note that this is inside the application bundle.
Comment 1 John Arthorne CLA Friend 2005-03-22 14:06:10 EST
DebugOptions uses the result of System.getProperty("user.dir") as the default
location for the .options file.  We need to figure out if this is returning the
wrong thing or if this is indeed the current working directory when Eclipse is
started on Mac.
Comment 2 Mike Wilson CLA Friend 2005-03-22 14:15:04 EST
Suggest you talk to Pascal. I remember him seeing something similar.
Comment 3 Pascal Rapicault CLA Friend 2005-03-22 14:28:48 EST
file:/Users/mcq/Desktop/eclipse/Eclipse.app/Contents/MacOS/
is Mac exe location.
So the value of user.dir is correct.

We encountered the same problem for the workspace before M5.

A workaround could be to set the debug property in the config.ini of MacOs to be
"../../../.options". This needs to be tried though.
Comment 4 Jeff McAffer CLA Friend 2005-03-22 15:03:33 EST
I believe there is also the option of putting the .options in the workspace.
Comment 5 John Arthorne CLA Friend 2005-03-30 14:29:05 EST
Moving confirmed bugs out of "inbox"
Comment 6 Pascal Rapicault CLA Friend 2005-05-31 16:33:22 EDT
This should be readme'd for 3.1.
Comment 7 Andre Weinand CLA Friend 2005-06-01 03:59:06 EDT
That means we leave it where it is (inside the app bundle)?
Comment 8 Pascal Rapicault CLA Friend 2005-06-01 08:12:10 EDT
Yes
Comment 9 DJ Houghton CLA Friend 2005-06-17 09:21:17 EDT
Mike/Andre where is the expected location for the .options file on the Mac?
Comment 10 Mike Wilson CLA Friend 2005-06-17 10:32:39 EDT
Is Andre, vacationing? I don't know the right answer to this. Also, are there special rules on the Mac, as a 
side-effect of the "must start in first thread" command line option? 

Silenio, can you please coordinate with Pascal/DJ to get the right words for the readme?
Comment 11 Andre Weinand CLA Friend 2005-06-17 10:40:37 EDT
No I'm not vacationing...
I have no problems with having the .options file inside the application bundle.
eclipse.ini is already there and is at least as important.

The bigger issue is the "." in ".options". The contents of the application bundle is invisible by default, so 
making .options invisible too (on Mac) is not really necessary.
Comment 12 DJ Houghton CLA Friend 2005-06-20 11:11:02 EDT
So is there anything to add to the readme here or is this a non-issue?

We already have the "hidden files within hidden folders" issue in other places
in the platform (for instance on *nix we have /.metadata/.plugins, etc) so I
recommend not changing the file name in the Mac case.
Comment 13 Andre Weinand CLA Friend 2005-06-20 11:27:22 EDT
Yes, Mac is Unix. So we should keep this consistent.

Other than that we should document that the .options file must be created inside the application bundle in 
the Eclipse.app/Contents/MacOS directory (like the eclipse.ini).
Comment 14 DJ Houghton CLA Friend 2005-06-20 11:32:36 EDT
Mike, please review for readme and forward to Jim for inclusion.


Location for Debug Options File on Mac OS

If you are running in debug mode on Mac OS, the default location for the
.options file is inside the application bundle in the Eclipse.app/Contents/MacOS
directory (like the eclipse.ini).
Comment 15 Mike Wilson CLA Friend 2005-06-20 11:36:40 EDT
Fine with me. If you're happy with it Andre, I'll add it to the readme.
Comment 16 Andre Weinand CLA Friend 2005-06-20 11:49:51 EDT
I'm happy, thank you both.
Comment 17 DJ Houghton CLA Friend 2005-06-23 10:06:21 EDT
Added to README in build n2005-06-23.
Closing since I don't believe we will be changing the location for lookup.
Note that you can always specify the location with a path arg on the
commandline. (use -debug <path> rather than just -debug)