Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dynamic Languages Toolkit (DLTK) » Indexer for multiple languages(Fix to allow DLTK's indexing system to work with multiple languages)
Indexer for multiple languages [message #1672218] Fri, 13 March 2015 22:55
Eriky Raggeoto Kashivagui is currently offline Eriky Raggeoto KashivaguiFriend
Messages: 7
Registered: October 2014
Junior Member
I am trying to use the DLTK's indexing system but my project has more than one project's nature. So, I've found one bit of code that just search for the LanguageToolkit based on the project nature. - Line 364
	 * @param workingCopy
	public static void reconciled(ISourceModule workingCopy) {
		final IScriptProject project = workingCopy.getScriptProject();
		if (project == null) {
		if (!isIndexerEnabled(project.getProject())) {
		final IDLTKLanguageToolkit toolkit = DLTKLanguageManager
		if (toolkit == null) {
		final IProjectIndexer[] indexers = getIndexers(toolkit.getNatureId());
		if (indexers != null) {
			for (int i = 0; i < indexers.length; ++i) {
				indexers[i].reconciled(workingCopy, toolkit);

Considering that I don´t have a nature with a LanguageToolkit bound, my project is considered closed, so the DLTKLanguageManager don´t return the correct languageToolkit. If the workingCopy were passed as an argument to the LanguageManager the correct Toolkit would be returned as I required.

So my question is: "There is any problem if I make that change and propose a pull request to the DLTK's github? What would be the problems that would cause to the system's architecture"
Previous Topic:DLTK indexes' load is not being performed
Next Topic:DLTK Multiple Language Initiative
Goto Forum:

Current Time: Mon Mar 04 02:56:56 GMT 2024

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

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

Back to the top