playcanvas / editor

Issue tracker for the PlayCanvas Editor
https://playcanvas.com/
156 stars 28 forks source link

Editor error when deleting mjs script #1215

Open LeXXik opened 2 days ago

LeXXik commented 2 days ago

Steps:

  1. In Editor, create an mjs script, e.g. test.mjs.
  2. Select it and delete.
  3. Error shows in console:

image

LeXXik commented 2 days ago

That was in a blank project project, but now can't repro... Not sure what the reason was.

Edit: That was from the Code Editor console. Also, it needs more scripts. Something with parsing. I copy pasted some scripts to blank project and get a bunch of errors:

image

LeXXik commented 2 days ago

@marklundin added you to project:

https://playcanvas.com/project/1268782/overview/lxk

E.g. selecting game-logic.mjs, produces errors in console: image

marklundin commented 2 days ago

This looks like it's related to the autocompletion intellisense in the code-editor. Will have a look