Questions? Feedback?powered byOlark live chat software
Bug 3728

Button "Save" behavior in Snap Develop: it scrolls the mouse pointer to the beginning of the Class 06 December, 2019

paulo gomes
03 December, 2019
Product: PowerBuilder Category: SnapDevelop (PB Edition)
Version: 2019 R2 Beta Publishing: Public
Status: Scheduling Priority: P3
Classification: Appeon bug Resolution:
Logan Liu 06 December, 2019
Hi Paulo,

Thank you again! I will reported this bug to our development team.

Regards,
Logan
paulo gomes 06 December, 2019
Hi Logan,

Thank you for the reply.

Yes the same CRTL + S behavior.  

Why I suggested it? Because people that is used to work with Visual Studio (and I'm one ) most time click the save icon (1 little disk) or save-all (2 little disks), not the crtl + S.

It is not a must since the ctrl + S does it by keeping the cursor where it is in the file. 

However, as a product that is debuting around, as better Snap Develop can be used, as better for Appeon and the community.

That is the idea.

Thank you.

Regards,

Paulo Gomes
pgomes@intervalintl.com
Logan Liu 06 December, 2019
Hi Paulo,

Did you mean that the cursor left its original position after clicking the icon save? In other words, do you expect it to be the same as pressing Ctrl + S?

Regards,
Logan
paulo gomes 04 December, 2019
PB2019WebApiSqlServer.rar (276KB)

Hi Logan,

The Project that you can reproduce the issue is basically any Snap Develop web API project. However you can find attached the project we are working with. It uses an Oracle database but I added methods that access an Adventure Works SQL Server database. The Connection string for this database in the project is AdventureWorks2017 which you must replace with your connection.

To reproduce the issue:
1. open the project with Snap Develop
2. edit the method "getMemberHistory_iis" in the SampleController.cs file
3. add anything, like a comment, and click the icon save (the little blue disk icon on menu bar): 
    - after saving the Editor goes to the beginning of the SampleController class.
      This happens around 90% of the time.

It happens in Snap Develop 2019 and Snap Develop R2 Beta.

Please let me know if you need further information.

Regards,

Paulo Gomes
pgome@intervalintl.com
Logan Liu 04 December, 2019
Hi Paulo,

Could you help to provide a sample project that can reproduce this bug?

Regards,
Logan
Chris Pollach 03 December, 2019
Hi Paulo;

  Thank you for reporting this distracting and non-productive behaviour!

  I will now transfer this ticket over to the main Engineering team for a fix.

Regards ... Chris
paulo gomes 03 December, 2019
*Phenomenon:

After clicking the button "Save" in the Snap Develop editor, it scrolls the mouse pointer to the beginning of the Class.
Since Controller's code exposes several methods to be invoked by the Client, normally it has hundred of lines of code.
The behavior of moving the mouse pointer to the beginning of the file every time you save your changes is distracting and means focus on hundred of lines of code up.

Is this a behavior that can be changed by setting a value in the Snap Develop Code Editor ?

Thank you,

Paulo Gomes
pgomes@intervalintl.com

*Reproduce Steps:


Remarks:

It does not happens 100% of the time but seems to be over 90%.

It also happens on PB 2019.
OS:
Windows 10 
Platform:
64-bit 
Database Type:
Oracle 
Database Version:
12C