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

E715: Dictionary required when trying to apply sourse.sortImports code action #193

Open
hsommerlandreason opened this issue Feb 17, 2023 · 2 comments

Comments

@hsommerlandreason
Copy link

I keep getting an Dictionary Required error when I am trying to apply the sort imports code actions.
I don't know why and haven't really been able to find any conclusive info. But I am fucking retarded so it shouldn't come as a surprise if I have just fucked something up.

Error detected while processing function <SNR>214_on_accept[10]..<SNR>214_notify[2]..<SNR>212_quickpick_accept_code_action[5]..<SNR>212_handle_one_code_action[3]..lsp#utils#workspace_edit#apply_workspace_edit:
line    3:
E715: Dictionary required

I think it might be because the formatter option is not configured but I have tried set it in various different ways whilst using vim-lsp-settings but i am unsure if it has any effect.

Im using NVIM v0.8.3 and purescript-language-server 0.17.1.

This ight be the completely wrong repo to post about this in.

@nwolverson
Copy link
Owner

This seems like a vim issue as far as I can see, I cannot help with that.

I don't see any reason this should be to do with formatting specifically, but it does seem from a googling to be vim configuration related. Maybe try deleting as much of your config as possible and seeing if the error persists

@klarkc
Copy link
Contributor

klarkc commented Apr 4, 2023

This is also happening with me in any code-action, the error message is pretty close:

Error detected while processing function <SNR>169_on_accept[10]..<SNR>169_notify[2]..<SNR>168_quickpick_accept_code_action[5]..<SNR>168_handle
_one_code_action[3]..lsp#utils#workspace_edit#apply_workspace_edit:
line    3:
E1206: Dictionary required for argument 1

It also might be happening only in vim-lsp-settings (I have added purescript-language-server there, but it might be missing some option).

This a cleared up .vimrc that I have tested and is failing: https://github.com/klarkc/dotfiles/blob/c4922f3034ca1f790a34035100d999a5e024457b/.vimrc

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

No branches or pull requests

3 participants