endless import: "sbt: extracting project structure from sbt" - SCALA project - java

I have a problem with my scala project.
I try to create a new project with SBT builder but once I create it I am stuck with this message:
sbt: extracting project structure from sbt
I use:
sbt 1.8.0,
scala 2.13.10,
Intellij 2022.2.3,
SDT 1.8/11/17/19
I will be really grateful if someone has any idea how can I solve it.
I tired to use different version of SBT, scala, JDK, installing/uninstalling ItelliJ, removing sbt.boot.lock or importing external sources of sbt and scala. Nothing works.

Related

IntelliJ can't load Maven dependency

I'm using IntelliJ IDEA Community 2020.2.3.
My project is built around Kotlin 1.3.30 and Java 11.
I've upgraded one of my dependecy to java 11 too, and after that, the IDE shows the dependency under "External Libraries", it build the app without errors, Maven build it from terminal without error, but the IDE shows unresolved references on each occurrency of the classes, functions and imports of that library.
I already tried to empty the cache or deleting idea files and importing again the project, but none of those worked.
Any tips?
You can use CTRL+SHIFT+A and look for Load Maven Changes or CTRL+SHIRT+O to do the same thing

Interop Clojure from java

I'm doing a java project with some friends of mine, using intellij as IDE and gradle to build the project, recently I started learning clojure and I'd like to include Clojure code in our java project, as we know if it was Lein handling the project I coud easely interop both java and clojure with each other, but my friends have no interest in using Clojure or changing the project structure (understandably of course), is there anyway I can keep the development using gradle and intellij without having to compile Clojure into jar and include it has a external dependency? (use gradle so it can build the java and clojure in the same project or something like that)
I already tried finding plugins but I couldnt get it to build the project from intellij has it would keep getting errors... Thanks in advance for the responses.

How to create a mixed Scala and Java Maven Project?

I have googled aplenty, and I find scraps of info here and there, most old, and I haven't found a good answer.
I need to write scala and Java, and I'd like to do so inside the same maven project. I would like to use IntelliJ or Netbeans if that matters, with the latest Scala lib and Java 8.
What is the best way to create a maven project with Scala and Java code in it?
I've seen this but it's kind of old
Maven: mixing Java and Scala in one project

IntelliJ SDK for Plugin cannot find com.intellij.tasks

This must be a painfully simple question but I am new to IntelliJ. I am running 14.1 community, and created a new plugin project.
This asked me to set the SDK, which is install of IntelliJ. No problem, I pointed it at the IDEA directory.
I grabbed some example source for creating a task repository from github.
When I try to import any of the actual classes in the Task jar, I get no classdef errors all over.
It shows that it knows about com.intellij.tasks but all of the classes are missing.
What rookie mistake have I made?
In order to use com.intellij.tasks.* classes in plugin project, I've added plugins/tasks/lib/tasks-*.jar jars from IDEA installation to the classpath of SDK used to build plugin project.

Introducing scala into existing netbeans java project

I have an existing java project in Netbeans. I would like to start coding parts of it in Scala. I can add ".scala" files to the project but apparently they aren't compiled.
Can I somehow modify the existing Netbeans project settings in order to build java and scala sources together or do I need to create a new project and import the existing (java) sources?
Thanks
Martin
EDIT Sorry, I forgot to mention: I've installed the Scala-Plugin for netbeans, so compiling scala code is feasible.
I can create a new (Scala) project and add both scala and java sources to it and it compiles perfectly. My question was if (and how) it's possible to migrate an existing "java-only" project towards such a "mixed" project.
I don't think this is possible in the way you want it. You could however write an Ant build-script and let Netbeans execute it when building you application.
Otherwise I suggest to just create a new scala project and import it as *.jar library into your Java application. This keeps your project clean and nicely modularized.
You will need to migrate to use something like Maven to do this for you, as Netbeans doesn't know how to compile Scala code. Maven can be configured to compile the .scala files first then the .java, resulting in your final compiled source.
Have a look here for the maven config.
I would recommend doing a new maven project, Project form Archetype, and use the following.
http://mvnrepository.com/artifact/org.scala-tools.archetypes/scala-archetype-simple/1.3
This basically auto imports you a project all set up to get started running scala in a Java project.

Categories

Resources