question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

False error after project files delete, create

See original GitHub issue

When using an extension to delete/create new project files sometimes false errors appear. One of them could be fixed #227

Another one is this:

This tag could not be resolved to an ActionScript class. It will be ignored. This tag could not be resolved to an ActionScript class. It will be ignored.

Complete message:

{ “resource”: “/c:/dev/vsc-extensions/test5/src/MyApp.mxml”, “owner”: “generated_diagnostic_collection_name#0”, “code”: “1450”, “severity”: 8, “message”: “This tag could not be resolved to an ActionScript class. It will be ignored.”, “startLineNumber”: 2, “startColumn”: 1, “endLineNumber”: 2, “endColumn”: 23 }

It is false error. Debug works. Error(s) disappear on folder close then open. In this example code is:

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
   xmlns:s="library://ns.adobe.com/flex/spark"
   xmlns:mx="library://ns.adobe.com/flex/mx">

</s:Application>

One note is if you add XX after <s:Application error changes into: <s:WindowedAppXXlication ...

but there is only Application tag. Not sure, but it could be that the just deleted project files main app was using WindowedApplication.

Animation: 2018-06-27_21-59-09

Another error (while creating project files programmatically) is when error is reported in a file that was deleted on disk. So it looks like the extension keeps project files indexed somewhere that don’t get cleaned when deleted?

Note: In every “create project” process, the last written file is asconfig.json as I thought it could be the reason as it might try read some files that are not yet written, but it didn’t help me resolve this rare false errors.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
joshtynjalacommented, Jul 3, 2018

This particular issue should be fixed now, so I’m closing. Deleted files were not properly cleared from memory, but now they should be.

0reactions
neminovnocommented, Jun 27, 2018

Thanks for info. Anyway, my plan is to wait for v0.13. For fixed issues, and also because of multi-root workspaces as it enables me to add same support for ‘create project’ command (choose folder within workspace folders to create project into instead of use first folder).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Still forced to delete ".vs" folder to fix build errors or ... - GitHub
I opened the newly created .cs file and saw that IntelliSense was broken. Likewise false errors appeared in the "Error List" window. The...
Read more >
delete file with errors from project, don't remove error from ...
When delete file with errors from project, windows error list don´t update. Continues report errors from delete file. Visual Studiowindows 10.0editorvisual ...
Read more >
Cannot delete a project folder - 'The parameter is incorrect'
Right-click on the unwanted folder, click on Delete ... NewFolder1 on my machine). This is where I get the 'parameter is incorrect' error....
Read more >
Visual Studio "Organize Usings | Remove and Sort" falsely ...
In various code files of various projects, Visual Studio sometimes gives an error message when I tell it to remove and sort the...
Read more >
VIVADO 2017 How to Remove a file from Project when source ...
I created a Project but one source file was deleted outside VIVADO. Then VIVADO correctly marks as missing (it puts in Non-module Files...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found