On 09/25/2016 01:02 AM, dlang user wrote:

I am trying to get gsv.SourceCompletionWords working and this is the error that I get when I try to call SourceView.getCompletion():

(gtktest:4767): GtkSourceView-ERROR **: Error while loading the completion UI: .:23:106 Invalid object type 'GtkSourceCompletionInfo'

Does anyone have any suggestions?

Here is a test program to illustrate.
The error gets thrown on the "SourceCompletion sc = sv.getCompletion();" line:

import gio.Application : GioApplication = Application;
import gtk.Application;
import gtk.ApplicationWindow;
import gtk.Label;

import gsv.SourceView;
import gsv.SourceCompletion;

class HelloWorld : ApplicationWindow
{
	this(Application application)
	{
		super(application);
		setTitle("GtkD");
		setBorderWidth(10);
		add(new Label("Hello World"));

		SourceView sv = new SourceView();
		SourceCompletion sc = sv.getCompletion();


		
		showAll();
	}
}

int main(string[] args)
{
	auto application = new Application("org.gtkd.demo.helloworld", GApplicationFlags.FLAGS_NONE);
	application.addOnActivate(delegate void(GioApplication app) { new HelloWorld(application); });
	return application.run(args);
}

Sorry for the late reply, I tried looking into this but i haven't been
successful. And google only turns up one result for he error message
that doesn't include an answer. So for now i have no clue on how to
solve this.