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

Add support for the frege-intellij plugin #35

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

nea89o
Copy link

@nea89o nea89o commented Jun 23, 2022

This commit adds support for the frege intellij plugin by

  • exposing the frege compiler jar as a dependency, so the plugin can
    recognize the standard library.
  • adding the name 'fregeRun' as that is used by the plugin to run files
  • add support for overriding the main module executed by runFrege so
    that arbitary files can be run by the plugin
  • output frege compilation output into the java compilation output

I'm reopening this PR, since it's now been rebased and i dont know how to switch HEAD branches in github.

As to why this PR is neccessary / addressing some of the questions asked in the last PR:

The intellij-frege plugin (https://github.com/IntelliJ-Frege/intellij-frege) uses a build.gradle that contains all the download+build+repl+etc code, and ive been using this plugin as a substitute for that. However, this plugin and the generated build.gradle have a few differences (mainly: fregeRun vs runFrege, and specifying the project property class_name to run a specific module when using the green run arrow), so i added those two changes to the runFrege task.

In addition to that i make both the frege jar and frege dependencies available on the java classpath, since that way they are per default included in the application plugin / shadow jar plugin and that way they are also indexed by intellij.

To that end, i also make the classes task depend on compileFrege so that frege compilation output is captured in the project jar.

nea89o added 2 commits June 23, 2022 23:17
This commit adds support for the frege intellij plugin by

 - exposing the frege compiler jar as a dependency, so the plugin can
   recognize the standard library.
 - adding the name 'fregeRun' as that is used by the plugin to run files
 - add support for overriding the main module executed by runFrege so
   that arbitary files can be run by the plugin
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.

1 participant