[BUG]: MacBook M1 Pro maven 使用 -g 设置全局无效,在当前终端窗口有效,新建终端窗口后失效

Open
#8 12 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
lua, macos, shell, zsh

Research direction

Start by reading the plugin's Lua entry point that declares how maven is installed and which env vars (MAVEN_HOME, PATH) it exports, since the report shows vfox use -g maven working only in the session where it was run. Then compare the global session write against the per-shell activation path in vfox itself and check which shell rc file (zsh on macOS) gets the hook, reproducing with vfox add maven/maven, vfox install [email protected], vfox use -g maven, then opening a new terminal. Done means mvn resolves in a fresh shell after a global use, with a note on which file holds the global default. Note the thread has run ~12 comments over a long period without a decision, so read it before starting.

Written by the indexing model from the issue text.

Description

invalid

Version
0.2.6
OS
macOS

Describe the bug
执行以下命令
vfox add maven/maven
vfox install [email protected]
vfox use -g maven
命令执行成功后,在当前终端窗口可以正常使用 mvn 命令,新建终端窗口后 mvn 命令失效

Dominant language
Lua
Stars
3
Forks
5
Avg merge
2h 14m
Merged PRs (30d)
3

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

  • No Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Similar issues

More Lua issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.