companion_cube changed the topic of #ocaml to: Discussion about the OCaml programming language | http://www.ocaml.org | OCaml 5.2.0 released: https://ocaml.org/releases/5.2.0 | Try OCaml in your browser: https://try.ocamlpro.com | Public channel logs at https://libera.irclog.whitequark.org/ocaml/
Anarchos has quit [Quit: Vision[]: i've been blurred!]
Guest56 has quit [Quit: Client closed]
Anarchos has joined #ocaml
YuGiOhJCJ has joined #ocaml
Tuplanolla has quit [Quit: Leaving.]
rgrinberg has quit [Quit: My Unrecognized Mac has gone to sleep. ZZZzzz…]
Guest56 has joined #ocaml
euphores has quit [Read error: Connection reset by peer]
Anarchos has quit [Quit: Vision[]: i've been blurred!]
ygrek has quit [Remote host closed the connection]
Serpent7776 has joined #ocaml
bartholin has joined #ocaml
olle has joined #ocaml
Haudegen has joined #ocaml
mange has joined #ocaml
bartholin has quit [Quit: Leaving]
rgrinberg has joined #ocaml
rgrinberg has quit [Client Quit]
Haudegen has quit [Quit: Bin weg.]
chrisz has quit [Ping timeout: 248 seconds]
rynite has joined #ocaml
chrisz has joined #ocaml
mange has quit [Quit: Zzz...]
<discocaml_> <goodnight_noom> Is ocamllsp supposed to work out of the box in dune preview? I've just tried setting it up, but running `ocamllsp` gives `[ERROR] No switch is currently set. Please use 'opam switch' to set or install a switch`. (`~/.local/share/dune/env/env.zsh is sourced correctly`)
<discocaml_> <goodnight_noom> Is ocamllsp supposed to work out of the box in dune preview? I've just tried setting it up, but running `ocamllsp` gives `[ERROR] No switch is currently set. Please use 'opam switch' to set or install a switch`. (`~/.local/share/dune/env/env.zsh` is sourced correctly)
ygrek has joined #ocaml
Haudegen has joined #ocaml
<discocaml_> <gooby_diatonic> Maybe ocamllsp is being run by a non-zsh shell
<discocaml_> <goodnight_noom> It is run by a zsh shell. I tried doing `eval $(opam env)` (which I thought would not be necessary with dune's preview?) and now I'm getting:
<discocaml_> <goodnight_noom> ```
<discocaml_> <goodnight_noom> Error: Unable to solve dependencies for the following lock directories:
<discocaml_> <goodnight_noom> Lock directory dev-tools.locks/ocaml-lsp-server:
<discocaml_> <goodnight_noom> Couldn't solve the package dependency formula.
<discocaml_> <goodnight_noom> Selected candidates: ocaml-lsp-server.1.20.1+binary-ocaml-5.2.1-built-2024-12-12.0-x86_64-unknown-linux-musl
<discocaml_> <goodnight_noom> ocaml-lsp-server_dev_tool_wrapper.dev
<discocaml_> <goodnight_noom> - ocaml -> (problem)
<discocaml_> <goodnight_noom> ocaml-lsp-server 1.20.1+binary-ocaml-5.2.1-built-2024-12-12.0-x86_64-unknown-linux-musl
<discocaml_> <goodnight_noom> requires not(<> 5.2.1)
<discocaml_> <goodnight_noom> ocaml-lsp-server_dev_tool_wrapper dev requires = 5.3.0
<discocaml_> <goodnight_noom> Rejected candidates:
<discocaml_> <goodnight_noom> ocaml.5.4.0: Incompatible with restriction: not(<> 5.2.1)
<discocaml_> <goodnight_noom> ocaml.5.3.1: Incompatible with restriction: not(<> 5.2.1)
<discocaml_> <goodnight_noom> ocaml.5.3.0: Incompatible with restriction: not(<> 5.2.1)
<discocaml_> <goodnight_noom> ocaml.5.2.2: Incompatible with restriction: not(<> 5.2.1)
<discocaml_> <goodnight_noom> ocaml.5.2.1: Incompatible with restriction: = 5.3.0
<discocaml_> <goodnight_noom> ...
<discocaml_> <goodnight_noom> ```
rynite has quit [Quit: WeeChat 4.4.1]
<discocaml_> <JM> You shouldn't run opam env with dune preview, it's more likely than not that your lsp install via opam is interfering with ocaml lsp from dune tools...
<discocaml_> <JM> There was a short conversation about lsp and dune preview yesterday in the #dune channel, you can have a look
pi3ce_ has quit [Read error: Connection reset by peer]
pi3ce has joined #ocaml
olle has quit [Ping timeout: 252 seconds]
YuGiOhJCJ has quit [Quit: YuGiOhJCJ]
<discocaml_> <aguluman> I had to downgrade some packages to enable ocaml and ocaml compiler to be on 5.3.0
Haudegen has quit [Quit: Bin weg.]
bartholin has joined #ocaml
euphores has joined #ocaml
Haudegen has joined #ocaml
<discocaml_> <nat.k> Forgive me if I've missed something silly, but I've tried updating to 5.3.0 to try out the new effect syntax, but I get this error
<discocaml_> <nat.k> ```
<discocaml_> <nat.k> Error: migration error: effect pattern is not supported before OCaml 5.03
<discocaml_> <nat.k> ```
<discocaml_> <nat.k> From everything I can tell (including `ocamlc --version`) I do have 5.3.0. Is there something in dune I need to change or something?
<discocaml_> <._null._> This is a PPX issue https://github.com/ocaml-ppx/ppxlib/issues/550
<discocaml_> <nat.k> Ah, thank you!
Anarchos has joined #ocaml
jusensei2 has quit [Quit: The Lounge - https://thelounge.chat]
<discocaml_> <deepspacejohn> Good to know it's not just me!
<discocaml_> <nat.k> I shall add the sexy new syntax to my project another day then :-)
eilvelia has quit [Quit: eilvelia]
eilvelia has joined #ocaml
Haudegen has quit [Quit: Bin weg.]
Anarchos has quit [Quit: Vision[]: i've been blurred!]
eilvelia has quit [Quit: eilvelia]
eilvelia has joined #ocaml
Anarchos has joined #ocaml
rgrinberg has joined #ocaml
Tuplanolla has joined #ocaml
Guest56 has quit [Quit: Client closed]
Serpent7776 has quit [Ping timeout: 246 seconds]
rgrinberg has quit [Quit: My Unrecognized Mac has gone to sleep. ZZZzzz…]
rgrinberg has joined #ocaml