Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » LSP: How to trigger build after dependency changes
LSP: How to trigger build after dependency changes [message #1871472] Thu, 26 September 2024 08:37 Go to next message
Sebastian Waldhauser is currently offline Sebastian WaldhauserFriend
Messages: 24
Registered: March 2022
Junior Member
Hi,

how can I trigger the build of a project after a dependency (either a project in the workspace or a file outside the workspace) changes?

Best regards,
Sebastian
Re: LSP: How to trigger build after dependency changes [message #1871475 is a reply to message #1871472] Thu, 26 September 2024 08:50 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14722
Registered: July 2009
Senior Member
hi, can you please be a bit more specific.

- which client do you use
- what kind of change do you do
- what kind of build do you do

you can e.g have a look at

didChangeWorkspaceFolders
or
didChangeConfiguration


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Day Job: https://www.everest-systems.com
Re: LSP: How to trigger build after dependency changes [message #1871478 is a reply to message #1871475] Thu, 26 September 2024 09:04 Go to previous messageGo to next message
Sebastian Waldhauser is currently offline Sebastian WaldhauserFriend
Messages: 24
Registered: March 2022
Junior Member
Hey Christian,

Client: VSCode

what kind of change do you do:
The projects in the workspace can depend on others in the project.
The projects in the workspace can depend on files outside the project (similar to a jar in java).
I want to trigger the Xtext build of a project if the contents of the build output or the contents of files outside the workspace changes.

I already watch these files and get the notifications from the client. However, I'm looking for a way to trigger builds of the dependent projects.
Re: LSP: How to trigger build after dependency changes [message #1871481 is a reply to message #1871478] Thu, 26 September 2024 09:07 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14722
Registered: July 2009
Senior Member
then i propose you have a look at the implementations of the methods i have mentioned


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Day Job: https://www.everest-systems.com
Re: LSP: How to trigger build after dependency changes [message #1871484 is a reply to message #1871481] Thu, 26 September 2024 09:18 Go to previous message
Sebastian Waldhauser is currently offline Sebastian WaldhauserFriend
Messages: 24
Registered: March 2022
Junior Member
ok, thank you!
Previous Topic:absolute paths in ._trace files
Next Topic: Xtext 2.37.0.M0 is out
Goto Forum:
  


Current Time: Fri Oct 11 08:57:36 GMT 2024

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

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

Back to the top