Konubinix' opinionated web of thoughts

Literate Sensible Programming With LSP


What would it take to have the support of LSP in a literate programming document?

It should also provide support for DAP.

A bridge that would tangle the code, run LSP and map the result back to the document.

it is no silver bullet

because the code in front of me can be included in several pieces, there is no way to know what export would make sense.

For instance, the following code


Would print 1 in that situation

b = 1

And 2 in that tangled code

b = 2

Therefore, when editing the code print(b), I have no way of knowing if it is in the context of the first or the second code.

Notes pointant ici