Fold all does not work at all sometimes, and when it works, it only folds code in the upper part of the file, and I'm not talking about nested code here, although it fails at that too. The code I'm folding is top level, they are express js api routes, and the "fold all" only folds a few of them in a large file, meanwhile the older version if this app, specifically v1.11.7 , works perfectly. It seems a lot of things are broken in the latest versions of this app and some have been rendered less effective, the fold alldoes not even fold nested code well.
Acode.log
[2026-09-12T19:47:58.188Z] [ERROR] [object Object]
[2026-09-12T19:47:58.365Z] [INFO] Started app and its services...
[2026-09-12T19:49:48.884Z] [ERROR] [object Object]
[2026-09-12T19:49:49.120Z] [INFO] Started app and its services...
[2026-09-12T19:49:49.787Z] [ERROR] Error: Uncaught TypeError: Cannot destructure property 'StreamLanguage' of 'acode.require(...)' as it is undefined., Source: https://localhost/__cdvfile_files-external__/plugins/acode.devx.env/main.js, Line: 1, Column: 11469, Stack: TypeError: Cannot destructure property 'StreamLanguage' of 'acode.require(...)' as it is undefined.
at https://localhost/__cdvfile_files-external__/plugins/acode.devx.env/main.js:1:11469
at https://localhost/__cdvfile_files-external__/plugins/acode.devx.env/main.js:1:18825
[2026-09-12T21:36:41.113Z] [ERROR] Error: Uncaught TypeError: Cannot read properties of undefined (reading 'row'), Source: https://localhost/js/ace/ace.js, Line: 1, Column: 162111, Stack: TypeError: Cannot read properties of undefined (reading 'row')
at f (https://localhost/js/ace/ace.js:1:162111)
at l (https://localhost/js/ace/ace.js:1:162159)
at b (https://localhost/js/ace/ace.js:1:164391)
at w (https://localhost/js/ace/ace.js:1:164680)
at e.redo (https://localhost/js/ace/ace.js:1:166694)
at e.redo (https://localhost/js/ace/ace.js:1:306072)
at Object.exec (https://localhost/js/ace/ace.js:1:252001)
at https://localhost/js/ace/ace.js:1:237833
at r._emit.r._dispatchEvent (https://localhost/js/ace/ace.js:1:12880)
at t.exec (https://localhost/js/ace/ace.js:1:238122)
[2026-09-12T21:44:50.923Z] [ERROR] Unhandled rejection: Cannot read properties of undefined (reading 'getValue')
Stack: TypeError: Cannot read properties of undefined (reading 'getValue')
at https://localhost/build/main.js:2:1403894
at https://localhost/build/main.js:2:620856
at Generator. (https://localhost/build/main.js:2:1435780)
at Generator.next (https://localhost/build/main.js:2:218420)
at r (https://localhost/build/main.js:2:653246)
at s (https://localhost/build/main.js:2:653448)
[2026-09-13T18:00:48.889Z] [ERROR] [object Object]
[2026-09-13T18:00:49.108Z] [INFO] Started app and its services...
[2026-09-13T18:00:50.466Z] [ERROR] Error: Uncaught TypeError: Cannot destructure property 'StreamLanguage' of 'acode.require(...)' as it is undefined., Source: https://localhost/__cdvfile_files-external__/plugins/acode.devx.env/main.js, Line: 1, Column: 11469, Stack: TypeError: Cannot destructure property 'StreamLanguage' of 'acode.require(...)' as it is undefined.
at https://localhost/__cdvfile_files-external__/plugins/acode.devx.env/main.js:1:11469
at https://localhost/__cdvfile_files-external__/plugins/acode.devx.env/main.js:1:18825
[2026-09-13T18:17:41.157Z] [ERROR] Unhandled rejection: undefined
Stack: undefined
[2026-09-13T18:36:26.291Z] [ERROR] Unhandled rejection: Cannot read properties of undefined (reading 'getValue')
Stack: TypeError: Cannot read properties of undefined (reading 'getValue')
at https://localhost/build/main.js:2:1403894
at https://localhost/build/main.js:2:620856
at Generator. (https://localhost/build/main.js:2:1435780)
at Generator.next (https://localhost/build/main.js:2:218420)
at r (https://localhost/build/main.js:2:653246)
at s (https://localhost/build/main.js:2:653448)
[2026-09-14T10:07:43.309Z] [ERROR] [object Object]
[2026-09-14T10:07:43.574Z] [INFO] Started app and its services...
[2026-09-14T10:07:45.414Z] [ERROR] Error: Uncaught TypeError: Cannot destructure property 'StreamLanguage' of 'acode.require(...)' as it is undefined., Source: https://localhost/__cdvfile_files-external__/plugins/acode.devx.env/main.js, Line: 1, Column: 11469, Stack: TypeError: Cannot destructure property 'StreamLanguage' of 'acode.require(...)' as it is undefined.
at https://localhost/__cdvfile_files-external__/plugins/acode.devx.env/main.js:1:11469
at https://localhost/__cdvfile_files-external__/plugins/acode.devx.env/main.js:1:18825
[2026-09-14T10:44:35.673Z] [ERROR] Error: Uncaught ReferenceError: editor is not defined, Source: https://localhost/__cdvfile_files-external__/plugins/responsive.tester.fast.preview/main.js, Line: 2, Column: 173598, Stack: ReferenceError: editor is not defined
at https://localhost/__cdvfile_files-external__/plugins/responsive.tester.fast.preview/main.js:2:173598
[2026-09-14T10:44:54.050Z] [ERROR] Error: Uncaught TypeError: Cannot read properties of null (reading 'scrollLeft'), Source: https://localhost/build/main.js, Line: 2, Column: 1653099, Stack: TypeError: Cannot read properties of null (reading 'scrollLeft')
at HTMLDocument.Ye (https://localhost/build/main.js:2:1653099)
[2026-09-14T10:44:54.067Z] [ERROR] Error: Uncaught TypeError: Cannot read properties of null (reading 'scrollLeft'), Source: https://localhost/build/main.js, Line: 2, Column: 1653099, Stack: TypeError: Cannot read properties of null (reading 'scrollLeft')
at HTMLDocument.Ye (https://localhost/build/main.js:2:1653099)
[2026-09-14T10:44:54.100Z] [ERROR] Error: Uncaught TypeError: Cannot read properties of null (reading 'scrollLeft'), Source: https://localhost/build/main.js, Line: 2, Column: 1653099, Stack: TypeError: Cannot read properties of null (reading 'scrollLeft')
at HTMLDocument.Ye (https://localhost/build/main.js:2:1653099)
[2026-09-14T10:44:54.107Z] [ERROR] Error: Uncaught TypeError: Cannot read properties of null (reading 'scrollLeft'), Source: https://localhost/build/main.js, Line: 2, Column: 1653099, Stack: TypeError: Cannot read properties of null (reading 'scrollLeft')
at HTMLDocument.Ye (https://localhost/build/main.js:2:1653099)
[2026-09-14T10:45:26.099Z] [ERROR] Error: Uncaught TypeError: Cannot read properties of null (reading 'scrollLeft'), Source: https://localhost/build/main.js, Line: 2, Column: 1653099, Stack: TypeError: Cannot read properties of null (reading 'scrollLeft')
at HTMLDocument.Ye (https://localhost/build/main.js:2:1653099)
[2026-09-14T10:45:26.115Z] [ERROR] Error: Uncaught TypeError: Cannot read properties of null (reading 'scrollLeft'), Source: https://localhost/build/main.js, Line: 2, Column: 1653099, Stack: TypeError: Cannot read properties of null (reading 'scrollLeft')
at HTMLDocument.Ye (https://localhost/build/main.js:2:1653099)
[2026-09-14T10:45:26.148Z] [ERROR] Error: Uncaught TypeError: Cannot read properties of null (reading 'scrollLeft'), Source: https://localhost/build/main.js, Line: 2, Column: 1653099, Stack: TypeError: Cannot read properties of null (reading 'scrollLeft')
at HTMLDocument.Ye (https://localhost/build/main.js:2:1653099)
[2026-09-14T10:45:26.153Z] [ERROR] Error: Uncaught TypeError: Cannot read properties of null (reading 'scrollLeft'), Source: https://localhost/build/main.js, Line: 2, Column: 1653099, Stack: TypeError: Cannot read properties of null (reading 'scrollLeft')
at HTMLDocument.Ye (https://localhost/build/main.js:2:1653099)
[2026-09-14T10:45:30.255Z] [ERROR] Error: Uncaught ReferenceError: editor is not defined, Source: https://localhost/__cdvfile_files-external__/plugins/responsive.tester.fast.preview/main.js, Line: 2, Column: 173598, Stack: ReferenceError: editor is not defined
at https://localhost/__cdvfile_files-external__/plugins/responsive.tester.fast.preview/main.js:2:173598
[2026-09-14T10:45:33.985Z] [ERROR] Error: Uncaught ReferenceError: editor is not defined, Source: https://localhost/__cdvfile_files-external__/plugins/responsive.tester.fast.preview/main.js, Line: 2, Column: 173598, Stack: ReferenceError: editor is not defined
at https://localhost/__cdvfile_files-external__/plugins/responsive.tester.fast.preview/main.js:2:173598
[2026-09-14T10:47:29.949Z] [ERROR] Error: Uncaught ReferenceError: editor is not defined, Source: https://localhost/__cdvfile_files-external__/plugins/responsive.tester.fast.preview/main.js, Line: 2, Column: 173598, Stack: ReferenceError: editor is not defined
at https://localhost/__cdvfile_files-external__/plugins/responsive.tester.fast.preview/main.js:2:173598
[2026-09-14T10:47:40.387Z] [ERROR] Error: Uncaught ReferenceError: editor is not defined, Source: https://localhost/__cdvfile_files-external__/plugins/responsive.tester.fast.preview/main.js, Line: 2, Column: 173598, Stack: ReferenceError: editor is not defined
at https://localhost/__cdvfile_files-external__/plugins/responsive.tester.fast.preview/main.js:2:173598
[2026-09-14T10:48:20.865Z] [ERROR] Error: Uncaught ReferenceError: editor is not defined, Source: https://localhost/__cdvfile_files-external__/plugins/responsive.tester.fast.preview/main.js, Line: 2, Column: 173598, Stack: ReferenceError: editor is not defined
at https://localhost/__cdvfile_files-external__/plugins/responsive.tester.fast.preview/main.js:2:173598
[2026-09-14T10:49:02.315Z] [ERROR] Error: Uncaught ReferenceError: editor is not defined, Source: https://localhost/__cdvfile_files-external__/plugins/responsive.tester.fast.preview/main.js, Line: 2, Column: 173598, Stack: ReferenceError: editor is not defined
at https://localhost/__cdvfile_files-external__/plugins/responsive.tester.fast.preview/main.js:2:173598
[2026-09-14T10:49:27.411Z] [ERROR] Error: Uncaught ReferenceError: editor is not defined, Source: https://localhost/__cdvfile_files-external__/plugins/responsive.tester.fast.preview/main.js, Line: 2, Column: 173598, Stack: ReferenceError: editor is not defined
at https://localhost/__cdvfile_files-external__/plugins/responsive.tester.fast.preview/main.js:2:173598
[2026-09-14T10:52:49.905Z] [ERROR] Error: Uncaught ReferenceError: editor is not defined, Source: https://localhost/__cdvfile_files-external__/plugins/responsive.tester.fast.preview/main.js, Line: 2, Column: 173598, Stack: ReferenceError: editor is not defined
at https://localhost/__cdvfile_files-external__/plugins/responsive.tester.fast.preview/main.js:2:173598
[2026-09-14T10:53:26.536Z] [ERROR] Error: Uncaught ReferenceError: editor is not defined, Source: https://localhost/__cdvfile_files-external__/plugins/responsive.tester.fast.preview/main.js, Line: 2, Column: 173598, Stack: ReferenceError: editor is not defined
at https://localhost/__cdvfile_files-external__/plugins/responsive.tester.fast.preview/main.js:2:173598
[2026-09-14T10:54:00.115Z] [ERROR] Error: Uncaught ReferenceError: editor is not defined, Source: https://localhost/__cdvfile_files-external__/plugins/responsive.tester.fast.preview/main.js, Line: 2, Column: 173598, Stack: ReferenceError: editor is not defined
at https://localhost/__cdvfile_files-external__/plugins/responsive.tester.fast.preview/main.js:2:173598
[2026-09-14T10:55:25.065Z] [ERROR] Error: Uncaught ReferenceError: editor is not defined, Source: https://localhost/__cdvfile_files-external__/plugins/responsive.tester.fast.preview/main.js, Line: 2, Column: 173598, Stack: ReferenceError: editor is not defined
at https://localhost/__cdvfile_files-external__/plugins/responsive.tester.fast.preview/main.js:2:173598
[2026-09-14T10:56:43.598Z] [ERROR] Error: Uncaught ReferenceError: editor is not defined, Source: https://localhost/__cdvfile_files-external__/plugins/responsive.tester.fast.preview/main.js, Line: 2, Column: 173598, Stack: ReferenceError: editor is not defined
at https://localhost/__cdvfile_files-external__/plugins/responsive.tester.fast.preview/main.js:2:173598
[2026-09-14T10:58:02.915Z] [ERROR] Error: Uncaught ReferenceError: editor is not defined, Source: https://localhost/__cdvfile_files-external__/plugins/responsive.tester.fast.preview/main.js, Line: 2, Column: 173598, Stack: ReferenceError: editor is not defined
at https://localhost/__cdvfile_files-external__/plugins/responsive.tester.fast.preview/main.js:2:173598
[2026-09-14T10:59:28.568Z] [ERROR] Error: Uncaught ReferenceError: editor is not defined, Source: https://localhost/__cdvfile_files-external__/plugins/responsive.tester.fast.preview/main.js, Line: 2, Column: 173598, Stack: ReferenceError: editor is not defined
at https://localhost/__cdvfile_files-external__/plugins/responsive.tester.fast.preview/main.js:2:173598
[2026-09-14T11:03:14.264Z] [ERROR] Error: Uncaught ReferenceError: editor is not defined, Source: https://localhost/__cdvfile_files-external__/plugins/responsive.tester.fast.preview/main.js, Line: 2, Column: 173598, Stack: ReferenceError: editor is not defined
at https://localhost/__cdvfile_files-external__/plugins/responsive.tester.fast.preview/main.js:2:173598
[2026-09-14T14:33:41.108Z] [ERROR] Error: Uncaught ReferenceError: editor is not defined, Source: https://localhost/__cdvfile_files-external__/plugins/responsive.tester.fast.preview/main.js, Line: 2, Column: 173598, Stack: ReferenceError: editor is not defined
at https://localhost/__cdvfile_files-external__/plugins/responsive.tester.fast.preview/main.js:2:173598
[2026-09-14T14:43:16.351Z] [ERROR] Error: Uncaught ReferenceError: editor is not defined, Source: https://localhost/__cdvfile_files-external__/plugins/responsive.tester.fast.preview/main.js, Line: 2, Column: 173598, Stack: ReferenceError: editor is not defined
at https://localhost/__cdvfile_files-external__/plugins/responsive.tester.fast.preview/main.js:2:173598
[2026-09-14T14:52:02.595Z] [ERROR] Error: Uncaught ReferenceError: editor is not defined, Source: https://localhost/__cdvfile_files-external__/plugins/responsive.tester.fast.preview/main.js, Line: 2, Column: 173598, Stack: ReferenceError: editor is not defined
at https://localhost/__cdvfile_files-external__/plugins/responsive.tester.fast.preview/main.js:2:173598
[2026-09-14T14:57:47.998Z] [ERROR] Error: Uncaught ReferenceError: editor is not defined, Source: https://localhost/__cdvfile_files-external__/plugins/responsive.tester.fast.preview/main.js, Line: 2, Column: 173598, Stack: ReferenceError: editor is not defined
at https://localhost/__cdvfile_files-external__/plugins/responsive.tester.fast.preview/main.js:2:173598
[2026-09-14T15:12:36.755Z] [ERROR] [object Object]
[2026-09-14T15:12:37.113Z] [INFO] Started app and its services...
[2026-09-14T15:12:41.561Z] [ERROR] Error: Uncaught TypeError: Cannot destructure property 'StreamLanguage' of 'acode.require(...)' as it is undefined., Source: https://localhost/__cdvfile_files-external__/plugins/acode.devx.env/main.js, Line: 1, Column: 11469, Stack: TypeError: Cannot destructure property 'StreamLanguage' of 'acode.require(...)' as it is undefined.
at https://localhost/__cdvfile_files-external__/plugins/acode.devx.env/main.js:1:11469
at https://localhost/__cdvfile_files-external__/plugins/acode.devx.env/main.js:1:18825
[2026-09-14T16:53:08.525Z] [ERROR] SFTP profile migration failed for root@158.51.78.137: Legacy profile import cannot replace a saved profile
[2026-09-14T16:53:09.045Z] [INFO] Started app and its services...
[2026-09-14T16:53:10.561Z] [ERROR] Error: Uncaught TypeError: ace.define is not a function, Source: https://localhost/__cdvfile_files-external__/plugins/acode.plugin.vscode.dark.editor/main.js, Line: 1, Column: 204, Stack: TypeError: ace.define is not a function
at 980 (https://localhost/__cdvfile_files-external__/plugins/acode.plugin.vscode.dark.editor/main.js:1:204)
at c (https://localhost/__cdvfile_files-external__/plugins/acode.plugin.vscode.dark.editor/main.js:1:4499)
at https://localhost/__cdvfile_files-external__/plugins/acode.plugin.vscode.dark.editor/main.js:1:4790
at https://localhost/__cdvfile_files-external__/plugins/acode.plugin.vscode.dark.editor/main.js:1:4797
[2026-09-14T16:53:10.711Z] [ERROR] Error: Uncaught RangeError: Duplicate use of compartment in extensions, Source: https://localhost/build/main.js, Line: 374, Column: 88597, Stack: RangeError: Duplicate use of compartment in extensions
at e (https://localhost/build/main.js:374:88603)
at e (https://localhost/build/main.js:374:88542)
at ee.resolve (https://localhost/build/main.js:374:89205)
at eA.applyTransaction (https://localhost/build/main.js:374:110697)
at get state (https://localhost/build/main.js:374:92019)
at iW.update (https://localhost/build/main.js:374:265782)
at iW.dispatchTransactions (https://localhost/build/main.js:374:279003)
at iW.dispatch (https://localhost/build/main.js:374:265457)
at x.configureCodeMirrorAutocompletion (https://localhost/__cdvfile_files-external__/plugins/bajrangcoder.react.snippets/main.js:2093:23142)
at x.initializeCodeMirrorAutocompletion (https://localhost/__cdvfile_files-external__/plugins/bajrangcoder.react.snippets/main.js:2093:23864)
[2026-09-14T16:53:10.730Z] [ERROR] Error: Uncaught TypeError: Cannot read properties of undefined (reading 'TokenIterator'), Source: https://localhost/__cdvfile_files-external__/plugins/acode.plugin.tailwindcss_intellisense/main.js, Line: 1, Column: 697688, Stack: TypeError: Cannot read properties of undefined (reading 'TokenIterator')
at https://localhost/__cdvfile_files-external__/plugins/acode.plugin.tailwindcss_intellisense/main.js:1:697688
at https://localhost/__cdvfile_files-external__/plugins/acode.plugin.tailwindcss_intellisense/main.js:1:704194
[2026-09-14T16:53:10.806Z] [ERROR] Error: Uncaught TypeError: Cannot read properties of undefined (reading 'TokenIterator'), Source: https://localhost/__cdvfile_files-external__/plugins/acode.ugex.tailwindcss_intellisense/main.js, Line: 1, Column: 704368, Stack: TypeError: Cannot read properties of undefined (reading 'TokenIterator')
at https://localhost/__cdvfile_files-external__/plugins/acode.ugex.tailwindcss_intellisense/main.js:1:704368
at https://localhost/__cdvfile_files-external__/plugins/acode.ugex.tailwindcss_intellisense/main.js:1:708999
at https://localhost/__cdvfile_files-external__/plugins/acode.ugex.tailwindcss_intellisense/main.js:1:709003
[2026-09-14T16:53:10.932Z] [ERROR] Error: Uncaught RangeError: Duplicate use of compartment in extensions, Source: https://localhost/build/main.js, Line: 374, Column: 88597, Stack: RangeError: Duplicate use of compartment in extensions
at e (https://localhost/build/main.js:374:88603)
at e (https://localhost/build/main.js:374:88542)
at ee.resolve (https://localhost/build/main.js:374:89205)
at eA.applyTransaction (https://localhost/build/main.js:374:110697)
at get state (https://localhost/build/main.js:374:92019)
at iW.update (https://localhost/build/main.js:374:265782)
at iW.dispatchTransactions (https://localhost/build/main.js:374:279003)
at iW.dispatch (https://localhost/build/main.js:374:265457)
at x.configureCodeMirrorAutocompletion (https://localhost/__cdvfile_files-external__/plugins/bajrangcoder.react.snippets/main.js:2093:23142)
at x.initializeCodeMirrorAutocompletion (https://localhost/__cdvfile_files-external__/plugins/bajrangcoder.react.snippets/main.js:2093:23864)
[2026-09-14T16:54:25.694Z] [ERROR] Unhandled rejection: undefined
Stack: undefined
[2026-09-14T16:54:25.695Z] [ERROR] Unhandled rejection: undefined
Stack: undefined
[2026-09-14T16:54:54.976Z] [ERROR] Unhandled rejection: undefined
Stack: undefined
[2026-09-14T16:54:54.977Z] [ERROR] Unhandled rejection: undefined
Stack: undefined
[2026-09-14T16:55:53.014Z] [ERROR] Error: Uncaught RangeError: Duplicate use of compartment in extensions, Source: https://localhost/build/main.js, Line: 374, Column: 88597, Stack: RangeError: Duplicate use of compartment in extensions
at e (https://localhost/build/main.js:374:88603)
at e (https://localhost/build/main.js:374:88542)
at ee.resolve (https://localhost/build/main.js:374:89205)
at eA.applyTransaction (https://localhost/build/main.js:374:110697)
at get state (https://localhost/build/main.js:374:92019)
at iW.update (https://localhost/build/main.js:374:265782)
at iW.dispatchTransactions (https://localhost/build/main.js:374:279003)
at iW.dispatch (https://localhost/build/main.js:374:265457)
at x.configure
Check for existing issues
Describe the bug / provide steps to reproduce it
Fold all does not work at all sometimes, and when it works, it only folds code in the upper part of the file, and I'm not talking about nested code here, although it fails at that too. The code I'm folding is top level, they are express js api routes, and the "fold all" only folds a few of them in a large file, meanwhile the older version if this app, specifically v1.11.7 , works perfectly. It seems a lot of things are broken in the latest versions of this app and some have been rendered less effective, the fold alldoes not even fold nested code well.
Environment
Device Information:
WebView Info:
Package Name: com.google.android.webview
Version: 151.0.7922.199
App Info:
Name: Acode
Package Name: com.foxdebug.acode
Version: 1.13.5-nightly.903d651
Version Code: 1011
Device Info:
Android Version: 16
Manufacturer: INFINIX
Model: Infinix X6853
Platform: Android
Cordova Version: 15.1.0
Screen Info:
Width: 360
Height: 812
Color Depth: 24
Additional Info:
Language: en-US
User Agent: Mozilla/5.0 (Linux; Android 16; Infinix X6853 Build/BP2A.250605.031.A3; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/151.0.7922.199 Mobile Safari/537.36
If applicable, add mockups / screenshots regarding your vision
No response
If applicable, attach your Acode.log file to this issue.
Acode.log