Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v watch isnt printing out #14693

Closed
Corallus-Caninus opened this issue Jun 6, 2022 · 6 comments
Closed

v watch isnt printing out #14693

Corallus-Caninus opened this issue Jun 6, 2022 · 6 comments
Labels
Bug This tag is applied to issues which reports bugs.

Comments

@Corallus-Caninus
Copy link

Corallus-Caninus commented Jun 6, 2022

V version:
OS:
OS: windows, Microsoft Windows 10 Home v19044 64-bit
Processor: 12 cpus, 64bit, little endian, AMD Ryzen 5 3600 6-Core Processor
CC version: (built by Brecht Sanders) clang version 14.0.3

getwd: C:\Users\wardj\OneDrive\Desktop\V_Code\tensorflow-v
vmodules: C:\Users\wardj.vmodules
vroot: C:\Users\wardj\OneDrive\Desktop\V_Code\v
vexe: C:\Users\wardj\OneDrive\Desktop\V_Code\v\v.exe
vexe mtime: 2022-06-06 05:12:56
is vroot writable: true
is vmodules writable: true
V full version: V 0.2.4 ce77187

Git version: git version 2.33.1.windows.1
Git vroot status: weekly.2022.22-54-gce771876-dirty
.git/config present: true
thirdparty/tcc status: thirdparty-windows-amd64 125e21e2

What did you do?
created a .v file with main that prints with println

What did you expect to see?
my printed out string

What did you see instead?
reload cycles with no stdout prints

v run prints correctly

@Corallus-Caninus Corallus-Caninus added the Bug This tag is applied to issues which reports bugs. label Jun 6, 2022
@Hunam6
Copy link
Member

Hunam6 commented Jun 6, 2022

I think I found your mistake, if you do v watch file.v it's the equivalent of doing v file.v at every file change (compiling the file). I think you want to do v watch run file.v to run the file at every file change.

@Hunam6 Hunam6 removed the Bug This tag is applied to issues which reports bugs. label Jun 6, 2022
@Dialga
Copy link
Member

Dialga commented Jun 6, 2022

$ v help watch
v watch [--clear] [--ignore .db] [--add /path/to/a/file.v] [other V options] [run] program.v

Description:
`v watch` collects all .v files needed for a compilation, then when
any of the .v source files changes, it re-runs the compilation.
...

Use v watch run . to build and run the source file, watch without run will only recompile the file.

Duplicate of #11165 (comment)

@Dialga Dialga closed this as completed Jun 6, 2022
@Corallus-Caninus
Copy link
Author

thats exactly what I did this should not be closed?

@Dialga
Copy link
Member

Dialga commented Jun 7, 2022

Can you provide a terminal session log that shows v watch run program.v not working for you?

@Hunam6 Hunam6 reopened this Jun 7, 2022
@medvednikov medvednikov added the Bug This tag is applied to issues which reports bugs. label Jul 19, 2022
@Corallus-Caninus
Copy link
Author

I am not sure what I did to cause this (I was certain at the time I did the command correctly as posted but perhaps I didn't, I just started writting v again and didnt get stdout until I found this bug and called "v watch" with "run") I have not run into this problem since (pun unintended).

@Hunam6
Copy link
Member

Hunam6 commented Mar 11, 2023

Good news and pun

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This tag is applied to issues which reports bugs.
Projects
None yet
Development

No branches or pull requests

4 participants