Bug 432666 - Hex values are not shown when "Display Hexadecimal Values" is enabled.
Summary: Hex values are not shown when "Display Hexadecimal Values" is enabled.
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 4.4   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2014-04-12 03:54 EDT by Taro Kyo CLA
Modified: 2014-05-12 05:17 EDT (History)
3 users (show)

See Also:


Attachments
No hex values shown, even when option has been enabled for it. (23.11 KB, image/png)
2014-04-12 03:54 EDT, Taro Kyo CLA
no flags Details
Hexa Decimal Display Preferences Page (63.83 KB, image/png)
2014-04-21 02:12 EDT, Sarika Sinha CLA
no flags Details
April 22, 2014: Hex values are still not displayed. (255.87 KB, image/png)
2014-04-22 05:11 EDT, Taro Kyo CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Taro Kyo CLA 2014-04-12 03:54:23 EDT
Created attachment 241913 [details]
No hex values shown, even when option has been enabled for it.

I am unable to get the Variables and Expressions views to display hexadecimal values next to their respective primitive data types.

I have enabled/applied "Display hex values" multiple times, but the option was never executed.

Also, I did a search in Bugzilla, but there are no recent bug reports on this. Just old bug reports that are still "NEW" and "RESOLVED WONTFIX".

Is this never going to be fixed?
Comment 1 Taro Kyo CLA 2014-04-12 04:29:18 EDT
By the way, I'm using Eclipse Luna 4.4 M6 vanilla.
Comment 2 Dani Megert CLA 2014-04-14 05:01:29 EDT
(In reply to Taro Kyo from comment #1)
> By the way, I'm using Eclipse Luna 4.4 M6 vanilla.

I can't reproduce this using
http://download.eclipse.org/eclipse/downloads/drops4/S-4.4M6-201403061200/
and this example:
public class Test {
	public static void main(String[] args) {
		int i= 1;
		System.out.println(i);
	}
}
Comment 3 Sarika Sinha CLA 2014-04-14 07:10:40 EDT
Works fine with 
Version: Luna (4.4)
Build id: I20140408-1645
Comment 4 Taro Kyo CLA 2014-04-19 09:26:11 EDT
Whaaat??

Can any of you tell me the steps to enable the hex value display? Because I'm still stuck messing around with the settings/preferences, and I just can't seem to get it to show it up.

Also, is it possible that there's something amiss from the attached image above? Or there's something that you need, in order to point out my (highly likely) mistakes, based on your posts?

Thanks in advance.
Comment 5 Taro Kyo CLA 2014-04-19 09:41:25 EDT
I just realized.

When telling others that you're using a nightly build of Eclipse, I thought you just let people know you're using XXX version, or YYY version MZZZ milestone.

Didn't realize that I also have to include the build number that is below the "version" number.
Comment 6 Sarika Sinha CLA 2014-04-21 02:12:34 EDT
Created attachment 242154 [details]
Hexa Decimal Display Preferences Page

Image shows the preference Page where we can set the Primitive display settings
Comment 7 Taro Kyo CLA 2014-04-22 05:11:35 EDT
Created attachment 242173 [details]
April 22, 2014: Hex values are still not displayed.

But that leads me back to where I was in the first place.

https://bugs.eclipse.org/bugs/attachment.cgi?id=241913

I have those three checkmarks ticked/enabled/checked, clicked Apply numerous times, and still nothing is showing up. Did refreshing by F5ing. Did restarts. Nothing.

I tried running Eclipse 4.4M6 Build ID: 20140312-2027 (vanilla, no plugins etc.) in administrator mode, and that didn't work either. This was supposedly fixed before M6 has been released for beta testing.
Comment 8 Dani Megert CLA 2014-05-07 03:56:25 EDT
Tried again with our latest build:
http://download.eclipse.org/eclipse/downloads/drops4/S-4.4M7-201405010200/
and a new workspace using the snippet from comment 2: works fine.

If it still doesn't work for you, then please provide more detailed steps that start with M7 and a new workspace.
Comment 9 Taro Kyo CLA 2014-05-11 00:16:04 EDT
Steps I did:

1. Download Eclipse 4.4M7 that was linked above by Dani Megert on Comment #8.
2. Extract "eclipse" folder to new location.
3. Create new workspace.
4. Create new Java project with default settings (by pressing Finish immediately).
5. Copy/paste the code given in Comment #2.
6. Set hex values to be displayed in the Preferences settings. Have all 3 options ticked to "checked/marked".
7. Set breakpoint on line 6, assuming the code is exactly the same as Comment #2.
8. Debug.
9. Change perspective to "Debug" automatically so that "Variables" view is shown.
10. Sad that "Expressions" cannot view hex values.
11. Confirmed that hex values are now displaying.
12. Also sad that I can't link to Imgur to share the screenshot without needing to attach an attachment just for the sake of sharing a screenshot.
13. Start pondering about why there exists a compatibility break with an old workspace generated from Eclipse 3.7 Helios.


This bug is marked RESOLVED.
Comment 10 Taro Kyo CLA 2014-05-11 00:18:13 EDT
Dang, can't edit the post. 

Step 10 is wrong. You need to add Integer.toHexString() in order to view the value in hex value form in Expressions.

Again, this is marked as RESOLVED FIXED.
Comment 11 Taro Kyo CLA 2014-05-11 00:32:20 EDT
For future users who can't get hex values to display:

To fix this problem, delete the .metadata folder in your workspace. This will reset all preferences and will allow Eclipse to recreate correct metadata for your workspace. After that, just reimport existing projects into your workspace, and you're done!