Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support intellij import #25

Closed
OlegYch opened this issue Apr 28, 2020 · 5 comments · Fixed by #26
Closed

Support intellij import #25

OlegYch opened this issue Apr 28, 2020 · 5 comments · Fixed by #26

Comments

@OlegYch
Copy link

OlegYch commented Apr 28, 2020

Unfortunately it looks like fix for #3 broke import in intellij.
With 0.5.0 imported project looks like this:
image
With 0.5.1 idea complains about

3:00 PM	Duplicate content roots detected
								Path [D:/Distrib/Coding/Java/scala/scastie/api] of module [apiJVM2_11] was removed from modules [apiJS2_13, apiJVM2_10, apiJVM2_12, apiJVM2_13]
								Also 1 more path was deduplicated. See idea log for details

and result looks like this:
image
and cross-built module sources are not available in other modules

OlegYch added a commit to scalacenter/scastie that referenced this issue Apr 28, 2020
@OlegYch
Copy link
Author

OlegYch commented Apr 28, 2020

сс @jastice

@retronym
Copy link
Member

retronym commented May 5, 2020

👍 I'm trying to work on Zinc 1.4.x but running into this problem. Maybe for IntellIJ it would be better to just focus on a single instance?

@eed3si9n How could I configure sbt-project-matrix to add SettingKey("ideSkipProject") := true to all but the first project stamped off the template project?

@eed3si9n
Copy link
Member

eed3si9n commented May 5, 2020

As a workaround maybe I could make some directories under a dot directory like .sbt/matrix/fooJVM2_13 and use that as the base directory? That way the build users can ignore them.

How could I configure sbt-project-matrix to add SettingKey("ideSkipProject") := true to all but the first project stamped off the template project?

I'm not sure if there's an easy way to say all-but-the-first-row, but I guess you could say

SettingKey("ideSkipProject") := scalaVersion.value.startsWith("2.12.")

@OlegYch
Copy link
Author

OlegYch commented May 5, 2020

As a workaround maybe I could make some directories under a dot directory like .sbt/matrix/fooJVM2_13 and use that as the base directory? That way the build users can ignore them.

that sounds good

@OlegYch
Copy link
Author

OlegYch commented May 5, 2020

@eed3si9n thanks, it works
(though deleting .idea and reimporting the project seems necessary)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants