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

Split Compile from Language Feature #33

Merged
merged 6 commits into from
Jul 28, 2022

Conversation

tricktron
Copy link
Owner

@tricktron tricktron commented Jul 28, 2022

Fixes #27.

Code changes should drive the compilation. Therefore, compilation is triggered in the didSave, didChange events and update the global. The language features then just get the information from the global. Besides, this makes the language features pure (no more IO dependency from compile).

explore the effort of reading a gradle plugin property with
the gradle tooling api.
Expose two environment variables to configure the frege compiler:
- FREGE_LSP_SOURCE_DIR
- FREGE_LSP_EXTRA_CLASSPATH
code changes should drive the compilation. Therefore, compile the code
in the didSave, didChange events and update the global. The language
features the just get the information from the global.

This does currently not work because I wrongly used an IO Global as
state. Instead it should be a Global only that we can get with
performUnsafe. Otherwise we stay in IO and due to the laziness no work,
that means no compilation is done.

Search for the marked TODO in the code to see where to make the changes.

Rebase on main first!
Resolves all the todos introduced by the previous commit.
@tricktron tricktron merged commit 473c33d into main Jul 28, 2022
@tricktron tricktron deleted the f-split-compile-from-language-feature branch July 28, 2022 18:38
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.

Think about Splitting Compile From Language Feature Step
1 participant