Skip to content

Rewrite scip-java CLI to Kotlin#907

Draft
jupblb wants to merge 6 commits into
mainfrom
michal/scip-java-cli-kt
Draft

Rewrite scip-java CLI to Kotlin#907
jupblb wants to merge 6 commits into
mainfrom
michal/scip-java-cli-kt

Conversation

@jupblb
Copy link
Copy Markdown
Member

@jupblb jupblb commented Jun 4, 2026

Rewrites the scip-java CLI module from Scala to Kotlin (clikt + kotlinx-serialization), dropping the moped runtime. Tests migrated to a local harness; moped-testkit replaced by an explicit os-lib dependency.

@jupblb jupblb marked this pull request as draft June 4, 2026 19:34
@jupblb jupblb force-pushed the michal/scip-java-cli-kt branch from f5dd87b to 79285d1 Compare June 4, 2026 20:42
jupblb added 4 commits June 5, 2026 09:22
Keep only the members called from outside Kotlin: the JVM main entry point and the ones invoked by the Scala test suites. The docs mdoc snippet now calls printHelp via the object instance.
Replace the Kotlin-only AbsolutePath wrapper with java.nio.file stdlib resolve/toAbsolutePath calls. The working directory is always absolute, so the relative-cwd fallback branch was dead and is removed.
Kotlin call sites use File.deleteRecursively from the stdlib; Scala tests use the already-present os-lib os.remove.all. The one selective-delete use (SaveSnapshotHandler) inlines a SimpleFileVisitor, which is its only caller.
- ScipSymbol: collapse the unused sealed hierarchy (parsed data was never read) into a validation function
- ClasspathEntry: remove the unread 'sources' field
- ScipBuildTool: drop dead Config.bootclasspath/jvm, the unused error-message list (use a boolean), a redundant mkdir, and an always-true classpath guard
- ScipJavaApp: remove the dead out/err stream aliases
- IndexCommand: remove the unused withApp
- CliEnvironment: remove the unused withEnvironmentVariables
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