Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provided dummy
def millDiscover
and implicit RootModule.Info
to m…
…ake IDEs not display errors (com-lihaoyi#3558) 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`: <img width="976" alt="Screenshot 2024-09-16 at 1 20 54 PM" src="https://github.com/user-attachments/assets/85b1d86a-de34-4622-bd1b-36428bfbc9bc"> After, those two errors are gone, although the "need override keyword" errors remain: <img width="976" alt="Screenshot 2024-09-16 at 1 19 35 PM" src="https://github.com/user-attachments/assets/5b91acdd-02bd-4ede-bf3d-85b2b236ec9d"> Eventually we may have dedicated IDE support, but for now this hacks around one of the more visible IDE issues
- Loading branch information