This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 184052 - Incorrect smart quote behavior.
Summary: Incorrect smart quote behavior.
Status: NEW
Alias: None
Product: ruby
Classification: Unclassified
Component: Editing (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: issues@ruby
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-13 15:12 UTC by dlikhten
Modified: 2011-01-28 20:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dlikhten 2010-04-13 15:12:16 UTC
This issue appears to by limited to windows xp, however I cannot confirm this as I only have 1 windows xp computer to test on.


I've been having problems with netbeans 6.8/6.9 Ruby development because of the smart quote behaviors.

This seems to be a problem on my Windows XP netbook, but I have no other computers to see if this is an XP error only.

Lets say I want to type the following text in ruby:

The "quick" brown "fox" jumps over the lazy dog.
Then modify it to look like this
The "quick" brown "fox" jumps over the "lazy" dog.
By just adding quotes.

----------------------------
The text comes out in the following way when typing that I wrote above.
The "
quick" " brown "
fox" " jumps over the lazy dog.
----------------------------

It appears the " invokes a behavior in which it tries to wrap the next character with quotes.

Moving on to the second case where the | represents my cursor.

The "quick" brown "fox" jumps over the |lazy dog.

If I type " the expected result is  -- The "quick" brown "fox" jumps over the "|lazy dog.
but instead i get -- The "quick" brown "fox" jumps over the l"|azy dog.

Some more weird cases that are not completely consistent behavior (_ = space, | = cursor)
----------------------------
render :partial =>|_

type " and the following output is produced (note the tailing _)

render :partial => "|" # perfect behavior

----------------------------

render :partial => _|

>> typing " produced

render :partial => _
"
----------------------------

There are also issues with highlighting text and typing ". Sometimes the text comes out as t"ext" and sometimes "text" and sometimes t"ext.


I tried uninstalling netbeans and removing all configuration files in the .netbeans directory of my profile, nothing helps. On windows 7 the same editor and setup and even repository has absolutely no problem, the quotes behave as expected creating the smart closing quote where appropriate, wrapping when appropriate, etc.

Running JDK 7, 6.8 Ruby / 6.9 M1 Ruby packages.