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 fmt command error! #21744

Closed
ghosttk opened this issue Jun 27, 2024 · 2 comments
Closed

v fmt command error! #21744

ghosttk opened this issue Jun 27, 2024 · 2 comments
Labels
Bug This tag is applied to issues which reports bugs.

Comments

@ghosttk
Copy link
Contributor

ghosttk commented Jun 27, 2024

Describe the bug

cannot compile D:\bin\v\cmd\tools\vfmt.v: 1

Reproduction Steps

v fmt .\src\main.v

Expected Behavior

run without error

Current Behavior

PS D:\myprojects\v\Gangweijintie> v fmt .\src\main.v
cannot compile D:\bin\v\cmd\tools\vfmt.v: 1
vlib/v/pref/pref.v:59:20: error: duplicate method is_js
57 | }
58 |
59 | pub fn (b Backend) is_js() bool {
| ~~~~~
60 | return b in [
61 | .js_node,

Possible Solution

No response

Additional Information/Context

No response

V version

V 0.4.6 98a1ee2

Environment details (OS name and version, etc.)

PS D:\myprojects\v\Gangweijintie> v doctor
V full version: V 0.4.6 98a1ee2
OS: windows, Microsoft Windows 11 ��ͥ���İ� v22631 64 λ
Processor: 8 cpus, 64bit, little endian,

getwd: D:\myprojects\v\Gangweijintie
vexe: D:\bin\v\v.exe
vexe mtime: 2024-06-25 21:16:21

vroot: OK, value: D:\bin\v
VMODULES: OK, value: C:\Users\ghost.vmodules
VTMP: OK, value: C:\Users\ghost\AppData\Local\Temp\v_0

Git version: git version 2.44.0.windows.1
Git vroot status: weekly.2024.22-67-g1a685c30-dirty (43 commit(s) behind V master)
.git/config present: true

CC version: Error: 'cc' is not recognized as an internal or external command,
operable program or batch file.

thirdparty/tcc status: thirdparty-windows-amd64 b425ac82

Note

You can use the 👍 reaction to increase the issue's priority for developers.

Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.

@ghosttk ghosttk added the Bug This tag is applied to issues which reports bugs. label Jun 27, 2024
@spytheman
Copy link
Member

Try:

  1. deleting D:\bin\v
  2. git clone https://github.com/vlang/v D:\bin\v
  3. cd d:\bin\v
  4. .\make.bat

@ghosttk
Copy link
Contributor Author

ghosttk commented Jun 28, 2024

Try:

  1. deleting D:\bin\v
  2. git clone https://github.com/vlang/v D:\bin\v
  3. cd d:\bin\v
  4. .\make.bat

It works ! Thank you!

@ghosttk ghosttk closed this as completed Jun 28, 2024
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

2 participants