T
TypeDB•3w ago
AM

TQLS script SHA error

Hello, when loading any .tqls I'm getting the following error: error:
**Error executing command**
source ../core/attributes.tql
source
--> Error
Expected '../core/attributes.tql' to have sha256 'source', but calculated 'b9be3fec46b56dd2fc5f566255e22639b10f8358dde5de6b373fa022d55ea656',
**Error executing command**
source ../core/attributes.tql
source
--> Error
Expected '../core/attributes.tql' to have sha256 'source', but calculated 'b9be3fec46b56dd2fc5f566255e22639b10f8358dde5de6b373fa022d55ea656',
The command that is running is as follows:
typedb console --address=http://localhost:1729 \
--username=admin --tls-disabled --password=password \
"--script=$arg" | tee "$temp_output"
typedb console --address=http://localhost:1729 \
--username=admin --tls-disabled --password=password \
"--script=$arg" | tee "$temp_output"
This is on TypeDB CE 3.5.1
7 Replies
Joshua
Joshua•3w ago
hmmm weird! that's a new feature i just added looks like it's not working as expected šŸ¤” lemme test it out quickly @AM @AM ok im struggling to reproduce this - can you echo out what $arg is in the execution command?
dmitrii
dmitrii•3w ago
Do you have multiple sources in your repro? I ran into that too.
Joshua
Joshua•3w ago
lemme check ohh the newline isn't being respected gotchu
AM
AMOP•3w ago
arg is "_main.tqls" which does have multiple sources within a schema
Joshua
Joshua•3w ago
got it ill pick this up tomorrow or thursday!
Joshua
Joshua•2w ago
@dmitrii you can review the fix here https://github.com/typedb/typedb-console/pull/310
GitHub
Fix optional argument parsing and add tests by flyingsilverfin Ā· P...
Usage and product changes We fix a reported error where optional arguments (such as the sha for a source command) would cause errors when not present in a script. In particular, the next script lin...
Joshua
Joshua•2w ago
@AM check out the latest TypeDB release and let me know if it works : šŸ™‚

Did you find this page helpful?