Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue on the emmet package #1132

Open
5 tasks done
Raf-sns opened this issue Nov 8, 2024 · 0 comments
Open
5 tasks done

issue on the emmet package #1132

Raf-sns opened this issue Nov 8, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Raf-sns
Copy link

Raf-sns commented Nov 8, 2024

Thanks in advance for your bug report!

  • Have you reproduced issue in safe mode?
  • Have you used the debugging guide to try to resolve the issue?
  • Have you checked our FAQs to make sure your question isn't answered there?
  • Have you checked to make sure your issue does not already exist?
  • Have you checked you are on the latest release of Pulsar?

What happened?

After using an emmet shortcut, an error is generated when pressing the TAB key

Pulsar version

latest

Which OS does this happen on?

🐧 Debian based (Linux Mint, Ubuntu, etc.)

OS details

24.10

Which CPU architecture are you running this on?

x86_64/AMD64

What steps are needed to reproduce this?

  1. Use any emmet shortcut
  2. Press TAB to indent
  3. Get an error and TAB action is ignored

Additional Information:

Stack Trace

Uncaught TypeError: Cannot read property 'length' of undefined

At /opt/Pulsar/resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:1323

TypeError: Cannot read property 'length' of undefined
    at runAction (/packages/emmet/lib/emmet.coffee:79:51)
    at /packages/emmet/lib/emmet.coffee:62:9
    at Object.exec (/packages/emmet/lib/editor-proxy.coffee:80:10)
    at /packages/emmet/lib/emmet.coffee:61:19
    at TextBuffer.transact (/app.asar/node_modules/text-buffer/lib/text-buffer.js:1320:16)
    at TextEditor.transact (/app.asar/src/text-editor.js:2467:24)
    at /packages/emmet/lib/emmet.coffee:60:24)
    at CommandRegistry.handleCommandEvent (/app.asar/src/command-registry.js:405:43)
    at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:617:16)
    at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:408:22)
    at WindowEventHandler.handleDocumentKeyEvent (/app.asar/src/window-event-handler.js:153:34)

Commands

     -2:27.1.0 core:cut (input.hidden-input)
     -2:22.2.0 core:save (input.hidden-input)
     -2:13.3.0 emmet:expand-abbreviation-with-tab (input.hidden-input)
     -2:11.8.0 core:backspace (input.hidden-input)
     -2:08.8.0 ftp-remote-edit:open-file (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)
     -2:05.3.0 emmet:expand-abbreviation-with-tab (input.hidden-input)
     -2:00.8.0 emmet:expand-abbreviation (input.hidden-input)
     -1:59.9.0 emmet:insert-formatted-line-break-only (input.hidden-input)
     -1:58.5.0 emmet:expand-abbreviation-with-tab (input.hidden-input)
  5x -1:55.9.0 core:undo (input.hidden-input)
     -1:49.1.0 emmet:expand-abbreviation-with-tab (input.hidden-input)
     -1:41.5.0 core:save (input.hidden-input)
     -0:08.0 emmet:expand-abbreviation-with-tab (input.hidden-input)

Error on pop-up

/opt/Pulsar/resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:1323
[Hide Stack Trace](https://github.com/pulsar-edit/pulsar/issues/new?assignees=&labels=bug%2Ctriage&projects=&template=bug-report.yml#)
TypeError: Cannot read property 'length' of undefined
    at runAction (/home/USER/.pulsar/packages/emmet/lib/emmet.coffee:79:51)
    at /home/USER/.pulsar/packages/emmet/lib/emmet.coffee:62:9
    at Object.exec (/home/USER/.pulsar/packages/emmet/lib/editor-proxy.coffee:80:10)
    at /home/USER/.pulsar/packages/emmet/lib/emmet.coffee:61:19
    at TextBuffer.transact (/opt/Pulsar/resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:1320:16)
    at TextEditor.transact (/opt/Pulsar/resources/app.asar/src/text-editor.js:2467:24)
    at HTMLElement.<anonymous> (/home/USER/.pulsar/packages/emmet/lib/emmet.coffee:60:24)
    at CommandRegistry.handleCommandEvent (/opt/Pulsar/resources/app.asar/src/command-registry.js:405:43)
    at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/opt/Pulsar/resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:617:16)
    at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/opt/Pulsar/resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:408:22)
    at WindowEventHandler.handleDocumentKeyEvent (/opt/Pulsar/resources/app.asar/src/window-event-handler.js:153:34)

Non-Core Packages

atom-beautify 0.33.4 
emmet 2.4.3 
ftp-remote-edit 0.20.0 
minimap 4.40.1 
@Raf-sns Raf-sns added the bug Something isn't working label Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant