From 1b03026dd2009d4a6f3d25226b2f13bd5c42e8a4 Mon Sep 17 00:00:00 2001 From: Olivier Mélois Date: Thu, 31 May 2018 02:22:40 +0100 Subject: Improve Intellij Idea support (#351) * Improve Intellij Idea support Improves the Intellij Idea support in various ways : * Cherrypicks the idea conf that needs deleting rather than deleting the whole .idea directory. That directory contains elements of configuration like VCS reference that were annoying to set again every time mill regenerated idea config. * Attempts to retrieve libraries that the build depends on by inspecting the classloader of the top module * Attempts at grouping jars and sources together in order to have both in the same idea files, which appears to give better jump to definition * Hacks the library names for the libraries the build depends on, in order to match Intellij's ammonite support and not show red to the user about the library that has successfuly been resolved. Also allows to jump to the library sources from the magic import. * Remove un-necessary filters * Avoid Agg throwing because of duplicated build libraries * Removing hardcoded version from SBT idea module names --- .../gen-idea/idea/libraries/scala-library-2.12.4-sources.jar.xml | 7 ------- 1 file changed, 7 deletions(-) delete mode 100644 scalalib/test/resources/gen-idea/idea/libraries/scala-library-2.12.4-sources.jar.xml (limited to 'scalalib/test/resources/gen-idea/idea/libraries/scala-library-2.12.4-sources.jar.xml') diff --git a/scalalib/test/resources/gen-idea/idea/libraries/scala-library-2.12.4-sources.jar.xml b/scalalib/test/resources/gen-idea/idea/libraries/scala-library-2.12.4-sources.jar.xml deleted file mode 100644 index e8af8eb1..00000000 --- a/scalalib/test/resources/gen-idea/idea/libraries/scala-library-2.12.4-sources.jar.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - -- cgit v1.2.3