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

Allow to execute Y.js and Insight together #11477

Open
JaroslavTulach opened this issue Nov 4, 2024 · 0 comments
Open

Allow to execute Y.js and Insight together #11477

JaroslavTulach opened this issue Nov 4, 2024 · 0 comments
Assignees

Comments

@JaroslavTulach
Copy link
Member

Since the implementation of reload insight script on file change we have a nice and comfortable way to execute Enso Insight scripts like Detect Assign Statements in the IDE and observe how engine executes the code.

The next step is to connect Y.js and Insight together. Let's do it like this:

    var epbSrc =
        Source.newBuilder("epb", path.toFile())
            .content("js:0#" + codeToExecute)
            .build();

It is essential to use epb language as it sets a proper inner context for JavaScript rather than trying to execute JavaScript directly (as it is not ready for multi threaded access).

At the end please demonstrate how a simple script showing co-operation between Enso Insight and Y.js structures can be created and used in the IDE via -Denso.dev.insight property.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 📤 Backlog
Development

No branches or pull requests

2 participants