mirror of
https://github.com/ProxymanApp/Proxyman.git
synced 2026-04-27 00:55:57 +03:00
[GH-ISSUE #765] Script editor becomes unresponsive, and syntax highlighting breaks when script contains very long lines. #760
Labels
No labels
Discussion
Feature request
In Progress...
Plugins
Waiting response
Windows
Windows
bug
duplicate
enhancement
feature
good first issue
iOS
macOS 10.11
question
wontfix
✅ Done
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Proxyman#760
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mprice-banno on GitHub (Jan 26, 2021).
Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/765
Originally assigned to: @NghiaTranUIT on GitHub.
Proxyman version? (Ex. Proxyman 1.4.3)
Version 2.16.1 (21610
macOS Version? (Ex. mac 10.14)
10.15.6
Steps to reproduce
Lower priority issue.
The script editor becomes very unresponsive when you're editing a script that contains very long lines. See attached config file for an example. Editing will stop and start. It looks like auto completion is likely the problem. Syntax highlighting appears to break halfway through the line. See attached screen shot
Removing the long lines, the
var name1andvar name2ingenerateName()in this particular case, seems to resolve the issue. I don't know if it's the length of the line, or the number of elements in the arrays being defined that is causing the issue.Results
testingfor example, there is 2-3 second pause before the characters appear, and then auto complete appearsExpected behavior
Editor should be responsive.
UnresponsiveEditor.config.zip
@NghiaTranUIT commented on GitHub (Jan 27, 2021):
Hey @mprice-banno, thanks for reporting this issue.
To work around, I'd highly suggest using "Import JSON or Files" in the Scripting (https://docs.proxyman.io/scripting/snippet-code#json)
After importing, you will get the file and you're able to change the value inside like the following code:
@mprice-banno commented on GitHub (Jan 27, 2021):
Thanks @NghiaTranUIT that'll work fine. 👍
@NghiaTranUIT commented on GitHub (Jan 27, 2021):
Awesome 🙌