Code Monkey home page Code Monkey logo

Comments (3)

joshtynjala avatar joshtynjala commented on June 11, 2024 1

It looks like you have a function that doesn't specify a return type, and I guess I forgot to check for null. It's an easy fix.

from vscode-as3mxml.

joshtynjala avatar joshtynjala commented on June 11, 2024

Right-click the directory in VSCode's explorer. It should be called Organize Imports (Recursive).

from vscode-as3mxml.

ylazy avatar ylazy commented on June 11, 2024

When I was trying to run Organize Import with a directory that contains large amount of nested directories and files, I got this error:

Apr 03, 2023 11:40:20 PM org.eclipse.lsp4j.jsonrpc.RemoteEndpoint fallbackResponseError
SEVERE: Internal error: java.lang.NullPointerException
java.util.concurrent.CompletionException: java.lang.NullPointerException
	at java.util.concurrent.CompletableFuture.encodeThrowable(Unknown Source)
	at java.util.concurrent.CompletableFuture.completeThrowable(Unknown Source)
	at java.util.concurrent.CompletableFuture.uniApply(Unknown Source)
	at java.util.concurrent.CompletableFuture$UniApply.tryFire(Unknown Source)
	at java.util.concurrent.CompletableFuture$Completion.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
	at com.as3mxml.vscode.utils.ASTUtils.findUnresolvedIdentifiersToImport(ASTUtils.java:519)
	at com.as3mxml.vscode.utils.ASTUtils.findUnresolvedIdentifiersToImport(ASTUtils.java:553)
	at com.as3mxml.vscode.utils.ASTUtils.findUnresolvedIdentifiersToImport(ASTUtils.java:252)
	at com.as3mxml.vscode.providers.ExecuteCommandProvider.organizeImportsInUri(ExecuteCommandProvider.java:320)
	at com.as3mxml.vscode.providers.ExecuteCommandProvider.executeOrganizeImportsInDirectoryCommand2(ExecuteCommandProvider.java:183)
	at com.as3mxml.vscode.providers.ExecuteCommandProvider.lambda$executeOrganizeImportsInDirectoryCommand$0(ExecuteCommandProvider.java:119)
	... 6 more

[Error - 11:40:20 PM] Request workspace/executeCommand failed.
  Message: Internal error.
  Code: -32603 
java.util.concurrent.CompletionException: java.lang.NullPointerException
	at java.util.concurrent.CompletableFuture.encodeThrowable(Unknown Source)
	at java.util.concurrent.CompletableFuture.completeThrowable(Unknown Source)
	at java.util.concurrent.CompletableFuture.uniApply(Unknown Source)
	at java.util.concurrent.CompletableFuture$UniApply.tryFire(Unknown Source)
	at java.util.concurrent.CompletableFuture$Completion.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
	at com.as3mxml.vscode.utils.ASTUtils.findUnresolvedIdentifiersToImport(ASTUtils.java:519)
	at com.as3mxml.vscode.utils.ASTUtils.findUnresolvedIdentifiersToImport(ASTUtils.java:553)
	at com.as3mxml.vscode.utils.ASTUtils.findUnresolvedIdentifiersToImport(ASTUtils.java:252)
	at com.as3mxml.vscode.providers.ExecuteCommandProvider.organizeImportsInUri(ExecuteCommandProvider.java:320)
	at com.as3mxml.vscode.providers.ExecuteCommandProvider.executeOrganizeImportsInDirectoryCommand2(ExecuteCommandProvider.java:183)
	at com.as3mxml.vscode.providers.ExecuteCommandProvider.lambda$executeOrganizeImportsInDirectoryCommand$0(ExecuteCommandProvider.java:119)
	... 6 more

from vscode-as3mxml.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.