V: REPL compilation fails on OpenBSD

Created on 14 Jan 2020  路  4Comments  路  Source: vlang/v

V version: 25e7ceeef06a86f6fe3b056091ff4f4506034f46
OS: OpenBSD -current

What did you do?
After successfully compiling V, executing it results in:

V panic: V tool "/home/azarus/dev/v/tools/vrepl.v" could not be compiled
tools/vrepl.v:97:32: type `readline.Readline` has no field or method `read_line`
   95|                  prompt = '... '
   96|          }
   97|          mut line := readline.read_line(prompt) or {
                                               ^
   98|                  break
   99|          }
print_backtrace_skipping_top_frames is not implemented on this platform for now...

What did you expect to see?
Successful REPL execution.

What did you see instead?
Failure to compile the REPL.

Bug OpenBSD Tooling

Most helpful comment

Please try to copy vlib/readline/readline_darwin.v to vlib/readline/readline_freebsd.v and see if that will work @changrui ?

All 4 comments

Same as freeBSD 12.1.

Please try to copy vlib/readline/readline_darwin.v to vlib/readline/readline_freebsd.v and see if that will work @changrui ?

Please try to copy vlib/readline/readline_darwin.v to vlib/readline/readline_freebsd.v and see if that will work @changrui ?

It workes for me. I'm running freebsd 11.3

Please try to copy vlib/readline/readline_darwin.v to vlib/readline/readline_freebsd.v and see if that will work

That works for me on OpenBSD as well (with "openbsd" in the file name, of course).

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ArcDrake picture ArcDrake  路  3Comments

markgraydev picture markgraydev  路  3Comments

taojy123 picture taojy123  路  3Comments

radare picture radare  路  3Comments

shouji-kazuo picture shouji-kazuo  路  3Comments