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 supports for using Source Generator using Directives #3033

Draft
wants to merge 14 commits into
base: main
Choose a base branch
from

Conversation

Perklone
Copy link

@Perklone Perklone commented Jul 17, 2024

Address #610. Will be a Draft PR until we can get a conclusion regarding the design of how we want to approach having the source generator

This is a concept PR that I had in mind, also discussed with @bishabosha and @kannupriyakalra aswell.

The idea is that use the source generator via directives that would look something like this:

project.scala:
//> using sourceGenerator.scripts ${.}/generator/generator.scala <- This one for specifying the path of the generator
//> using sourceGenerator.excludeScripts true <- to make sure that the generator file is not run from the original scala-cli runner

in your generator file:

generator.scala:
//> using sourceGenerator.inputDirectory "${.}/../source-generator-input" <- Directory where the data file is located
//> using sourceGenerator.glob "glob:test.in" <- Type of files that will be taken to the Bloop Server

@Gedochao
Copy link
Contributor

#3035
in case there's anything we can reuse, kudos to @MaciejG604

@Perklone Perklone force-pushed the main branch 2 times, most recently from 2aec8dd to cb2c8dd Compare July 28, 2024 14:54
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