-
-
Notifications
You must be signed in to change notification settings - Fork 75
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
Non actionable window #623
Comments
Hey @madtrick sorry for the late reply. Honestly it's really hard to tell. What I'd recommend is taking a very minimal config where you don't have any other plugins installed and only start with nvim-metals. Then see if you still have the issue. Start slowing adding plugins back in to see if there is maybe some interaction between plugins that isn't playing nicely. |
Since I've gotten no more info I'm going to go ahead and close. Feel free to report back if you're still having this issue and I can open back up. |
Hey @ckipp01 apologies for not getting back to you earlier. For now I switched to VSCode to do some Scala. Will report back once I get back to nvim, if I keep having this issue. |
I am also facing the same issue. If the .scalafmt file is not present, current buffer is almost useless as you cant see anything... |
my config for metals. |
Hey @chetankokil, could you expand a bit more on this? When this window pops up it should give you three options to choose between. Is there a reason you're unable to select any of the 3 options, or what is happening in your case? |
hey @ckipp01 when the window shows up, its not auto focused, is the first thing and the other thing is whatever you do, you cant even manually focus on that window. basically forcing one to close the buffer or possibly the window. Probably the best way to reproduce is to have a project without .scalafmt file and then opening in with lazyvim. |
I'm facing the same problem. Any UI other than neovim's native UI stops responding in the same context. I tried with these two plugins: |
@ckipp01 here's an example With dressing.nvim enable: Peek.2024-01-12.20-19.mp4With dressing.nvim disable: Peek.2024-01-12.20-21.mp4 |
Thanks @phrmendes . how did you disable dressing.nvim just for scala project ? |
So thanks a lot for the videos! I'm still having a hard time reproducing this. The funny thing is that I also use dressing and don't have any issues with this: Screen.Recording.2024-01-15.at.09.52.37.movAre you able to try and create a minimal standalone config that only has nvim-metals and dressing and see if that has the same behavior? There could be some odd interaction going with another plugin that is causing this. I'll go ahead and reopen this since multiple people in here seem to be hitting on this. |
i had this problem as well. Here's some more info as to how i resolved it:
OS: macOS 14.4 Edit:
|
I'm also having the same issue. I'm on linux with customized st term. |
Having same issue:
NVIM info:
And I am using built-in ubuntu terminal. I have the same issue with Iterm2 on MAC as well with the same nvim configs. |
I have the same issue on neovim nightly using telescope-ui-select
I've tried to reproduce using minimal.lua with the following lazy config lazy.setup({
{
"nvim-lua/telescope.nvim",
dependencies = {
"nvim-telescope/telescope-ui-select.nvim",
},
config = function()
local telescope = require("telescope")
local themes = require("telescope.themes")
telescope.setup({
extensions = {
["ui-select"] = themes.get_cursor(),
},
})
telescope.load_extension("ui-select")
end
},
{
"scalameta/nvim-metals",
dependencies = { "nvim-lua/plenary.nvim", },
ft = { "scala", "sbt", "java" },
opts = function()
local metals_config = require("metals").bare_config()
metals_config.settings = {
showImplicitArguments = true,
excludedPackages = { "akka.actor.typed.javadsl", "com.github.swagger.akka.javadsl" },
}
return metals_config
end,
config = function(self, metals_config)
local nvim_metals_group = vim.api.nvim_create_augroup("nvim-metals", { clear = true })
vim.api.nvim_create_autocmd("FileType", {
pattern = self.ft,
callback = function()
require("metals").initialize_or_attach(metals_config)
end,
group = nvim_metals_group,
})
end
}
}, { root = data_path, state = data_path .. '/lazy-state.json', lockfile = data_path .. '/lazy-lock.json' }) This seems to work and I don't get the unresponsive window behaviour anymore so will try and narrow down what part of my config could be causing the problem. |
I have the same issue on Neovim v0.10.0 on Mac using Wezterm, I got to reproduce the issue using the plugins:
This is my init.lua
So if I try to save a change to any file on a scala project that doesn't have scalafmt.conf the popup appears but Neovim is in insert mode and there is no way to interact with the popup (as others have shown in this thread). For now, to circumvent this issue I am running |
I'm experiencing the same problem when opening project without scalafmt.conf. I'm on MacOS Sonoma 14.0 Using Lazy and Iterm2. Also happens on Alacritty with tmux |
Seeing this as well using LazyVim and iTerm2 It seems triggering a format on save brings up the floating window which hangs until an LSP timeout reported ("Warning [LSP][metals] timeout") and the buffer drops down into insert mode. A workaround is to trigger |
I'm also dealing with this problem and this workaround worked for me. My neovim config: https://github.com/Psuedoo/kickstart.nvim/ |
There is an annoying nvim-metals bug: scalameta/nvim-metals#623
Same here, lazy and wezterm. |
Describe the bug
I recently installed
nvim-metals
(withlazy.vim
). Here's my config:Now, after saving a
scala
file, there's a brief moment where neovim is unresponsive after which a popup shows atimeout
message and an overlay window shows a warning aboutscalafmt
. My biggest issue at the time is that I can't find a way to take an action on that window. I can't select any of the options (can't even focus on it and change the selected option) and can't close it.This might not be an issue with
nvim-metals
itself but you might be able to point me into the right direction 🙂Expected behavior
scala
fileOperating system
macOS
Version of Metals
v1.1.0
Commit of nvim-metals
6692a65
The text was updated successfully, but these errors were encountered: