Closed richb-hanover closed 1 month ago
Thanks Rich this is an excellent bug report. (Terrible bug!)
I've going to add better error reporting (image below) and investigate mac now.
Display any PRQL errors:
Found the bug. I wasn't waiting for the process to finish. Turns out this is fine on windows but not mac. process.waitfor(). Now to check all my other code like that :)
Released fix in 3.03: https://www.timestored.com/qstudio/download @richb-hanover Please confirm it works for you
Thanks for the speedy turnaround. Using 3.03, I get this message:
java.io.IOException: Cannot run program "prqlc": error=2, No such file or directory
FYI: I don't know if it matters, but I used this procedure to download and run 3.03:
PS I like that you remember the previous set of servers/open files/etc. I can just pick up where I left off...
That procedure looks correct, though I will need to look into making it nicer. Thanks for letting me know.
That error seems to suggest prqlc is not on your path. It looks the same as the error I had when I purposefully renamed prqlc. Can you try launching qstudio from the terminal:
If this fails let's either have a zoom call when suits you OR I will add PATH logging to the log output.
@ryanhamilton Good news. Your hint suggesting run -jar qstudio.jar
seems to have broken things free. (It also gives a bunch of debugging info. GREAT!) Things are working after I tweaked/adjusted a ton of things.
I am closing this report, and will write up another set of other observations/questions. THANK YOU!
Brilliant, glad it worked! Though I'm going to look at improving the mac experience soon.
I'm using qStudio PRO 3.0.2 and Java 16.0.1 on macOS 12.7.5. I have
prqlc
0.11.3 installed in /usr/local/bin/prqlc which is on my path. When I attempt to run a PRQL query, I see an error message "Problem sending query to server".Some things are working:
I opened a SQLite database, made a new query and used Cmd-E to execute
select * from ScrapedData
and the result pane shows the expected results, and the Console shows the correct number of rows.prqlc seems to be on the path:
echo 'from employees | filter has_dog | select salary' | prqlc compile
displays the expected SQL commands.I opened a new query, and typed a short PRQL query and saved it as junk.prql. That worked fine.
When I used Query -> Query Current Statement, I get the Problem sending query... message
What other troubleshooting information could I provide? Many thanks for this cool project!