ligasgr / intellij-xquery

Plugin to support XQuery in Intellij Idea
Apache License 2.0
35 stars 23 forks source link

Quick-fix for unresolved methods which are available in other flavours #193

Open zyv opened 8 years ago

zyv commented 8 years ago

This extension is already supported by BaseX, but, unfortunately, not recognized by intellij-xquery:

http://expath.org/spec/file

ligasgr commented 8 years ago

Hi, can you please clarify what you mean by "not recognized"? I went to the link posted by you and took a code snippet

let $filename := "input.txt"
let $dir := file:base-dir()
let $path := concat($dir, $filename)
return file:read-text($path)

I created a new file with that code and after changing the flavour to BaseX everything looks fine (File -> Settings -> Other Settings -> XQuery -> Other options -> XQuery flavour).

Please let me know your thoughts.

zyv commented 8 years ago

Oh, thank you very much, I didn't realize that I should switch on BaseX flavor for it, now it's working!

I think it's a bit unobvious, though. Maybe it would be possible to show some kind of a hint, that one needs to change the flavor if generally existing, but unrecognized with the current flavor functions are used...

Otherwise, please feel free to close and sorry for the noise!

ligasgr commented 8 years ago

I've renamed the issue and changed to new feature to highlight the new scope.