<@U01EY27APNH> Is there any ETA on the vscode vers...
# cfml-general
j
@Mark Takata (Adobe) Is there any ETA on the vscode version of CFBuilder?
j
It’s been out for about a month, I believe.
j
Thank you. I don't see any mention of code formatting, which is what I'm most interested in. Do you know if that exists?
j
With vscode I am unsure. I have been hearing a lot about cfformat - https://forgebox.io/view/commandbox-cfformat
And I saw it in action. It was comprehensive.
j
Yes, I use that but it's not as easy to use as shift-alt-f
g
you can create a CommandBox script alias to make it easier, but I don't know if you can bind it to keys unless you use something like autohotkey
j
@garciadev I would love to see how this could work...
g
autohotkeys? I can take a look
using cfformat
you can also set cfformat in watcher mode to have it automatically format when it sees changes, but that could be a little slow with a ton of files
j
Just too lazy to cd/cd/cd/cd/cd watch ./ --overwrite every time 😉
g
we can make a command for that too probably 😄
t
There is some code formatting in the CFBuilder extension. It's not as configurable as I was hoping for.
m
Did the issues with the Adobe Coldfusion Builder extension get resolved? I still can't click on any of the buttons, like creating a new project, or adding a server, etc. I'm pretty much happy with my current setup, so I haven't really looked into it much. I use CFformat to format code on save as well.
m
Mike, most issues should have been resolved with the latest build of VSCACFB (best. acronym. EVER.) Can you confirm for me the version you're on?
m
v1.0.443. I just reinstalled again. I always get the message "There is an error in starting the language server." now. I don't see any information on https://marketplace.visualstudio.com/items?itemName=com-adobe-coldfusion.adobe-cfml-lsp&amp;ssr=false#overview about the java requirement. From testing before I think I had that requirement in place already. ❯ java --version openjdk 11.0.16 2022-07-19 OpenJDK Runtime Environment 18.9 (build 11.0.16+8) OpenJDK 64-Bit Server VM 18.9 (build 11.0.16+8, mixed mode)
Ah, finally figured out how to open the developer tools in VScode. I see a more detailed error notificationsAlerts.ts:42 There is an error in starting the language server. onDidChangeNotification @ notificationsAlerts.ts:42 console.ts:137 [Extension Host] ERROR-C:\Program Files\OpenJDK\openjdk-11.0.16_8\bin\java.exe console.ts:137 [Extension Host] ERROR---add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED,--add-opens=java.base/java.nio=ALL-UNNAMED,--add-opens=java.base/java.lang=ALL-UNNAMED,--add-opens=java.base/sun.util.cldr=ALL-UNNAMED,--add-opens=java.base/sun.util.locale.provider=ALL-UNNAMED,--add-opens=java.base/java.net=ALL-UNNAMED,--add-opens=java.base/java.io=ALL-UNNAMED,--add-opens=java.base/java.security=ALL-UNNAMED,--add-opens=java.base/java.lang.ref=ALL-UNNAMED,-Djava.util.logging.config.file=c\Users\[myprofile]\.vscode\extensions\com adobe coldfusion.adobe cfml lsp 1.0.443\logging\server\default.properties, jar,c\Users\[myprofile]\.vscode\extensions\com-adobe-coldfusion.adobe-cfml-lsp-1.0.443\lsp\acf-ls-jar-with-dependencies.jar,localhost,10000
JAVA_HOME is set to C:\Program Files\OpenJDK\openjdk-11.0.16_8, so that looks accurate
m
Mike, I am not sure if VS Code is certified on OpenJDK. The VS Code extension is setup to run on CF2021, CF2018, CF2016 and I believe requires Oracle 8 minimum (11 recommended). Are you running CF on OpenJDK?
m
No. this is just my local computer. i use commandbox there with the integrated java locally. Not sure why I picked openJDK, besides i was installing it through Chocolately package manager on Windows and the Oracle 11 JDK wasn't available on there. But I downloaded Oracle's Java 11 and set Java_home to it and rebooted. Still having the same issues. Changing Java_home broke another extension it appears so I might change back, and then play some more later. If it's possible, it would be great to specify the java install path you want for this extension only. There is an error in starting the language server. onDidChangeNotification @ notificationsAlerts.ts:42 console.ts:137 [Extension Host] ERROR-C:\Program Files\Java\jdk-11.0.16.1\bin\java.exe console.ts:137 [Extension Host] ERROR---add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED,--add-opens=java.base/java.nio=ALL-UNNAMED,--add-opens=java.base/java.lang=ALL-UNNAMED,--add-opens=java.base/sun.util.cldr=ALL-UNNAMED,--add-opens=java.base/sun.util.locale.provider=ALL-UNNAMED,--add-opens=java.base/java.net=ALL-UNNAMED,--add-opens=java.base/java.io=ALL-UNNAMED,--add-opens=java.base/java.security=ALL-UNNAMED,--add-opens=java.base/java.lang.ref=ALL-UNNAMED,-Djava.util.logging.config.file=c\Users\[myprofile]\.vscode\extensions\com adobe coldfusion.adobe cfml lsp 1.0.443\logging\server\default.properties, jar,c\Users\[myprofile]\.vscode\extensions\com-adobe-coldfusion.adobe-cfml-lsp-1.0.443\lsp\acf-ls-jar-with-dependencies.jar,localhost,10000 log.ts:313 ERR command 'cfml.server.create' not found: Error: command 'cfml.server.create' not found at v._tryExecuteCommand (vscode-file://vscode-app/c:/Users/[myprofile]/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:1696:3532) at v.executeCommand (vscode-file://vscode-app/c:/Users/[myprofile]/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:1696:3414) at process.processTicksAndRejections (nodeinternal/process/task queues96:5) at async i.open (vscode-file://vscode-app/c:/Users/[myprofile]/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:603:47356) at async a.open (vscode-file://vscode-app/c:/Users/[myprofile]/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:603:49132) etc
m
Aha, ok you're using Commandbox. Hey @bdw429s y'all figured out how to get CB running with VSCACFB right?
m
but saying that. i haven't connected any server to it yet. Commandbox isn't the issue. i just can't get the extension to work. Can't click any buttons, etc. i'll play some more.
under the Adobe Coldfusion Builder settings I see the JVM arguments option. Be great just to be able to point to whatever JDK path you wanted in here too. Instead of having to use a specific java_home for the whole computer.
m
Agreed, that would be a good feature. I'm just not sure that VS Code has the rights to access things directly like that? But it might... I just don't know. Having to set JAVA_HOME is one of my pet peeves with this extension. I'd definitely like to improve the developer experience there...
b
y'all figured out how to get CB running with VSCACFB right?
No, not really. All the Ortus peeps who tried gave up, and I never really got any help regarding the errors I was seeing from RDS in the prerelease forums