flutter / flutter/flutter-intellij

custom_lint: IDE Quick actions and errors are not shown in GUI

Open
#7,600 11 comments 18 reactions 0 assignees View on GitHub
dependency: flutter-tools P2
Dominant language
Java
Stars
2k
Forks
356
Avg merge
1d 11h
Merged PRs (30d)
27

Description

Thanks for the feedback! If your issue is related to the Flutter framework itself,
please open an issue at
[github.com/flutter/flutter](https://github.com/flutter/flutter/issues/new).

## Steps to Reproduce

_Please tell us what you were doing and what went wrong_

- create a custom lint rule using `custom_lint_builder`
- run `dart run custom_lint` shows the errors as

```
Building package executable...
Built custom_lint:custom_lint.
Analyzing... 0.0s

lib/main.dart:15:11 • Use `optDouble` or `getDouble` from utils package for parsing double safely • avoid_double_casting • ERROR
lib/main.dart:37:54 • color linter • ERROR
lib/main.dart:37:54 • color linter • ERROR

3 issues found.
```

## IDE does not show error in GUI

### IntelliJ
Screenshot 2024-08-09 at 12 54 29 PM

### VSCode
![Screenshot 2024-08-01 at 11 45 08 AM](https://github.com/user-attachments/assets/82aad36c-7381-4402-b6aa-eed47de867a1)

## Version info

` flutter --version`

```
Flutter 3.22.2 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 761747bfc5 (9 weeks ago) • 2024-06-05 22:15:13 +0200
Engine • revision edd8546116
Tools • Dart 3.4.3 • DevTools 2.34.3
```

`flutter doctor -v`

```
[✓] Flutter (Channel stable, 3.22.2, on macOS 14.6.1 23G93 darwin-arm64, locale en-AE)
• Flutter version 3.22.2 on channel stable at /Users/rathish.kannan/fvm/versions/3.22.2
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 761747bfc5 (9 weeks ago), 2024-06-05 22:15:13 +0200
• Engine revision edd8546116
• Dart version 3.4.3
• DevTools version 2.34.3

[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
• Android SDK at /Users/rathish.kannan/Library/Android/sdk
• Platform android-35, build-tools 35.0.0
• Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314)
• All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 15F31d
• CocoaPods version 1.15.2

[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2024.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314)

[✓] IntelliJ IDEA Ultimate Edition (version 2024.1.4)
• IntelliJ at /Applications/IntelliJ IDEA.app
• Flutter plugin version 80.0.2
• Dart plugin version 241.18808

[✓] VS Code (version 1.91.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension can be installed from:
🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (5 available)
• Ratz (mobile) • 00008110-001E48EC0EB9801E • ios • iOS
17.4.1 21E236
• All expected network resources are available.

• No issues found!
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.