Discussion:
Code completion not working right on NetBeans 8
dhinged
2014-04-16 22:35:48 UTC
Permalink
I installed NetBeans 8 and now Javascript braces and other things don't auto-complete. I'm seeing nothing in settings to change this; also it double-indents after function lines instead of single like normal.
dhinged
2014-04-19 18:20:38 UTC
Permalink
Can somebody verify this please? This seems like a bug as there is no place to change this behavior.
Vitaliy
2014-04-20 14:17:53 UTC
Permalink
Java scirpt code formatter's rules work only in javascript files(*.js). It is not correct to put your javascript code in html files. Auto complete after fuctions and if statements works correcly.
Geertjan Wielenga
2014-04-21 10:42:58 UTC
Permalink
Post by dhinged
Can somebody verify this please? This seems like a bug as there is no place to change this behavior.
No one can check "now Javascript braces and other things don't
auto-complete" because what we need to have is a step by step procedure
describing what it is that is not working for you, e.g., what does "and
other things" mean?

Gj
dhinged
2014-04-24 05:33:32 UTC
Permalink
Post by Vitaliy
Java scirpt code formatter's rules work only in javascript files(*.js). It is not correct to put your javascript code in html files. Auto complete after fuctions and if statements works correcly.
I didn't write this code originally I'm just adding to it (Magento plugin), sorry it's not up to standard. It's not unusual to have Javascript in .html (or .phtml) files, and NetBeans should be able to handle function end-brace auto-complete along with all the other auto-complete things it does, and it can handle code in multiple formats perfectly well, just like PHP in an .html file.
dhinged
2014-04-24 05:35:34 UTC
Permalink
]No one can check "now Javascript braces and other things don't
auto-complete" because what we need to have is a step by step procedure
describing what it is that is not working for you, e.g., what does "and
other things" mean?
Gj
It's as obvious as you can imagine; create a .js or .html file and write a Javascipt function (in a proper script tag in the .html file of course) and watch it not auto-complete the end brace after typing the first brace of the function like it does with PHP.

I'd sure like to know how to fix it or have it reported as a bug.
Glenn Holmer
2014-04-24 16:40:21 UTC
Permalink
Post by dhinged
I'd sure like to know how to fix it or have it reported as a bug.
https://netbeans.org/community/issues.html
--
Glenn Holmer (Linux registered user #16682)
"After the vintage season came the aftermath -- and Cenbe."
dhinged
2014-04-25 02:54:51 UTC
Permalink
I noticed on some files where it was working it suddenly stopped so I will have to track when it does to find a pattern.
Glenn Holmer
2014-04-25 19:57:37 UTC
Permalink
Post by dhinged
I noticed on some files where it was working it suddenly stopped so I
will have to track when it does to find a pattern.
That's the hardest part of filing a bug -- finding a reproducible test
case. But the developers can't do without it, or they will be guessing.
--
Glenn Holmer (Linux registered user #16682)
"After the vintage season came the aftermath -- and Cenbe."
Loading...