carlosedp / mill-zsh-completions

Zsh plugin adding Scala Mill build tool completions and prompt display
MIT License
2 stars 0 forks source link

It does not work on my platform. Are there any debugging logs? #1

Open zhutmost opened 1 month ago

zhutmost commented 1 month ago

Thanks for your efforts.

I install this plugin into my Oh-My-Zsh. But it doesn't work totally. I don't know what happened & how to debug. Are there any dumped logs?

My platform information: I am using a macOS (Intel x86), where the ohmyzsh is the latest version. And I have confirmed that your plugin is enabled in the zshrc. Mill is installed globally by HomeBrew.

❯ uname -a
Darwin HzZhu-MacBookPro.local 23.5.0 Darwin Kernel Version 23.5.0: Wed May  1 20:09:52 PDT 2024; root:xnu-10063.121.3~5/RELEASE_X86_64 x86_64

❯ omz version
master (0c9b42a8)

❯ mill version
[1/1] version
0.11.7

❯ java -version
openjdk version "22.0.1" 2024-04-16
OpenJDK Runtime Environment Homebrew (build 22.0.1)
OpenJDK 64-Bit Server VM Homebrew (build 22.0.1, mixed mode, sharing)
carlosedp commented 1 month ago

Hi, there are debug logs... You can enable as explained in https://github.com/carlosedp/mill-zsh-completions/blob/3e66e19868bda2f361d6ea8cb8abb8ff91dcc920/completions/_mill#L7

zhutmost commented 1 month ago

I have set this variable ZSH_COMP_DEBUG_FILE in my .zshrc. But nothing was dumped.

The plugin looks enabled and _mill is successfully added into fpath:

image
carlosedp commented 1 week ago

To view logs, you do ZSH_COMP_DEBUG_FILE="/tmp/mill_debug.txt" and on another shell, tail that file while using mill completions...