addon-node-red icon indicating copy to clipboard operation
addon-node-red copied to clipboard

Cannot edit/write/type inside the function node

Open prvashisht opened this issue 3 years ago • 11 comments

Problem/Motivation

I was away from my home for a couple of months and after coming back, I updated Node-Red to version 3.0. However, ever since the upgrade, I have been unable to edit or write anything into any of the function nodes. It's the same for existing and new function nodes I create. Also, all other nodes I tested work fine. I can fill in their custom fields.

Expected behavior

I be able to write in the function nodes

Actual behavior

I can move the cursor around by clicking at specific places. However, nothing happens when I use my keyboard. I can't move the cursor, write, delete, or paste any text. I can, however, select text with my mouse and copy it.

Steps to reproduce

I don't know if others can reproduce this. Just writing into a function node doesn't work.

prvashisht avatar Aug 15 '22 17:08 prvashisht

Update, further details:

I'm using Firefox, I also tried it on the iOS app and Google Chrome. On Chrome I was able to see that something is being typed somewhere as I was receiving word suggestions on the touchbar above the keyboard. I could also delete the words (by guessing from the hints in the touchbar), but I have not idea where is the typed content going.

Developer's Console is showing this error whenever I do a keypress (it's most likely happening on keydown event)

Uncaught Error: e[Symbol.iterator] is not a function

TypeError: e[Symbol.iterator] is not a function
    at e.first (editor.js:2:415180)
    at Object.getCommand (editor.js:2:3261143)
    at Na.executeCommand (editor.js:2:3023864)
    at Object.type (editor.js:2:1360978)
    at ht.type (editor.js:2:1099830)
    at editor.js:2:1090606
    at d.invoke (editor.js:2:396935)
    at u.fire (editor.js:2:398687)
    at editor.js:2:975756
    at d.invoke (editor.js:2:396935)
    at editor.js:2:392210
(anonymous) @ editor.js:2
setTimeout (async)
unexpectedErrorHandler @ editor.js:2
onUnexpectedError @ editor.js:2
o @ editor.js:2
fire @ editor.js:2
(anonymous) @ editor.js:2
invoke @ editor.js:2
fire @ editor.js:2
o @ editor.js:2

prvashisht avatar Aug 16 '22 00:08 prvashisht

I am getting the same issue on version 13.3.2

The exact problem from previous issue -- Render Template Node not working after upgrade #1394

Nusse469 avatar Sep 01 '22 13:09 Nusse469

I have the same problem in version 13.3.2. I tried to update since version 12.x and always had this issue. Tried in different browsers and devices. So I am back on 11.1.2 now which works fine.

ginebib avatar Sep 07 '22 15:09 ginebib

@ginebib how did you downgrade to 11.1.2? I don't have a backup, can I do that too?

prvashisht avatar Sep 07 '22 16:09 prvashisht

@ginebib how did you downgrade to 11.1.2? I don't have a backup, can I do that too?

Yes, I had a backup. Sorry, I don't know how to downgrade without.

ginebib avatar Sep 07 '22 16:09 ginebib

Have the same problem. What I can do in this situation? Don't have backups of previous version.

beyond86 avatar Sep 11 '22 05:09 beyond86

I found temporary solution. Added in settings.js: editorTheme: { codeEditor: { lib: "ace",

beyond86 avatar Sep 12 '22 11:09 beyond86

Possibly related to this https://github.com/node-red/node-red/issues/3078

bonanitech avatar Sep 12 '22 12:09 bonanitech

Possibly related to this node-red/node-red#3078

Great, thanks for this. In fact I had nodes installed, which where not on the latest version (node-red-contrib-miio-roborock). Updating this has solved my issue.

ginebib avatar Sep 12 '22 14:09 ginebib

I found temporary solution. Added in settings.js: editorTheme: { codeEditor: { lib: "ace",

Doesn't work for me sadly. I tried in both Chrome and Firefox. Also, the latest 13.4.0 doesn't fix it.

prvashisht avatar Sep 18 '22 12:09 prvashisht

Possibly related to this node-red/node-red#3078

Thank you! This worked. I just had to update the nodes in the palette. However, is there no notification of pending updates? or no way to update them all at once without going through the whole list to see which ones have an update?

prvashisht avatar Sep 18 '22 12:09 prvashisht

There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thanks!

github-actions[bot] avatar Oct 19 '22 08:10 github-actions[bot]