-
Notifications
You must be signed in to change notification settings - Fork 323
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
Error executing EnsureCompiledJob
when multiple projects are open at the same time
#6857
Comments
This is exercising a functionality in LS that in theory we were supporting but in practice we said we are abandoning - concurrent edits of a single file by multiple users. So to me it sounds like a won't fix. |
@hubertp afaict though, this shouldn't be editing a single file by multiple LS instances, unless it's trying to compile stdlib files? i definitely opened two distinct projects this is related to getting #6730 working - are there alternative ways of letting multiple LS instances run at the same time? or maybe one user running multiple instances will not be supported, only multiple users (who would maybe have different stdlib directories)? (or have i just misunderstood the cause of the problem?) |
I will give that branch a try and see if I can reproduce. |
I'm having a hard time trying to reproduce it. Can I run
separately to reproduce? I opened from the dashboard two different projects and they continue to work without problems. |
sorry, wasn't clear - this happens when we run two separate project managers. to be fair, i'm not 100% sure whether we need to support one user running two separate project managers |
Sorry for the delay in getting back to you. I don't think this is an issue. We shouldn't have 2 (or more) project managers trying to manage the same project, that's bound to lead to immediate problems, as the one above. |
FYI: CLIHandler offers a way to create a file at a well known place and use it as a lock to prevent subsequent processes to start working on the same location. In addition to that the file contains a port number with a server socket opened by the first process. That allows:
The code is available as a Maven central library. |
What type of issue is this?
Permanent – Occurring repeatably
What issue are you facing?
EnsureCompiledJob
errors on the project that was opened second.This issue occurs in #6774, not (?) on develop, because it occurs when two projects are open at the same time.
Example Error:
Expected behaviour
No errors
How we can reproduce it?
-engine.project-manager-path
option)Logs
20230525-170528-213-enso-project-manager.log
(grep for "Error executing org.enso.interpreter.instrument.job.EnsureCompiledJob", or just "EnsureCompiledJob")
Enso Version
61802b5
Browser or standalone distribution
Standalone distribution (local project)
Browser Version or standalone distribution
standalone
Operating System
Linux
The text was updated successfully, but these errors were encountered: