Linting tab indicates errors but none appear

On various apps I have the linting tab of debug says I have errors (in the below case it says 2), but when I go to the tab, none appear.

My best guess is that there is an erroneous linter warning in one of your components or queries. The linter is known to report false positives at the moment, but I believe it has been an active development issue as well so the behavior may begin changing on its own.

2 Likes

Hi @kyleteal,

Apologies for the confusion :sweat_smile:

As @pyrrho pointed out, at times the linter can have some false positives. We are working on improving this and I can definitely share your screenshot and tag this thread onto that ticket as well.

Let me know if there is an app breaking error that is not appearing in the debugger as that would be a high priority for us to clone the app and see if we can reproduce the issue.

If the app is working, for the short term don't believe there is much we can do and it should not impair the app.

Great thanks, nothing is breaking, just a visual bug I believe

@Jack_T I was going to open a thread about a different issue but in the same vein. Would you rather I add them here or a new topic?

At any rate, in my case I have multiple resources throwing linter errors claiming that variables in Additional Scope aren't defined.

Here you can see one of the additional scope isn't recognized, the other three are:

And here all of the scope is causing problems:

Please let me know if I should post a new thread or if this is user error.

Hi @Mark_Slade,

Usually it is better to start a new thread but no worries :sweat_smile:

I believe that is a known bug where the linter improperly thinks those vars do not exist until they are created at run time of the query code.

I do not believe they should affect the app or query but let me know if this is preventing your app from working as intended. I can definitely add your +1 onto the bug ticket for our engineering team that is currently working on it.

Also on a side note, we are preparing for the release of functions to Retool Apps, they behave the same as functions in workflows and allow for defining input variable which will be replacing the need for using additional scope!

This will be coming out fairly soon and should be a nice fix to help clean up the linter as I know its not great seeing red :sweat_smile:

1 Like