Open foxjazz opened 3 months ago
println('Hello World!')
folder := "/Users/foxjazz/Documents/EVE/logs/ChatLogs"
entries := os.ls(folder) or { [] }
println("entries")
println(entries.count)
V can't determine the type of the array in the or
block. I am assuming you're not importing os
so it doesn't know the return type of os.ls
.
If you import os
or change line 3 to entries := os.ls(folder) or { []string{} }
, you will get more helpful errors.
Obviously the panic should still be addressed, just sharing my findings so far.
V doctor:
What did you do?
v -g -o vdbg cmd/v && vdbg file.v
builder error: file.v doesn't exist