v icon indicating copy to clipboard operation
v copied to clipboard

On windows powershell you can't run `v help`

Open datawater opened this issue 2 years ago • 2 comments

Describe the bug

If you run v help on windows powershell, you get an error that you an unknown topic was provided.

Expected Behavior

Show the help message

Current Behavior

`v help`: unknown help topic provided. Use `v help` for usage information.
Known help topics: .

Reproduction Steps

Run v help

Possible Solution

No response

Additional Information/Context

No response

V version

V 0.3.3 8cdc554

Environment details (OS name and version, etc.)

OS: windows, Microsoft Windows 10 Pro v19045 64-bit
Processor: 2 cpus, 64bit, little endian,
CC version: cc (Rev10, Built by MSYS2 project) 12.2.0

vmodules: C:\Users\datag\.vmodules
vroot: C:\v
vexe: C:\v\v.exe
vexe mtime: 2023-02-03 02:45:32
is vroot writable: true
is vmodules writable: true
V full version: V 0.3.3 8cdc554

Git version: git version 2.39.1.windows.1
Git vroot status: Error: fatal: bad revision 'HEAD'
.git/config present: true
thirdparty/tcc: N/A

datawater avatar Feb 07 '23 15:02 datawater

Not sure what's wrong for you, but it works here:

PS C:\Users\jamie\v> v version
V 0.3.3 9794a23
PS C:\Users\jamie\v> v help
V is a tool for managing V source code.

Usage:
  v [options] [command] [arguments]

Examples:
  v hello.v                    Compile the file `hello.v` and output it as
                               `hello` or `hello.exe`.
  v run hello.v                Same as above but also run the produced
                               executable immediately after compilation.
  v -cg run hello.v            Same as above, but make debugging easier
                               (in case your program crashes).
  v crun hello.v               Same as above, but do not recompile, if the
                               executable already exists, and is newer than the
                               sources.
  v -o h.c hello.v             Translate `hello.v` to `h.c`. Do not compile
                               further.
  v -o - hello.v               Translate `hello.v` and output the C source code
                               to stdout. Do not compile further.
  v watch hello.v              Re-does the same compilation, when a source code
                               change is detected.
                               The program is only compiled, not run.
  v watch run hello.v          Re-runs the same `hello.v` file, when a source
                               code change is detected.

V supports the following commands:

* Project Scaffolding Utilities:
  new                          Setup the file structure for a V project
                               (in a sub folder).
  init                         Setup the file structure for an already existing
                               V project.

* Commonly Used Utilities:
  run                          Compile and run a V program. Delete the
                               executable after the run.
  crun                         Compile and run a V program without deleting the
                               executable.
                               If you run the same program a second time,
                               without changing the source files,
                               V will just run the executable, without
                               recompilation. Suitable for scripting.
  test                         Run all test files in the provided directory.
  fmt                          Format the V code provided.
  vet                          Report suspicious code constructs.
  doc                          Generate the documentation for a V module.
  vlib-docs                    Generate and open the documentation of all the
                               vlib modules.
  repl                         Run the REPL.
  watch                        Re-compile/re-run a source file, each time it is
                               changed.
  where                        Find and print the location of current project
                               declarations.

* Installation Management Utilities:
  symlink                      Create a symbolic link for V.
  up                           Run the V self-updater.
  self [-prod]                 Run the V self-compiler, use -prod to optimize
                               compilation.
  version                      Print the version text and exits.

* Package Management Utilities:
  install                      Install a module from VPM.
  remove                       Remove a module that was installed from VPM.
  search                       Search for a module from VPM.
  update                       Update an installed module from VPM.
  upgrade                      Upgrade all the outdated modules.
  list                         List all installed modules.
  outdated                     List installed modules that need updates.
  show                         Display information about a module on vpm

Use "v help <command>" for more information about a command, example:
`v help build`, `v help build-c`, `v help build-native`

Use "v help other" to see less frequently used commands.
Use "v help topics" to see a list of all known help topics.

Note: Help is required to write more help topics.
Only build, new, init, doc, fmt, vet, run, test, watch, search, install, remove,
update, bin2v, check-md are properly documented currently.

PS C:\Users\jamie\v>

JalonSolov avatar Feb 07 '23 16:02 JalonSolov

Try v up and see if that fixes it for you.

JalonSolov avatar Feb 07 '23 16:02 JalonSolov