SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Ignore Comments and Strings

 
Reply to topic    SoftTree Technologies Forum Index » SQL Assistant View previous topic
View next topic
Ignore Comments and Strings
Author Message
markkeller42t



Joined: 13 Jan 2022
Posts: 8
Country: United States

Post Ignore Comments and Strings Reply with quote
Under Options/DB Options/Ignore Comments and Strings is not operating correctly. Regardless whether the option is set to Yes or No, while inside comments (either on a -- line or inside /* */) Intellisense still operates and if a keyword is used it is capitalized per the intellisense. This applies to use in SSMS for SQL Server and with SQL Assistant version 12.0.191
Thu Jan 13, 2022 9:07 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7847

Post Reply with quote
Is it always reproducible? In any script or you see that in long files only? If it's in a vrry long file, parsing may produce this effect if it doesn't start scanning from the beginning of the file.
Thu Jan 13, 2022 9:28 pm View user's profile Send private message
markkeller42t



Joined: 13 Jan 2022
Posts: 8
Country: United States

Post Reply with quote
It is reproducable very consistantly. It behaves this way on every comment on any size script. In the screen shot you can see the intellisense pop up as soon as I type ta inside the comment. If I hit escape the intellisense will go away but as I finish typing table and after hitting space bar it will capitalize TABLE since it's a keyword.





Thu Jan 13, 2022 10:14 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7847

Post Reply with quote
This is not a normal behavior.

I see "this ta" in one of your examples triggers Intellisense popup. Are you able to reproduce it with "this in" or "this vi" or something else?
I'm not able to reproduce that behavior with the default settings, and also with the settings I see on your screenshot. There might be something else that I don't see, which is causing that. Could be able something customized in SSMS that is interfering. Are you able to reproduce the same effect in SQL Assistant SQL Editor?
Thu Jan 13, 2022 11:03 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7847

Post Reply with quote
I've also noticed on both screenshots you got something appearing like a small checkmark below the leading slash in the multi-line comment. I'm not able to reproduce it too, and I don't think it's SQL Assistant drawing it. Do you know what does it?
Thu Jan 13, 2022 11:10 pm View user's profile Send private message
markkeller42t



Joined: 13 Jan 2022
Posts: 8
Country: United States

Post Reply with quote
I brought up the same script I was using yesterday. I tried your suggestion of "this in" and "this vi" and both bring up the intellisense along with capitalizing any keyword inside a comment. I tried the SQL Assistant Editor but it isn't apparent to me how to connect to a database with it. Under File menu option Connect is gray for me. I'd have to spend some time getting used to it but frankly prefer to use SSMS long term. The SSMS I am using is 18.10. It has no other plugins besides SQL Assistant. I'm not sure about the character below the / from the screen shots yesterday. They are not there today and in these shots. My only explanation for it yesterday is I had just used the SQL Assistant /** snippet to add that comment structure.









Fri Jan 14, 2022 12:28 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7847

Post Reply with quote
Quote:
I tried the SQL Assistant Editor but it isn't apparent to me how to connect to a database with it


Exactly the same way you connect in SSMS, Enter server name. Enter login if you are using SQL authentication using user/password, else leave login blank if using trusted authentication. Click Connect. That should be it.

If you test that, we would know if the issue is specific to SSMS and caused by some environment specific settings. If it's reproducible with the SQL editor, then it's some anomaly in the SQL Assistant's configuration, could be a combination of different settings, or maybe it got corrupted somehow.
Fri Jan 14, 2022 1:08 pm View user's profile Send private message
markkeller42t



Joined: 13 Jan 2022
Posts: 8
Country: United States

Post Reply with quote
I took your hint about possible corruption and decided to deinstall/erase/reinstall. After the reinstall, making no option changes, I ran the SQL Assistant x64 editor. I was able to connect to server/db and the intellisense and capitalization of keywords in the comments is happening there. I also tried after the reinstall in SSMS and the behavior is the same.





Fri Jan 14, 2022 7:42 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7847

Post Reply with quote
Would you please try with factory default settings?

I'm afraid simple reinstall does replace custom settings.


Last edited by SysOp on Sat Jan 15, 2022 12:05 pm; edited 1 time in total
Fri Jan 14, 2022 7:50 pm View user's profile Send private message
markkeller42t



Joined: 13 Jan 2022
Posts: 8
Country: United States

Post Reply with quote
Sure, is there a way set factory default settings?

Also I just ran sadiag.exe /i

Here are sections with red.







[/list][/url]
Fri Jan 14, 2022 8:22 pm View user's profile Send private message
markkeller42t



Joined: 13 Jan 2022
Posts: 8
Country: United States

Post Reply with quote
I think I figured out how to do a factory reset.... via Import/Export in Options and choosing Load Defaults. It seems to not have an impact.

I did however find that comment lines using -- will work fine... no intellisense and no keyword capitalization. Comments inside the /* structure still have intellisense and keyword capitalization.

However inside the /* structure if on the line you want to type comments you also use -- then it works properly, with no intellisense and keyword cap. All of my recent tests have been with SQL Assistant Editor, which I'm beginning to like more and more. If we could just resolve the comment behavior your product is superior to Redgate's in my opinion.



Fri Jan 14, 2022 11:03 pm View user's profile Send private message
markkeller42t



Joined: 13 Jan 2022
Posts: 8
Country: United States

Post Reply with quote
one additional test for /* */ on the same line..... exhausts all permutations for /* structure. Anything using the /* structure does not disable intellisense or keyword cap.


Fri Jan 14, 2022 11:10 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7847

Post Reply with quote
Thank you for the additional details. Long story short, your screenshots helped a lot, and I managed to reproduce the issue using the same build 12.0.191. It's not appear to be relevant to use of SSMS or specific settings. It appears to be some sort of regression in builds 12.0.182 to 12.0.191.

There are two options available: going back to 12.0.181 or earlier, or waiting for 12.1 maintenance release. I cannot provide a date for 12.1 release yet, it's expected in a few weeks, but no exact date is known yet. If you can't wait and would like to get 12.0.181 installed, please send an email to support and tell them you need download link for 12.0.181.
Sat Jan 15, 2022 12:39 pm View user's profile Send private message
markkeller42t



Joined: 13 Jan 2022
Posts: 8
Country: United States

Post Reply with quote
Happy to help. I'm willing to wait for the maintenance release. Now that I realize I just need to use -- I'm content with that work around for now. Thank you !
Mon Jan 17, 2022 2:11 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » SQL Assistant All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.