Does anyone us VSCODE with the CFML Editor Extensi...
# cfml-general
m
Does anyone us VSCODE with the CFML Editor Extension and know how to get the hover features to work?
g
@Jacob Beers is this something our extension supports?
m
Oh, intersting,. It appears yours extends a few others. Let me try it,
šŸ‘ 1
g
Let me know how it goes for you. It does a lot. šŸ™‚
m
Same. the signature help, the hover, none of it seems to work
running on a fresh install of VSCode as well
That your ext work in workspaces? I am using Remote SSH extension
g
Not sure on that one. I am seeing if @Jacob Beers is around. He is the extension master.
m
Thanks!
j
Hi @mikechy! What hover features are you looking for exactly? Documentation support? Something like
m
HI @Jacob Beers - turns out it must have been something that had been installed and kept during a uninstall and re-install. I manually killed the folder that extensions were stored in that lived through an uninstall. Killed that, did a VS Code re-install, re-added the BoxLang ext and all seems to work now!
🤘 1
j
Awesome, glad to hear it! Sometimes nuking it from orbit is the way to go.
🤘 1
m
Yeah, that usually works, lol. thanks!
g
Now that its working, can you let us know how it works for you? šŸ™‚
m
I am getting an error about not having Java 21 installed which I do. and I put the path into the settings.. I assume it's thepath to the java.exe?
j
A couple of things to try... • What is the output of
java --version
when run from a terminal? • What path did you set in the vscode settings? Was it the full path to java.exe or the path of the bin folder? • Are you using the JDK or the JRE? On my system (windows) I have the path set as
C:\\Program Files\\Eclipse Adoptium\\jdk-21.0.2.13-hotspot\\bin
- the double backslashes are required.
m
C:\WINDOWS\system32>java --version java 21.0.2 2024-01-16 LTS Java(TM) SE Runtime Environment (build 21.0.2+13-LTS-58) Java HotSpot(TM) 64-Bit Server VM (build 21.0.2+13-LTS-58, mixed mode, sharing)
"boxlang.java.javaHome": "C:\\Program Files\\Java\\jdk-21\\\bin\\",
tried it with escapes as well (\\\\)
j
It looks like there are 4 slashes between jdk-21 and bin. What if you try
C:\\Program Files\\Java\\jdk-21\\bin
m
same. as soon as I save I get the popup[ bottom right that java 21 is required
j
Hmm, that is odd. Can you try opening up your "output" tab and switching the drop down to "BoxLang"? There should be a message in the output window that starts with "This extension requires a version of java" The full output of that line might belp.
m
Switching to new JVM: C:\Program Files\Java\jdk-21\bin\java.exe Switching to new JVM: C:\\Program Files\\Java\\jdk-21\\bin\\java.exe Switching to new JVM: C:\Program Files\Java\jdk-21\in\ Switching to new JVM: C:\Program Files\Java\jdk-21\bin\ Switching to new JVM: C:\\Program Files\\Java\\jdk-21\\bin\\ Switching to new JVM: C:\Program Files\Java\jdk-21\bin Switching to new JVM: C:\Program Files\Java\jdk-21\bin\ Switching to new JVM: C:\Program Files\Java\jdk-21\bin Switching to new JVM: C:\Program Files\Java\jdk-21\bin\ Switching to new JVM: C:\Program Files\Java\jdk-21\bin
you can see where I have tried many things, lol
j
Hmm, so is there no line that starts with "This extension requires a version of java"?
m
not in the output
this is in the lower right of the VSCODE window
image.png
oh intersting,.,.. It may have to do with I am using Remote SSH to connect to a remote server
If I launch a new window and connect to a local drive it pops up that it's running
that's a shame.
Wonder if it will traverse the SSH tunnel if I point to a JVM on the server I am connecting to
Ha! It does!
On the server I was connecting to I did not have Java 21.. Installed it on the same path so I could use it local and over SSH and it works!
Next is getting CFLint working!
Thanks for your response and help!
g
These are good issues to work through. Thanks for posting.
j
Np, thank you for sharing the problems you are running into. I've used vscode over SSH before but I didn't even think about how the boxlang extension would work through it.
m
Same for CFLint. Had to path it to the jar on the server.
awesome work as usual from your guys.
🤘 1