Replies: 2 comments 3 replies
-
Thanks @kevinwu1!
I don't have a corporate wifi to test with, but the current documentation recommends you set an environment variable when running Mill: Can you check if that works for you? If it works and the problem is the docs were too hidden, I can try to add a link somewhere in the intro to make it more discoverable
Can I check what version of IntelliJ and IntelliJ-Scala-Plugin you are using? I've never had to do this, but not sure if it's because I'm on a nightly or EAP build of one of those things
Yes we have reorganized the docs. In theory everything should still be there, is there anything specific you found missing?
I suspect these may be related to the corporate firewall problems, as that would make it impossible to download this necessary component from Maven Central. The fact that it went away after you resolved the other problems does make me lean towards that theory |
Beta Was this translation helpful? Give feedback.
-
Maybe we can add extra section in getting started or installation to explicitly state what to do if one needs to use maven mirror at the very beginning. Current documentation "we managed dependencies with coursier and repositoriesTask tells coursier what to do. And mill requires some runtime dep is also managed with coursier, but it requires directly instructing coursier" is a bit too reference-y that require a bit effort to carefully read through and some understanding of mill to connect all the points IMO. |
Beta Was this translation helpful? Give feedback.
-
Hi, just wanted to give some feedback about my experience/troubles setting up mill for the first time.
I'm working behind a corporate firewall that blocks repo1.maven.org. I thought that the repositoriesTask would solve this problem, but I actually had to go configure Coursier's mirror.properties file to just get mill running by itself. I'm guessing mill needs to download some stuff before it can actually parse the build.sc file? It took me a really long time to figure this out, especially because on windows, the path for the config file is NOT directly in the home directory. It was C:\Users\MYUSER\AppData\Roaming\Coursier\config\mirror.properties, and C:\Users\MYUSER\AppData\Roaming\Coursier\config\credentials.properties
These paths are not even listed on coursier's documentation
The "Installation and IDE Support" page claims that I just need to install the intellij scala plugin and open my project containing a mill build file and intellij will recognize it as a BSP project. However, it actually did not recognize it for me when I first tried. I had to run "mill mill.bsp.BSP/install" before opening it so that intellij can recognize the project as BSP.
I've noticed that the documentation on the mill-build website is different for different versions, specifically, the latest 0.12.1 is missing some information found on previous versions.
Before I figured out all of the problems, when I ran mill foo.compile, I would get an error message about "Failed to load compiler bridge for 2.12.17 org.scala-lang". I tried switching around the scala version in build.sc, but got the same error for 2.13.11 and 3.3.3. Mysteriously though, 2.13.15 worked. After I figured out the other issues though, I no longer get this error for any scala version.
Beta Was this translation helpful? Give feedback.
All reactions