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

Provided dummy def millDiscover and implicit RootModule.Info to make IDEs not display errors #3558

Merged
merged 4 commits into from
Sep 16, 2024

Conversation

lihaoyi
Copy link
Member

@lihaoyi lihaoyi commented Sep 16, 2024

IntelliJ/VSCode can't see the generated code so they think that these things are missing, but they're not. Rather than changing IntelliJ/VSCode, for now we just provide dummy definitions that get overriden by the codegen but are enough to make the IDEs happy

Before, we see errors in extends RootModule because of the missing implicit RootModule.Info, and errors on the object as a whole because of the missing def millDiscover:

Screenshot 2024-09-16 at 1 20 54 PM

After, those two errors are gone, although the "need override keyword" errors remain:

Screenshot 2024-09-16 at 1 19 35 PM

Eventually we may have dedicated IDE support, but for now this hacks around one of the more visible IDE issues

@lihaoyi lihaoyi marked this pull request as ready for review September 16, 2024 05:31
@lihaoyi lihaoyi merged commit 78b9d62 into com-lihaoyi:main Sep 16, 2024
24 checks passed
@lefou lefou added this to the 0.12.0 milestone Sep 16, 2024
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 this pull request may close these issues.

2 participants