-
Notifications
You must be signed in to change notification settings - Fork 332
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
TypeError when using hydrogen with pulsar #2163
Comments
Same here. I'm always using the "Run cell and move down" command, but it only works if I highlight the code to be run. If I don't, I get the error @ttxtea mentions. Meanwhile, the "Run cell" command runs everything in the file, whereas it should really only run current line / block or what is highlighted. |
Had the same issue and this bugged me a lot. I came up with a small workaround Add to the init.js script
and map a key-binding to this function in the keymap, e.g.:
EDIT: If you want it to work with (python) indent-blocks, e.g. function definitions in python, you could do the following.
|
@antonscharton this worked great! The second snippet is exactly what I needed. |
Thanks @antonscharton ! This restores expected behaviour for me, but I still get the error pop-up everytime. Does it do that for anyone else? |
Description
When running a cell the
TypeError: editor.languageMode.rowRangeForCodeFoldAtBufferRow is not a function
, see below happens.Prerequisites
Versions
Atom: 1.101.0-beta x64
Electron: 12.2.3
OS: Ubuntu 22.04.1
Thrown From: Hydrogen package 2.16.3
Stack Trace
Uncaught TypeError: editor.languageMode.rowRangeForCodeFoldAtBufferRow is not a function
Commands
Non-Core Packages
The text was updated successfully, but these errors were encountered: