apache / apache/netbeans

typing a dot in string in a groovy spec file more often then not results in locked up IDE that needs Force Quit

Open
#6,499 4 comments 0 reactions 0 assignees View on GitHub
Groovy kind:bug needs:triage
Dominant language
Java
Stars
3.1k
Forks
935
Avg merge
2d 3h
Merged PRs (30d)
17

Description

### Apache NetBeans version

Apache NetBeans 19

### What happened

typing a dot in string in a groovy spec file more often then not results in locked up IDE that needs Force Quit
consider the following pseudo code snippet from my real Spock groovy file.

when I try to add a dot to complete the sentence of `There is no locator for the given channelId and locatorId' the IDE locks up. and needs to be restarted. Happens 90% of the time.

```
void 'POST /api/v1/x/{channelId}/x/{locatorId}/_unlinkEntitlements - 404 tests'() {
given:

when:

then:

where:
requestData
| requestUri
| notFoundDetailMessage

[['entitlementId': 1]]
| "/api/v1/channels/999999999999999/locators/10/_unlinkEntitlements"
| 'There is no locator for the given channelId and locatorId'

```

### How to reproduce

see above

this was a problem in netbeans 16+ at least.

### Did this work correctly in an earlier version?

No / Don't know

### Operating System

macosx

### JDK

java 17

### Apache NetBeans packaging

Apache NetBeans provided installer

### Anything else

just happend to be 3 times in a row at the exact same spot.

### Are you willing to submit a pull request?

No

Contributor guide

Open the contributing guide

Research direction

No source file, test, or entry point is identified. Reproduce the lock-up in a Groovy spec on macOS with NetBeans 19 and Java 17 using the supplied snippet while typing the period; done means the IDE no longer locks up and needs to be force-quit.

Written by the indexing model from the issue text.

Assessment

Tech stack
groovy, java
Domain
developer-experience, devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.