Comments (6)
Thanks for reporting! Did you try asking on the Scala plugin discord or reporting an issue with Jetbrains?
The discord link is here https://discord.gg/aUKpZzeHCK
from scalafix.
Ahh yes good point, having done some more digging - this only happens in IntelliJ's sbt shell, and not when using regular command-line sbt. I've cross-posted to their bug tracker:
from scalafix.
Per this commit, it looks like the issue arise when the IntelliJ sbt plugin is injected into a project using sbt-coursier, and is fixed in recent 2023.3.x IntelliJ versions.
from scalafix.
I confirm that users of IntelliJ < 2023.3.2 running projects with ScalafixTestkitPlugin
are impacted through the usage of includePluginResolvers
.
I am still trying to figure out what's going on. Until then, this workaround seems to work for https://github.com/ashleymercer/scalafix-issue-1887:
ThisBuild / includePluginResolvers := false
from scalafix.
I am still trying to figure out what's going on.
- it looks like there are different code paths for the build and the metabuild (coursier vs ivy?)
- by construction,
includePluginResolvers := true
exposes the plugin resolver added by the IntelliJ sbt plugin to a code path not exercised in the default case: the build one, driven by lm-coursier-shaded as published by sbt-coursier - the plugin resolver, as declared before IntelliJ 2023.3.2, was not valid for that code path, generating the warning in all
update
tasks of the build (without any impact as the resolver is only needed in the metabuild)
I'll close this as this is fixed in the latest IntelliJ version, and there is a workaround above for the older ones. Thanks again for the report, feel free to reopen if my analysis is wrong.
from scalafix.
Awesome detective work @bjaglin - thanks!
Yes can confirm this is fixed in the EAP builds of 2023.3 so happy for this to be closed.
from scalafix.
Related Issues (20)
- Specifying --files from sbt errors because semanticdb not found HOT 2
- SymbolMatcher: normalized doesn't infer trailing dot when symbol contains backticks HOT 2
- DisableSyntax.noValPatterns could allow unpacking case classes HOT 2
- Cannot ignore DisableSyntax.regex which starts with .* HOT 4
- OrganizeImports with coalesceToWildcardImportThreshold > 0 uses wildcard pattern "_" instead of "*" in Scala 3 HOT 6
- Running Scalafix rules for a specific package HOT 3
- A bit confusing default behaviour of the `ExplicitResultTypes` rule on `fatalWarnings` HOT 3
- `DisableSyntax.NoFinalVal` needs to take into account the context HOT 3
- sbt-scalafix: support execution against files built with Scala 2.12.19 or 2.13.13 HOT 11
- RemoveUnused: detect unused function parameters in Scala 3
- sbt-scalafix: use `sbt.librarymanagement` API for `scalafixResolvers` instead of `cousierapi` HOT 3
- scalafix-core: implicit helpers not available with -Xsource:3 on 2.13.13
- Illegal start of sume expression for "\n???" HOT 2
- RemoveUnused in scala 3.4 rewrites wildcard imports from .* to ._ HOT 2
- Wrong key name in error message about Scala 3 projects HOT 2
- Unclear errors when running semantic rules with a minimal set of scalafix-cli flags HOT 5
- Scala CLI shebang is not handled HOT 2
- Scalafix sbt causing OOM errors HOT 11
- Please publish for Scala 2.13.14 HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scalafix.