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

> LSP4E is part of Photon now. So updating releng/org.eclipse.cdt.target/cdt.target to include lsp4e is bets option IMHO. It would allow compiling the new bundles without issues.

+1


> 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.

You can use either. I recommend the xml form though as the GUI editor can be frustrating. In Photon there is a new tab in the target editor that gives seamless access to the xml file using the new generic editor framework. The Edit... button is probably greyed out because the target is not fully resolved yet. When I first open the editor I can't press Edit right away either. 

When editing/updating the .target file, please also make the equivalent edits to the Oomph CDT.setup file as there is another way of describing the target platform in there.


~~~
Jonah Graham
Kichwa Coders Ltd.
www.kichwacoders.com

On 3 May 2018 at 07:35, Aleksandar Kurtakov <akurtako@xxxxxxxxxx> wrote:


On Thu, May 3, 2018 at 9:20 AM, Nathan Ridge <zeratul976@xxxxxxxxxxx> wrote:
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.

LSP4E is part of Photon now. So updating releng/org.eclipse.cdt.target/cdt.target to include lsp4e is bets option IMHO. It would allow compiling the new bundles without issues.
 

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



--
Alexander Kurtakov
Red Hat Eclipse Team

_______________________________________________
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