Skip to content

Cannot import project to Intellij IDEA after the backend integration as a submodule #2299

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

Closed
biboudis opened this issue Apr 24, 2017 · 2 comments

Comments

@biboudis
Copy link
Contributor

This is probably related to IntelliJ as it re-appears every now and then in IDEA's track. Although I haven't found a solution (apart from git reset --hard <previous commit> and then git merging with dotty's master) I am putting it here as a reminder to update our Building Dotty with Intellij IDEA doc (in case we don't find one).

screen shot 2017-04-24 at 14 43 50

@smarter
Copy link
Member

smarter commented Apr 24, 2017

Ping @jastice: There seems to be an issue with IntelliJ importing sbt projects which use unmanagedSourceDirectories, I've tried to minimize it before, but my minimized projects always succeed the import. Could you help us diagnose what's going on here?

@smarter
Copy link
Member

smarter commented Apr 24, 2017

To reproduce the issue:

  1. git clone --recursive https://github.com/lampepfl/dotty.git
  2. Try to import the project in IntelliJ

smarter added a commit to dotty-staging/dotty that referenced this issue Apr 27, 2017
Both IntelliJ and Eclipse fail horribly when trying to import a project
using `unmanagedSourceDirectories` containing files (and not
directories), but this is necessary for our build since we only want to
compile a subset of the backend folder. We workaround this by
linking (or copying on OS when symbolic links do not work) the files we
want to compile in sbt `managedSources`.

Make sure to run `sbt compile` at least once before running `sbt
eclipse` or importing the project in IntelliJ.
odersky added a commit that referenced this issue Apr 27, 2017
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

No branches or pull requests

2 participants