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

BSP: Import build related deps for IDE support in build.sc files #863

Closed
joan38 opened this issue May 7, 2020 · 5 comments
Closed

BSP: Import build related deps for IDE support in build.sc files #863

joan38 opened this issue May 7, 2020 · 5 comments
Labels
contrib Issues related to contrib modules, which are probably maintained by someone outside mill core team

Comments

@joan38
Copy link
Collaborator

joan38 commented May 7, 2020

It seems with BSP that build.sc and other .sc files are all red because we don't import the mill library and other $ivy dependencies.
Would be cool to support that too.

Thanks

@joan38 joan38 changed the title BSP: Import build related deps to make build.sc not red BSP: Import build related deps for IDE support in build.sc files May 7, 2020
@lefou lefou added the contrib Issues related to contrib modules, which are probably maintained by someone outside mill core team label May 12, 2020
@joan38
Copy link
Collaborator Author

joan38 commented May 20, 2020

This is partially fixed in 0.7.2
We are only missing the $file imports

@joan38 joan38 mentioned this issue May 21, 2020
7 tasks
@joan38
Copy link
Collaborator Author

joan38 commented Jun 25, 2020

I found out that the $file imports are supported in the current GenIdea through enabling the sc files support with <option name="scFileMode" value="Ammonite" />.

I don't know how to enable this with BSP. But the change will happen on the Intellij codebase. It should automatically enable the Ammonite support as soon as it sees a build.sc.

This can be enabled manually through Preferences -> Language & Frameworks -> Scala -> Worksheet tab -> Treat .sc files as: to Ammonite.

@nafg
Copy link
Contributor

nafg commented Oct 18, 2021

Until this is fixed I don't think the docs should call GenIdea legacy

@lefou
Copy link
Member

lefou commented Oct 18, 2021

Until this is fixed I don't think the docs should call GenIdea legacy

I agree. Right now GenIdea is better maintained than BSP. Although I have some ideas and also prototypes for BSP improvements, nothing is ready to use. So yes, please go ahead and update the docs.

@lefou
Copy link
Member

lefou commented May 28, 2024

Fixed for a while, but I can't say since which version.

@lefou lefou closed this as completed May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contrib Issues related to contrib modules, which are probably maintained by someone outside mill core team
Projects
None yet
Development

No branches or pull requests

3 participants