You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
➜ safeql-eslint-broken git:(main) ✗ pnpm eslint . --max-warnings 0
(node:48991) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
Warning: React version was set to "detect"in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting.
Pages directory cannot be found at /Users/lukas/Documents/UpLeveled/safeql-eslint-broken/pages or /Users/lukas/Documents/UpLeveled/safeql-eslint-broken/src/pages. If using a custom path, please configure with the `no-html-link-for-pages` rule in your eslint config file.
/Users/lukas/Documents/UpLeveled/safeql-eslint-broken/database.ts
13:0 error Invalid Query: Error: syntax error at or near "." @ts-safeql/check-sql
35:0 error Invalid Query: Error: syntax error at or near "{" @ts-safeql/check-sql
On Windows ESlint throws an error code 127 "command not found"
$ pnpm eslint . --max-warnings 0
(node:11440) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
$ echo$?
127
On Windows with these issues, the ESLint VSCode extension crashes after 5 times in 3 minutes
In other words, something in your program is writing past the current stack frame, corrupting data on the stack. The program has detected this and rather than let it continue, has thrown an exception.
Describe the bug
SafeQL throws wrong errors with
[email protected]
on Windows and MacOS.Issue also reported in VSCode ESlint repo:
Misleading errors:
user
instead ofusers
)users.id
)ON
)On macOS ESlint throws these errors:
On Windows ESlint throws an error code 127 "command not found"
On Windows with these issues, the ESLint VSCode extension crashes after 5 times in 3 minutes
To Reproduce
git clone https://github.com/ProchaLu/safeql-eslint-broken
.env
variablesExpected behavior
The expected behavior would be that SafeQL throws correct errors.
user
instead ofusers
)users.id
)The error should lead to the missing comma.
ON
)The error should lead to the wrong use of curly brackets.
OS: Windows
PostgreSQL version 15.7
The text was updated successfully, but these errors were encountered: