appsmith icon indicating copy to clipboard operation
appsmith copied to clipboard

[Bug]: Persistent Linting Errors

Open samiphoenix84 opened this issue 1 year ago • 6 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Description

I am continuously getting linting errors on various widgets. They do not affect the function of the app but are very annoying during development. I previously raised this bug and was told the fix was to clone the page and delete the original page. But this is not working, the linting errors keep coming back.

Steps To Reproduce

  1. Create a new text input widget.
  2. Add an action to run a query for the 'OnSubmit' action
  3. Edit the 'OnSubmit' action and delete the action to run the query.
  4. You will now see a linting error on the widget.

See video for demo

Public Sample App

No response

Environment

Production

Severity

Medium (Frustrating UX)

Issue video log

https://www.loom.com/share/664e7030e2cd4debb2cdf4b8c7e82d1d?sid=b3617fe6-2367-4997-b667-3b2cd4e68fa1

Version

Cloud

samiphoenix84 avatar Dec 04 '24 17:12 samiphoenix84

Is this going to be fixed any time soon?

samiphoenix84 avatar Dec 17 '24 20:12 samiphoenix84

When will this bug to be fixed please?

SPX84 avatar Mar 08 '25 00:03 SPX84

Confirming that this issue is still present in Appsmith v1.80 (Docker Community Edition).

I can reproduce it consistently by inserting a JS line comment (// comment) at the beginning of any event field (onClick, onTextChange, onCheckChange, etc), after the {{ Once the error appears (Expected an identifier and instead saw ';'), it remains even after clearing the field, and only goes away by inserting a valid dummy expression like {{0}} or {{true}}.

This affects any widget, not just TextInput. The Linter seems to get stuck after encountering malformed or commented expressions in event fields.

Tested on multiple widgets in a clean install. Hope this helps clarify the scope of the issue.

virgilio-lattanzi avatar Jul 14 '25 15:07 virgilio-lattanzi

Confirming that this issue is still present in Appsmith v1.80 (Docker Community Edition).

I can reproduce it consistently by inserting a JS line comment (// comment) at the beginning of any event field (onClick, onTextChange, onCheckChange, etc), after the {{ Once the error appears (Expected an identifier and instead saw ';'), it remains even after clearing the field, and only goes away by inserting a valid dummy expression like {{0}} or {{true}}.

This affects any widget, not just TextInput. The Linter seems to get stuck after encountering malformed or commented expressions in event fields.

Tested on multiple widgets in a clean install. Hope this helps clarify the scope of the issue.

Running AppSmith 1.8 Community and also fighting against that spam linting message. You made my day! Setting {{true}} to some events (those where the code was set and cleared after) clears the error for the complaining widget. But a fix would be definitely appreciated

wawa79 avatar Jul 22 '25 09:07 wawa79

Adding then removing an 'event' from a widget seems to create this issue. Setting the widget to 'Visible = false' also gets rid of the errors.

bunniico avatar Oct 22 '25 22:10 bunniico

I am getting this error in my application too, and it is very unsatisfactory because my company wants the best and is strange to explain the appsmith have a bug and I cannot do anything about

LeonardoRodriSilva avatar Oct 24 '25 17:10 LeonardoRodriSilva