Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

GMEdit

A high-end code editor for all things GameMaker · By YellowAfterlife

Stuck Loading Project, Failed to append child

A topic by j4m1ef0rd created May 10, 2021 Views: 263 Replies: 6
Viewing posts 1 to 7

Im getting this error on every project i try to load since updating to GMS2.3. I have tryed the beta version and the normal version of GMEdit. 

Uncaught DOMException: Failed to execute 'appendChild' on 'Node': The new child element contains the parent.

    at Function.ui_treeview_TreeView.insertSorted (file:///C:/Users/JAmie/Downloads/gmedit-editor-beta-windows%20(2)/resources/app/app.js:40358:17)

    at yy_YyLoader.run (file:///C:/Users/JAmie/Downloads/gmedit-editor-beta-windows%20(2)/resources/app/app.js:41704:24)

    at gml_Project.reload_1 (file:///C:/Users/JAmie/Downloads/gmedit-editor-beta-windows%20(2)/resources/app/app.js:5813:5)

    at file:///C:/Users/JAmie/Downloads/gmedit-editor-beta-windows%20(2)/resources/app/app.js:5766:11

Developer

I cannot seem to reproduce this - can you post your user-preferences.json? (found in %APPDATA%\AceGM\GMEdit\config)

Here is the file you asked for. I tried deleting the AceGM folder so it would all go back to default settings, but the problem still occurs. 

{

"theme": "gms2",

"ukSpelling": false,

"compExactMatch": true,

"argsMagic": true,

"argsFormat": "@arg",

"importMagic": true,

"allowImportUndo": false,

"coroutineMagic": true,

"lambdaMagic": true,

"hyperMagic": true,

"fileSessionTime": 7,

"projectSessionTime": 14,

"singleClickOpen": false,

"assetThumbs": true,

"showGMLive": 2,

"fileChangeAction": 1,

"backupCount": {

"v1": 2,

"v2": 2,

"live": 0

},

"recentProjectCount": 16,

"tabSize": 4,

"tabSpaces": true,

"eventOrder": 1,

"tooltipDelay": 350,

"tooltipKind": 1,

"compMatchMode": 0,

"argsStrict": false,

"mfuncMagic": true,

"taskbarOverlays": false,

"clearAssetThumbsOnRefresh": true,

"codeLiterals": false,

"ctrlWheelFontSize": true,

"closeTabsOnFileDeletion": true,

"detectTab": true,

"extensionAPIOrder": 1,

"tooltipKeyboardDelay": 0,

"linterPrefs": {},

"compKeywords": true,

"compFilterSnippets": true,

"nullCoalescingAssignment": true,

"assetOrder23": 0,

"customizedKeybinds": {},

"castOperators": true,

"hashColorLiterals": true,

"showArgTypesInStatusBar": false,

"app": {

"windowWidth": 960,

"windowHeight": 720,

"windowFrame": false

}

}

Developer

Can you check with the new beta? If still happens, please attach a sample project.

The new beta version still has the error. But after further investigation, if i open the old pre-2.3 project and save it as a 2.3 project again, it works in GMEdit no problem.

- All projects that i updated to 2.3 using a version of GMS2.3 from a few months ago will not work in GMEdit.
- projects updated to 2.3 using the latest GMS2.3 work fine.

So i will use this fix for now and import any changed i'v made over to the new 2.3 projects.

not sure what the difference is. So i attached the 2 projects here for you to find out:

Project files

Thank you for your help.

Developer

Oh, that would do it - you had an “empty” directory among the list, which I don’t think had been a thing for a while (so I didn’t add a check for it when I had to rewrite the loader to match final 2.3.0 project format). I’ll add a check for this to the next version, but simply opening the project in base IDE, changing anything and saving should fix it.

ah. Well, that's good to know. Thanks again for your help. After working with gmlive and gmedit for years, I can't go back. So I'm glad to have them working again. Your a legend.