Bug in Suggestions
MrJonez
Posts: 11 Bronze 1
in SQL Prompt
Hi,
It's something with SQL Prompts suggestions (intellisense) with the below query.
The Suggestions works in another document/tab without restarting anything. The only suggestions is from snippets.
Below I have started to write LEFT OUTER JOIN on line 77, but it's impossible to write anything since I cannot press space without the snippets to be inserted. So I have to press ESC the whole time when I write on the query, or turn off the suggestions (which I did), to be able to write anything.
I have of course, restarted SSMS (many times), but the same problem occurs directly from start.
I can send the query on request.
SQL Prompt 10.11.5.26913
SSMS 18.10
Best Regards John
It's something with SQL Prompts suggestions (intellisense) with the below query.
The Suggestions works in another document/tab without restarting anything. The only suggestions is from snippets.
Below I have started to write LEFT OUTER JOIN on line 77, but it's impossible to write anything since I cannot press space without the snippets to be inserted. So I have to press ESC the whole time when I write on the query, or turn off the suggestions (which I did), to be able to write anything.
I have of course, restarted SSMS (many times), but the same problem occurs directly from start.
I can send the query on request.
SQL Prompt 10.11.5.26913
SSMS 18.10
Best Regards John
Tagged:
Answers
Thanks for reaching out to us regarding this!
I've so far not been able to reproduce what you are seeing here, however I am continuing to try to.
In the mean time, can you confirm if this happens every time you start to type LEFT OUTER JOIN? Or only at certain points in your code? For example, did it happen on line 38 also?
Dan Jary | Redgate Software
Have you visited our Help Center?
I just tried, and if I start typing after line 38 it works.
It seems like its the CROSS APPLY start starts at line 39 that does this.
If I try after the CROSS APPLY is ended, it has stopped to work.
The CROSS APPLY SQL:
My apology for the delay in coming back to you on this!
I am continuing to try and replicate what you are seeing here (using the code you have provided), but have so far been unsuccessful.
By default the letters 'loj' are assigned to call the LEFT OUTER JOIN snippet, is this the case for you?
Also, you should have to press the TAB key in order to insert a snippet, however you are reporting that the snippet is inserted when you press SPACE.
Finally, did this issue only start to occur since you updated SQL Prompt? And, do you continue to see this issue in the latest version of SQL Prompt: https://download.red-gate.com/checkforupdates/SQLPrompt/SQLPrompt_10.11.6.27098.exe?
Dan Jary | Redgate Software
Have you visited our Help Center?
I tried again with the latest version (10.11.6.27098), but it's the exact same behaviour.
This is the first time I experience this bug, and only for this query (attached).
The loj snippet exists for me, but I have added my own that starts with the word "left".
But I dont think that matters here. And the settings was that space bar inserts the suggestion, so no bug here. The remaining problem is that the suggestions only includes snippets.
Thanks for your help
BR John
I'm continuing in my attempts to replicate the behavior you are seeing here, however after multiple attempts I have been unable to. I'm sorry this issue continues for you!
I do however just need to clarify on the issue here, you initially reported that, when typing LEF, you were unable to press space bar without it inserting the selected suggestion, however in your latest update you have mentioned that the issue is that only snippets are suggested.
Regarding the initial issue you mentioned, having space bar selected within the suggestion behavior settings (as shown in the screenshot from your most recent update) will be the cause of this. Please do correct me if I am misunderstanding this.
Finally, are there any other examples of syntax where you see this issue?
Any clarification you can give on this would be greatly appreciated.
Dan Jary | Redgate Software
Have you visited our Help Center?
Sorry for the missunderstanding. My issue is that the Suggestions stop working and only snippets are suggested. For me, this has only happened with this specific query.
I had problems to attach the .sql file in my previous post. Nothing happened after I selected the file, so I paste the query below.
Thanks
Best Regards John
Thank you for your last update on this, and for your patience with us!
We have finally been able to reproduce the behavior you are describing here. I have escalated this to our development team for their input and will come back to you as soon as I have another update for you.
Dan Jary | Redgate Software
Have you visited our Help Center?
Lovely, thanks. Looking forward to a fix 😊
Thank you for your patience with us on this while our development team reviewed the bug you highlighted to us. Unfortunately, due to the prioritization of current open issues, the available resources, and looking at the overall impact, on this occasion they are unable to work on a fix for this bug.
There is a workaround by way of adding a semi-colon to the previous line that causes the suggestions to populate as expected. This appears to work in all cases.
I'm sorry this isn't the outcome you were looking for here, we do regret that it isn't always possible for us to provide a fix every bug that is highlighted to us.
Please don’t hesitate in reaching out to us again if you have any questions regarding this. We very much appreciate your understanding on this.
Dan Jary | Redgate Software
Have you visited our Help Center?
So I can wait ....