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

ShellClassPathResolver Windows/MinGW/MSYS Support #312

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mike-vand
Copy link

ShellClassPathResolver will now look for kotlinLspClasspath.bat in project's root (and classpath.bat globally in user's home folder) instead of '.sh' shell executables.

JVM will throw Cannot run program "...\kotlinLspClasspath.sh" (in directory "..."): CreateProcess error=193, %1 is not a valid Win32 application exception when executing shell executable on Windows based MSYS/MinGW. I could not find a more elegant way to deal with this except using a separate batch file executable on Windows.

This ShellClassPathResolver (@Nycto added this capability in 2019) is somehow hidden in the code base here, I think we need to add a bit of documentation to the main readme file regarding the usage.

And I just noticed @borisbrodski had a PR with the exact same purpose opened last year (with addition of the readme niceties) and I embarrassingly didn't check before going through with this. Sigh ...

Now will look for kotlinLspClasspath.bat in project's root (and classpath.bat globally in user's home folder) instead of '.sh' shell executables
@fwcd fwcd added the dependency resolution Related to the project dependency/standard library resolver label Feb 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependency resolution Related to the project dependency/standard library resolver
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants