Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 05:35 Go to next message
Nagaraj Kandoor is currently offline Nagaraj KandoorFriend
Messages: 2
Registered: May 2020
Junior Member
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 11 times)
Re: Saving/opening files is blocked while code generation [message #1827517 is a reply to message #1827505] Sat, 16 May 2020 14:47 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13628
Registered: July 2009
Senior Member
https://github.com/eclipse/xtext-eclipse/issues/264

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Saving/opening files is blocked while code generation [message #1827520 is a reply to message #1827517] Sun, 17 May 2020 06:05 Go to previous message
Nagaraj Kandoor is currently offline Nagaraj KandoorFriend
Messages: 2
Registered: May 2020
Junior Member
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: Thu Oct 22 13:23:37 GMT 2020

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

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

Back to the top