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

Installing brew and vcs at the same time causes weird issues #17

Open
doughsay opened this issue Oct 13, 2022 · 2 comments · May be fixed by oh-my-fish/plugin-vcs#15
Open

Installing brew and vcs at the same time causes weird issues #17

doughsay opened this issue Oct 13, 2022 · 2 comments · May be fixed by oh-my-fish/plugin-vcs#15

Comments

@doughsay
Copy link

I'm not totally sure which package is at fault here, but I'll start with reporting it here.

I'm on a brand new M1, macOS 12.3. I installed homebrew using bash with the official copy-paste command from the website. I then installed fish and set it as my default shell. I then installed omf using the official copy-paste command.

Then I installed vcs: omf install vcs. It works, I can test the functions it provides.
Then I installed brew: omf install brew. Now when I launch a new terminal I get these:

source: Error encountered while sourcing file '/Users/cdose/.local/share/omf/pkg/brew/functions/git/vcs.git.present.fish':
source: No such file or directory
source: Error encountered while sourcing file '/Users/cdose/.local/share/omf/pkg/brew/functions/hg/vcs.hg.present.fish':
source: No such file or directory
source: Error encountered while sourcing file '/Users/cdose/.local/share/omf/pkg/brew/functions/svn/vcs.svn.present.fish':
source: No such file or directory
fish: Unknown command: vcs.git.present
~/.local/share/omf/pkg/vcs/functions/vcs.name.fish (line 1):
vcs.git.present
^
in function 'vcs.name'
	called on line 1 of file ~/.local/share/omf/pkg/vcs/conf.d/plugin-vcs.fish
in command substitution
	called on line 12 of file ~/.local/share/omf/pkg/vcs/conf.d/plugin-vcs.fish
in function 'vcs.refresh'
	called on line 21 of file ~/.local/share/omf/pkg/vcs/conf.d/plugin-vcs.fish
from sourcing file ~/.local/share/omf/pkg/vcs/conf.d/plugin-vcs.fish
	called during startup
in function 'require' with arguments '--path /Users/cdose/.local/share/omf/pkg/brew /Users/cdose/.local/share/omf/pkg/fish-spec /Users/cdose/.local/share/omf/pkg/omf /Users/cdose/.local/share/omf/pkg/vcs'
	called on line 24 of file ~/.local/share/omf/init.fish
from sourcing file ~/.local/share/omf/init.fish
	called on line 7 of file ~/.config/fish/conf.d/omf.fish
from sourcing file ~/.config/fish/conf.d/omf.fish
	called on line 246 of file /opt/homebrew/Cellar/fish/3.5.1/share/fish/config.fish
from sourcing file /opt/homebrew/Cellar/fish/3.5.1/share/fish/config.fish
	called during startup

and a lot more lines.

As you can see it's attempting to source the vcs package files from the folder .local/share/omf/pkg/brew, which is obviously the wrong folder (it's the brew package's folder, not the vcs package's folder). I'm not enough of a fish or omf expert to really know what's going on here, but it seems one of either the brew or vcs package is messing up something with their paths.

Can someone else confirm that this happens on a clean install? I don't think I've done anything crazy here, it's a very fresh install on a brand new laptop.

@derekstavis
Copy link
Member

@scorphus do you think this could have anything to do with your recent change modernizing the plugin initialization in vcs?

@scorphus
Copy link
Member

@scorphus do you think this could have anything to do with your recent change modernizing the plugin initialization in vcs?

Possibly.

This happens not only with the brew plugin, but with most any other too — e.g. aws.

The fix is on its way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants