Closed millerbill3 closed 8 years ago
Hey,
Thanks for kind words :) 👍 Can you please show a screenshot of which modules/variables are getting "cannot resolve variable"? Just a few examples. Also, can you please let me know if the sources of those imported modules are part of the project? Are they part of standard MarkLogic API (e.g. available in https://docs.marklogic.com/ )? Currently plugin does not support fetching/browsing modules in WebDav. Please raise a separate issue with the description of the expected functionality if you'd be interested in such feature. What you have configured is a data source used for running XQuery code (for MarkLogic it generally works only when all of the used [imported] modules are either standard api or uploaded to server). It requires adding XDBC server and specifying its port in the data source configuration. Can you please also let me know what you have selected in File -> Settings -> Other settings -> XQuery -> Other options -> XQuery flavour?
Hi and thanks for the quick response. As for my settings I have MarkLogic 8 selected as the XQuery flavor. In my XQuery Data Sources, I have the following settings:
Here is an example of the plugin not seeing imported module methods/variables [image: Screen Shot 2016-07-18 at 7.57.22 AM.png] Module imports above. Then, further down in the same module... [image: Screen Shot 2016-07-18 at 7.58.12 AM.png] Here you can see the imported modules for "req", "status-lib", "cp", etc being imported and then later on where they are referenced you can see the plugin highlighting them in red with "mouse-over" hints stating "Cannot resolve variable XXX".
Thanks, Bill
On Sun, Jul 17, 2016 at 10:08 AM ligasgr notifications@github.com wrote:
Hey,
Thanks for kind words :) 👍 Can you please show a screenshot of which modules/variables are getting "cannot resolve variable"? Just a few examples. Also, can you please let me know if the sources of those imported modules are part of the project? Are they part of standard MarkLogic API (e.g. available in https://docs.marklogic.com/ )? Currently plugin does not support fetching/browsing modules in WebDav. Please raise a separate issue with the description of the expected functionality if you'd be interested in such feature. What you have configured is a data source used for running XQuery code (for MarkLogic it generally works only when all of the used [imported] modules are either standard api or uploaded to server). It requires adding XDBC server and specifying its port in the data source configuration. Can you please also let me know what you have selected in File -> Settings -> Other settings -> XQuery -> Other options -> XQuery flavour?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ligasgr/intellij-xquery/issues/203#issuecomment-233183759, or mute the thread https://github.com/notifications/unsubscribe-auth/AF3fjivS1yU7AIHN1RvVaOVz5CCKyFt5ks5qWjdXgaJpZM4JLVJB .
Hey,
Thanks for more details. Unfortunately you'd have to respond on github portal and not via email for attachments to be visible to me.
Sorry, Didn't realize the images would not be visible in the email.
Hey,
please raise a separate issue for WebDav module access for MarkLogic. This would be to allow browsing the modules currently deployed onto the server and allow referencing them in the code in the IDE. Current functionality does not allow that. To get rid of these warnings you could copy the modules that get these highlights into the workspace into one of the source directories. I know that it's not ideal but currently that is the only way.
Ok, thanks
On Tue, Jul 19, 2016 at 8:35 AM ligasgr notifications@github.com wrote:
Hey,
please raise a separate issue for WebDav module access for MarkLogic. This would be to allow browsing the modules currently deployed onto the server and allow referencing them in the code in the IDE. Current functionality does not allow that. To get rid of these warnings you could copy the modules that get these highlights into the workspace into one of the source directories. I know that it's not ideal but currently that is the only way.
— You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub https://github.com/ligasgr/intellij-xquery/issues/203#issuecomment-233618310, or mute the thread https://github.com/notifications/unsubscribe-auth/AF3fjnxqNO07wAeXF472uW19CP3qvW67ks5qXMSRgaJpZM4JLVJB .
First of all, I love this plugin! Question... in my xquery modules/files where I'm referencing an imported module's variables/functions I'm getting a "cannot resolve variable ...". I'm using MarkLogic 8 as my database and IntelliJ Ultimate 2016.1. I have configured the plugin with the appropriate login information and I'm pointing to a WebDav database. Is this correct? I have also tried configuring the plugin to connect to one of my HTTP servers, but still have the same issue. Thanks...