-
Notifications
You must be signed in to change notification settings - Fork 295
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
SCP puts quotes in the wrong place #4460
Comments
Sadly, build .4058 doesn't seem to have fixed this, or at least I can't tell because Excel crashes. Every. Single. Time. Starting with this code (a continuation of the originally reported code): returnCode = ExecuteStoredProcedure("AddAppointmentCountForAClinic", False, dbConfig.SQLConString, _
"@clinicID", surveyListRS.Fields("ClinicID").value, adInteger, _|
"@startDate", reportDate, adDate) With the caret (as indicated) at the end of the 2nd line, I hit Enter. The caret moves to the beginning of the next line in column 1, then Excel crashes. However, if I start with this code: returnCode = ExecuteStoredProcedure("AddAppointmentCountForAClinic", False, dbConfig.SQLConString, "@clinicID", surveyListRS.Fields("ClinicID").value, adInteger, "@startDate", reportDate, adDate) with the caret anywhere (except in an already quoted string) and hit " I get a 2nd This is the RD log from a crash: And this is the log from the successful SCPs: Are there any Windows logs I can provide to help track down the issue? |
@daFreeMan thanks. Likely I missed an off-by-one and the service is throwing an IndexOutOfRangeException. A quick patch that should probably be in place anyway, would be to have a try/catch+logging in the AC service, which could then just resume without handling the keypress. |
Now no repo on the crash, however, hitting enter after line 2 does leave the cursor at the left margin, so auto-indent has been borked. Interestingly, when I went back into the settings for AC to test your request, Guess we'll leave this one closed. |
Win10, Excel 2016 (desktop), RD .4047
Starting with this text:
I type
"
and it yields this text:Yes, the cursor is at the beginning (indented) of the 2nd line, yet the
""
ends up at the end of the 2nd line.The text was updated successfully, but these errors were encountered: