Skip to content
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

Disable autoformat when switching mode or save test case #353

Open
minhthanh3145 opened this issue Jun 29, 2020 · 7 comments
Open

Disable autoformat when switching mode or save test case #353

minhthanh3145 opened this issue Jun 29, 2020 · 7 comments
Labels
enhancement New feature or request planning

Comments

@minhthanh3145
Copy link

https://forum.katalon.com/t/how-to-disable-editor-script-to-auto-formatting/8920

For people who use script mode intensively, they may have their own preferences. We should not enforce auto-format unnecessarily.

@minhthanh3145 minhthanh3145 added the enhancement New feature or request label Jun 29, 2020
@jlongPSD
Copy link

jlongPSD commented Jan 6, 2021

Any update on this? This should be categorized as a bug not a feature. It breaks the code when the auto formatting happens most of the time and I have to manually fix it.

@jlongPSD
Copy link

ping

@signalw
Copy link

signalw commented Mar 29, 2021

This auto formatting thing is really annoying. Any update on this?

@jlongPSD
Copy link

Posted in forum but no response yet. Any news?

https://forum.katalon.com/t/any-update-on-auto-formatting-issue/52056

@jmelnik
Copy link

jmelnik commented Jun 17, 2021

Seriously guys, I love Katalon, but every IDE has the ability to turn this off, or configure it. Please can we get this in an upcoming release?

@jmelnik
Copy link

jmelnik commented Oct 16, 2021

Posted this on the forum thread, but wanted to add it here also since it's now a destructive bug.

Annoyances are one thing, but this now regularly breaking my code and I’ve already set the script window as the default.

I’m doing soap web service test cases and traversing the xml using find with closures, similar to:

String code = parsed.depthFirst().find{it.@name == 'UNIQUE_NAME'}.text()

Pretty straight forward.

I don’t ever use the manual window with these. But I do routinely add web service objects via the Plus Icon and “Add to existing test case”.

Then, when its added and I’m transferred back to the test case it has changed that line to this:

String code = parsed.depthFirst().find({ 
         == 'UNIQUE_NAME'
    }).text()

COMPLETELY BREAKING IT. This is not ‘reformatting’-- it’s deleting code!

I have tons of these and I don’t have them all memorized. I don’t always see it and it becomes a problem to rewrite it if I didn’t think to copy it out first.

I can’t even think of all the untold hours I’ve wasted on this.

Guys, this is a bug-- serious bug. No formatting should DELETE code. Please consider bumping this up in the list of priorities.

Thanks!

@egillanton
Copy link

Hello Team and Community,

This issue was initially reported nearly four years ago, and it seems that it has yet to be addressed or resolved.

As a newcomer to the platform, I've encountered this behavior firsthand and found it to be quite disruptive to my workflow. The autoformatter, while undoubtedly a valuable tool for maintaining code consistency, can sometimes alter the structure in ways that are not intended or desired by the user. This can be particularly problematic when working on finely tuned test cases, where every space and indentation could potentially impact the execution or readability of the code.

I understand that developing and maintaining such a comprehensive tool as Katalon requires balancing a myriad of features and requests. However, the ability to disable or configure the autoformat feature according to individual preferences would greatly enhance the user experience. It would provide developers with greater control over their work environment, allowing them to tailor the tool to their specific needs and workflows.

Moreover, addressing long-standing issues such as this one sends a positive signal to the community. It demonstrates a commitment to user feedback and continuous improvement, which are crucial factors many consider when deciding whether to invest in a tool, especially at a professional or enterprise level.

I am keenly interested in continuing to use Katalon for my test automation projects. I believe in the tool's potential and am hopeful that the team will consider implementing a solution for this issue. Providing users with the option to disable autoformat when switching modes or saving would undoubtedly enhance the usability and appeal of Katalon.

Thank you for your attention to this matter. I look forward to any updates or discussions on potential resolutions.

Best regards,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request planning
Projects
None yet
Development

No branches or pull requests

6 participants