Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Saving/opening files is blocked while code generation (Saving/opening files is blocked while code generation )
Saving/opening files is blocked while code generation [message #1827505] Sat, 16 May 2020 01:35 Go to next message
Eclipse UserFriend
Hello,

I have a DSL in that when users try to open files with our {.DSL extension} the user is blocked until the code generation completed. It's annoying to users. I want to improve usability.

Currently, we extend class ParallelBuilderParticipant for {DSL to header file generation} where we call super.doBuild(deltas, outputConfigurations, generatorMarkers, context, access, progressMonitor).

For DSL file compilation we extend XtextBuilder where we call super.doBuild(toBeBuilt, monitor, type);


Analysis so far:
Currently, DSL files compilation and header generation is on a single thread.
Read and Write can't happen at the same time if modify the generation with multi-threaded, so in that case, users are allowed to open a file? not to save.

So any inputs and suggestions will be appreciated.

Thanks
Nagaraj
  • Attachment: block.JPG
    (Size: 18.24KB, Downloaded 60 times)
Re: Saving/opening files is blocked while code generation [message #1827517 is a reply to message #1827505] Sat, 16 May 2020 10:47 Go to previous messageGo to next message
Eclipse UserFriend
https://github.com/eclipse/xtext-eclipse/issues/264
Re: Saving/opening files is blocked while code generation [message #1827520 is a reply to message #1827517] Sun, 17 May 2020 02:05 Go to previous message
Eclipse UserFriend
Thank you for the information.
Previous Topic:Use IChangeSerializer for refactoring that changes multiple Xtext files
Next Topic:Implementing AbstractLanguageServerTest in Maven project
Goto Forum:
  


Current Time: Sun Jul 06 23:25:51 EDT 2025

Powered by FUDForum. Page generated in 0.05423 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top