brackets-archive / bracketsIssues

Archive of issues in brackets.
0 stars 0 forks source link

[CLOSED] HAML file crashes brackets #8781

Open core-ai-bot opened 3 years ago

core-ai-bot commented 3 years ago

Issue by unyo Saturday Nov 08, 2014 at 02:42 GMT Originally opened as https://github.com/adobe/brackets/issues/9875


After opening this HAML file, attempting to select from the end of the line to the "{" character in Brackets causes brackets to crash with and without extensions enabled. OSX, Brackets 1.0 and 0.44.

The Line:

.uploading-item {style: "background: linear-gradient(to right, #e8eef3, 60%, transparent 100%;"}

The File:

%script#upload-progress-modal-template{:type => "text/html", :'data-id' => "upload-progress-modal"}
  .upload-progress-modal.modal
    .box
      .close
        {{ t "close" }}
      .header
        .title
          {{ t "progress" }}
      .body
        .uploading-section
          .section-title
            {{ t "uploading" }}
            %i.xm.xm-help
          .uploading-items
            .uploading-item{style: "background: linear-gradient(to right, #e8eef3, 60%, transparent 100%;"}
              %span.content-logo
                %i.xm.xm-video
              %span.file-name
                lorem_ipsum.mp4
            {{#each uploading_items}}
            .uploading-item{style: "background: linear-gradient(to right, #e8eef3, {{this.percent}}%, transparent 100%;"}
              %span.content-logo
                %i{data: {type: "{{this.filetype}}"}}
              %span.file-name
                {{this.filename}}
            {{/each}}
core-ai-bot commented 3 years ago

Comment by RaymondLim Saturday Nov 08, 2014 at 18:45 GMT


I can reproduce it after hovering mouse over the lines that have linear-gradient(to right and confirm that the hang is caused by Quick View. So you can turn off Quick View by unchecking View > Quick View on Hover or just avoid moving mouse over these lines.

core-ai-bot commented 3 years ago

Comment by MarcelGerber Saturday Nov 08, 2014 at 21:16 GMT


Seems like another case of hitting #4650.

core-ai-bot commented 3 years ago

Comment by redmunds Monday Nov 17, 2014 at 16:50 GMT


@unyo FYI, both linear-gradient( function calls are missing the closing paren. Brackets still shouldn't crash, but that may help you work around it.

core-ai-bot commented 3 years ago

Comment by redmunds Friday Nov 21, 2014 at 00:25 GMT


Confirmed. Closing.