Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escape special characters +-&|!(){}[]^"~*?:\ - e.g. \+ \* \!
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Unanswered
Why does the already defined error come up during TonCLI's run_tests procedure?

Why is it that during the TonCLI run_tests procedure, already defined comes up even with only having 2 procedures in test file?

The error is as follows:

[ 1][t 0][2022-08-03 17:54:16.452700431][Fift.cpp:67] top: abort
level 1: swap { <continuation 0x5592f7b91d00> } if HERE drop 
level 2: [in @PROC:<{:] over @fail-ifdef HERE 2 { <continuation 0x5592f7c09180> } does null swap @doafter<{ 0 32 u, 
level 3: <text interpreter continuation>
level 4: <continuation 0x5592f7bae2d0>
level 5: <text interpreter continuation>
[ 1][t 0][2022-08-03 17:54:16.452739603][fift-main.cpp:204] Error interpreting file `/tmp/tmpohjkaaen.fif`: contract_tests.fif:84: PROC:<{:procedure already defined

Whenever I redefine the test contract in an attempt to fix it, it fails at the build stage.

Also, whenever I comment out the following code, the error never triggers:

cell build_new_addr( int addr ){
 cell new_addr = begin_cell()
          .store_uint(1, 2)
          .store_uint(5, 9)
          .store_uint(addr, 5)
         .end_cell();
 return new_addr;
}

This question was imported from Telegram Chat: https://t.me/tondev_eng/9127

  
  

This might not answer your question, but to any onlookers, I recommend using Blueprint instead of TonCLI for developer environments as it is much more user friendly.

Jeremy   one year ago Report
Votes Newest

Answers

6K Views
0 Answers
one year ago
one year ago
Tags