PRQL / prql

PRQL is a modern language for transforming data — a simple, powerful, pipelined SQL replacement

Home Page:https://prql-lang.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

prqlc CLI not built with cli feature enabled (version 0.11.2 and 0.11.3)

tryan-dev opened this issue · comments

What happened?

This is my first time attempting to use prql.

Most of the downloads I have tried, for multiple platforms, do not work from the cli. Invoking the executable from a shell prompt results in the following message:

PS C:\Users\TimRyan\code\prql\prqlc-v0.11.3-x86_64-pc-windows-msvc> .\prqlc.exe --help
thread 'main' panicked at prqlc\prqlc\src\main.rs:11:5:
Crate is not built with the `cli` feature enabled, or was built for a wasm target.

I installed prql with scoop on Windows 11 (23H2), which I use as a package manager for my work Windows OS. The scoop-installed prql failed to work from PowerShell 7, as well as good old fashioned cmd.exe.

Next, I tried downloading the Windows executable directly from Github and got the same results (displayed above). I also tried the binaries for macOS arm64, and for Linux running under WSL with the same results.

The only binary that has worked for me so far is from Homebrew on macOS.

I'd really like to try prql for work, which will require having prql on Windows, unfortunately. Hoping I'm either missing something obvious, or that there's a simple issue with your CI pipeline.

PRQL input

prqlc.exe --help

SQL output

thread 'main' panicked at prqlc\prqlc\src\main.rs:11:5:
Crate is not built with the `cli` feature enabled, or was built for a wasm target.

Expected SQL output

No response

MVCE confirmation

  • Minimal example
  • New issue

Anything else?

No response

I can reproduce this.
The last version that worked seems to be 0.11.1.
https://github.com/PRQL/prql/releases/tag/0.11.1

You can install with winget install prqlc --version 0.11.1

I'm surprised no one has noticed this in a month (i.e. no one is using prqlc!)

I think this line causes this. --no-default-features should be removed.

--no-default-features --features=${{ inputs.features }} ${{

@max-sixty I think we should create a patch release as sooon as possible.

Sorry, this was my fault. Thanks for spotting @tryan-dev

Released 0.11.4

I logged in this morning and scoop had the patch release already. Thanks everyone!

Also, thank you for putting this project out into the world. I'm really excited about what you've come up with here. I think this could be a real game-changer. 👍