Skip to content

feat: resolve elide from PATH#2

Merged
Lauri "datafox" Heino (melodicore) merged 1 commit into
mainfrom
feat/resolve-from-path
Jun 7, 2025
Merged

feat: resolve elide from PATH#2
Lauri "datafox" Heino (melodicore) merged 1 commit into
mainfrom
feat/resolve-from-path

Conversation

@sgammon
Copy link
Copy Markdown
Member

Summary

Adds PATH resolution for the Elide binary, which kicks in by default; if maven.compiler.executable is specified, it will be used, otherwise this new logic will apply.

#1 should be merged first, and then this should be rebased, before merging (or, this should be merged and that PR should be closed).

Changelog

feat: use compiler path if specified (overrides)
feat: resolve `elide` from user path
chore: cleanups in readme/sample project
chore: move compiler ID to new constants file

@sgammon Sam Gammon (sgammon) self-assigned this Jun 7, 2025
@sgammon Sam Gammon (sgammon) added enhancement New feature or request ✋ embargoed Waiting for further action labels Jun 7, 2025
feat: use compiler path if specified (overrides)
feat: resolve `elide` from user path
chore: cleanups in readme/sample project
chore: move compiler ID to new constants file

Signed-off-by: Sam Gammon <sam@elide.dev>
@sgammon Sam Gammon (sgammon) changed the base branch from chore/cleanups to main June 7, 2025 19:58
Comment on lines -18 to +35
open class ElideJavacCompiler() : AbstractCompiler(
public open class ElideJavacCompiler() : AbstractCompiler(
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i plan to start enforcing "explicit" mode on this project eventually, so we don't break downstream users with public symbol changes. this is prep for that

Comment on lines +83 to +86
private fun getElideExecutable(config: CompilerConfiguration): String = when (val executable = config.executable) {
null -> ElideLocator.locate()?.absolutePathString()
else -> executable
} ?: "elide"
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

slightly cleaner with a when-with-subject, also adds PATH resolution

Comment on lines -179 to +196
fun parseOutput(exitCode: Int, input: List<String>): List<CompilerMessage> {
private fun parseOutput(exitCode: Int, input: List<String>): List<CompilerMessage> {
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

explicit mode

@melodicore Lauri "datafox" Heino (melodicore) merged commit ae568c7 into main Jun 7, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

✋ embargoed Waiting for further action enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants