[
https://issues.apache.org/jira/browse/NETBEANS-6328?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Bien closed NETBEANS-6328.
----------------------------------
Fix Version/s: 13
Resolution: Fixed
> IllegalArgumentException caused by FoldManagerImpl in LSP client
> ----------------------------------------------------------------
>
> Key: NETBEANS-6328
> URL: https://issues.apache.org/jira/browse/NETBEANS-6328
> Project: NetBeans
> Issue Type: Bug
> Components: lsp
> Affects Versions: 12.6
> Environment: Windows and Linux
> Tested with Python language server:
> https://github.com/palantir/python-language-server
> Reporter: Michael Küttner
> Assignee: Michael Küttner
> Priority: Minor
> Labels: pull-request-available
> Fix For: 13
>
> Time Spent: 1h 40m
> Remaining Estimate: 0h
>
> {{java.lang.IllegalArgumentException: Invalid end offset: -2, start is: 28}}
> {{at org.netbeans.spi.editor.fold.FoldInfo.<init>(FoldInfo.java:103)}}
> {{at org.netbeans.spi.editor.fold.FoldInfo.range(FoldInfo.java:94)}}
> {{at
> org.netbeans.modules.lsp.client.bindings.FoldManagerImpl.run(FoldManagerImpl.java:126)}}
> {{at
> org.netbeans.modules.lsp.client.LSPBindings.lambda$addBackgroundTask$13(LSPBindings.java:411)}}
> {{at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)}}
> {{at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)}}
> {{at
> org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)}}
> {{at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)}}
> {{[catch] at
> org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033) }}
> This exception occurs if a language server returns FoldingRanges without an
> endCharacter (only lines are set) and if the fold reaches until end of
> current document.
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists