Discussion:
Intellisense issue
ubercam
2014-07-14 13:38:24 UTC
Permalink
Hello

I have been experiencing an intellisense issue for a while, back as far as version 1.7.11 which was the first version I used. We are now using the latest version, 1.8.7.

A bit of background:

We do a lot of SQL Server development and have name prefixing conventions for script files and objects, "tbl" for tables, "sp" for stored procs, "tfn" for table valued functions, etc.

When committing and entering some text for the log, you get the intellisense coming up with the names of the files which have changed, so if I type "tfn" I get a list of all the table valued functions, if I type "tbl", I get a list of all the tables, etc.

However if I type "sp?" where ? is any letter, I get no intellisense. I have to manually hit CTRL + Space after "sp". If I type, for example, "spc" and press CTRL + Space, I get no intellisense menu at all, even though several files start with "spc". Why is this? I have a feeling there were other letter combinations which didn't have any intellisense, but I can't remember what these are at the moment.

Any help would be appreciated.

Thanks!

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=3085078

To unsubscribe from this discussion, e-mail: [dev-***@tortoisesvn.tigris.org].
Stefan Küng
2014-07-15 19:30:54 UTC
Permalink
Post by ubercam
Hello
I have been experiencing an intellisense issue for a while, back as
far as version 1.7.11 which was the first version I used. We are now
using the latest version, 1.8.7.
We do a lot of SQL Server development and have name prefixing
conventions for script files and objects, "tbl" for tables, "sp" for
stored procs, "tfn" for table valued functions, etc.
When committing and entering some text for the log, you get the
intellisense coming up with the names of the files which have
changed, so if I type "tfn" I get a list of all the table valued
functions, if I type "tbl", I get a list of all the tables, etc.
However if I type "sp?" where ? is any letter, I get no intellisense.
I have to manually hit CTRL + Space after "sp". If I type, for
example, "spc" and press CTRL + Space, I get no intellisense menu at
all, even though several files start with "spc". Why is this? I have
a feeling there were other letter combinations which didn't have any
intellisense, but I can't remember what these are at the moment.
Can't reproduce this here, autocompletion works or all files - even
those starting with sp and spc.

But maybe you're simply hitting the timeout value?
I think I need to explain this:

When you show the commit dialog, a background thread is started that
scans all the files that are modified. Depending on the file extension,
the file size and of course the number of modified files, that can take
a long while.
The scan is done with a regex, as described here:
http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-dug-commit.html#tsvn-dug-commit-log
see the file %APPDATA%\TortoiseSVN\autolist.txt if you want to see the
exact regex that's used to scan the file.

To avoid that the commit dialog is blocked until all the files are
scanned, the scan is run only for 5 seconds and then stopped. You can
configure the amount of seconds to scan in the settings dialog->Dialogs
2->Timeout in seconds to stop the auto-completion parsing.

If the scan is stopped before it reaches the files starting with sp,
then those files are not included in the autocompletion list and
therefore won't show up.

And since the file scan is done alphabetically, files starting with 's'
are scanned late and therefore most likely to not be included.


I'll change the code to first add all the files and paths to the
autocompletion list and then scan the file contents. But in the mean
time, you can increase the scan time to e.g. 10 seconds in the settings
dialog.

Stefan
--
___
oo // \\ "De Chelonian Mobile"
(_,\/ \_/ \ TortoiseSVN
\ \_/_\_/> The coolest interface to (Sub)version control
/_/ \_\ http://tortoisesvn.net

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=3085205

To unsubscribe from this discussion, e-mail: [dev-***@tortoisesvn.tigris.org].
ch3cooli
2014-07-26 14:39:41 UTC
Permalink
TortoiseSVN -> Settings -> Advanced
set AutoCompleteMinChars to 2

The minimum amount of chars from which the editor shows an auto-completion popup. The default value is 3.

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=3085820

To unsubscribe from this discussion, e-mail: [dev-***@tortoisesvn.tigris.org].
Continue reading on narkive:
Loading...