2024 "enable fast imports"

已回答

Hi,

in Version 2024 I miss under Maven →import in settings the ability to disable “enable fast import”.

I cannot work in my company. So I had to downgrade to Version 2023

0

Hello Steffen,

Could you please describe issues you face with this option enabled?

0

I have a Maven Dependency in my Springboot Java Microservice to a own developed module. In this module I generate Code. So I have an import to this dependecies target. My imports are red to a class of the dependency target. In Intellij idea 2023.6 I can disable “enable fast imports” and then it works.

0

Steffen,

Is it possible to provide sample project for investigation? You may share large files via https://uploads.jetbrains.com/ form. Please provide us upload ID afterwards.

0

please delete this post for me later.

0

I think the problem is that I import the class form the target folder from a pom dependency

0

Steffen,

I removed comment. Is folder with generated sources marked as “sources root” or “generated sources root”?

0

ahh I see my target folder is excluded… but when I include the generated-sources … it is still the same problem

0

Steffen,

Is it possible to use classes from generated sources in the same module?

Also please check how module dependency is shown in “Project Structure | Modules - Dependencies”. Is it added as maven dependency or as IDE module dependency?

0

He Yaroslav,

it works now… If I do this “target/generated-sources/xjc” to “source folders” then it works :-)

thanks :-)

0

Steffen,

Please try to run reload from “Maven” tool window. Will “source root” stay marked?

0

Yaroslav,

you are right… then it is lost and I have the same problem :-(

0

Steffen,

How is folder with generated sources marked? Is it marked just as “excluded”?

0

no marked as source… but now I have the problem that I cannot see under “project structure” the source etc. for this module… nothing :-(

 

0

this will not work… In the moment I die an change in the registriy to have the old checkbox “enable fast imports” but for the future this is not working

0

after do an maven reload I have the target folder as excluded.

0

Steffen,

So, no roots are set automatically for that module at all?

0

no there are still src java files for roots and target/generated-sources/xjc to generated sources… also test and the target excluded

0

after maven reload I have to switch the checkbox to disabel “enable fast imports” that I can see again “source, test, excluded” etc. under the project structure settings.

0

Steffen,

Sorry, could you please clarify current state? All roots are detected, but to make it work you need to change “generated sources” root to “sources root”?

0

please delete my files after your check.

0

Steffen,

Thanks! Could you please try to open that module as a new project? Will IDE create proper structure in this case?

0

ja the ide will do this when I open the pom file as a Project.

0

So, the problem is only when it's added as module to another project.

Could you please try to copy your project to other location, remove all IDE related data (.iml files and .idea folders) and reimport project again. Will it help?

0

still the same… I deleted the whole project and cloned it again. I also deleted the project which imports the classes. Still the same. It is good that I can disable “enable fast imports” otherwise I have to downgrade to 2023.6.

0

Steffen,

We have several similar cases under investigation. We couldn't reproduce the issue on our side. It would be great if you could provide some sample project for investigation.

0

请先登录再写评论。