-
-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code hovering crash: NullPointerException in NamespaceDefinition$NamespaceDirectiveResolver.addResolvedUsedNamespace() #467
Comments
Looks like a bug in Royale. I'll see if I can reproduce, but I might need your help with that. |
@jnpatrick99 I tried Ctrl+click and Ctrl+hover on various keywords inside an MXML script block in a Royale project (like You may need to share some code with me that can consistently reproduce the issue. |
I am having a similar issue but its instead with the checker itself.
|
@jfmherokiller Yes, that appears to be a completely different issue. It isn't triggered by hover at all. It seems to be a bug in the compiler that powers code intelligence. Unfortunately, I probably won't be able to do much unless you can figure out the ActionScript code that causes that exception. I tried a few things based on what ABCGeneratingReducer.generateAssignment() is doing internally, but no luck reproducing here. |
I have the same problem here. Is there a way to at least disable this error in Preferences so it wouldn't pop up infinitely? Thanks. |
@anastasiuspernat Is your stack trace the same as the original report above? If it's different, can you share it? Thanks! There's no way to disable the error because it's a bug. It's not intentionally being shown to you. |
Thanks! Here's the log.
When I simply click Ctrl there are hundreds of messages like this and the cursor gets focused on the Output pane constantly so it's impossible to edit code while this happening. Is there a way to suppress the exception in |
@anastasiuspernat It looks like you're running the "Go to references" command. That's not usually the command that is triggered in VSCode by pressing the ctrl key and clicking. Are you sure that's the only stack trace that you have in your output? I would expect to see |
Hmm... I just discovered that if you run "Go to definition", and your cursor is already on the definition, VSCode automatically switches to "Go to references" instead. @anastasiuspernat Could you share some code where you see this happening? Maybe a simple project with just one .as or .mxml, if possible? |
@joshtynjala Thanks for clarifying! Sorry the code's part of a gigantic project, when there's one/two/three files it does not happen. Also there are other exceptions. I would really really vote to have a checkmark in Settings that suppresses all exceptions in the main code if that's possible. Thanks! |
Here's more exceptions:
|
@anastasiuspernat Interesting! That's the first time I've seen someone report this error happening on mouse hover. Does it happen when you hover over anything, or is it a specific symbol in your code? (such as a particular class, property, or method name?) |
@joshtynjala it starts when I click ctrl over random keywords and after that it's happening constantly. The problem is that ctrl is bound to other keyboard shortcuts so every time I hit ctrl I get tons of messaging in the Output, and it gets focused. |
I was finally able to reproduce this issue. I did it with following .mxml file in a Flex project, and Ctrl+click with the mouse over <?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx">
<fx:Script>
<![CDATA[
use namespace mx.core.mx_internal;
use namespace what;
]]>
</fx:Script>
</s:WindowedApplication> |
apache/royale-compiler@e6e2878 The fix will be included in vscode-as3mxml after a new release of Apache Royale happens. |
I have the new problem. Started after one of the recent updates. I get around 20-30 errors on the Output while Cmd+hovering over keywords. Using version 1.1.1 on macOS 10.14.6, Apache Royale 0.9.6 (swf/js) and Java 1.8.0_201-b09 (latest update from Oracle).
Mostly happens inside .mxml files.
The text was updated successfully, but these errors were encountered: