ProxymanApp / ProxymanApp/Proxyman

Script editor becomes unresponsive, and syntax highlighting breaks when script contains very long lines.

Open
#765 3 comments 0 reactions 1 assignee View on GitHub

@NghiaTranUIT is already working on this.

Since Jan 27, 2021.

bug
Dominant language
No language data
Stars
7k
Forks
237
PR merge metrics
No merged PRs in 30d

Description

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 name1 and var name2 in generateName() 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.

  1. Import the the attached config file.
  2. Open scripts list
  3. Open script and try editing, typing etc.
Results
  • Edit becomes very unresponsive, when typing a word testing for example, there is 2-3 second pause before the characters appear, and then auto complete appears
  • Syntax highlighting breaks
Screen Shot 2021-01-26 at 10 14 40 AM
Expected behavior

Editor should be responsive.

UnresponsiveEditor.config.zip

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.