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/
Tuplanolla has quit [Quit: Leaving.]
f[x] has quit [Remote host closed the connection]
f[x] has joined #ocaml
hsw has joined #ocaml
f[x] has quit [Remote host closed the connection]
neuroevolutus has joined #ocaml
<discocaml> <0x28west> Hello guys is there a way to change tabsize from the default 2 to 4 please?.
<discocaml> <0x28west> I have ocaml format installed
<discocaml> <mohamed_abdulsalam> why ocaml has such bad error reporting
<discocaml> <0x28west> Setting max-ident didn't work nor help
neuroevolutus has quit [Quit: Client closed]
bartholin has joined #ocaml
<discocaml> <reynir1396> I think there are quite a few knobs to tweak ocamlformat indents
myrkraverk_ has joined #ocaml
myrkraverk has joined #ocaml
myrkraverk__ has quit [Ping timeout: 252 seconds]
myrkraverk_ has quit [Ping timeout: 252 seconds]
Anarchos has joined #ocaml
hwj has joined #ocaml
hwj has quit [Remote host closed the connection]
hwj has joined #ocaml
<discocaml> <getzapped.> dont think it does, but autocurrying and inference always choosing the most general type certainly doesnt help
Anarchos has quit [Read error: Connection reset by peer]
Anarchos has joined #ocaml
hwj has quit [Remote host closed the connection]
hwj has joined #ocaml
pi3ce_ has quit [Read error: Connection reset by peer]
pi3ce has joined #ocaml
Tuplanolla has joined #ocaml
hwj has quit [Read error: Connection reset by peer]
hwj has joined #ocaml
Anarchos has quit [Quit: Vision[]: i've been blurred!]
YuGiOhJCJ has joined #ocaml
<discocaml> <hockletock> @0x28west I think you have to set multiple options `function_indent`, `indent_after_in`, `match_indent`, `let_binding_indent`
<discocaml> <hockletock> there are some other indent options, you can play around with settings here: <https://ahrefs.github.io/ocamlformat>
<discocaml> <hockletock> max-indent prevents indentation from exceeding its value however deeply nested a section of code is
habnabit has quit [Ping timeout: 252 seconds]
YuGiOhJCJ has quit [Quit: YuGiOhJCJ]
terrorjack4 has quit [Quit: The Lounge - https://thelounge.chat]
terrorjack4 has joined #ocaml
euphores has quit [Quit: Leaving.]
euphores has joined #ocaml
hwj has quit [Ping timeout: 248 seconds]
semarie has joined #ocaml
infinity0 has quit [Ping timeout: 245 seconds]
infinity0 has joined #ocaml
neuroevolutus has joined #ocaml
torretto has quit [Remote host closed the connection]
chiselfuse has quit [Ping timeout: 260 seconds]
chiselfu1e has joined #ocaml
torretto has joined #ocaml
<discocaml> <bhlomas> Has anyone on here managed to properly get a working switch on windows? Without using wsl or smilar.
hwj has joined #ocaml
<discocaml> <._null._> I managed to install everything using opam (although the antivirus made everything much slower)
<discocaml> <bhlomas> opam 2.2.0? And, did it go seamlessly?
<discocaml> <._null._> Except that slowness, yes
<discocaml> <._null._> I just followed the proposed installation method from ocaml.org
<discocaml> <bhlomas> hmm, becasue this is the first time I'm trying to install something like opam and ocaml, perhaps I'm missing some dependencies taken for granted
<discocaml> <._null._> Are you getting errors ?
<discocaml> <bhlomas> first, I didn't have the gcc files properly installed and made visible in some special path in environment variables, but I figured that out. Now, I am getting this error
<discocaml> <bhlomas> I have managed to make it work with WSL, but would prefer to use it natively
<discocaml> <._null._> What did you do ? I did what was suggested (winget + `opam init`) and didn't get this
<discocaml> <._null._> Also, that was on Win10, not Win11
<discocaml> <bhlomas> I must have missed winget, let my try
<discocaml> <bhlomas> This happens
<discocaml> <bhlomas> I think I already tried winglet in my desperation 2 days ago, perhaps I should start from new
<discocaml> <._null._> Where did you get this opam from ? It doesn't detect the correct shell; you should try uninstalling this opam to reinstall the one from winget
<discocaml> <bhlomas> Around a year ago I followed some Dune tutorial, I don't remember the details, but I gave up. Properly got Opam from there. But, when doing 'opam --version' it says I have opam version 2.2.0, so does it matter?
<discocaml> <._null._> I don't know then. If that suits you, you can try the WSL route instead, this one is better tested and since it's Unix, it works
<discocaml> <bhlomas> interestingly, when I try to delete an only partially installed switch, shell complains the process can't get access to the file, as it is used by another process.
<discocaml> <bhlomas> tbh I propably have frankensteined this whole thing together. I will try to remove it and start from new
neuroevolutus has quit [Quit: Client closed]
<discocaml> <bhlomas> at second thought, I finally managed to make it work with WSL, so I don't wanna unsettle anything by removing anything that could be related
<discocaml> <._null._> There is very little chance you cause trouble in WSL by trying to remove opam in Windows
<discocaml> <piziedust237> If you are looking to setup ocaml with wsl, here is a short helpful tutorial you can follow:
<discocaml> <bhlomas> still a chance.
<discocaml> <bhlomas> I already got it to work with WSL. Now its just a matter of principle to get it to work on native windows
bibi_ has quit [Quit: Konversation terminated!]
bibi_ has joined #ocaml
<discocaml> <._null._> You'd have to completely remove your WSL installation, which is probably quite far from where opam is installed
<discocaml> <bhlomas> Okay thanks, might try to fiddle with it later
YuGiOhJCJ has joined #ocaml
YuGiOhJCJ has quit [Excess Flood]
YuGiOhJCJ has joined #ocaml
hwj has quit [Ping timeout: 246 seconds]
<discocaml> <ada2k> you can use both wsl and windows opam. they use different paths since they’re two different os.
<discocaml> <ada2k> i have done before to build in windows
bartholin has quit [Quit: Leaving]
neuroevolutus has joined #ocaml
neuroevolutus has quit [Ping timeout: 256 seconds]
neuroevolutus has joined #ocaml
neuroevolutus has quit [Ping timeout: 256 seconds]