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

Support //> using exclude in .sc script files #3388

Open
Gedochao opened this issue Dec 20, 2024 · 0 comments
Open

Support //> using exclude in .sc script files #3388

Gedochao opened this issue Dec 20, 2024 · 0 comments
Labels
--exclude Issues tied with the excluding inputs. enhancement New feature or request scripting Issues tied to *.sc script inputs.

Comments

@Gedochao
Copy link
Contributor

Scala CLI version
1.5.4 and 4ab3227

Is your feature request related to a problem? Please describe.
Currently the //> using exclude directive is only allowed in project.scala.

Describe the solution you'd like
When using a .sc script (which may include some sources via //> using file), I may not have a project.scala in my project, so I'd just like to declare it in my script.
The directive should still only be allowed to exist in a single source file, similar to //> using file, to avoid parsing insanity.

Describe alternatives you've considered
Expect a project.scala always be included via //> using file when //> using exclude is necessary in a script setup.

@Gedochao Gedochao added enhancement New feature or request scripting Issues tied to *.sc script inputs. --exclude Issues tied with the excluding inputs. labels Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
--exclude Issues tied with the excluding inputs. enhancement New feature or request scripting Issues tied to *.sc script inputs.
Projects
None yet
Development

No branches or pull requests

1 participant