Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Target definition files for LSP4E plugin

Hi Nathan,

Yes targets typically needs to be updated from time to time. I suggest merging lsp4e.cpp.target into the cdt.target and delete the lsp ones, if all the dependencies are there now. Using the generic editor for that is easier than the target editor. It's also better to bump the sequence numbers so that other pulling the change will have the target reloaded for them (maybe...targets are buggy). Also, as Jonah mentioned, the cdt.setup needs to match so that people using Oomph don't have errors.


Cheers,

Marc-André


From: cdt-dev-bounces@xxxxxxxxxxx <cdt-dev-bounces@xxxxxxxxxxx> on behalf of Nathan Ridge <zeratul976@xxxxxxxxxxx>
Sent: Thursday, May 3, 2018 2:20:37 AM
To: CDT Mailing List
Cc: Marc-Andre Laperle
Subject: [cdt-dev] Target definition files for LSP4E plugin
 
Hi all,

Last September, we commited to the CDT repo [1] an org.eclipse.lsp4e.cpp plugin whose purpose is to allow using the ClangD language server via LSP4E.

As part of that commit there was also an org.eclipse.lsp4e.cpp.target plugin which contained target definition files for this functionality. I remember trying it briefly at the time, and it worked; at least, the target definition resolved and I was able to run the resulting Eclipse application.

To get started with the GSoC project about LSP integration, Manish and I have been trying to dust off this plugin and get it working so that we can develop it further.

We are finding that when we try to load one of the provided target definition files, e.g. lsp4e.cpp-staging.target, it fails to resolve with a bunch of errors of the form "Unable to locate installation unit [...]" and "Missing requirement: [...]".

I'm wondering, have the target definition files perhaps become out of date since then, and need to be updated? Any advice on how to go about doing that?

I've never edited a target definition file before so I also wanted to ask: are you supposed to edit them directly in their textual (XML) form, or using the Target Editor? I ask in part because in the Target Editor, in the Definition tab, the "Edit..." button is greyed out for each location, so it's not clear to me how I'm supposed to edit the entries in the Target Editor.

Any suggestions about this would be appreciated!

Also cc'ing Marc-André who wrote the original plugins and may have some insight about this.

Thanks,
Nate

[1] https://git.eclipse.org/r/#/c/101857/
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/cdt-dev

Back to the top