getgrit / gritql

GritQL is a query language for searching, linting, and modifying code.

Home Page:https://docs.grit.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No ability to print multiple logs

jsardev opened this issue · comments

I'm a bit confused about why running log logs only the first log and then nothing else. Could all the log executions be visible in stdout? 🤔

I'm not sure what you mean by this. Please provide the commands and code you use to reproduce.

engine marzano(0.1)
language js

string_fragment() as $fragment where {
    log(message = $fragment)
}
console.log("Hello, Dan")
console.log("Hello, James")

https://app.grit.io/studio?key=4-_6OE96nQtRDugIa2Hep

@morgante I was expecting to see logs for both occurences, but when I run this via grit apply - I only see the first log execution.

Ah ok, the studio only shows the first log currently.

They should all show up on the CLI.

Yeah I provided a studio link for faster showcase of the code, but I'm testing it via CLI and it doesn't work there – I'm only getting the first log() 🤔
CleanShot 2024-06-27 at 21 37 18@2x