PhaserEditor2D / PhaserEditor

A friendly IDE to develop HTML5 games based on the Phaser framework.
https://phasereditor2d.com
Eclipse Public License 1.0
327 stars 45 forks source link

Some files are not served to browser #109

Closed Thaval closed 5 years ago

Thaval commented 5 years ago

Version

Description

When the game is started from the Phaser Editor, a new Browser opens up and some Javascript files are missing in the source (Google Chrome). Though, the game still works as the "missing" Javascript files are hosted by VM. But I cannot debug the JS code.

(Maybe that's only some configuration? I don't know. I check the settings and everything looked clean).

PhaserEditor2D commented 5 years ago

Do you have all your files under the WebContent folder? An image of your errors could help.

Thaval commented 5 years ago

Sure. There is no error. But I can't find some files (CTRL + O in DevTools to find a file by name) and the source of console logs are VM:XXX where XXX is a random number.

PhaserEditor2D commented 5 years ago

Are you loading the files by demand? I you load the JS files using the pack.json file, then the files are loaded by demand, when you load the section of the pack.

PhaserEditor2D commented 5 years ago

Hi @Thaval, are you yet experiencing this issue?

Thaval commented 5 years ago

Yea still. Sorry, I forgot to answer your question. I included "//@ sourceURL=foo.js" at the bottom of the javascript files that were only loaded anonymously.

PhaserEditor2D commented 5 years ago

Hi @Thaval . Please, can you reproduce that behavior in a very small project, so you can send it to us and we can see what's happening?

Thaval commented 5 years ago

I'm sorry, I can't seem to reproduce it... If I remember correctly, then this appeared after I had mistyped a shortcut. But I couldn't find any setting which had been changed since then. Excuse me. If I'm the only one having this trouble, then it seems to be an user issue or at least a bug that appears so rarely that's it not worth investigating on it. Do you agree?

PhaserEditor2D commented 5 years ago

Hi @Thaval, we can reopen the issue if it appears again. Thanks very much for your contribution. Feel free to open new issues if you find something.