Lint, search path for modules?
Hi, I am having an issue setting up the search_path for the linter. I set use_roxy_settings to false and have set xcc_port to all the possible ports related to ML 8001,8011,8012, and 8013. I believe it should be either 8012 or 8013, the code and main xdbc ports. When it is set to one of these and I try linting a file, I get a XDMP-MODNOTFOUND error, which sounds reasonable and refers to one of the modules I have declared in the xqy file I am trying to lint.
The trouble is, nothing I try for the seach_path setting to locate these modules seems to work. I tried absolute paths for the file '/Users/paul/workspace/geyser/lib/config.xqy' For the project '/Users/paul/workspace/geyser/' Local paths such as 'lib/config.xqy' And localhost paths such as 'http://localhost:8011/lib/config.xqy'
None of these seems to work, and I still get the MODNOTFOUND error.
When I try something like 'http://localhost:8011/' (my ML project's main http port) though, I get a message '[Errno 61] Connection refused http://localhost:8041/'. I don't see any reason why it would be trying to access port 8041 though. The only reference I am aware of this port is from the MarkLogic module's default sublime setting for the xcc_port, which is not the port I have set in my user settings.
Any help would be appreciated, thank you!
Usually the XDMP-MODNOTFOUND error means that you haven't copied your modules files into the modules database.
That's a limitation of using the linter. The modules files need to be in the database. Try loading them and see if that fixes it.
--Paxton
On Wed, Jul 22, 2015 at 4:05 PM, pnaylor [email protected] wrote:
Hi, I am having an issue setting up the search_path for the linter. I set use_roxy_settings to false and have set xcc_port to all the possible ports related to ML 8001,8011,8012, and 8013. I believe it should be either 8012 or 8013, the code and main xdbc ports. When it is set to one of these and I try linting a file, I get a XDMP-MODNOTFOUND error, which sounds reasonable and refers to one of the modules I have declared in the xqy file I am trying to lint.
The trouble is, nothing I try for the seach_path setting to locate these modules seems to work. I tried absolute paths for the file '/Users/paul/workspace/geyser/lib/config.xqy' For the project '/Users/paul/workspace/geyser/' Local paths such as 'lib/config.xqy' And localhost paths such as 'http://localhost:8011/lib/config.xqy'
None of these seems to work, and I still get the MODNOTFOUND error.
When I try something like 'http://localhost:8011/' (my ML project's main http port) though, I get a message '[Errno 61] Connection refused http://localhost:8041/'. I don't see any reason why it would be trying to access port 8041 though. The only reference I am aware of this port is from the MarkLogic module's default sublime setting for the xcc_port, which is not the port I have set in my user settings.
Any help would be appreciated, thank you!
— Reply to this email directly or view it on GitHub https://github.com/paxtonhare/MarkLogic-Sublime/issues/37.
My modules database is on port 8012, which I have tried for the xcc_port setting. It's root is set the same as my project root on my local filesystem and it's modules setting is set to (file system), so I would expect it to be able to locate the modules within my project based on this. I still get 'MODNOTFOUND' though. I also tried adding entries for the module under ML server > Groups > App Servers > 8012-mod [XDBC] > Module Locations and .. namespaces, without success. Is there some other way I should try adding the modules to the database?
Thanks for the feedback.