Modules location not being honoured

Description

This issue was apparent in ColdBox 5 and I was able to hardcode around it then but it looks as though it is still present in the ColdBox 6 RC. I am using the latest cbmarkdown module.

The error detail is:
The instance could not be located in any declared scan location(s) (mypath.cb.models) or full path location
The error message is:
Requested instance not found: 'Processor@cbmarkdown'

I have ColdBox installed in a folder above root.
e.g. /mypath/cb/coldbox
Modules are in:
/mypath/cb/modules

My Application.cfc has this configuration:
this.mappings["/coldbox"] = expandPath("/mypath/cb/coldbox");
this.mappings["/wirebox"] = expandPath("/mypath/cb/wirebox");
this.mappings["/modules"] = expandPath("/mypath/cb/modules");
this.mappings["/handlers"] = expandPath("/mypath/cb/handlers");
this.mappings["/models"] = expandPath("/mypath/cb/models");
this.mappings["/views"] = expandPath("/mypath/cb/views");

I also have modules configured in /mypath/cb/config/Coldbox.cfc
conventions = {
modulesLocation = "modules"
};

The code that is generating this issue is:
html = application.wireBox.getInstance( "Processor@cbmarkdown" ).toHTML( "[Text for link](https://mysite.com)");

I've tried numerous settings to no avail.
The version of Lucee is Lucee 5.3.7.34-RC
Using tomcat 9.0.30 and Java 11.0.6

Assignee

Luis Majano

Reporter

Pat Moody

Labels

None

Priority

Major
Configure