Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Disappearing Text with Tabs & Quotes?
Disappearing Text with Tabs & Quotes? [message #251647] Thu, 28 February 2008 00:08 Go to next message
Brian Elliott is currently offline Brian ElliottFriend
Messages: 10
Registered: July 2009
Junior Member
A line of text in my Eclipse 3.3.1.1 or 3.3 or 3.2.2 editor will
essentially disappear if a tab precedes it or the line contains a double
quote character. I can even key in text and then a double quote and the
whole line disappears.

The text that disappears is actually still there but unreadable (the text
foreground is the same as the background color). And if I highlight the
line, a highlight box appears around the invisible text and tool tip help
will popup with information.

I have tried everything I can think of from trying different users and
different versions of eclipse and changing my environment variables. This
only happens on one of my servers but not the other ones.

Any help would be greatly appreciated.
Re: Disappearing Text with Tabs & Quotes? [message #251651 is a reply to message #251647] Thu, 28 February 2008 00:43 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wharley.bea.com

"Brian Elliott" <briandavidelliott@gmail.com> wrote in message
news:80179d995023ae4dbf75cf4471dd23a8$1@www.eclipse.org...
>A line of text in my Eclipse 3.3.1.1 or 3.3 or 3.2.2 editor will
>essentially disappear if a tab precedes it or the line contains a double
>quote character. I can even key in text and then a double quote and the
>whole line disappears.
> The text that disappears is actually still there but unreadable (the text
> foreground is the same as the background color). And if I highlight the
> line, a highlight box appears around the invisible text and tool tip help
> will popup with information.
> I have tried everything I can think of from trying different users and
> different versions of eclipse and changing my environment variables. This
> only happens on one of my servers but not the other ones.


Have you tried resetting defaults in the editor font & color settings
dialog?

Does this happen only in one workspace, or in all workspaces (e.g., if you
create a brand new workspace does the same thing happen)?
Re: Disappearing Text with Tabs & Quotes? [message #251655 is a reply to message #251651] Thu, 28 February 2008 05:54 Go to previous messageGo to next message
Brian Elliott is currently offline Brian ElliottFriend
Messages: 10
Registered: July 2009
Junior Member
Walter Harley wrote:

> Have you tried resetting defaults in the editor font & color settings
> dialog?

Yes I have tried the Restore Defaults option at every level on the options
dialog including the font colors and the autocomplete areas. Even at the
highest level of "General".

> Does this happen only in one workspace, or in all workspaces (e.g., if you
> create a brand new workspace does the same thing happen)?

This happens in all workspaces - existing as well as brand new ones that
have not existed previously.

I have also tried using the -clean option at startup.
Re: Disappearing Text with Tabs & Quotes? [message #251667 is a reply to message #251655] Thu, 28 February 2008 16:15 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

Brian Elliott wrote:
> Walter Harley wrote:
>
>> Have you tried resetting defaults in the editor font & color settings
>> dialog?
>
> Yes I have tried the Restore Defaults option at every level on the
> options dialog including the font colors and the autocomplete areas.
> Even at the highest level of "General".
>
>> Does this happen only in one workspace, or in all workspaces (e.g., if
>> you create a brand new workspace does the same thing happen)?
>
> This happens in all workspaces - existing as well as brand new ones that
> have not existed previously.
>
> I have also tried using the -clean option at startup.
>
>
Can you post a screenshot somewhere for us to see?

Eric
Re: Disappearing Text with Tabs & Quotes? [message #251671 is a reply to message #251667] Thu, 28 February 2008 17:45 Go to previous messageGo to next message
Brian Elliott is currently offline Brian ElliottFriend
Messages: 10
Registered: July 2009
Junior Member
You bet. I am not sure how to attach a file so here it is on the Web:

http://www.unpluggedsystems.com/images/disappearing.gif
Re: Disappearing Text with Tabs & Quotes? [message #251673 is a reply to message #251667] Thu, 28 February 2008 21:18 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

Brian Elliott wrote:
>> Walter Harley wrote:
>>
>>> Have you tried resetting defaults in the editor font & color settings
>>> dialog?
>>
>> Yes I have tried the Restore Defaults option at every level on the
>> options dialog including the font colors and the autocomplete areas.
>> Even at the highest level of "General".
>>
>>> Does this happen only in one workspace, or in all workspaces (e.g.,
>>> if you create a brand new workspace does the same thing happen)?
>>
>> This happens in all workspaces - existing as well as brand new ones
>> that have not existed previously.
>>
>> I have also tried using the -clean option at startup.

Does the same thing happen if you disable folding in the preferences?

Also, what platform are you on and what Eclipse version?

Eric
Re: Disappearing Text with Tabs & Quotes? [message #251676 is a reply to message #251673] Thu, 28 February 2008 21:41 Go to previous messageGo to next message
Brian Elliott is currently offline Brian ElliottFriend
Messages: 10
Registered: July 2009
Junior Member
Eric Rizzo wrote:
> Does the same thing happen if you disable folding in the preferences?

No change when I turn the folding preferences off. :(
I also turned off the typing preferences to automatically close Strings
and all tab/tabbing preferences.

> Also, what platform are you on and what Eclipse version?

It happens in these 3 different versions of Eclipse: 3.2.2, 3.3.1.1 and
3.3.
Re: Disappearing Text with Tabs & Quotes? [message #251717 is a reply to message #251676] Fri, 29 February 2008 16:06 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

Brian Elliott wrote:
> Eric Rizzo wrote:
>> Does the same thing happen if you disable folding in the preferences?
>
> No change when I turn the folding preferences off. :( I also turned off
> the typing preferences to automatically close Strings and all
> tab/tabbing preferences.
>
>> Also, what platform are you on and what Eclipse version?
>
> It happens in these 3 different versions of Eclipse: 3.2.2, 3.3.1.1 and
> 3.3.
>

What OS?
I think this has got to be something about your window manager settings,
so knowing what OS (and window manager / GUI toolkit if on Linux) might
give some clues.

Eric
Re: Disappearing Text with Tabs & Quotes? [message #251729 is a reply to message #251717] Fri, 29 February 2008 18:30 Go to previous messageGo to next message
Brian Elliott is currently offline Brian ElliottFriend
Messages: 10
Registered: July 2009
Junior Member
Eric Rizzo wrote:
> What OS?
> I think this has got to be something about your window manager settings,
> so knowing what OS (and window manager / GUI toolkit if on Linux) might
> give some clues.

Sorry - here is the OS info:

Linux 2.6.18.2-34-default i686 / openSUSE 10.2 (i586)

For the Window Manager/GUI toolkit, I was able to track down this info:

DEFAULT_WM="kde"
X Window System Version 6.9.0
GDK is also used.

I have been out of the details of the X Window System and Window Managers
and GUI toolkit technologies for about 10 years so I hope this is what you
are asking for.
Re: Disappearing Text with Tabs & Quotes? [message #251735 is a reply to message #251729] Fri, 29 February 2008 19:55 Go to previous messageGo to next message
Brian Elliott is currently offline Brian ElliottFriend
Messages: 10
Registered: July 2009
Junior Member
Brian Elliott wrote:
> Linux 2.6.18.2-34-default i686 / openSUSE 10.2 (i586)

After further investigation, I found that this problem only occurs for
files with the .java extension and not for an untitled text file.
Re: Disappearing Text with Tabs & Quotes? [message #251761 is a reply to message #251735] Sat, 01 March 2008 17:17 Go to previous messageGo to next message
Brian Elliott is currently offline Brian ElliottFriend
Messages: 10
Registered: July 2009
Junior Member
Here is a video clip of the problem as I key in text and then a double
quote character. The line will then disappear:

http://www.youtube.com/watch?v=xPcvB27jgiE

It is a bit shaky and blurry but I think it demonstrates what is happening.
Re: Disappearing Text with Tabs & Quotes? [message #251840 is a reply to message #251761] Mon, 03 March 2008 16:19 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

Brian Elliott wrote:
> Here is a video clip of the problem as I key in text and then a double
> quote character. The line will then disappear:
>
> http://www.youtube.com/watch?v=xPcvB27jgiE
>
> It is a bit shaky and blurry but I think it demonstrates what is happening.
>

I forget if you've already looked into this, but...

If you go to Preferences > Java > Editor > Syntax Coloring, do you see
the same kind of display Strings (under the Java branch of the tree
there)? There is a line of code in the Preview pane that reads:
@SuppressWarnings(value="all")

Does that line look the same as in your Java editor? Can you make
adjustments to those settings to get things looking better?

Eric
Re: Disappearing Text with Tabs & Quotes? [message #251844 is a reply to message #251840] Mon, 03 March 2008 19:48 Go to previous messageGo to next message
Brian Elliott is currently offline Brian ElliottFriend
Messages: 10
Registered: July 2009
Junior Member
Eric Rizzo wrote:
> If you go to Preferences > Java > Editor > Syntax Coloring, do you see
> the same kind of display Strings (under the Java branch of the tree
> there)? There is a line of code in the Preview pane that reads:
> @SuppressWarnings(value="all")
> Does that line look the same as in your Java editor? Can you make
> adjustments to those settings to get things looking better?

I found the preview and the lines are messed up there too:

http://www.unpluggedsystems.com/images/preview.gif

And changing the settings does not help but if go into the "Formatter"
settings under "Code Style" and create a new Profile and change the "Tab
policy" to "Spaces only", the preview changes and the text goes from
non-display to appearing:

http://www.unpluggedsystems.com/images/preview2.gif

The only thing is I can't get this profile to apply to my messed up code
even though I change the settings in "Configure Project Specific Settings"
and assign the new profile to the messed up project.

This doesn't explain the problem with the double quotes but does convert
the tabs to spaces to workaround the tab problem. I don't see double
quotes in my preview window anywhere (as you suggested) to see if changing
the settings effects the double quotes. If I do pick "Apply" after
changing the settings the double quote problem still exists in my editor.
Re: Disappearing Text with Tabs & Quotes? [message #251848 is a reply to message #251844] Tue, 04 March 2008 15:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

Brian Elliott wrote:
> Eric Rizzo wrote:
>> If you go to Preferences > Java > Editor > Syntax Coloring, do you see
>> the same kind of display Strings (under the Java branch of the tree
>> there)? There is a line of code in the Preview pane that reads:
>> @SuppressWarnings(value="all")
>> Does that line look the same as in your Java editor? Can you make
>> adjustments to those settings to get things looking better?
>
> I found the preview and the lines are messed up there too:
>
> http://www.unpluggedsystems.com/images/preview.gif
>
> And changing the settings does not help but if go into the "Formatter"
> settings under "Code Style" and create a new Profile and change the "Tab
> policy" to "Spaces only", the preview changes and the text goes from
> non-display to appearing:
>
> http://www.unpluggedsystems.com/images/preview2.gif
>
> The only thing is I can't get this profile to apply to my messed up code
> even though I change the settings in "Configure Project Specific
> Settings" and assign the new profile to the messed up project.
>
> This doesn't explain the problem with the double quotes but does convert
> the tabs to spaces to workaround the tab problem. I don't see double
> quotes in my preview window anywhere (as you suggested) to see if
> changing the settings effects the double quotes. If I do pick "Apply"
> after changing the settings the double quote problem still exists in my
> editor.
>

The formatter does not automatically re-format all your code, so to see
its affect you'd have to explicitly do that (right-click on a project or
package or class and choose Source > Format).
But as you say that is only a work-around (replacing tabs with spaces).
At this point I still think this is related to your window manager
settings. My last suggestion is to file a bug report that includes all
the details of your system (OS and version, window manager and version,
Eclipse version, JVM version) and attach the screenshot above
(http://www.unpluggedsystems.com/images/preview.gif) as well as the ones
you sent earlier of your actual code.
A bug report is the real way to get an Eclipse developer's attention.

http://bugs.eclipse.org/bugs

Hope this helps,
Eric
Re: Disappearing Text with Tabs & Quotes? [message #251852 is a reply to message #251848] Tue, 04 March 2008 16:33 Go to previous messageGo to next message
Brian Elliott is currently offline Brian ElliottFriend
Messages: 10
Registered: July 2009
Junior Member
Eric Rizzo wrote:
> A bug report is the real way to get an Eclipse developer's attention.
> http://bugs.eclipse.org/bugs
> Hope this helps,
> Eric

I really appreciate you taking the time, Eric. :) I will file a bug report.
Re: Disappearing Text with Tabs & Quotes? [message #252034 is a reply to message #251852] Fri, 14 March 2008 17:52 Go to previous messageGo to next message
Brian Elliott is currently offline Brian ElliottFriend
Messages: 10
Registered: July 2009
Junior Member
We finally got a resolution to this issue! The problem is related to GTK
and the SUSE release of cairo. We found the same problem but with tabs
only in GEdit. An IBM developer responded to bug report on the Eclipse
Bugzilla system with exactly what the problem was. Here are some details
and links:

We got this problem fixed by reverting to cairo-1.0.2-27.16 which is
located on
the SLES10SP1 installation media and could be installed using YaST

Novell claims that fix will be released with the next update of the package
cairo. The problem is caused by the package cairo-1.0.2-27.21

http://www.novell.com/support/search.do?cmd=displayKC&do cType=kc&externalId=3481294&sliceId=SAL_Public&d ialogID=59024181&stateId=0%200%2059022203

Here is my bug report:
https://bugs.eclipse.org/bugs/process_bug.cgi

Thanks for the recommendation to submit a Bugzilla bug report!
Re: Disappearing Text with Tabs & Quotes? [message #252035 is a reply to message #252034] Fri, 14 March 2008 20:12 Go to previous message
Eclipse UserFriend
Originally posted by: wharley.bea.com

"Brian Elliott" <briandavidelliott@gmail.com> wrote in message
news:4825cef7c7837d91facd246fed153bc3$1@www.eclipse.org...
>
> Here is my bug report:
> https://bugs.eclipse.org/bugs/process_bug.cgi

Hi, Brian. Looks like the wrong URL got copied there. Can you post the bug
number?
Previous Topic:How to make compiler ignore certain subprojects?
Next Topic:resource change events with jobs
Goto Forum:
  


Current Time: Thu Nov 07 13:23:20 GMT 2024

Powered by FUDForum. Page generated in 0.05383 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top