Pulsar-Edit-Highlights / selected

@Pulsar-Edit package for highlighting occurrences of your selection.
https://web.pulsar-edit.dev/packages/highlight-selected
MIT License
248 stars 67 forks source link

Uncaught SyntaxError: Unexpected token { #230

Open aleksandrkotenko opened 3 years ago

aleksandrkotenko commented 3 years ago

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.53.0 x64 Electron: 6.1.12 OS: Unknown Windows version Thrown From: highlight-selected package 0.17.0

Stack Trace

Uncaught SyntaxError: Unexpected token {

At C:\Users\lux-m\.atom\packages\highlight-selected\lib\search-model.js:230

C:\Users\lux-m\.atom\packages\minimap\lib\decoration.js:3
import { Emitter } from 'atom'
       ^

SyntaxError: Unexpected token {
    at new Script (vm.js:83:7)
    at NativeCompileCache.runInThisContext (~/AppData/Local/atom/app-1.53.0/resources/app/static/<embedded>:11:146391)
    at Module.get_Module._compile (~/AppData/Local/atom/app-1.53.0/resources/app/static/<embedded>:11:147275)
    at Object.value [as .js] (~/AppData/Local/atom/app-1.53.0/resources/app/static/<embedded>:11:151046)
    at Module.load (internal/modules/cjs/loader.js:645:32)
    at Function.Module._load (internal/modules/cjs/loader.js:560:12)
    at Module.require (/app.asar/static/index.js:72:46)
    at require (~/AppData/Local/atom/app-1.53.0/resources/app/static/<embedded>:11:146814)
    at Minimap.decorateMarker (/packages/minimap/lib/mixins/decoration-management.js:326:37)
    at Object.markerCreated (/packages/minimap-highlight-selected/lib/minimap-highlight-selected.js:66:30)
    at /packages/minimap-highlight-selected/lib/minimap-highlight-selected.js:47:66
    at Function.simpleDispatch (~/AppData/Local/atom/app-1.53.0/resources/app/static/<embedded>:11:1190051)
    at Emitter.emit (~/AppData/Local/atom/app-1.53.0/resources/app/static/<embedded>:11:1191492)
    at /packages/highlight-selected/lib/search-model.js:215:41
    at TextBuffer.scanInRange (~/AppData/Local/atom/app-1.53.0/resources/app/static/<embedded>:11:495463)
    at TextBuffer.scan (~/AppData/Local/atom/app-1.53.0/resources/app/static/<embedded>:11:494919)
    at TextEditor.scan (~/AppData/Local/atom/app-1.53.0/resources/app/static/<embedded>:11:40885)
    at SearchModel.highlightSelectionInEditor (/packages/highlight-selected/lib/search-model.js:176:14)
    at /packages/highlight-selected/lib/search-model.js:129:21
    at Array.forEach (<anonymous>)
    at SearchModel.handleSelection (/packages/highlight-selected/lib/search-model.js:128:26)
    at /packages/highlight-selected/lib/selection-manager.js:96:26)
    at later (/packages/highlight-selected/node_modules/debounce/index.js:27:23)

Commands

  3x -1:49 core:backspace (input.hidden-input)
     -1:28.9.0 emmet:insert-formatted-line-break-only (input.hidden-input)
     -1:28.8.0 editor:newline (input.hidden-input)
     -1:25.9.0 intentions:highlight (input.hidden-input)
     -1:25.8.0 core:copy (input.hidden-input)
     -1:25.3.0 intentions:highlight (input.hidden-input)
     -1:25.2.0 core:paste (input.hidden-input)
  2x -1:22.9.0 core:backspace (input.hidden-input)
     -1:19.4.0 intentions:highlight (input.hidden-input)
     -1:19.3.0 core:copy (input.hidden-input)
  2x -1:17 core:backspace (input.hidden-input)
     -1:13 emmet:insert-formatted-line-break-only (input.hidden-input)
     -1:12.9.0 editor:newline (input.hidden-input)
     -1:12.5.0 intentions:highlight (input.hidden-input)
     -1:12.3.0 core:paste (input.hidden-input)
  7x -1:11.4.0 core:backspace (input.hidden-input)

Non-Core Packages

atom-autocomplete-php 0.25.6 
atom-beautify 0.33.4 
atom-material-syntax 1.0.8 
atom-material-ui 2.1.3 
autocomplete-paths undefined 
busy-signal 2.0.1 
emmet 2.4.3 
file-icons 2.1.45 
ftp-remote-edit 0.18.1 
highlight-selected 0.17.0 
Hydrogen 2.14.6 
ide-typescript 0.9.1 
indent-guide-improved 1.4.13 
intentions 1.1.5 
language-liquid 0.7.0 
linter 3.1.1 
linter-php 1.6.1 
linter-ui-default 2.1.5 
minimap 4.35.6 
minimap-highlight-selected 4.6.2 
open-in-browser 0.5.2 
php-twig 4.0.0 
pigments 0.40.6 
platformio-ide-terminal 2.10.0 
simple-drag-drop-text 0.5.0 
sync-settings 5.0.10