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 144920 - I18N - intellisense problem with turkish charecter
Summary: I18N - intellisense problem with turkish charecter
Status: VERIFIED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Completion & Templates (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords: I18N, SIMPLEFIX
Depends on:
Blocks:
 
Reported: 2008-08-23 14:22 UTC by tanert24
Modified: 2008-10-06 19:48 UTC (History)
3 users (show)

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 tanert24 2008-08-23 14:22:17 UTC
this problem about intellisense of editor  i am using turkish keyboard and turkish windows vista ,this problem is when
typing minuscule i the intelli sense doesnot work according minuscule i especially the intellisense method start with
capital I if i enter minuscule ı(turkish charecter) it is work but it must work according to minuscule also i tried
netbeans 6,5 php editor html code i can't write <script> if it i write <script> the editor tell me the command un
defined but it is automatiacally write <scrıpt>  but <scrıpt> command not part of html so browser doesnot see
Comment 1 Vitezslav Stejskal 2008-08-25 12:43:04 UTC
I'm sorry, but please let me clarify. There are two 'i' characters - latin 'i' and the turkish minuscule 'i'. I assume
they are not generally interchangeable - so for example 'input' method (starting with latin 'i') is something different
than 'ınput' method (starting with minuscule 'i'). Therefore typing latin 'i' followed by ctrl+space should offer
'input' method in code completion (intellisense), but not the 'ınput' method. And vice versa.

So, do you want code completion to show both methods no matter what type of 'i' you write? In other words do you want us
to make 'i' and 'ı' interchangeable for the purpose of code completion?


> i tried netbeans 6,5 php editor html code i can't write <script> if it i write <script> the editor tell me
> the command undefined but it is automatiacally write <scrıpt>

This is strange and definitely looks like a bug. I'm CCing html and php guys.
Comment 2 Marek Fukala 2008-08-25 13:05:20 UTC
> i tried netbeans 6,5 php editor html code i can't write <script> if it i write <script> the editor tell me
> the command undefined but it is automatiacally write <scrıpt>

I do not understand the problem, reporter please try to clarify it.
Comment 3 tanert24 2008-08-25 13:19:31 UTC
i am also  tried visual studio 2008 for .net framework there is no such a problem.
now  let me explain there are four charecter i, I, İ, ı      for of them actually should has same filter diffrence 
must be when type small i cusor firstly go method which is starts with small i if it is not found or when type second 
charecter filter according to first to but now the ediotor by pass capital I so this is a problem also you should try 
the other charecter  if you look up visual studio  or borland c++ there is no such problem when you compare with them 
you can understand easily
Comment 4 tanert24 2008-08-25 13:20:44 UTC
i thinks you should use turkish keyboard and  unicode system   maybe the problem occur another language  now open a 
php file  and write between body of some where else type <script   the editor does not accept it is automatically 
convert <scrıpt      be careful thisis  not (i) this is (ı)  it must be (i) also genareal problem of intellisense i 
explanied someone i am write this mail below to you
Comment 5 tanert24 2008-08-25 13:24:17 UTC
is it clear?
Comment 6 Marek Fukala 2008-08-25 13:40:09 UTC
I think so. The "<script> issue" was fixed on Aug 8th. User newer build please. For more information see issue #140176.
I am not duplicating this issue since there seems to be more problem reported here.
Comment 7 Vitezslav Stejskal 2008-08-25 13:51:46 UTC
> i am also  tried visual studio 2008 for .net framework there is no such a problem.
ok

> now  let me explain there are four charecter i, I, İ, ı
ok

> for of them actually should has same filter diffrence 
what do you mean?

> must be when type small i cusor firstly go method which is starts with small i
ok, what about methods starting with the other 'i' characters

> if it is not found or when type second charecter filter according to first to but now the ediotor by pass capital I so
> this is a problem

Sorry, I have no idea what you are talking about. Please try to give examples.


> also you should try the other charecter if you look up visual studio or borland c++ there is no such problem
> when you compare with them you can understand easily

Assuming that I have turkish keyboard and run turkish Vista, which I don't. Plus both .Net and Borland are paid
products, which means I will nead a license. 

Actually, could you please try the same in Eclipse or InteliJ Idea. I suspect the problem could be in JDK and presumably
neither .Net nor Borland are java applications. Eclipse may not have the problem either, because it's not using Swing.

Thanks a lot


Comment 8 tanert24 2008-08-25 13:59:02 UTC
in eclipse there is no problem now  i am giving example 
type integ(not type integer juste inte)   and click  ctrl+space  there is some suggestion like Integer 
but in the netbeans type integ  and click ctrl +space there is no such a suggestion
Comment 9 tanert24 2008-08-25 14:00:09 UTC
in eclipse there is no problem now  i am giving example 
type integ(not type integer juste inte)   and click  ctrl+space  there is some suggestion like Integer 
but in the netbeans type integ  and click ctrl +space there is no such a suggestion
Comment 10 tanert24 2008-08-25 14:01:36 UTC
i think this is understardable?
Comment 11 tanert24 2008-08-25 14:01:53 UTC
i think this is understardable?
Comment 12 tanert24 2008-08-25 14:13:10 UTC
this is works the other letter between capital and minuscule except (i,I,İ,ı) it should be when type i,ı,I,İ the 
intellisense should show same  suggestion
Comment 13 Ken Frank 2008-08-25 15:40:20 UTC
am removing incomplete keyword since it seems filer has provided more information.

From what am seeing, I think summary might be - when user is typing in any nb editor,
and they are using characters of their language/locale, that those characters
should be recognized for what they are and not english 'i' or other characters ?

tanert24, does it happen with other file types in nb editors, like java or html
or jsp files ?

ken.frank@sun.com
Comment 14 tanert24 2008-08-25 15:51:47 UTC
yes it happen all file type i think it is general problem of nb
Comment 16 Ken Frank 2008-08-25 16:29:40 UTC
see also:

http://java.sys-con.com/node/46241

netbeans issue 116692
Comment 17 tanert24 2008-08-25 16:42:43 UTC
i look up all report of the reference and the article,this problem is not similar like them, also i just started use
netbeans with 6.0 so i didnt face the previous problem, 
the probmlem is not shown another ide(borland ,.net ,eclipse) on intellisense component when write program i know, i
should consider with dot or dotless (i)  but i saw this problem some small javascript ide and which is not global ide so
 this a bug and should be fix
Comment 18 Vitezslav Stejskal 2008-08-26 09:39:17 UTC
Ken, thanks for the references. This one http://java.sys-con.com/node/46241 was particularly useful.

tanert24, I think I understand the problem now. Thanks for the examples and your patience. I think I can fix it for
java, but we will need to apply the fix in other modules too. AFAIK most of our CompletionProviders simply use the
no-arg String.toUppercase() when filtering completion items by the prefix typed in the editor.
Comment 19 tanert24 2008-08-26 11:16:34 UTC
thanks
Comment 20 Ken Frank 2008-08-26 16:44:03 UTC
Vita,

let me know if other issues are needed and what cat/subcat.
I guess this is a general question, not just i18n - but in cases where there is fix
for something that also is needed in some other areas that implement some common things
themselves, is it always that separate issues are needed vs some communications/alias
to developers about it ?

if its needing to file issues, one challenge for us is to know what categories would need
such issues for some given situation, since so many categories but for any situation
probably just a few of them need the separate issues filed.

ken.frank@sun.com
Comment 21 Vitezslav Stejskal 2008-08-28 13:38:56 UTC
I don't think there is a general guideline. AFAIR people do both, sometimes a single IZ report is passed between modules
that need to fix a common problem, sometimes separate issues are filed and linked to an umbrella issue for tracking.

Anyway, I'll see what CompletionProviders we have and if they need fixing and add the list here. And we may then pass
this issue to others.
Comment 22 Vitezslav Stejskal 2008-09-04 16:39:25 UTC
This should now work in java - http://hg.netbeans.org/main/rev/7610bb12224a. Marek fixed this in HTML (issue #140176)
and presumably all other editors based on HTML. tanert24, what other file types are you using where this is broken? Thanks
Comment 23 Quality Engineering 2008-09-05 05:47:43 UTC
Integrated into 'main-golden', will be available in build *200809050201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/7610bb12224a
User: Vita Stejskal <vstejskal@netbeans.org>
Log: #144920: using Locale.ENGLISH for uppercase/lowercase conversions
Comment 24 Vitezslav Stejskal 2008-09-09 10:16:31 UTC
Ok, I'm marking this FIXED. If the same problem crops up for another language we will sort it out in a similar fashion.
Comment 25 Ken Frank 2008-10-06 19:12:08 UTC
tanert24, with the latest fix, is it ok for you now ?

ken.frank@sun.com
Comment 26 tanert24 2008-10-06 19:21:11 UTC
yes i tried development version of netbeans thank you this fix is successfull
Comment 27 Ken Frank 2008-10-06 19:48:08 UTC
tanert, thanks for trying it and confirming; am verifying it as fixed.

ken.frank@sun.com