Fix path for Dart executable in server channel#360
Fix path for Dart executable in server channel#360debuggerx01 wants to merge 1 commit intoinvertase:mainfrom
Conversation
|
To view this pull requests documentation preview, visit the following URL: docs.page/invertase/dart_custom_lint~360 Documentation is deployed and generated using docs.page. |
|
@debuggerx01 is attempting to deploy a commit to the Invertase Team on Vercel. A member of the Team first needs to authorize it. |
|
How were you running this locally? |
|
I applied this to the .pub_cache/ version my project is locked to and it worked Sweet hack / fix! |
Code Quality ReviewChangesIn Quality AssessmentThe problem is real and well-documented -- issue #357 has 14 thumbs-up and a clear reproduction involving FVM + Dart workspaces where the analysis server's environment does not have However, the fix has significant concerns:
VerdictNEEDS_WORK -- The core idea (use |
Fork Maintainer Review (dart_custom_lint)Reviewing on behalf of SummaryFixes the Dart executable path resolution in Upstream StatusOpen on upstream since Oct 21, 2025 (4+ months). Not yet merged. Community contribution by @debuggerx01. References upstream issue #357 which describes failures in monorepo + FVM + Dart workspace setups. AssessmentThe fix addresses a real problem but the approach has concerns: Problem it solves: When the analyzer plugin runs, it uses Concerns:
Alternative approaches seen in other projects:
Despite the fragility concern, this pattern ( RecommendationSYNC_FROM_UPSTREAM (once merged) -- This fixes a real issue for FVM and non-standard Dart installations. The approach is pragmatic and commonly used in the Dart ecosystem. Wait for upstream to merge. If upstream remains stale, consider cherry-picking since our fork targets Dart 3.9+ environments where this path resolution matters. |
Compatibility Review (Monorepo Impact)Reviewer context: We maintain the open-runtime/dart_custom_lint fork, consumed as a workspace member in our Dart monorepo ( Monorepo ImpactMEDIUM RISK -- NEEDS CAREFUL EVALUATION. This PR changes the Dart executable resolution from the bare The problem it solves is real: When Concerns for our monorepo:
Dependency ConcernsNone. No new dependencies. Single line change in RecommendationMERGE WITH CAVEAT -- The fix addresses a real and documented issue (#357) that affects IDE integration. While the For our fork, we should consider applying this fix. However, a follow-up PR should investigate a more robust approach using |
Resolve: #357