Comments (2)
I have tried to get it working by excluding jars like in IntelliJ-Scala project but without success.
ideaMainJars := ideaMainJars.value.filterNot(file => excludeJarsFromPlatformDependencies(file.data)),
val excludeJarsFromPlatformDependencies: File => Boolean = { file =>
(file.getName.contains("openapi") || file.getName.contains("javac2") || file.getName.contains("java-api")) // version conflict with bsp4j in ultimate platformt
from sbt-idea-plugin.
The reason behind this issue is not package name conflict(multiple jars may share the same package safely)
This error occurs because classes you're using in StackCommandLine.scala
are part of Java plugin implementation, which has been extracted into a separate entity in IDEA 192.X
The solution would be to add Java plugin as an internal plugin dependency in build:
ideaInternalPlugins += "java"
Also don't forget to add dependency in plugin.xml
:
<depends>com.intellij.modules.java</depends>
from sbt-idea-plugin.
Related Issues (20)
- `java.lang.NoClassDefFoundError: com/intellij/openapi/diagnostic/Logger` in tests
- Provide a common way to set base directory to put library dependencies
- Parent's targetPath is ignored when node is merged into parent
- Integrate Marketplace zip signer
- java.io.FileNotFoundException: https://d2s4y8xcwt8bet.cloudfront.net/com/jetbrains/intellij/idea/ideaIC/LATEST-EAP-SNAPSHOT/ideaIC-LATEST-EAP-SNAPSHOT-sources.jar HOT 4
- scala-library is getting bundled with libraryDependencies, even if bundleScalaLibrary is set to false HOT 1
- can't packageLibraryMappings for multiple versions of the same library HOT 1
- Support new plugin classloading mechanism since IJ 213.2732
- Plugin doesn't download specified IDE versions for plugin verifier
- Plugin dependency as URL doesn't work HOT 10
- JetBrains
- No standalone-packaged parents found for {slyce-core} HOT 3
- How to disable `PluginLogger`'s `warn` logs?
- idea plugin instance not starting with ["org.intellij.scala:2022.2.17".toPlugin, intellijBuild := "222.3739.54", scalaVersion := "2.13.8"] HOT 4
- Upgrade to use sbt 1.9.x HOT 5
- value parsing is not a member of com.intellij.lang.properties for com.intellij.lang.properties.parsing.PropertiesTokenTypes.VALUE_CHARACTERS HOT 12
- Trouble referencing custom parser from ToolWindow HOT 9
- Companion object cannot be referenced in plugin.xml using its name HOT 2
- Automatically fetch plugin description from README.md HOT 1
- 'Cannot init toolwindow' - versioning issue?
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 sbt-idea-plugin.