Test and debug
Problems
See type errors, lint warnings, and build problems in one list.
The Problems list gathers the errors and warnings of your project in one place: type errors, lint problems and build errors. Open each one at its line, or ask the AI to fix it.
What you can do
- See every error, warning and info message, grouped by file.
- Filter by level, by text, or to the open file only.
- Run a full check of the project.
- Open a problem at its line.
- Fix one problem, or all of them, with the AI, once a fresh check confirms them.
- See the same problem count in every place that shows it.
Open Problems
Press Cmd/Ctrl + J to open the bottom panel and choose Problems. You can also click the error and warning counts in the status bar of the code editor.
Check the whole project
Run a check
Choose Refresh in the toolbar, or Run check when the list has not been checked yet. Lyna runs the type checker and the linter on the whole project. The tooltip of Refresh says when the list was last checked.
Narrow the list
Open All severities and tick Errors, Warnings and Info, each with its count, or pick Only errors; the same menu holds Invert text filter, and the red and amber counters beside it show only the errors or only the warnings. Type in Filter problems, or turn on Active file only. Pick a Source to see only TypeScript, Lint, Build or In the editor problems, each with its number.
Fix
Click a problem to open the file at its line. Choose Fix with AI on one problem, or Fix all on a file's header to send every problem of that file to the AI. A type or lint problem the project's check has not confirmed yet is checked again first, and the button shows the check working. A problem the fresh check does not find leaves the list with Not reproduced by a fresh check., and no AI turn starts; when the check could not run, Lyna says The last check failed. The AI is told what reported each problem and confirms it before it changes anything. Choose Dismiss to hide a problem you do not want to fix now.
If the type checker or the linter could not run, the list says so, so an empty list never hides a check that did not happen. The Output tab shows each check's log for the branch you are on, with its status, such as Passed, Could not run or Did not finish.
What the list shows
The list shows what your project's own check reports, so the editor and the check agree.
- The code editor checks types with your project's TypeScript settings and with the types of the package versions your project installs. When you change those settings, the files in the editor are checked again.
- A file whose imports are still loading shows no type error yet. It is checked again once they load.
- Only your project's files are listed. An error thrown inside an installed package shows at the line of your code that led to it, or under General when none of your code did, and files your TypeScript settings leave out are not listed.
- Once a full check has read a file as it is now, that check reports its type errors: an error only the editor saw goes away when the check is clean. A file with unsaved edits is checked by the editor.
- Errors and warnings count. Info rows are listed with their own number but never add to the total, so the Problems tab, the panel header, All sources, the status bar and the file tree show the same number.
Build errors on the canvas
When your app fails to build, the frame shows Build error with the message. Choose Fix with AI to send it to the chat, Open file to go to the line, or Dismiss.
The dev server output in the Terminal also counts the errors it finds, with View in Problems.
Errors in the chat
When the preview reports errors, the chat shows how many were found above the message box. Choose Fix to ask the AI to fix them.
Shortcuts
| Action | Shortcut |
|---|---|
| Show or hide the bottom panel | Cmd/Ctrl + J |
FAQ
Related
Need help?
Ask the team, read what changed, or learn from the blog.