-
Notifications
You must be signed in to change notification settings - Fork 83
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
I'm opening a fresh issue for this as despite many PRs and issues being marked as closed, I'm still getting this error message with the latest custom lint, and unable to get any custom_lints to display in IntelliJ.
To Reproduce
Monorepo, with a combination of dart only, and flutter packages, using dart workspaces
FVM for managing flutter versions
Custom lint: 0.8.1
Dart: 3.9.2
Flutter 3.35.3
Doctor summary (to see all details, run flutter doctor -v):
[β] Flutter (Channel stable, 3.35.3, on macOS 15.6.1 24G90 darwin-arm64, locale en-NZ)
[!] Android toolchain - develop for Android devices (Android SDK version 36.0.0)
[β] Xcode - develop for iOS and macOS (Xcode 16.4)
[β] Chrome - develop for the web
[β] Android Studio (version 2025.1)
[β] IntelliJ IDEA Ultimate Edition (version 2025.2.1)
[β] VS Code (version 1.102.3)
[β] Connected device (2 available)
[β] Network resources
custom_lint.log
:
The request analysis.setContextRoots failed with the following error:
RequestErrorCode.PLUGIN_ERROR
ProcessException: No such file or directory
Command: dart lib/custom_lint_client.dart ::1 55908
at:
#0 _ProcessImpl._start (dart:io-patch/process_patch.dart:421)
#1 Process.start (dart:io-patch/process_patch.dart:42)
#2 SocketCustomLintServerToClientChannel._startProcess.<anonymous closure> (package:custom_lint/src/v2/server_to_client_channel.dart:155)
#3 _asyncRetry (package:custom_lint/src/v2/server_to_client_channel.dart:24)
<asynchronous suspension>
#4 SocketCustomLintServerToClientChannel.init (package:custom_lint/src/v2/server_to_client_channel.dart:111)
<asynchronous suspension>
#5 CustomLintServer._maybeSpawnCustomLintPlugin (package:custom_lint/src/v2/custom_lint_analyzer_plugin.dart:396)
<asynchronous suspension>
#6 CustomLintServer._handleAnalysisSetContextRoots.<anonymous closure> (package:custom_lint/src/v2/custom_lint_analyzer_plugin.dart:343)
<asynchronous suspension>
#7 PendingOperation.run (package:custom_lint/src/async_operation.dart:22)
<asynchronous suspension>
#8 CustomLintServer._handleRequest (package:custom_lint/src/v2/custom_lint_analyzer_plugin.dart:175)
<asynchronous suspension>
When I open the analysis server diagnostics, the SDK root is empty:

cosminbodnariuc, LRDOC, mleon0711, Aldaniee, bkoch-16 and 5 more
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working