Giter VIP home page Giter VIP logo

Comments (10)

sjrd avatar sjrd commented on August 15, 2024 2

@jastice Perhaps IntelliJ should read the value of managedClasspath in Compile rather than managedClasspath in Runtime. AFAICT, the in Compile should contain everything needed for the project model of IntelliJ, without introducing dependencies on potentially expensive things only part of in Runtime.

from sbt-web.

LogicalTime avatar LogicalTime commented on August 15, 2024

yes I am seeing something like this too

from sbt-web.

wsargent avatar wsargent commented on August 15, 2024

Is there an issue filed with Jetbrains about this?

from sbt-web.

mdedetrich avatar mdedetrich commented on August 15, 2024

@wsargent Not that I am aware of, but is it their fault? Afaik, Intellij now uses SBT to resolve dependencies, so it seems like SBT is triggering the build of Scala.js when it shouldn't be?

from sbt-web.

mdedetrich avatar mdedetrich commented on August 15, 2024

Is there any progress on this, or should I make an issue at Jetbrains?

from sbt-web.

mdedetrich avatar mdedetrich commented on August 15, 2024

I made an issue on Intellij's bug tracker to see if its on their end https://youtrack.jetbrains.com/issue/SCL-12594

from sbt-web.

jastice avatar jastice commented on August 15, 2024

IntelliJ Scala developer here.

The IntelliJ import depends on the managedClasspath key indirectly to set the classpath in the IntelliJ-side project model. Thus, if that task has a dependency on package, an import will trigger a full compilation. I currently don't see a way around this except not having this dependency in your build.

from sbt-web.

mdedetrich avatar mdedetrich commented on August 15, 2024

@wsargent So it seems like this is purely an issue with sbt-web or Scala-js, if you do this

managedClasspath in Runtime += (packageBin in Assets).value

You are literally telling SBT (and hence Intellij) that in order to evaluate my classpath you need to package all of my assets (which actually doesn't make any sense, they are seperate things).

I have also made an issue with Scala-js

from sbt-web.

jastice avatar jastice commented on August 15, 2024

@sjrd IntelliJ actually depends on externalDependencyClasspath which depends on managedClasspath to extract the dependencies for all sbt configurations. It's not clear to me we should be excluding specific configurations.

from sbt-web.

mdedetrich avatar mdedetrich commented on August 15, 2024

I will involve the sbt guys to see whats their comment here

from sbt-web.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.