boxx
boxx copied to clipboard
Boxx not found and when forced to throws several errors.
Boxx version: 0.0.3
OS: Linux, Manjaro Linux
Describe the bug: A clear and concise description of what the bug is. When boxx is downloaded trying to import it just has v throw the error "boxx not found". When you throw boxx and crayon into the vlib to force it to be found there's several errors.
How to reproduce: Steps to reproduce the behavior:
- download boxx
- try to import
- resort to throwing into V's vlib folder
- try to use
Expected behavior A pleasant box with cool text in it :)
Error message
/run/media/jd/HDD/VLang/vlib/boxx/boxx.v:56:28: warning: fn f(x, y Type)
syntax has been deprecated and will soon be removed. Use fn f(x Type, y Type)
instead. You can run v fmt -w "/run/media/jd/HDD/VLang/vlib/boxx/boxx.v"
to automatically fix your code.
54 |
55 | // Print the box with the given text & title (optional)
56 | pub fn (b &Boxx) print(text, title string) {
| ^
57 | mut lines := []string{}
58 | if title != '' {
/run/media/jd/HDD/VLang/vlib/boxx/boxx.v:52:9: error: fn boxx.new
expects you to return a non reference type boxx.Boxx
, but you are returning &boxx.Boxx
instead
50 | mut box := boxes[config.typ]
51 | box.config = config
52 | return &box
| ^
53 | }
54 |
/run/media/jd/HDD/VLang/vlib/boxx/utils.v:12:17: error: cannot use string
as []byte
in argument 1 to strings.Builder.write
10 | mut builder := strings.new_builder(n)
11 | for i := 0; i < n; i++{
12 | builder.write(c)
| ^
13 | }
14 | str := builder.str()