thecodrr / boxx Goto Github PK
View Code? Open in Web Editor NEW๐ฆ Create highly customizable terminal boxes that also look great!
License: MIT License
๐ฆ Create highly customizable terminal boxes that also look great!
License: MIT License
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:
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()
.str() methods must be declared as public
58| /* PRIVATE METHODS */
59|
60| fn (b &Boxx) str(title string, lines []string) string {
^
61| px := repeat(' ', b.config.px)
62|
Just importing thecodrr.boxx
causes this error
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.