
| View previous topic :: View next topic |
| Author |
Message |
Chauk-Mean Posted via mailing list.
|
Posted: Fri Jun 26, 2009 3:14 pm Post subject: NB6.7RC3 : bad cursor placement with ruby-1.9.1 |
|
|
Hi,
I have the following basic script :
---------------
# To change this template, choose Tools | Templates
# and open the template in the editor.
a = {:a => 'x', :b => 'z'}
def foo(param)
puts param
end
v = foo(a)
---------------
1/ If I use the built-in JRuby-1.2.0 or a Ruby-1.8 platform (1.8.6-p369) as
the project platform :
- When I click on one of the elements (a, foo, or v) in the Navigator, the
cursor is placed correctly at the appropriate location in the source file.
2/ Now if I use a Ruby-1.9 platform (1.9.1-p129) :
- When I click on one of the elements in the Navigator, the cursor is placed
at a wrong location in the source file.
Am I missing something ?
If not, I hope that this will be corrected in the 6.7 final release.
Cheers.
Chauk-Mean.
--
View this message in context: http://www.nabble.com/NB6.7RC3-%3A-bad-cursor-placement-with-ruby-1.9.1-tp24222083p24222083.html
Sent from the NetBeans Ruby Users mailing list archive at Nabble.com. |
|
| Back to top |
|
 |
Chauk-Mean Posted via mailing list.
|
Posted: Fri Jun 26, 2009 4:18 pm Post subject: NB6.7RC3 : bad cursor placement with ruby-1.9.1 |
|
|
Chauk-Mean wrote:
| Quote: |
2/ Now if I use a Ruby-1.9 platform (1.9.1-p129) :
- When I click on one of the elements in the Navigator, the cursor is
placed at a wrong location in the source file.
|
The problem also occurs with the built-in JRuby-1.2.0 platform if Ruby-1.9
compatibility mode is enabled (-Djruby.compat.version=RUBY1_9 is set in the
JVM Args text field of the project's properties).
Chauk-Mean.
--
View this message in context: http://www.nabble.com/NB6.7RC3-%3A-bad-cursor-placement-with-ruby-1.9.1-tp24222083p24223198.html
Sent from the NetBeans Ruby Users mailing list archive at Nabble.com. |
|
| Back to top |
|
 |
Erno Mononen Posted via mailing list.
|
Posted: Mon Jun 29, 2009 8:36 pm Post subject: NB6.7RC3 : bad cursor placement with ruby-1.9.1 |
|
|
Hi Chauk-Mean,
I reproduced the problem, possibly the 1.9 parser gives incorrect
locations for the new 1.9 hash syntax. I filed
http://www.netbeans.org/issues/show_bug.cgi?id=167815 for this,
unfortunately it is too late to fix for 6.7 final, but possibly can be
fixed for 6.7 patch1.
Thanks for reporting this,
Erno
Chauk-Mean wrote:
| Quote: | Hi,
I have the following basic script :
---------------
# To change this template, choose Tools | Templates
# and open the template in the editor.
a = {:a => 'x', :b => 'z'}
def foo(param)
puts param
end
v = foo(a)
---------------
1/ If I use the built-in JRuby-1.2.0 or a Ruby-1.8 platform (1.8.6-p369) as
the project platform :
- When I click on one of the elements (a, foo, or v) in the Navigator, the
cursor is placed correctly at the appropriate location in the source file.
2/ Now if I use a Ruby-1.9 platform (1.9.1-p129) :
- When I click on one of the elements in the Navigator, the cursor is placed
at a wrong location in the source file.
Am I missing something ?
If not, I hope that this will be corrected in the 6.7 final release.
Cheers.
Chauk-Mean.
|
|
|
| Back to top |
|
 |
Chauk-Mean Posted via mailing list.
|
Posted: Fri Jul 03, 2009 11:59 am Post subject: NB6.7RC3 : bad cursor placement with ruby-1.9.1 |
|
|
Hi Erno,
Erno Mononen wrote:
| Quote: |
Hi Chauk-Mean,
I reproduced the problem, possibly the 1.9 parser gives incorrect
locations for the new 1.9 hash syntax. I filed
http://www.netbeans.org/issues/show_bug.cgi?id=167815 for this,
unfortunately it is too late to fix for 6.7 final, but possibly can be
fixed for 6.7 patch1.
|
Just a little update.
In the sample code, the syntax for the hash is the conventional one and not
the new 1.9 one.
Moreover, if you delete the line containing the hash, the cursor placement
issue is still there.
So, this is a general issue if the parser is in 1.9 compatibility mode.
Cheers.
Chauk-Mean.
--
View this message in context: http://www.nabble.com/NB6.7RC3-%3A-bad-cursor-placement-with-ruby-1.9.1-tp24222083p24322001.html
Sent from the NetBeans Ruby Users mailing list archive at Nabble.com. |
|
| Back to top |
|
 |
Erno Mononen Posted via mailing list.
|
Posted: Fri Jul 03, 2009 12:19 pm Post subject: NB6.7RC3 : bad cursor placement with ruby-1.9.1 |
|
|
Chauk-Mean wrote:
| Quote: | Hi Erno,
Erno Mononen wrote:
| Quote: | Hi Chauk-Mean,
I reproduced the problem, possibly the 1.9 parser gives incorrect
locations for the new 1.9 hash syntax. I filed
http://www.netbeans.org/issues/show_bug.cgi?id=167815 for this,
unfortunately it is too late to fix for 6.7 final, but possibly can be
fixed for 6.7 patch1.
|
Just a little update.
In the sample code, the syntax for the hash is the conventional one and not
the new 1.9 one.
|
Ah, yes of course, I was being sloppy -- there were some issues with the
1.9 hash syntax in the parser so I just carelessly lumped this into the
same category.
| Quote: | Moreover, if you delete the line containing the hash, the cursor placement
issue is still there.
So, this is a general issue if the parser is in 1.9 compatibility mode.
|
Yes, that seems to be the case - thanks for the additional info. I
haven't yet got to look at the problem in details, hopefully next week.
Cheers,
Erno
| Quote: | Cheers.
Chauk-Mean.
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|
|
|
|