<d_bot>
<inkbottle> in your `package.json` (`esy`). Then run `esy emacs`. Then `M-x package-install` `eglot`. Then `M-x eglot`. (For the purpose of that test, I removed everything related to ocaml from my `dot-emacs`.)
<d_bot>
<inkbottle> in `esy` `package.json`. Maybe. (Instead of what there is right above.)
zebrag has quit [Quit: Konversation terminated!]
jinsun has joined #ocaml
mbuf has joined #ocaml
gravicappa has joined #ocaml
insep has quit [Read error: Connection reset by peer]
insep has joined #ocaml
insep has quit [Read error: Connection reset by peer]
insep has joined #ocaml
insep has quit [Read error: Connection reset by peer]
insep has joined #ocaml
elf_fortrez has joined #ocaml
elf_fortrez has quit [Write error: Broken pipe]
minwuekim has quit [Remote host closed the connection]
minwuekim has joined #ocaml
wilfred has joined #ocaml
shawnw has quit [Ping timeout: 268 seconds]
Haudegen has joined #ocaml
vizard has joined #ocaml
bartholin has joined #ocaml
<d_bot>
<Ulugbek> Yes, that was the problem, thanks 🙂
olle has joined #ocaml
wilfred has quit [Quit: Connection closed for inactivity]
dhil has joined #ocaml
vsiles has quit [Remote host closed the connection]
minwuekim has quit [Ping timeout: 245 seconds]
vsiles has joined #ocaml
adanwan has quit [Remote host closed the connection]
adanwan has joined #ocaml
minwuekim has joined #ocaml
insep has quit [Ping timeout: 272 seconds]
cedric has joined #ocaml
Haudegen has quit [Quit: Bin weg.]
minwuekim has quit [Ping timeout: 245 seconds]
minwuekim has joined #ocaml
<dmbaturin>
octachron: Regarding the string escaping. The current function makes an effort to allocate a buffer of exactly the size needed for the target string. Do you think avoiding reallocations is important for its performance, or something along these lines would work just as well: https://bpa.st/KRFFGHCCOIJTDRPMU5EVFNFS4U ?
Haudegen has joined #ocaml
waleee has joined #ocaml
<octachron>
dmbaturin, that might be acceptable in theory, but String is a dependency of Buffer.
<dmbaturin>
octachron: Well, it's a quick prototype. I wasn't aware that Buffer depends on String, that will sure lead to adjustments.
<d_bot>
<thangngoc89> Does tyxml-jsx treat `className` specially?
<d_bot>
<thangngoc89> I try to add `className` props to a custom element and receive type error
<d_bot>
<thangngoc89> ```
<d_bot>
<thangngoc89> Error: The function applied to this argument has type
<d_bot>
<Cyclomatic Complexity> and it still builds without warning
<d_bot>
<Cyclomatic Complexity> ~~at least it's not the whole function that is in yellow now~~
<d_bot>
<octachron> With a refutation cluase `_ -> .`, a missing branch is an error (not a warning).
<d_bot>
<octachron> If the error persists after building, this means that this is not even a synchronization problem. Maybe an issue with local abstract type used as a type-level tag?
oriba has joined #ocaml
<d_bot>
<Cyclomatic Complexity> The error is not here in the build
<d_bot>
<Cyclomatic Complexity> Only in the editor
<d_bot>
<Cyclomatic Complexity> > Maybe an issue with local abstract type used as a type-level tag?
<d_bot>
<Cyclomatic Complexity> I have no idea what this means
<d_bot>
<Cyclomatic Complexity> let me copy some code so that you have more context
<d_bot>
<inkbottle> @Ulugbek I'm now using your `refactor-open` branch. I've inserted the specific dependencies in `esy` `package.json`, as I described in previous message.
<d_bot>
<inkbottle> And it did work with `emacs` `lsp-mode`: `M-x lsp-execute-code-action`, `Select code action: Put module name in identifiers`.
<d_bot>
<inkbottle> It does work with `eglot` too.
<d_bot>
<inkbottle> Nice.
<d_bot>
<Ulugbek> That code action will become even nicer when [merlin#1313](github.com/ocaml/merlin/pull/1313) and [merlin#1314](github.com/ocaml/merlin/pull/1314) land
<d_bot>
<octachron> @Cyclomatic Complexity : I don't even get a false positive with just merlin. So that might be an ocamllsp bug somehow?
<d_bot>
<Cyclomatic Complexity> ouch
<d_bot>
<Cyclomatic Complexity> possibly, @EduardoRFS can help later
<d_bot>
<Ulugbek> If you create an issue in the https://github.com/ocaml/ocaml-lsp/issues/ with a (preferably minimal) reproducible case with info about your setup (ocaml-lsp and ocaml compiler versions), I can have a look. Most likely it's either stale diagnostics (I would try rebuilding the project and restarting the language server) or a merlin bug (it may not appear for octachron if he uses a different version of merlin)
<d_bot>
<lubega-simon> I get an error when I try to pin odoc to a specific url in my case, a pull request branch
<d_bot>
<Cyclomatic Complexity> rebuilding the project as in, copy-pasting it into another folder and re-running esy?
<d_bot>
<Cyclomatic Complexity> or just dune clean?
<d_bot>
<Ulugbek> I had `dune clean` in mind
<d_bot>
<Cyclomatic Complexity> same problem
<d_bot>
<Cyclomatic Complexity> i reloaded everything, restarted the language server, etc.
<d_bot>
<Cyclomatic Complexity> how can i check my merlin version?
<d_bot>
<Ulugbek> ocaml-lsp vendors merlin, so it's the ocaml-lsp version that you should check to see which merlin commit is vendored
<d_bot>
<Cyclomatic Complexity> It's not part of the package.json
<d_bot>
<Cyclomatic Complexity> I'll check on vscode if it appears somewhere
<d_bot>
<Ulugbek> you said it's a `let`. Can you maybe do `let a = match expr with your_pat as p -> p | _ -> .` if that makes sense?
<d_bot>
<Cyclomatic Complexity> OCaml Platform 1.8.4 if this helps anyone
<d_bot>
<Cyclomatic Complexity> let me do so
<d_bot>
<Cyclomatic Complexity> exactly the same problem
<d_bot>
<Cyclomatic Complexity> oh wait
<d_bot>
<Cyclomatic Complexity> i did `let your_pat = match expr with your_pat_with_anon_vars as p -> p | _ -> .`
<d_bot>
<Cyclomatic Complexity> if i do `let a` instead of `let your_pat`, the code is expectedly ill-typed, because there are used variables in `your_pat`
eight has joined #ocaml
<d_bot>
<lubega-simon> it worked, thanks @Ulugbek
minwuekim has quit [Ping timeout: 245 seconds]
olle has quit [Ping timeout: 268 seconds]
glassofethanol has quit [Quit: leaving]
mbuf has quit [Quit: Leaving]
minwuekim has joined #ocaml
<d_bot>
<inkbottle> Maybe the editor has a different view of the project than the build tool (presumably `dune`). I use `esy` because it claims tight and easy sandboxing. I start my editor with `esy emacs`, and so `emacs` is using `esy` command environment. If I don't do that `lsp-mode` isn't working properly. Also, even though, I've got `merlin` installed globally, I don't think it is visible when using sandboxing, only the version that comes wit
<dmbaturin>
Well, there's also Ur/Web which is bootstrapped from SML AFAIR.
favonia has joined #ocaml
Stumpfenstiel has joined #ocaml
shawnw has joined #ocaml
<d_bot>
<cdisselkoen> Hi everyone! Not sure if this is the right place to ask this, but maybe someone can point me in the right direction.
<d_bot>
<cdisselkoen>
<d_bot>
<cdisselkoen> I have a program which uses dynamic loading via `findlib`, and I'm trying to generate binaries (of the application and all of its dynamic dependencies) which are portable in the sense that they can be run on machines other than the build machine. Is there any general best practices or advice for how to do this? My naive approach was to install using `dune`, then copy over the entire `/bin` and `/lib` directories of my OPAM
<d_bot>
<cdisselkoen>
<d_bot>
<cdisselkoen> Any advice or pointers to other docs/advice would be appreciated, thanks!
shawnw has quit [Remote host closed the connection]