Open iamlasse opened 2 months ago
remove node_modules and pull the latest version. reinstall with yarn.
try again with ./scripts/code.sh
I think your issue is going to be resolved.
I've pulled down the latest (I was already on the latest main) and deleted node_modules. The problem still persists. Each task ends in a blank black screen and I have to quit to get the melty ai screen back
what's the error on the devtools?
I will check, i hadn't thought of the devtools.
Hey, I believe there's a memory leak introduced in the latest version. Need to look into this.
main.js:40 TypeError: Cannot read properties of undefined (reading 'map') at wse (main.js:393:9810) at Yy (main.js:38:16998) at HE (main.js:40:3139) at LL (main.js:40:44804) at OL (main.js:40:39766) at Q$ (main.js:40:39694) at Ec (main.js:40:39547) at ev (main.js:40:35914) at AL (main.js:40:34865) at _ (main.js:25:1539)
main.js:393 Uncaught TypeError: Cannot read properties of undefined (reading 'map') at wse (main.js:393:9810) at Yy (main.js:38:16998) at HE (main.js:40:3139) at LL (main.js:40:44804) at OL (main.js:40:39766) at Q$ (main.js:40:39694) at Ec (main.js:40:39547) at ev (main.js:40:35914) at AL (main.js:40:34865) at _ (main.js:25:1539)
ERR [uncaught exception in main]: net::ERR_CONNECTION_REFUSED: Error: net::ERR_CONNECTION_REFUSED
at SimpleURLLoaderWrapper.
These are some errors that show up when the screen goes black.
Same issue here after some interactions.
I just asked Melty to rewrite my app using React. After thinking a little and writing some code, it broke.
I solved this issue by adding optional chain on each map in.
Just search on folder for .map
extensions/spectacular/src/backend/
But another issue appeared, if I have more time I'll help investigate:
another error that always happen and I yet don't found solution:
mainThreadExtensionService.ts:79 Error: No such branch: master.
at Repository.getBranch (vscode-file://melty/extensions/git/out/git.js:2077:31)
at async Repository.retryRun (vscode-file://melty/extensions/git/out/repository.js:1667:24)
at async Repository.run (vscode-file://melty/extensions/git/out/repository.js:1641:28)
at async Repository.getBranch (vscode-file://melty/extensions/git/out/repository.js:1122:16)
at async Repository.getBranchBase (vscode-file://melty/extensions/git/out/repository.js:1131:24)
at async GitHistoryProvider.resolveHEADMergeBase (vscode-file://melty/extensions/git/out/historyProvider.js:283:27)
at async GitHistoryProvider.onDidRunGitStatus (vscode-file://melty/extensions/git/out/historyProvider.js:43:27)
I some case this error happen but is sporadically:
ERR [uncaught exception in main]: net::ERR_CONNECTION_REFUSED: Error: net::ERR_CONNECTION_REFUSED
at SimpleURLLoaderWrapper.<anonymous> (node:electron/js2c/browser_init:2:114482)
at SimpleURLLoaderWrapper.emit (node:events:519:28)
I think the .map issue was introduced by a change I made a few days ago; if so, this should fix it.
I'll try to take a look at the other issues soon.
I've pulled down the latest version of main, reinstalled yarn deps and recorded a video for you to see the issue still happens
@iamlasse @jacksondc
For me, to works, I did these steps:
add optional chain on each map in. Just search on folder for .map
extensions/spectacular/src/backend/
Note:
Sometimes, the AI didn't follow instructions to <change_code>
and broke because it didn't save the file. To address this, I made some tweaks on prompt and force model to remember system prompt instructions.
then ai fixed this issue.
Another issue is with git commit, when model tries to commit code it brokes, to avoid it, I asked to model to postpone the commit until I finish implementation. It didn't solve the problem but I could finish the code generation using melty.
I have changed to optional .map in 2 places and that seemed to work for this issue. I can make a pr if you want, or just tell you where I made the changes here.
Very simple changes really.
After running melty ai once, the extension overlay goes blank and just shows a black screen. I've attached some screenshots of the issue.
The console running melty:code also shows some warnings and notices