Hello! I have a question about defining a `custom ...
# community-support
v
Hello! I have a question about defining a
custom model
for
tooling API
. (Simple example is to get the list of all the plugins applied to a project) What works: Define a model, create a custom plugin to register the model, and then from a sample project, create the
ProjectConnection
, and invoke the method on the model interface for a sample project. • Plugin to register the modelInvocation What does not work: Rather than having a plugin just to register the model, I am trying to add a task to that plugin,
getPlugins,
and invoking the same thing I was invoking from invocation (above). But here is where it throws the error:
No model of type 'CustomModel' is available in this build
Plugin with model registration and task definition to invoke the method on model Is it not possible to register a model and define a task that will create the
ProjectConnection
in the same plugin? What am I understanding incorrectly? I could not find clear documentation about it.