Started getting errors with new MXML files
See original GitHub issueStrange new behavior since the latest update when creating new MXML files. Code completion stops working for that particular file only and I get the following error on repeat:
Jan 24, 2020 9:30:52 AM org.eclipse.lsp4j.jsonrpc.RemoteEndpoint handleCancellation
WARNING: Unmatched cancel notification for request id 10
Jan 24, 2020 9:45:48 AM org.eclipse.lsp4j.jsonrpc.RemoteEndpoint handleCancellation
WARNING: Unmatched cancel notification for request id 20
Jan 24, 2020 9:46:03 AM org.eclipse.lsp4j.jsonrpc.RemoteEndpoint fallbackResponseError
SEVERE: Internal error: java.lang.ClassCastException: org.apache.royale.compiler.internal.tree.as.ClassNode cannot be cast to org.apache.royale.compiler.tree.metadata.IEventTagNode
java.util.concurrent.CompletionException: java.lang.ClassCastException: org.apache.royale.compiler.internal.tree.as.ClassNode cannot be cast to org.apache.royale.compiler.tree.metadata.IEventTagNode
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.ClassCastException: org.apache.royale.compiler.internal.tree.as.ClassNode cannot be cast to org.apache.royale.compiler.tree.metadata.IEventTagNode
at org.apache.royale.compiler.internal.definitions.EventDefinition.getNode(EventDefinition.java:47)
at org.apache.royale.compiler.internal.definitions.EventDefinition.getNode(EventDefinition.java:37)
at org.apache.royale.compiler.internal.definitions.DefinitionBase.getExplicitSourceComment(DefinitionBase.java:1013)
at com.as3mxml.vscode.utils.DefinitionDocumentationUtils.getDocumentationForDefinition(DefinitionDocumentationUtils.java:39)
at com.as3mxml.vscode.utils.CompletionItemUtils.createDefinitionItem(CompletionItemUtils.java:33)
at com.as3mxml.vscode.providers.CompletionProvider.addEventMetadataToAutoCompleteMXML(CompletionProvider.java:1737)
at com.as3mxml.vscode.providers.CompletionProvider.addMembersForMXMLTypeToAutoComplete(CompletionProvider.java:1529)
at com.as3mxml.vscode.providers.CompletionProvider.mxmlCompletion(CompletionProvider.java:748)
at com.as3mxml.vscode.providers.CompletionProvider.completion(CompletionProvider.java:202)
at com.as3mxml.vscode.ActionScriptServices.lambda$completion$0(ActionScriptServices.java:334)
... 6 more
[Error - 09:46:03] Request textDocument/completion failed.
Message: Internal error.
Code: -32603
This has happened a few times with new MXML file, but not always. I have been able to make it go away, but can’t figure out exactly how! It’s come came back again since I returned to the file in a new session. To add to the confusion, I sometimes can get code completion to suggest something (e.g. LayoutGroup), but when I select it, it’s not qualified with a namespace.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Error in MXML files · Issue #257 - GitHub
Hi, I'm getting this error in some files since latest update: java.lang.NullPointerException at org.apache.royale.compiler.internal.tree.as.
Read more >Error: cannot add .mxml file to project - Stack Overflow
I have a project .swc made with maven. the build is successful. If I add the project to Flashbuilder, i get no errors....
Read more >Unable to open mxml files since 4.7 - Adobe Support Community
I get no error, it just hangs. I only updated today and now am unable to do any work. Anything I can turn...
Read more >How can I disable property bundle errors in flex mxml-files?
When editing flex mxml-files in our project, all calls to resourceManager.getString is marked as an error: "Cannot resolve property bundle".
Read more >How to fix the Minecraft OpenGL Error on Windows 11/10?
1. Update your graphics card driver. 2. Get rid of all shaders. 3. Turn off OpenGL.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@carlosrovira Please open a new issue and include steps to reproduce. The extension definitely can handle the creation of new .as and .mxml files, so you must be hitting some weird edge case.
This issue appears to have gone away. Closing.