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

Plugin cannot run pkl-cli on Windows #8

Open
7DataBits opened this issue Feb 16, 2024 · 5 comments
Open

Plugin cannot run pkl-cli on Windows #8

7DataBits opened this issue Feb 16, 2024 · 5 comments

Comments

@7DataBits
Copy link

7DataBits commented Feb 16, 2024

Opening a pkl project file on Windows, IntelliJ plugin gives hint to do a "Sync".
This tries to run pkl project resolve by calling the executable at the configured pkl path.

Due to the fact that a Windows native executable is not available I downloaded the provided jar file.
IntelliJ gives the following error when trying to execute the command:

Cannot run program "C:\<path-to-binary>\pkl-cli-java-0.25.2.jar": CreateProcess error=193, %1 is not a valid Win32 application
@stackoverflow
Copy link
Contributor

Support for Windows should be coming in the next version.
I imagine you can create a .bat file that calls java -jar pointing to the cli jar, but I haven't tested it.

@holzensp
Copy link
Contributor

Or try it with jpkl (built with gw javaExecutable and ending up under pkl-cli/build/executable/jpkl), because that's a jar with run instructions

@bvalyou
Copy link

bvalyou commented May 30, 2024

My team has tried this with jpkl and seeing the same behavior. I'll have them give the .bat option a try.

Edit, for reference I think the .bat file would just be

jpkl %*

@bioball
Copy link
Contributor

bioball commented May 30, 2024

We just merged our PR that adds Windows support. Try downloading the Windows binary for 0.26.0-dev, then pointing the IJ plugin to that executable.

Download here: https://pkl-lang.org/main/latest/pkl-cli/index.html#windows-executable

@bvalyou
Copy link

bvalyou commented Jun 3, 2024

The sync process passes now but we're not seeing the dependencies actually resolved in the IDE. We're seeing the External Libraries view as blank, where it's populated for me on Mac.
It looks like in Windows we're not getting the call to pkl download-package --cache-dir...

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

No branches or pull requests

5 participants