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

c2v error #11

Closed
Tracked by #28
MrMidnightOfficial opened this issue Jun 22, 2022 · 7 comments
Closed
Tracked by #28

c2v error #11

MrMidnightOfficial opened this issue Jun 22, 2022 · 7 comments
Labels
Bug Something isn't working

Comments

@MrMidnightOfficial
Copy link

OS: windows, Microsoft Windows 11 Home v22000 64-bit
Processor: 4 cpus, 64bit, little endian, Intel(R) Core(TM) i5-7400 CPU @ 3.00GHz
CC version: cc (Rev10, Built by MSYS2 project) 11.2.0

getwd: C:\Users\Dragon boy\Downloads\c2v-master\c2v-master
vmodules: C:\Users\Dragon boy.vmodules
vroot: C:\v-master\v-master\v
vexe: C:\v-master\v-master\v\v.exe
vexe mtime: 2022-06-22 19:22:13
is vroot writable: true
is vmodules writable: true
V full version: V 0.2.4 e6c3de2.c9ab086

Git version: git version 2.24.1.windows.2
Git vroot status: weekly.2022.24-63-gc9ab0860 (1 commit(s) behind V master)
.git/config present: true
thirdparty/tcc status: thirdparty-windows-amd64 125e21e2

What did you do?
$ ./c2v-master for.c

What did you expect to see?

What did you see instead?
V panic: cannot find clang in PATH
v hash: c9ab086
C:/Users/Dragon boy/AppData/Local/Temp/v_0/c2v-master.1673194596058845405.tmp.c:10921: at _v_panic: Backtrace
C:/Users/Dragon boy/AppData/Local/Temp/v_0/c2v-master.1673194596058845405.tmp.c:28465: by main__find_clang_in_path
C:/Users/Dragon boy/AppData/Local/Temp/v_0/c2v-master.1673194596058845405.tmp.c:32730: by _vinit
C:/Users/Dragon boy/AppData/Local/Temp/v_0/c2v-master.1673194596058845405.tmp.c:32750: by wmain
00569678 : by ???
005697db : by ???
7ffab40754e0 : by ???

@MrMidnightOfficial MrMidnightOfficial added the Bug Something isn't working label Jun 22, 2022
@medvednikov
Copy link
Member

It's better to use v translate file.c

Make sure to v up.

@MrMidnightOfficial
Copy link
Author

I did git clone and got a out put:
$ git clone https://github.com/vlang/v.git
Cloning into 'v'...
remote: Enumerating objects: 122484, done.
remote: Counting objects: 100% (3328/3328), done.
remote: Compressing objects: 100% (223/223), done.
remote: Total 122484 (delta 3198), reused 3160 (delta 3102), pack-reused 119156
Receiving objects: 100% (122484/122484), 55.16 MiB | 4.65 MiB/s, done.
Resolving deltas: 100% (87531/87531), done.
error: invalid path 'tutorials/C2V. Translating simple programs and DOOM./README.md'
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'

@Wertzui123
Copy link
Contributor

I have the exact same issues as you.

V panic: cannot find clang in PATH

I think this is caused by a wrong implementation of os.find_abs_path_of_executable - it doesn't append the .exe suffix on Windows. I will open a PR for this in a few minutes if it really works.

@Wertzui123
Copy link
Contributor

See vlang/v#14835

@medvednikov medvednikov transferred this issue from vlang/v Jun 23, 2022
@ArtemkaKun ArtemkaKun mentioned this issue Jul 4, 2022
4 tasks
@Wertzui123
Copy link
Contributor

I think this issue has been fixed and can be closed.

@ArtemkaKun
Copy link
Contributor

@AnimalStudioOfficial Hi. Can you please confirm that error is gone?

@ArtemkaKun
Copy link
Contributor

I'm closing this issue since no response from the author and @Wertzui123 fixed the similar issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants