vlang / v

Simple, fast, safe, compiled language for developing maintainable software. Compiles itself in <1s with zero library dependencies. Supports automatic C => V translation. https://vlang.io
MIT License
35.78k stars 2.16k forks source link

hot code reloading not working on windows #16256

Open KevinDaSilvaS opened 1 year ago

KevinDaSilvaS commented 1 year ago

V version: 0.3.1 OS: windows 10

What did you do? I run on shell: v run -live hotcodereload.v

What did you expect to see? I expected the hot reload feature to work

What did you see instead?

Unhandled Exception 0xC0000005
C:/Users/user/AppData/Local/Temp/v_0/hotcodereload.15444141136643021273.tmp.c:8935: at print_backtrace_skipping_top_frames_tcc: Backtrace
C:/Users/user/AppData/Local/Temp/v_0/hotcodereload.15444141136643021273.tmp.c:8902: by print_backtrace_skipping_top_frames
C:/Users/user/AppData/Local/Temp/v_0/hotcodereload.15444141136643021273.tmp.c:8960: by unhandled_exception_handler
7ffa69e28b4c : by ???
RUNTIME ERROR: invalid memory access
andorxornot commented 11 months ago

confirm

KevinDaSilvaS commented 1 month ago

I wrote a tutorial on how to make it work with Vlang a while ago: https://medium.com/@kevin-da-silva/vlang-tutorials-hot-code-reload-bfad7186a08d

medvednikov commented 1 month ago

Thanks @KevinDaSilvaS

I think it should be open until it works by default.