Skip to content

Plugin fails with "com.redhat.devtools.lsp4ij.server.CannotStartProcessException" for Dhall LSP #513

Closed

Description

@jakub-borusewicz

Error I'm getting:

com.redhat.devtools.lsp4ij.server.CannotStartProcessException: java.io.IOException: Cannot run program "": error=2, No such file or directory
	at com.redhat.devtools.lsp4ij.server.ProcessStreamConnectionProvider.start(ProcessStreamConnectionProvider.java:68)
	at com.redhat.devtools.lsp4ij.LanguageServerWrapper.lambda$start$0(LanguageServerWrapper.java:231)
	at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768)
	at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1760)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:507)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1491)
	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:2073)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:2035)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:187)

My configuration
image
image
image
image

Any advice how to fix that? Sorry if I'm making some silly mistake with configuration, I'm new to using this plugin and LSP in general

lsp4ij-export20240906.zip

Activity

  1. angelozerr commented on Sep 6, 2024

    @angelozerr
    Contributor
  2. jakub-borusewicz commented on Sep 6, 2024

    @jakub-borusewicz
    Author
  3. angelozerr commented on Sep 6, 2024

    @angelozerr
    Contributor

    Sorry I don't see your zip?

  4. jakub-borusewicz commented on Sep 6, 2024

    @jakub-borusewicz
    Author

    Attached it to original post at the bottom, here you have it also:
    lsp4ij-export20240906.zip

  5. angelozerr commented on Sep 6, 2024

    @angelozerr
    Contributor

    I have:

    and it is working:

    image

    I can confirm that you have a problem with your command:

    • I suggest that you try to execute this command in a terminal to see if it is working
    • if it i sworking, try to add sh -c before your command
  6. jakub-borusewicz commented on Sep 6, 2024

    @jakub-borusewicz
    Author

    After few tries I discovered that I had whitespace on the beginning of the command string 🤦 so it's my fault
    but maybe would be good idea to automatically strip whitespaces in the command box :) just an suggestion

    Thanks for help!

  7. angelozerr commented on Sep 6, 2024

    @angelozerr
    Contributor

    After few tries I discovered that I had whitespace on the beginning of the command string 🤦 so it's my fault
    but maybe would be good idea to automatically strip whitespaces in the command box :) just an suggestion

    Wow it is an horrible problem!

    Thanks for your feedback. We indeed fix that.

    Thanks for help!

    You are welcome and hope you will enjoy with LSP4IJ

  8. added this to the 0.5.0 milestone on Sep 6, 2024
  9. added
    question
    on Sep 6, 2024
  10. angelozerr commented on Sep 6, 2024

    @angelozerr
    Contributor

    @jakub-borusewicz I have fixed your issue with spaces in #515

    You can install nightly-builds to have this fix or wait for Monday because we will create the 0.5.0 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    question

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions