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

Wrong error message "Duplicate declaration of prefix" #1200

Closed
sofiageo opened this issue Sep 23, 2015 · 4 comments
Closed

Wrong error message "Duplicate declaration of prefix" #1200

sofiageo opened this issue Sep 23, 2015 · 4 comments

Comments

@sofiageo
Copy link

I don't know if it is related to #1194 but after the update to 8.3 I've noticed when I have declared a namespace in the editor and there are other errors in the script, I only get a false error "Duplicate declaration of prefix 'X'" where X is the prefix for the namespace I declared.
This happens even if the namespace is not a duplicate. The only way to make it go away and run the script is to fix the real errors, but the editor won't let you know what they are, until you start typing something in the editor again.

@ChristianGruen
Copy link
Member

I tried to reproduce it, but it doesn't seem to be the case for all queries… Could you please attach a little example?

editor

@sofiageo
Copy link
Author

Sure, sorry for not providing more info but I was exhausted at the time I made that issue. You have to press run to see the message. So for example if someone gives you a large xquery script and you click run, you will just see the duplicate namespace error, instead of the real error.

Also in case you have selected realtime execution, you will never know what the real error is.

basex-bug

@ChristianGruen
Copy link
Member

Confirmed, thanks!

@ChristianGruen
Copy link
Member

The issue has been fixed in the latest snapshot.

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

No branches or pull requests

2 participants