Stream: cql
Topic: Loading language-cql package to atom
Sonia Klemperer-Johnson (Mar 30 2021 at 17:46):
I am trying to load the language-cql package to atom. I went to https://atom.io/packages/language-cql and clicked the install button, and I get this very generic error: image.png
Am I missing a step?
Matt Jenks (Mar 30 2021 at 19:00):
@Sonia Klemperer-Johnson I followed these instructions, https://github.com/cqframework/atom_cql_support#how-to-install. I'm running on a mac. Once I had java installed (and the JAVA_HOME environment variable ) and the CQL plugin, and I restarted atom, cql-not-test-output.png most things worked fine. One problem I am having still having is that when I run my CQL I don't see any output from the plugin except for what is in the screenshot. @Bryn Rhodes Any ideas?
Bryn Rhodes (Mar 30 2021 at 19:21):
@Sonia Klemperer-Johnson "Failed to load language-cql - try again later", that's not very helpful, sorry about that :(. Can you try opening the developer tools panel and see if you get any more detailed logging about what's going on (press Ctrl-Shift-I on a Windows machine)
Bryn Rhodes (Mar 30 2021 at 19:23):
@Matt Jenks , I'm not sure there either, can you verify the installed version of the plugin, and also check the developer tools panel?
JP (Mar 30 2021 at 19:26):
@Matt Jenks - Can you make sure the Exercises02.cql file is saved? The current version of the plugin requires everything to be saved before it'll run.
Matt Jenks (Mar 30 2021 at 19:32):
@JP Yes. My file is saved. Still an issue, but it seems I am getting an rpc.sendRequest failure.
@Bryn Rhodes installed plugin version is language-cql 2.9.0. My dev console is showing some internal errors. Screen shots attached. exceptions.png saved-file.png packages.png
JP (Mar 30 2021 at 19:43):
@Matt Jenks - Can you send me the full content of the cql file that's erroring?
Matt Jenks (Mar 30 2021 at 19:49):
@JP Exercises02.cql See attached.
JP (Mar 30 2021 at 20:03):
Hmm.. That works on my machine. Could you try:
Going to Edit -> Preferences -> Debug LSP and make sure it's checked. This will add verbose diagnostics
Restarting Atom
Opening the developer console
Running the CQL again
JP (Mar 30 2021 at 20:03):
Matt Jenks (Mar 30 2021 at 20:14):
@JP Screen-Shot-2021-03-30-at-4.13.21-PM.png
Matt Jenks (Mar 30 2021 at 20:15):
@JP FYI ... I'm running on MacOS 11.2.3 with openJDK 8.
➜ cqf-exercises git:(master) ✗ java -version
openjdk version "1.8.0_282"
OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_282-b08)
OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.282-b08, mixed mode)
JP (Mar 30 2021 at 20:17):
Thanks Matt. I understand what's happening now. I'm going to see if I can figure out a workaround and get a bug fix ready for the next version.
Matt Jenks (Mar 30 2021 at 20:21):
Great! Thanks!
Matt Jenks (Mar 30 2021 at 20:23):
@JP I also ran the attached CQL file and received a different error output. Attaching both in case they are helpful. Screen-Shot-2021-03-30-at-4.19.36-PM.png Exercises03.cql
JP (Mar 30 2021 at 20:24):
That is helpful. Thanks!
Sonia Klemperer-Johnson (Mar 31 2021 at 15:51):
@Bryn Rhodes - I'm not seeing any detailed logging about what's going on. But I'm not an expert at the developers tool screen, maybe I'm missing something. Someone mentioned JAva - I have it installed, but how do I know it's in the right location, or that Atom knows where it is?
JP (Apr 01 2021 at 16:45):
I've published a new version of the plugin to address some of the installation wonkiness. Please give version 2.9.1 a shot and see if you get better results.
Last updated: Apr 12 2022 at 19:14 UTC