Skip to content

Use a Windows-compatible method of retrieving filepaths from interpre… - #24

Merged
daniel-larraz merged 3 commits into
kind2-mc:mainfrom
Jabe03:windows-compatibility
Sep 15, 2026
Merged

daniel-larraz merged 3 commits into
kind2-mc:mainfrom
Jabe03:windows-compatibility

Conversation

@Jabe03

@Jabe03 Jabe03 commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

Use getAbsoluteFilepath() instead of toURI().getPath() when storing the path of temproary interpreter input files. The ladder produces filepaths that Windows does not recognize, while the former is compatible with Linux and Windows. An example of the change:

/C:/Users/user/AppData/Local/Temp/kind2-interpreter-1234.json
changes to
C:\Users\user\AppData\Local\Temp\kind2-interpreter-1234.json

Where the second path is recognized by Windows, and the first is not.

Comment thread src/main/java/edu/uiowa/cs/clc/kind2/api/Kind2Api.java Outdated
Jabe03 and others added 2 commits September 15, 2026 14:44
Kind 2 can only read local files, so interpret(URI, ...) now converts its
argument with a toLocalPath helper: scheme-less URIs are used as plain
paths, file: URIs have their query and fragment dropped before
Paths.get, and anything else (other schemes, opaque or invalid paths)
raises a Kind2Exception instead of passing Kind 2 a nonexistent path.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@daniel-larraz
daniel-larraz merged commit fda52e4 into kind2-mc:main Sep 15, 2026
1 check passed
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