Skip to content
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

Typenv__Envaux_hack.Error(...) and Dune integration #28

Open
hackwaly opened this issue Feb 12, 2021 · 4 comments
Open

Typenv__Envaux_hack.Error(...) and Dune integration #28

hackwaly opened this issue Feb 12, 2021 · 4 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@hackwaly
Copy link
Owner

hackwaly commented Feb 12, 2021

Since debug informations provided by bytecode file sometimes are not enough to use to debug. It is a good point that if we can use merlin config produced by dune.

And we can upgrade the user experience by available to list debuggable programs via dune integration.

image

@hackwaly hackwaly changed the title Dune integration Typenv__Envaux_hack.Error(...) and Dune integration Feb 12, 2021
@PavelKotov1
Copy link

PavelKotov1 commented Feb 13, 2021

Hello, i am very new to ocaml, so please do not be angry with me!
I am having trouble understanding the difference between using
ocamlc -g main.ml approach
and compiling using dune producing main.bc file.
Is it only used to debug utop examples?
What is the difference between the files produced by ocamlc -g and dune produced *.bc file?
How different is it from "traditional" approach? You still provide lanch.json file.
I am very confuse...
Could somebody explain? Thanks in advance!

@atagunov
Copy link

atagunov commented Feb 16, 2021

It is my impression dune might have stopped or may stop producing those .merlin files replacing them with a new command

dune ocaml-merlin

Or that it may still be producing .merlin files but this is supposed to be better.

I understand it may work a little like LSP: you start dune process with this command, feed requests to its stdin and read answers from stdout. This is touted to be a better facility as you presumably can ask questions about particular source files rather than get folder-level info.

I haven't found many references online but links from changelog provide useful info

@hackwaly
Copy link
Owner Author

Thank you. I have found this command and dune describe command both can be used. I'm investigating which is best fit our case.

@hackwaly
Copy link
Owner Author

hackwaly commented Feb 19, 2021

ref ocaml/dune#4263

@sim642 sim642 added bug Something isn't working enhancement New feature or request labels Jun 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants