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: 56
Registered: May 2020
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 43 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 online Christian DietrichFriend
Messages: 14668
Registered: July 2009
Senior Member
https://github.com/eclipse/xtext-eclipse/issues/264

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: 56
Registered: May 2020
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: Fri Apr 26 18:14:27 GMT 2024

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

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

Back to the top