Chris2011 edited a comment on issue #1692: Add TypeScript editor
URL: https://github.com/apache/netbeans/pull/1692#issuecomment-573327788
 
 
   @jlahoda I got a NPE when I do this:
   
   * take a TS file and type `export default inter`
   * hit ctrl + space for code completion
   * choose interface from the code completion
   * list stays open and press space.
   * NPE appears
   
   ```
   org.eclipse.lsp4j.jsonrpc.ResponseErrorException: Request 
textDocument/documentSymbol failed with message: Error processing request. No 
Project.
   Error: No Project.
       at Object.ThrowNoProject (c:\Projekte\Others\Vue TypeScript Live Search 
Sample\node_modules\typescript\lib\tsserver.js:124630:23)
       at IOSession.Session.getFileAndLanguageServiceForSyntacticOperation 
(c:\Projekte\Others\Vue TypeScript Live Search 
Sample\node_modules\typescript\lib\tsserver.js:130979:42)
       at IOSession.Session.getNavigationTree (c:\Projekte\Others\Vue 
TypeScript Live Search Sample\node_modules\typescript\lib\tsserver.js:131338:31)
       at Session.handlers.ts.createMapFromTemplate._a.(anonymous function) 
(c:\Projekte\Others\Vue TypeScript Live Search 
Sample\node_modules\typescript\lib\tsserver.js:130198:61)
       at c:\Projekte\Others\Vue TypeScript Live Search 
Sample\node_modules\typescript\lib\tsserver.js:131671:88
       at IOSession.Session.executeWithRequestId (c:\Projekte\Others\Vue 
TypeScript Live Search Sample\node_modules\typescript\lib\tsserver.js:131662:28)
       at IOSession.Session.executeCommand (c:\Projekte\Others\Vue TypeScript 
Live Search Sample\node_modules\typescript\lib\tsserver.js:131671:33)
       at IOSession.Session.onMessage (c:\Projekte\Others\Vue TypeScript Live 
Search Sample\node_modules\typescript\lib\tsserver.js:131693:35)
       at Interface.<anonymous> (c:\Projekte\Others\Vue TypeScript Live Search 
Sample\node_modules\typescript\lib\tsserver.js:132984:27)
       at Interface.emit (events.js:198:13)
       at Interface._onLine (readline.js:308:10)
       at Interface._normalWrite (readline.js:451:12)
       at Socket.ondata (readline.js:165:10)
       at Socket.emit (events.js:198:13)
       at addChunk (_stream_readable.js:288:12)
       at readableAddChunk (_stream_readable.js:269:11)
       at Socket.Readable.push (_stream_readable.js:224:10)
       at Pipe.onStreamRead [as onread] (internal/stream_base_commons.js:94:17)
        at 
org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.handleResponse(RemoteEndpoint.java:209)
        at 
org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.consume(RemoteEndpoint.java:193)
        at 
org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.handleMessage(StreamMessageProducer.java:192)
        at 
org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.listen(StreamMessageProducer.java:94)
        at 
org.eclipse.lsp4j.jsonrpc.json.ConcurrentMessageProcessor.run(ConcurrentMessageProcessor.java:113)
        at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:748)
   Caused: java.util.concurrent.ExecutionException
        at 
java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:357)
        at 
java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1895)
   [catch] at 
org.netbeans.modules.lsp.client.bindings.NavigatorPanelImpl.run(NavigatorPanelImpl.java:142)
        at 
org.netbeans.modules.lsp.client.LSPBindings.lambda$addBackgroundTask$6(LSPBindings.java:245)
        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)
        at 
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
   
   ```
   
   This is my project: 
https://github.com/Chris2011/Vue-TypeScript-Live-Search-Sample. I wrote code 
insie of the main.ts file.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@netbeans.apache.org
For additional commands, e-mail: notifications-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to