Skip to content

Javascript auto-complete for class with static initializator #9339

@carross-tlhuillier

Description

@carross-tlhuillier

Apache NetBeans version

Apache NetBeans 29

What happened

When I used NetBeans 27 everything worked then one day when I accept an auto-complete in Javascript code the part I typed is deleted and nothing else happend.
So I tried to do a clean install of NetBeans 29 open a single file and the problem is the same.
I have isolate the problem to class with static initializator.

messages.log

Language / Project Type / NetBeans Component

Javascript

How to reproduce

test.html

  1. Open this file with Netbeans
  2. Place cursor in #testFunctionB then write this.#tes
  3. Accept the first auto-complete suggestion

Did this work correctly in an earlier version?

No / Don't know

Operating System

Linux

JDK

openjdk-21-jre

Apache NetBeans packaging

Apache NetBeans binary zip

Anything else

No response

Are you willing to submit a pull request?

No

Metadata

Metadata

Labels

JavaScript[ci] enable web job and extra JavaScript tests (webcommon/javascript2.editor)kind:bugBug report or fix

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions