Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Arrays within JavaScript files cause the UI to hang #493

@helpfulBro

Description

@helpfulBro

Prerequisites

Description

[Description of the issue]

Steps to Reproduce

  1. Create a test.js file and save it.
  2. Copy and paste a large array into the file e.g.
var occupationArray = [['Accountant','Accountant'],['Actor/Performer','Actor/Performer'],['Admin/Data Entry/Secretary','Admin/Data Entry/Secretary'],['Air Traffic Controller','Air Traffic Controller'],['Ambulance Officer/Manager','Ambulance Officer/Manager'],['Architect','Architect'],['Artist/Designer/Illustrator','Artist/Designer/Illustrator'],['Assembler','Assembler'],['Baker/Pastry Cook','Baker/Pastry Cook'],['Barrister/Solicitor','Barrister/Solicitor'],['Building/Construction Manager','Building/Construction Manager'],['Bursar','Bursar'],['Butcher/Smallgoods','Butcher/Smallgoods'],['Caretaker/Janitor','Caretaker/Janitor'],['Cashier','Cashier'],['Catering/Restaurant Manager','Catering/Restaurant Manager'],['Childcare/Youth Worker','Childcare/Youth Worker'],['Clerical Worker','Clerical Worker'],['Consultant','Consultant'],['Coroner/Judge/Magistrate','Coroner/Judge/Magistrate'],['Customer Service Consultant','Customer Service Consultant'],['Customs Agent','Customs Agent'],['Defence Forces','Defence Forces'],['Dishwasher/Kitchenhand','Dishwasher/Kitchenhand'],['Doctor/Specialist/Surgeon','Doctor/Specialist/Surgeon'],['Driver/Operator','Driver/Operator'],['Electrical/Electronic Engineer','Electrical/Electronic Engineer'],['Engineer','Engineer'],['Executive','Executive'],['Farmer','Farmer'],['Fire Brigade/Police','Fire Brigade/Police'],['Gardener/Landscaper','Gardener/Landscaper'],['Greenkeeper/Groundsperson','Greenkeeper/Groundsperson'],['HR/Recruitment','HR/Recruitment'],['Historian','Historian'],['Home Duties','Home Duties'],['Hospitality','Hospitality'],['Hotel Manager/Supervisor','Hotel Manager/Supervisor'],['IT Professional','IT Professional'],['Importer/Exporter','Importer/Exporter'],['Instructor','Instructor'],['Journalist/Proofreader','Journalist/Proofreader'],['Lab Technician','Lab Technician'],['Labourer/Factory/Process Worker','Labourer/Factory/Process Worker'],['Landscape Artist','Landscape Artist'],['Legal Officer','Legal Officer'],['Librarian','Librarian'],['Logistics','Logistics'],['Maintenance Engineer','Maintenance Engineer'],['Manager/Supervisor','Manager/Supervisor'],['Mechanic','Mechanic'],['Medical Lab Technician','Medical Lab Technician'],['Musician','Musician'],['Nurse/Midwife','Nurse/Midwife'],['Nursery and Garden Labourer','Nursery and Garden Labourer'],['Pharmacist','Pharmacist'],['Politician','Politician'],['Production','Production'],['Professional Sportsperson','Professional Sportsperson'],['Public Relations','Public Relations'],['Public Servant','Public Servant'],['Real Estate/Property','Real Estate/Property'],['Researcher','Researcher'],['Retail/Small Business Manager','Retail/Small Business Manager'],['Retired','Retired'],['Safety Inspector','Safety Inspector'],['Sales Rep','Sales Rep'],['Sales/Marketing/Advertising','Sales/Marketing/Advertising'],['Scientist/Mathematician','Scientist/Mathematician'],['Security Services/Officer','Security Services/Officer'],['Self-Employed','Self-Employed'],['Social Worker','Social Worker'],['Sole Trader','Sole Trader'],['Sound Technician','Sound Technician'],['Student','Student'],['Teacher','Teacher'],['Translator','Translator'],['Travel Agent/Consultant','Travel Agent/Consultant'],['Unemployed','Unemployed'],['University Lecturer/Teacher','University Lecturer/Teacher'],['Veterinarian','Veterinarian'],['Volunteer Work','Volunteer Work'],['Wholesale Manager','Wholesale Manager'],['Writer/Editor','Writer/Editor']];
  1. Or paste the array then try to save as .js

Expected behavior: The paste/save should only take a second or two to complete.

Actual behavior: The interface hangs, a message appears asking if you would like to wait. If you click wait enough times the paste/save will complete. Each time you touch the array this introduces an additional delay. The larger the array, the larger the delay.

Reproduces how often: 100%

Versions

Atom : 1.14.3
Electron: 1.3.13
Chrome : 52.0.2743.82
Node : 6.5.0
Windows 7x64 SP1

Additional Information

Any additional information, configuration or data that might be necessary to reproduce the issue.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions