-
Notifications
You must be signed in to change notification settings - Fork 121
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
How to troubleshoot destruct
when "No code actions for 'destruct' available"?
#1301
Comments
Hi, and thanks for your help! I'm trying with simple cases first, just to see if things are working. let _f (a : int option) = match a with _ -> ()
;; However, I am now noticing that the clickable This narrows it down to the use of the shortcut Back to my question, are there some logs I could try to access ? (vscode+ocaml-platform newbie here, relatively recently switch from another editor !!!) Thank you |
Strange, I can't replicate the behavior shown by your screenshots; on my end VS Code has an "Output" panel wherein you can inspect messages sent by extensions, the OCaml platform docs explains how to enable them for ocaml-lsp. |
Turns out I was using an older version of ocaml-lsp. After updating my installation to ocaml-lsp-server 1.18.0~5.2preview, the destruct option is no longer available through the |
Hi!
I notice the recent post about the amazing
destruct
on ocaml discuss, and I am excited to try it out.When I type
Alt+d
on a pattern '_' in vscode, I see a message saying: "No code actions for 'destruct' available". This is from within an editor, while adune build @all @runtest -w
is running in that repo, and reached aSuccess, waiting for filesystem changes...
state.Here are some info about the environment under which this happens:
ocaml 5.2.0
dune 3.15.3
ocaml-lsp-server 1.18.0~5.2preview
merlin 5.0-502
Could you give me some pointers as to how to troubleshoot my installation, or things I need to upgrade, enable, configure, etc.
Thank you!
The text was updated successfully, but these errors were encountered: