vlang / ved

1 MB text editor written in V with hardware accelerated text rendering. Compiles in <1s.
GNU General Public License v3.0
1.34k stars 78 forks source link

v REPL does not work in certain shells (Windows) #148

Closed bardo84 closed 1 year ago

bardo84 commented 1 year ago

Hi,

with v.exe on PATH, it works as expected in cmd and powershell.

`C:\Users\bmu λ v


\ \ / / | Welcome to the V REPL (for help with V itself, type exit , then run v help ). \ \/ / | Note: the REPL is highly experimental. For best V experience, use a text editor, \ / | save your code in a main.v file and execute: v run main.v \ / | V 0.3.1 1c63ce4 . Use list to see the accumulated program so far. __/ | Use Ctrl-C or exit to exit, or help to see other available commands.

1+1 C:\Program Files\Microsoft Visual Studio\2022\Community tcc version 0.9.27 (x86_64 Windows) C:/Users/bmu/AppData/Local/Temp/1/v_0/.noprefix.01GCGBSAKEK1ARW9TP3FY7W8ZZ.vrepl_temp.9246582976079020290.tmp.c:519: warning: WINVER redefined C:/Users/bmu/AppData/Local/Temp/1/v_0/.noprefix.01GCGBSAKEK1ARW9TP3FY7W8ZZ.vrepl_temp.9246582976079020290.tmp.c:8359: warning: implicit declaration of function 'tcc_backtrace' C:/Users/bmu/AppData/Local/Temp/1/v_0/.noprefix.01GCGBSAKEK1ARW9TP3FY7W8ZZ.vrepl_temp.9246582976079020290.tmp.c:9113: warning: assignment from incompatible pointer type C:/Users/bmu/AppData/Local/Temp/1/v_0/.noprefix.01GCGBSAKEK1ARW9TP3FY7W8ZZ.vrepl_temp.9246582976079020290.tmp.c:9113: warning: assignment makes pointer from integer without a cast C:/Users/bmu/AppData/Local/Temp/1/v_0/.noprefix.01GCGBSAKEK1ARW9TP3FY7W8ZZ.vrepl_temp.9246582976079020290.tmp.c:9113: warning: cast between pointer and integer of different size C:/Users/bmu/AppData/Local/Temp/1/v_0/.noprefix.01GCGBSAKEK1ARW9TP3FY7W8ZZ.vrepl_temp.9246582976079020290.tmp.c:15154: warning: assignment from incompatible pointer type C:/Users/bmu/AppData/Local/Temp/1/v_0/.noprefix.01GCGBSAKEK1ARW9TP3FY7W8ZZ.vrepl_temp.9246582976079020290.tmp.c:15160: warning: assignment from incompatible pointer type C:/Users/bmu/AppData/Local/Temp/1/v_0/.noprefix.01GCGBSAKEK1ARW9TP3FY7W8ZZ.vrepl_temp.9246582976079020290.tmp.c:15166: warning: assignment from incompatible pointer type C:/Users/bmu/AppData/Local/Temp/1/v_0/.noprefix.01GCGBSAKEK1ARW9TP3FY7W8ZZ.vrepl_temp.9246582976079020290.tmp.c:15200: warning: assignment from incompatible pointer type C:/Users/bmu/AppData/Local/Temp/1/v_0/.noprefix.01GCGBSAKEK1ARW9TP3FY7W8ZZ.vrepl_temp.9246582976079020290.tmp.c:15200: warning: assignment from incompatible pointer type C:/Users/bmu/AppData/Local/Temp/1/v_0/.noprefix.01GCGBSAKEK1ARW9TP3FY7W8ZZ.vrepl_temp.9246582976079020290.tmp.c:15219: warning: assignment from incompatible pointer type C:/Users/bmu/AppData/Local/Temp/1/v_0/.noprefix.01GCGBSAKEK1ARW9TP3FY7W8ZZ.vrepl_temp.9246582976079020290.tmp.c:15221: warning: assignment from incompatible pointer type C:/Users/bmu/AppData/Local/Temp/1/v_0/.noprefix.01GCGBSAKEK1ARW9TP3FY7W8ZZ.vrepl_temp.9246582976079020290.tmp.c:15221: warning: assignment from incompatible pointer type C:/Users/bmu/AppData/Local/Temp/1/v_0/.noprefix.01GCGBSAKEK1ARW9TP3FY7W8ZZ.vrepl_temp.9246582976079020290.tmp.c:15240: warning: assignment from incompatible pointer type C:/Users/bmu/AppData/Local/Temp/1/v_0/.noprefix.01GCGBSAKEK1ARW9TP3FY7W8ZZ.vrepl_temp.9246582976079020290.tmp.c:17198: warning: assignment from incompatible pointer type C:/Users/bmu/AppData/Local/Temp/1/v_0/.noprefix.01GCGBSAKEK1ARW9TP3FY7W8ZZ.vrepl_temp.9246582976079020290.tmp.c:17282: warning: implicit declaration of function 'GetFinalPathNameByHandleW' C:/Users/bmu/AppData/Local/Temp/1/v_0/.noprefix.01GCGBSAKEK1ARW9TP3FY7W8ZZ.vrepl_temp.9246582976079020290.tmp.c:18896: warning: implicit declaration of function 'CreateSymbolicLinkW' C:/Users/bmu/AppData/Local/Temp/1/v_0/.noprefix.01GCGBSAKEK1ARW9TP3FY7W8ZZ.vrepl_temp.9246582976079020290.tmp.c:18956: warning: assignment from incompatible pointer type C:/Users/bmu/AppData/Local/Temp/1/v_0/.noprefix.01GCGBSAKEK1ARW9TP3FY7W8ZZ.vrepl_temp.9246582976079020290.tmp.c:18968: warning: assignment from incompatible pointer type C:/Users/bmu/AppData/Local/Temp/1/v_0/.noprefix.01GCGBSAKEK1ARW9TP3FY7W8ZZ.vrepl_temp.9246582976079020290.tmp.c:19072: warning: assignment from incompatible pointer type C:/Users/bmu/AppData/Local/Temp/1/v_0/.noprefix.01GCGBSAKEK1ARW9TP3FY7W8ZZ.vrepl_temp.9246582976079020290.tmp.c:19465: warning: assignment from incompatible pointer type C:/Users/bmu/AppData/Local/Temp/1/v_0/.noprefix.01GCGBSAKEK1ARW9TP3FY7W8ZZ.vrepl_temp.9246582976079020290.tmp.c:19555: warning: assignment from incompatible pointer type 2 `

bardo84 commented 1 year ago

Moved to https://github.com/vlang/v/issues/15712