Automatic "Inspect code..."

28 views
Skip to first unread message

Gen

unread,
Oct 12, 2015, 2:08:26 AM10/12/15
to Dart plugin for JetBrains Editors
Hi,

how to enable automatic code inspection ?

I have created a Dart project and added some folder with .dart files as module to the project.
But I do not know how to enable automatic code inspection where I can see useful error messages.
For now I have to click by hand: Analyze/Inspect Code...
I searched the internet but I have found nothing useful (power safe mode, https://www.jetbrains.com/idea/help/status-bar.html. Hector is visible in my case).

Alexander Doroshko

unread,
Oct 12, 2015, 5:46:28 AM10/12/15
to jetbrains-dart...@dartlang.org
What IDE and what version do you use?
What Dart SDK version? Did you configure it in the IDE (otherwise you should see a yellow bar in the editor when Dart file is open)?
If above is done and Dart files are within project roots then errors/warnings are shown right in the editor. Also you have errors/warnings for the whole project in the Dart Analysis tool window.

Günter Zöchbauer

unread,
Oct 12, 2015, 10:11:09 AM10/12/15
to Dart plugin for JetBrains Editors
There is a "Dart Analysis" view that shows analyzer results live.

Gen

unread,
Oct 12, 2015, 10:11:29 AM10/12/15
to Dart plugin for JetBrains Editors
Thanks for the reply and the screenshot.
I did not know that I had to click on the grey rectangle in the left bottom corner to open the "Dart Analysis" window.

Alexander Doroshko

unread,
Oct 12, 2015, 10:21:36 AM10/12/15
to jetbrains-dart...@dartlang.org
Do you remember this 'Got it!'? :)

Gen

unread,
Oct 12, 2015, 11:36:31 AM10/12/15
to Dart plugin for JetBrains Editors
I remember that pop up window but I discarded it because I thought I would be quicker if I searched directly what I want on the main bar.
It might be useful to combine the "Inspection" view ( which also accessible via "Analyze/Inspect Code...") and the "Dart Analysis" view.
In the "Inspection" view is also written "Dart Analyzer" but the warnings and errors are not updated automatically as in the "Dart Analysis" view.
Message has been deleted

Alexander Doroshko

unread,
Oct 12, 2015, 12:02:39 PM10/12/15
to jetbrains-dart...@dartlang.org
"Inspection" view can't be auto-updated. There are hundreds of inspections and there may be thousands of files in the project.
Dart is kind of special, that's why auto-updating Dart Analysis tool window is introduced.

Gen

unread,
Oct 12, 2015, 12:12:45 PM10/12/15
to Dart plugin for JetBrains Editors
ok. Thanks for the explanation.
I guess I do not need to search further for such auto-update for Java.

Alexander Doroshko

unread,
Oct 12, 2015, 12:16:21 PM10/12/15
to jetbrains-dart...@dartlang.org
For Java you can get live Problems view by enabling 'Make project automatically' in Settings (Preferences). But it contains only errors reported by Java compiler, no IDE inspections and no info for files that were not reached by the compiler in its latest session.

Gen

unread,
Oct 12, 2015, 1:57:00 PM10/12/15
to Dart plugin for JetBrains Editors
thanks again.
Reply all
Reply to author
Forward
0 new messages