Replies: 16 comments
-
See Kode/vscode-kha#36 - from what I can tell so far a recent vscode update broke things, got another report like that yesterday. You can use the workaround Moritz mentioned until it's fixed. For Krom to work make sure Kha and Krom are up to date (aka don't use the versions in the extension, download both from GitHub and set the paths in the extension options). |
Beta Was this translation helpful? Give feedback.
-
Should be working again now. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Doesn't happen to me. Please provide more information - like, much much more information. |
Beta Was this translation helpful? Give feedback.
-
Do you have the line "debug.onTaskErrors": "debugAnyway" in your VS Code settings.json? If so, please remove it. Once that is done, please remove the files from your current project build folder and hit F5. It should run okay. The next time you hit F5 (with the build folder already populated), the error I mentioned appears. This is what the terminal output shows:
Using Kha (944ff74) from D:\Developer\Kha Terminal will be reused by tasks, press any key to close it. |
Beta Was this translation helpful? Give feedback.
-
As I said, doesn't happen to me and I never had "debugAnyway" in my settings. Do you also get it to return exit code 1 when you run "node D:\Developer\Kha\make.js debug-html5 --debug" on a regular command line? It should print "Done" at the end if it succeeds. |
Beta Was this translation helpful? Give feedback.
-
In a command prompt, it does not print 'Done' at the end. The error only occurs when the build folder has files and folders related to html5 build. When there are no such items in the build folder, it runs okay either in VS Code (it debugs) or in a command prompt (it prints 'Done'). |
Beta Was this translation helpful? Give feedback.
-
First time something like that is reported. Can you open Kha/Tools/khamake in vscode, adjust args and/or in .vscode/launch.json to point to your project and hit F5? That might show you what's happening. And does that also happen with the Kha samples like for example https://github.com/Kha-Samples/Shader? |
Beta Was this translation helpful? Give feedback.
-
Right, sorry for taking so long to reply (this is just a hobby for me, and I don't have much time in my hands). It also happens with Kha samples, like Shader and Mesh Loader. If I erase the folder Build/ProjectName-debug-html5-intellij before hitting F5, things work okay, otherwise the error I mentioned occurs. (By the way, I also tried erasing the folder Build/debug-html5-resources, but Kha goes into an infinite loop, and nothing ever happens again.) |
Beta Was this translation helpful? Give feedback.
-
No worries, it's also just a hobby for me. So, what about my first question? |
Beta Was this translation helpful? Give feedback.
-
I tried searching for 'intellij' in various files inside khamake, as that is where the error happens, but I couldn't find it. Perhaps I didn't come across the right file. Could you please point me towards all the ???.js in khamake where that folder is created and populated? |
Beta Was this translation helpful? Give feedback.
-
The error happens in intellij? Are we still talking about the same thing? |
Beta Was this translation helpful? Give feedback.
-
Sorry, I guess I didn't explain myself very well. I thought you were keeping up with me. What I meant to say was: if the folder Build/ProjectName-debug-html5-intellij is present when I hit F5 in VSCode to debug, the error I mentioned occurs. If that folder is missing, no error occurs. So, I went to the khamake folder and tried to search the various *.js for 'intellij' to try to find out where that folder is created and populated. However, I had no luck finding that word. So, I'll repeat my question, could you please point me towards all the *.js in khamake where said folder is created and populated? That way, I may figure out what's happening. |
Beta Was this translation helpful? Give feedback.
-
Ah, that's right here: https://github.com/Kode/khamake/blob/main/src/HaxeProject.ts#L28 |
Beta Was this translation helpful? Give feedback.
-
Well, this is the error that Kha now prints (*** is the project name): Error: EISDIR: illegal operation on a directory, readlink 'build*-debug-html5-intellij*.iml' Does it help? |
Beta Was this translation helpful? Give feedback.
-
It fails to copy a file, looks like something is messed up on your hard disk. As I said before, just set a breakpoint, then you can see what's going on exactly - doesn't look to me like it's actually a problem with Kha. |
Beta Was this translation helpful? Give feedback.
-
Hi. It's been a while. Hope you're all okay and free of virus.
Now, whenever I start VSCode, Kha starts to download Electron, and it never stops. I can-t press F5 as usual to debug, because it says it can-t find Electron. I tried using Krom instead, but VSCode complains that targeted API must be 2 and it is 1.
Am I overlooking something here_
Beta Was this translation helpful? Give feedback.
All reactions