Coder Social home page Coder Social logo

boxx's People

Contributors

0xleif avatar biancode avatar lorendb avatar thecodrr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

boxx's Issues

.str() methods must be declared as public

.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

Issues with colorized strings from Crayon

I'm trying to use colorized strings to use different colors inside a box, and those are the results I got:
Code:
Code

Original (Without Colors):
Original

Result (With crayon colorized string):
Result

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:

  1. download boxx
  2. try to import
  3. resort to throwing into V's vlib folder
  4. 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()

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.