suru icon indicating copy to clipboard operation
suru copied to clipboard

import suru fails

Open NeveIsa opened this issue 1 year ago • 2 comments

Try this in a file named hello.nim

import suru

The following is the error

/home/[redacted]/.nimble/pkgs2/suru-0.3.1-cd5a2094da4c78f632b31b56739e0d0a55baa998/suru.nim(241, 14) Error: type mismatch
Expression: setup(sbc[].bar, iterableLengths)
  [1] sbc[].bar: SuruBar
  [2] iterableLengths: varargs[int]

Expected one of (first mismatch at [position]):
[1] proc setup(sbc: ptr SuruBarController; iterableLengths: varargs[int])
[2] proc setup(sb: var SuruBar)
  extra argument given

NeveIsa avatar Aug 16 '24 18:08 NeveIsa

same here.

/home/redacted/.nimble/pkgs/suru-0.3.1/suru.nim(241, 14) Error: type mismatch
Expression: setup(sbc[].bar, iterableLengths)
  [1] sbc[].bar: SuruBar
  [2] iterableLengths: varargs[int]

Expected one of (first mismatch at [position]):
[1] proc setup(sbc: ptr SuruBarController; iterableLengths: varargs[int])
[2] proc setup(sb: var SuruBar)
  extra argument given

greenersharp avatar Dec 24 '24 20:12 greenersharp

sorry, i've been off of programming for a really long while. life stuff. i'll look into it maybe a few days from now

de-odex avatar Dec 27 '24 14:12 de-odex