Leonidas changed the topic of #ocaml to: Discussion about the OCaml programming language | http://www.ocaml.org | OCaml 4.13.0 released: https://ocaml.org/releases/4.13.0.html | Try OCaml in your browser: https://try.ocamlpro.com | Public channel logs at https://libera.irclog.whitequark.org/ocaml/
spip has joined #ocaml
bobo has quit [Ping timeout: 256 seconds]
olle has quit [Ping timeout: 272 seconds]
azimut has quit [Remote host closed the connection]
azimut has joined #ocaml
dhil has quit [Ping timeout: 256 seconds]
rgrinberg has joined #ocaml
rgrinberg has quit [Read error: Connection reset by peer]
rgrinberg has joined #ocaml
oriba has quit [Ping timeout: 256 seconds]
<d_bot_> <darrenldl> Anarchos: the input line would just wait if it doesnt receive the full 4000 bytes i believe?
<d_bot_> <darrenldl> actually maybe not
<d_bot_> <darrenldl> hm
Haudegen has quit [Ping timeout: 240 seconds]
unyu has quit [Quit: brb]
oriba has joined #ocaml
hannes has quit [Ping timeout: 268 seconds]
<sleepydog> fwiw, I ran Anarchos's server on my linux machine and can't reproduce the issue
<companion_cube> he's also on a very weird OS
oriba has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
<sleepydog> ocaml supports weird OSes? :)
rgrinberg has quit [Quit: Textual IRC Client: www.textualapp.com]
<companion_cube> well he's trying to use it on haiku (I think) and not succeeding much
<sleepydog> bummer
troydm has quit [Ping timeout: 272 seconds]
troydm has joined #ocaml
rgrinberg has joined #ocaml
rgrinberg has quit [Ping timeout: 250 seconds]
unyu has joined #ocaml
waleee has quit [Ping timeout: 256 seconds]
zebrag has quit [Quit: Konversation terminated!]
hannes has joined #ocaml
gravicappa has joined #ocaml
Haudegen has joined #ocaml
mbuf has joined #ocaml
mbuf has quit [Quit: Leaving]
wonko_ has joined #ocaml
wonko_ has quit [Client Quit]
sabas3dgh has joined #ocaml
<sabas3dgh> hello Ocaml pros
<sabas3dgh> I need a bit of help with eclipse and OCalIDE ....look at this picture and tell me what is wrong?
<sabas3dgh> it doesn't accept my PATH for ocaml. it autocomplete some options but at the end the Apply button is disabled.
mro has joined #ocaml
<sabas3dgh> anyone???
<d_bot_> <octachron> ocalIDE is not exactly a frequently used IDE. Does it has lsp support?
<sabas3dgh> octachron I don't know... and I am on macOS
<sabas3dgh> install opam and ocaml from brew
<octachron> It doesn't seem to support it, nor merlin. Except if you cannot live without eclipse, I would advise to try another IDE (emacs, vim, VScode, ...) .
<sabas3dgh> ocabot I would use Emacs if I have to. but I need a good instruction. a week ago I did wonder off a lot trying to make CPP work on EMacs which it didn't.
<sabas3dgh> octachron ^^
<sabas3dgh> octachron do we have a material on how we could setup emacs for ocaml use? anything fresh
<sabas3dgh> not 2012 ish stuff.
jlrnick has quit [Ping timeout: 240 seconds]
waleee has joined #ocaml
mro has quit [Remote host closed the connection]
Tuplanolla has joined #ocaml
<d_bot_> <glennsl> sabas: If you don't already have Emacs setup, I'd recommend Doom Emacs, which has built in support for OCaml: https://github.com/hlissner/doom-emacs
<d_bot_> <glennsl> Otherwise, install tuareg-mode and follow the instructions in its README: <https://github.com/ocaml/tuareg>
bartholin has joined #ocaml
<d_bot_> <glennsl> You can also use `ocaml-lsp-server` with `lsp-mode` or `eglot`. Both support it out-of-the-box.
<octachron> https://ocaml.org/learn/tutorials/up_and_running.html is recent and up to date
dwt_ has quit [Ping timeout: 256 seconds]
Serpent7776 has joined #ocaml
wonko has joined #ocaml
dwt_ has joined #ocaml
olle has joined #ocaml
bartholin has quit [Ping timeout: 256 seconds]
szkl has joined #ocaml
bartholin has joined #ocaml
waleee has quit [Ping timeout: 256 seconds]
olle has quit [Ping timeout: 256 seconds]
hornhack has joined #ocaml
<hornhack> hi
hornhack has quit [Client Quit]
perrierjouet has joined #ocaml
olle has joined #ocaml
mro has joined #ocaml
Anarchos has joined #ocaml
mro has quit [Remote host closed the connection]
wonko has quit [Ping timeout: 250 seconds]
Anarchos has quit [Quit: Vision[]: i've been blurred!]
Anarchos has joined #ocaml
Anarchos has quit [Quit: Vision[]: i've been blurred!]
bartholin has quit [Ping timeout: 256 seconds]
bobo has joined #ocaml
spip has quit [Ping timeout: 256 seconds]
bartholin has joined #ocaml
mro has joined #ocaml
<sabas3dgh> Hello again
<sabas3dgh> Do you know why I get this in sublime
<sabas3dgh> No such file or directory ocaml-language-server
szkl has quit [Quit: Connection closed for inactivity]
mro has quit [Remote host closed the connection]
hyphen has quit [Ping timeout: 256 seconds]
<sabas3dgh> Why. atom and sublime. Doesn't work
<sabas3dgh> anyone here using any of them?
azimut_ has joined #ocaml
azimut has quit [Ping timeout: 240 seconds]
hyphen has joined #ocaml
sabas3dgh has quit [Read error: Connection reset by peer]
<d_bot_> <Butanium (@me on answer)> I think that vscode and emacs are more used
<companion_cube> Don't forget (n)vim :)
hyphen has quit [Ping timeout: 272 seconds]
hyphen has joined #ocaml
gravicappa has quit [Ping timeout: 272 seconds]
bartholin has quit [Ping timeout: 256 seconds]
Guest4 has joined #ocaml
<Guest4> any one on sublime ?
Guest4 is now known as sabas3dgh
<sabas3dgh> any one on sublime ?
bartholin has joined #ocaml
hyphen has quit [Ping timeout: 272 seconds]
hyphen has joined #ocaml
gravicappa has joined #ocaml
<sabas3dgh> Do you know where ocamlmerlin is located?
<d_bot_> <NULL> If it is installed correctly, in the Path
<sleepydog> my text editing is still in the stone ages, so i've not kept up with merlin or lsp and the like. did you install ocamlmerlin with opam or something else?
bartholin has quit [Ping timeout: 240 seconds]
<sabas3dgh> NULL; it is in /Users/admin/.opam/default/bin/ocamlmerlin
<sleepydog> `opam install merlin` puts ocamlmerlin in $OPAM_SWITCH_PREFIX/bin/
olle has quit [Ping timeout: 272 seconds]
<d_bot_> <NULL> Well, if the installation is done properly, this should be in the Path. Then `which ocamlmerlin` prints the location
<sabas3dgh> but is not on m path. I am on MACOS Catalina and here is the atom picture https://imgur.com/a/qFoaIid
<sleepydog> sabas3dgh: you have to make sure that whatever is launching your editor has the right environment variables. if you launch from a shell, this is done with "eval $(opam env)"
<d_bot_> <NULL> Did you `opam init` ?
<sabas3dgh> but as you can see I am giving the atom the PATH but it doesn't use it. frustrating
<d_bot_> <NULL> Also, are you sure you don't want to use VSCode instead of Atom or Sublime ?
<d_bot_> <NULL> If you're concerned over privacy, you could use VSCodium instead
bartholin has joined #ocaml
<sabas3dgh> NULL; are you telling me that ATOM or sublime isn'y supported ( fully at least).
<sabas3dgh> I accept any help I can get here. and Do my job accordingly.....
<sabas3dgh> but I really like to setup ocaml on sublime .
<sabas3dgh> if it is not possible by any means... I will FORCE to use ATOM.....
<d_bot_> <NULL> I know that VSCode is the best supported visual IDE, and that the packages on Atom are 2-4 years old (instead of weeks old on VSCode)
<sabas3dgh> NULL; what about sublime?
<d_bot_> <NULL> Didn't check their packages,but I expect it to be about the same
<d_bot_> <Butanium (@me on answer)> why don't you want to use vscode ? 🤔
* sabas3dgh is starting to get some help around here... and thanks all involved
<Fardale> Why can't people use the editor they want? Isn't the goal of having a lsp-server to let people choose what they use to code?
<sabas3dgh> Butanium (@me on answer) I like sublime better. that's all.
<d_bot_> <NULL> Fardale: Fair, but I think only VSCode has a compatibility package for ocamllsp currently
<sabas3dgh> Fardale; Look here https://imgur.com/a/nVMeaID
<Fardale> sabas3dgh: I don't know how this is suppose to work, but did you try to run ocaml-language-server on a terminal? Does it works?
<sabas3dgh> Fardale Command not found .....
<d_bot_> <NULL> The command is `ocamllsp`
<Fardale> Then you need to tell Sublime to call ocamllsp instead
<Fardale> Or make a alias from ocaml-language-server to ocamllsp
<d_bot_> <NULL> ocaml-language-server is a now outdated lsp
Guest4 has joined #ocaml
<Guest4> guys I got disconnected do I missed any thing after this?
sabas3dgh has quit [Read error: Connection reset by peer]
Guest4 is now known as sabas3dgh
<d_bot_> <NULL> ocaml-language-server is a now outdated lsp
<d_bot_> <NULL> Prefer ocaml-lsp-server in opam
<sabas3dgh> NULL So I should delete it. the sublime package I mean
<d_bot_> <NULL> I don't know how the package works
<d_bot_> <NULL> If the LSP protocol is strict enough, you may make it work by aliasing ocamllsp to ocaml-language-server
<sabas3dgh> NULL a work-around. I see. Good Idea. 💯
<Fardale> If sublime support LSP server, you may not need a package to make it work.
<sabas3dgh> Fardale; NULL; as I can see here https://lsp.sublimetext.io/language_servers/
<sabas3dgh> and couple of other materials at least on sublime grounds I have to install reason plugins ( server + sublime plugin)
<sabas3dgh> Is it a good idea? as far as I can gather; Reason is a web framework written is OCaml?!!!🤷‍♀️
olle has joined #ocaml
<d_bot_> <glennsl> that's possibly even more outdated than `ocaml-language-server`.
<d_bot_> <glennsl> You could probably use the same approach and just substitute `ocaml-lsp-server` though
<sabas3dgh> glennsl; which one is the updated lsp server?
<sabas3dgh> and where is the other ocaml Chat location? Matrix; slack ....?
<sabas3dgh> d_bot_ ?
<d_bot_> <NULL> d_bot is the Discord bridge
<d_bot_> <NULL> Or is it d_bot_ ? The wrapping underscores appear as italics with Discord's markdown
sabas3dgh has quit [Read error: Connection reset by peer]
zebrag has joined #ocaml
<d_bot_> <glennsl> sabas: https://github.com/ocaml/ocaml-lsp
<d_bot_> <NULL> I just noticed that all 3 of the repo name, package name and executable name are different
notnotdan has quit [Quit: bye]
bartholin has quit [Ping timeout: 256 seconds]
Guest4 has joined #ocaml
dhil has joined #ocaml
bartholin has joined #ocaml
azimut_ has quit [Remote host closed the connection]
azimut has joined #ocaml
rgrinberg has joined #ocaml
<Guest4> someone plz give me the link for discord chat
<Guest4> thank U
<d_bot_> <hcarty> Guest4 https://discord.gg/cCYQbqN is the link from v3.ocaml.org
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mro has joined #ocaml
rgrinberg has joined #ocaml
dhil has quit [Remote host closed the connection]
waleee has joined #ocaml
<d_bot_> <sabas3dgh> Hello; I have been landed 😁
<d_bot_> <sabas3dgh> howdy folks
<d_bot_> <Butanium (@me on answer)> o/
<d_bot_> <sabas3dgh> back to the issue at hand...
<d_bot_> <sabas3dgh> setup the sublime text 😁
<d_bot_> <sabas3dgh> it says and I am rephrasing here: if you want to have a better Ocaml support you need to install and configure reason for sublime text!
<d_bot_> <sabas3dgh> What is reason? another language based on Ocaml? like Emacs Lisp and whatever else Lisp
<d_bot_> <sabas3dgh> or is it a framework for Ocmal ....
<d_bot_> <sabas3dgh> another Q!
<d_bot_> <sabas3dgh> I am new to Ocaml..... I used to ORM and web frameworks, H2 database, DI (dependency Injection) and Aspect Oriented stuff.
<d_bot_> <sabas3dgh> How much of these have similar tools and foundation here in OCaml?
Guest4 has quit [Ping timeout: 240 seconds]
bartholin has quit [Ping timeout: 256 seconds]
<d_bot_> <glennsl> You won't find this kind of over-engineered enterprise stuff for OCaml, or any functional language.Mostly because it's just not necessary, but also in part because these are much smaller ecosystems.
<d_bot_> <glennsl> A good starting point for web is Dream, I think: https://aantron.github.io/dream/
<d_bot_> <glennsl> For functional approaches to dependency injection you might want to have a look at this series of articles: <https://fsharpforfunandprofit.com/posts/dependencies/>
mro has quit [Remote host closed the connection]
<d_bot_> <glennsl> Reason is for the most part just a different syntax for OCaml. `ocaml-lsp` supports both and supercedes both `ocaml-language-server` and `reason-language-server`. Anywhere you see either, substitute it with `ocaml-lsp`.
perrierjouet has quit [Ping timeout: 240 seconds]
<qwr> some libraries allow compile-time typechecking on SQL for example
bartholin has joined #ocaml
adanwan has quit [Ping timeout: 240 seconds]
adanwan has joined #ocaml
gravicappa has quit [Ping timeout: 272 seconds]
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mro has joined #ocaml
<d_bot_> <mseri> @sabas3dgh I would try ti keep it simpler and use the updated language server. Something like
<d_bot_> <mseri> ```
<d_bot_> <mseri>
<d_bot_> <mseri> {
<d_bot_> <mseri> "clients": {
<d_bot_> <mseri> "ocaml": {
<d_bot_> <mseri> "enabled": true,
<d_bot_> <mseri> "command": ["PATH/TO/ocamllsp"], // Update the PATH
<d_bot_> <mseri> "selector": "source.ocaml"
<d_bot_> <mseri> }
<d_bot_> <mseri> }
<d_bot_> <mseri> }
<d_bot_> <mseri> ```
<d_bot_> <mseri> Where `ocamllsp` can be installed, for example, with `opam install ocaml-lsp-server`
mro has quit [Ping timeout: 250 seconds]
vijon has joined #ocaml
vijon has quit [Client Quit]
Serpent7776 has quit [Quit: leaving]
bartholin has quit [Quit: Leaving]
rgrinberg has joined #ocaml