apache / netbeans

Apache NetBeans
https://netbeans.apache.org/
Apache License 2.0
2.62k stars 841 forks source link

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

Open mkleint opened 11 months ago

mkleint commented 11 months ago

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:
<prereq>

        when:
        <test call>

        then:
<asserts>
        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

neilcsmith-net commented 11 months ago

Can you check the messages.log file and see if there's anything relevant? Please upload the file or include a snippet here.

mkleint commented 11 months ago

deleted the old messages files, restarted the IDE, added the dot for a short time a please wait popup appeared then disappeared and the IDE locked up. (Swing?) nothing in the log file, attached a thread dump dump.log

mkleint commented 10 months ago

@neilcsmith-net how do I remove the pending-response tag. Or can only devs do it>

mkleint commented 1 month ago

still happening in NB 22, something is running background stuff in Swing thread.