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 242390 - Auto-completion does not work in some situation
Summary: Auto-completion does not work in some situation
Status: RESOLVED WONTFIX
Alias: None
Product: editor
Classification: Unclassified
Component: CSL (API & infrastructure) (show other bugs)
Version: 7.4
Hardware: Macintosh Mac OS X
: P3 normal with 1 vote (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-27 00:28 UTC by kyryan68
Modified: 2016-07-07 07:28 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Autocomplete issue (162.95 KB, image/png)
2014-02-27 00:28 UTC, kyryan68
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kyryan68 2014-02-27 00:28:21 UTC
Created attachment 145618 [details]
Autocomplete issue

Running Mac OS X Mavericks, the issue is present on both 7.4 and 8 BETA version.

In one of my project, none of the php completion works
* No completion with ctrl+space for class methods
* No class completion when trying to extends a class from another one
* The usual php function are shown through the autocomplete dropdown list

Tried :
* Delete the full project and create it again (problem still there)
* Delete the all files except my test file (problem still there)
* Try in another project, work fine

See attached files for examples.
Comment 1 Ondrej Brejla 2014-02-27 08:48:30 UTC
Can't do anything without reproducible test case (for me it works properly). If it is reproducible, attach a sample project. Thanks.
Comment 2 kyryan68 2014-02-27 09:21:34 UTC
I have only two projects which have the bug. And I'm not able to reproduce the bug  by creating a completely new project, only if I create a project from the same source.

If I copy the source folder elsewhere, and create the project from here, the bug does not appears again. It's weird, but can close it, I'm going to create a new bug report as soon as I find a simple way to reproduce it.

Thank you, wish you a nice day,

Best regards.
Comment 3 kyryan68 2014-02-27 09:38:07 UTC
Hello again, I think I got it.

I have a folder named "Iabsis privé" in my home folder : "/Users/gillesh/Documents/Iabsis privé". If I create any project into that directory and its subdirectory, the autocompletion doesn't work. If I export the project, the project.properties file contain the following :

include.path=${php.global.include.path}
php.version=PHP_53
source.encoding=UTF-8
src.dir=../../Documents/Iabsis prive\u0301/subversion/test
tags.asp=false
tags.short=false
web.root=.


I think it's a bug with folder name encoding "é" seems to be the problem. Maybe it's linked to the utf8 encoding format used by apple which is differents to the windows/unix format ?
Comment 4 Ondrej Brejla 2014-02-27 10:20:27 UTC
Imho not editor issue, probably problem will be more general. Can you test if CC works for other file types? I think CSS, JavaScript and such. Thanks.
Comment 5 kyryan68 2014-02-27 10:33:40 UTC
I tried with this html file :

<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <title>TODO supply a title</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width">
        <style>
            .test {
                color: red;
            }
        </style>
    </head>
    <body class="">
        <div>TODO write content</div>
    </body>
</html>


If I go into the <body class=""> class' tag and hit ctrl+space :
* In a project that is into the folder with accent, there's nothing in the autocompletion dropdown list.
* In a project which has not any accent in its target folder, the class "test" is shown in the dropdown list. 

I confirm it doesn't affect php autocompletion only.
Comment 6 Ondrej Brejla 2014-02-27 10:36:42 UTC
Thanks, reassigning.
Comment 7 Martin Balin 2016-07-07 07:28:12 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss