playcanvas / vscode-extension

MIT License
23 stars 2 forks source link

Bad request on save #2

Closed LeXXik closed 6 months ago

LeXXik commented 1 year ago

Created a blank project, successfully added as a folder to VSCode, created a script that also appeared in Editor.

Added a line of code and saved - the change propagated to the script in Editor. Attached the script to an entity.

After that any change to script fails to save with a bad request error. Let me know, if there are some additional logs I could provide.

image

friuns2 commented 1 year ago

actual error it returns 'Asset was modified by another user, please pull the latest version'

isumygin-sc commented 1 year ago

thanks for reporting this, we will check it this week.

Sandstedt commented 9 months ago

I get the same error after saving a script-file in VS Code, and then pressing the recompile button on a entity with that script on in PlayCanvas editor. No sure if it's the same problem as you have. (uses this when adding new attributes)

But theres a workaround:

Now I can continue writing my code and save without a problem.

isumygin-sc commented 6 months ago

https://github.com/playcanvas/vscode-extension/pull/9 the fix