larpon / vee

Small, experimental text editor engine written in V
MIT License
49 stars 3 forks source link

Cannot build due to V update #7

Closed brayevalerien closed 10 months ago

brayevalerien commented 10 months ago

When trying to compile, I get the following error:

buffer.v:22:1: notice: `[attr]` has been deprecated, use `@[attr]` instead
   20 | }
   21 |
   22 | [heap]
      | ^
   23 | struct Buffer {
   24 |     line_break string = '\n'
math.v:5:1: notice: `[attr]` has been deprecated, use `@[attr]` instead
    3 | module vee
    4 |
    5 | [inline]
      | ^
    6 | fn imax(x int, y int) int {
    7 |     return if x < y { y } else { x }
math.v:10:1: notice: `[attr]` has been deprecated, use `@[attr]` instead
    8 | }
    9 |
   10 | [inline]
      | ^
   11 | fn imin(x int, y int) int {
   12 |     return if x < y { x } else { y }
utils.v:5:1: notice: `[attr]` has been deprecated, use `@[attr]` instead
    3 | module vee
    4 |
    5 | [if debug_vee ?]
      | ^
    6 | fn dbg(str string) {
    7 |     eprintln(str)
vee.v:8:1: notice: `[attr]` has been deprecated, use `@[attr]` instead
    6 | import vee.command
    7 |
    8 | [heap]
      | ^
    9 | pub struct Vee {
   10 | mut:
vee.v:6:1: builder error: cannot import module "vee.command" (not found)
    4 |
    5 | import strings
    6 | import vee.command
      | ~~~~~~~~~~~~~~~~~~
    7 |
    8 | [heap]

This is due to a recent V update and should be pretty easy to fix following the error messages.

larpon commented 10 months ago

Thanks for the bug report - it should be fixed in #8