Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zyv opened this issue Apr 27, 2016 · 3 comments
Open

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

zyv opened this issue Apr 27, 2016 · 3 comments

Comments

@zyv
Copy link

zyv commented Apr 27, 2016

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

http://expath.org/spec/file

@ligasgr
Copy link
Owner

ligasgr commented Jun 24, 2016

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
Copy link
Author

zyv commented Jul 6, 2016

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 ligasgr changed the title File Module 1.0 support (file system API for XPath) Quick-fix for unresolved methods which are available in other flavours Jul 6, 2016
@ligasgr
Copy link
Owner

ligasgr commented Jul 6, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants