IBM / zopeneditor-about

IBM Z Open Editor: File issues here!
https://ibm.github.io/zopeneditor-about
Apache License 2.0
50 stars 20 forks source link

Error when opening copybook include from PLI editor. #277

Closed nk2164 closed 1 year ago

nk2164 commented 2 years ago

Development environment used

Problem Description

Detailed steps for reproducing the problem:

  1. First step

Observed behavior

I tried to ctrl + click to browse an include PLI copybook in code. It opens the included copybook, but then i see a message box that error that the request failed. The output contains the following:

[Error - 8:15:15 PM] Request textDocument/foldingRange failed. Message: Internal error. Code: -32603 java.util.concurrent.CompletionException: java.lang.NullPointerException at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:284) at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:291) at java.util.concurrent.CompletableFuture.uniApply(CompletableFuture.java:629) at java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:602) at java.util.concurrent.CompletableFuture$Completion.exec(CompletableFuture.java:468) at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:300) at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1078) at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1714) at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183) Caused by: java.lang.NullPointerException at com.ibm.wazi.lsp.pli.core.handlers.FoldingRangeHandler.computeFoldingRanges(FoldingRangeHandler.java:42) at com.ibm.wazi.lsp.pli.core.PLILanguageServer.lambda$4(PLILanguageServer.java:199) at com.ibm.wazi.lsp.pli.core.PLILanguageServer$$Lambda$36/0x000000000747d310.apply(Unknown Source) at java.util.concurrent.CompletableFuture.uniApply(CompletableFuture.java:627) ... 6 more

Expected behavior

I expected to see the included copybook member

phaumer commented 2 years ago

See more details in https://github.com/IBM/zopeneditor-about/issues/283

phaumer commented 1 year ago

Fixed in Z Open Editor 3.0.0