-
Notifications
You must be signed in to change notification settings - Fork 252
fix(amazonq): use user provided node runtime #5768
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
Conversation
...ains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/AmazonQLspService.kt
Fixed
Show fixed
Hide fixed
...ains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/AmazonQLspService.kt
Fixed
Show fixed
Hide fixed
@@ -372,7 +377,34 @@ private class AmazonQServerInstance(private val project: Project, private val cs | |||
} | |||
|
|||
val node = if (SystemInfo.isWindows) "node.exe" else "node" | |||
val cmd = NodeExePatcher.patch(artifact.resolve(node)) | |||
var nodePath = artifact.resolve(node) | |||
// download node runtime if it is not found |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should also search user PATH
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually we can just test if it works
ExecUtil.execAndGetOutput(GeneralCommandLine(node, "--version"))
or something
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done in latest commit
...ains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/AmazonQLspService.kt
Outdated
Show resolved
Hide resolved
...ains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/AmazonQLspService.kt
Outdated
Show resolved
Hide resolved
CI failure: :plugin-toolkit:jetbrains-rider:test |
Types of changes
Description
Manually injected download failure / unzip failure of node, then I saw the alert, then I added my own node in settings, then it works.
Checklist
License
I confirm that my contribution is made under the terms of the Apache 2.0 license.