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.
Summary: | code completion does not work anymore in 7.1 | ||
---|---|---|---|
Product: | java | Reporter: | feeela |
Component: | Editor | Assignee: | Dusan Balek <dbalek> |
Status: | REOPENED --- | ||
Severity: | normal | CC: | matthias42, mmirilovic |
Priority: | P3 | ||
Version: | 7.1 | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | ENHANCEMENT | Exception Reporter: | |
Attachments: | Example PHP script |
Description
feeela
2012-01-18 16:24:34 UTC
I don't see anything somehow connected with PHP. 3 cases are java/html-like...one is PHP but without reproducible test case. Provide some reproducible test case in PHP and then reopen. Thanks. Hey, I was one of the forum posters - I would have sworn, that it worked in the past, but testing again I failed. So please excuse the noise so far. So question remains: Could a code completion be realized, that works by assuming a default version or that produces a code completion for all supported php versions? I changed the bug type to ENHANCEMENT and returned priority to default P3 and reopened it - this should reflect the situation better. Feel free to close this, if you disagree! @obrejla: It seems, that the code completion not working has something to do with caching within Netbeans. Workaround: If I delete the whole cache-folder BEFORE launching Netbeans, the code completion works until I restart Netbeans. I need to "rm -rf ~/.netbeans/7.1/var/cache/" every time before opening Netbeans. I've used Netbeans 7.0.1 and 7.1 in the last few weeks and had the problem in both versions. I didn't have those problem on my Laptop, running Netbeans 6.9. Same for the Java editor. For example: I have 2 clases: UsuarioKey.java and Usuario. Then i write Us->ctrl+space and show only the class 'Usuario', i write the entire name 'UsuarioKey' and the editor don't recognize, then i use alt+shift+f to auto import and UsuarioKey still unrecognized, i need to import the class manually. It happens whith any class called the same way: Persona and PersonaKey; Documento and DocumentoKey... etc. I'll switch back to 7.0.1 Same for the Java editor. For example: I have 2 clases: UsuarioKey.java and Usuario. Then i write Us->ctrl+space and show only the class 'Usuario', i write the entire name 'UsuarioKey' and the editor don't recognize, then i use alt+shift+f to auto import and UsuarioKey still unrecognized, i need to import the class manually. It happens whith any class called the same way: Persona and PersonaKey; Documento and DocumentoKey... etc. I'll switch back to 7.0.1 Created attachment 117279 [details]
Example PHP script
PHP auto completion & "Go to Declaration" only works for the classes/files included in PHP and not for the user written files/libraries.
Currently Netbeans 7.1's auto completion does no show anything for either my class, functions or variables that I'm using in that example PHP script. The Go to Declaration does not work for my example PHP script either.
So PHP would be able to auto complete (ctrl+space) 'mysql_', but not 'MyTest'.
I have already deleted the /var/cache folder and it did not change anything.
I've just downloaded and installed Netbeans 7.1.1 and PHP auto completion and Go to Declaration works again! |