SlickEdit Community

Archived Read Only Forums => SlickEdit 2018 v23 Beta Discussion => Topic started by: rowbearto on October 18, 2018, 06:52:16 pm

Title: Cursor moved to end of file after choosing compatible function parameter
Post by: rowbearto on October 18, 2018, 06:52:16 pm
Look for compatible_auto.tar.gz on support.

Follow instructions in the README file.

It reproduced with a clean config.

Used RC2, Linux x64, CentOS 7.2
Title: Re: Cursor moved to end of file after choosing compatible function parameter
Post by: patrick on October 18, 2018, 07:05:32 pm
This is fixed for the next build/first hotfix.
Title: Re: Cursor moved to end of file after choosing compatible function parameter
Post by: rowbearto on October 18, 2018, 07:09:00 pm
Wow, that was fast! Was it already fixed by the time I reported it?
Title: Re: Cursor moved to end of file after choosing compatible function parameter
Post by: patrick on October 18, 2018, 07:19:58 pm
Yes.  It's actually the same root cause as the dynamic surround/completion problem.  Essentially, a recent change causes us to feed invalid source ranges to the beautifier for completion/syntax expansion.  Most of the time this is harmless, beyond forcing the beautifier to process more source than is necessary for a given source snippet.  But some ranges violate some beautifier invariants for snippets, causing it to miscalculate new positions for the stream markers used by hotspots, dynamic surround, auto bracket, and also the cursor.