[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Intellisense issue

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Tue, 15 Jul 2014 21:30:54 +0200

On 14.07.2014 15:38, ubercam wrote:
> 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.
>

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-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2014-07-15 21:30:22 CEST

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.