brackets-archive / bracketsIssues

Archive of issues in brackets.
0 stars 0 forks source link

Brackets and LAB.min.js #14828

Open core-ai-bot opened 3 years ago

core-ai-bot commented 3 years ago

Issue by BrandanDJS Friday Jan 01, 2021 at 01:06 GMT Originally opened as https://github.com/adobe/brackets/issues/15298


Hello all,

First time posting on the forum. Thanks for any assistance, I couldn't find an answer anywhere about LABjs working with Brackets.

~~

Prerequisites

LAB.min.js, for reference I am working off the tutorial book for JavaScript (https://github.com/Apress/building-javascript-games). I am at a chapter where they introduce a package called LABjs that is supposed to effortlessly help load and connect multiple files into a single project.

I am following the book line to line and was pulling out my hair trying to get it to work in Brackets livecode and kept refreshing. And then I got the wonderful idea to run it outside of livecode and what do you know the Index.html launched from File Explorer works like a charm. This is great, but I have noticed that sometimes you have to add a line before a project to make some things work correctly in Brackets.

For example to clear out a bunch of errors when first starting to use Brackets I had to add the following line ontop of my JS files, /eslint-env browser/.

While this issue isn't a game breaking issue by any means since I can test my project outside of live coding by just refreshing and relaunching from file explorer it makes me have 40+ errors the entire time I am coding. More of a distraction while working.

Does anyone have any experiencing successfully using LABjs in Brackets? Is there something special I need to do to make it work in Brackets specifically?

Steps to Reproduce

  1. Add LABjs to your project folder
  2. Set up the LABjs in your HTML File (pasted in what mine looks like better formatted then what is shown in preview) ~

~

  1. Notice, and get angry, at all the red X's by anything references outside of the current JS file you are working in.

Expected behavior: Multiple JS files working seamlessly together.

Actual behavior: Lots of errors from anything referencing an external JS file breaking Live Coding. Harder to troubleshoot REAL bugs.

Versions

Windows 10. 10.0.19042 Build 19042 Release 1.14 build 1.14.2-17770 (release-1.14.2 f71f00acc)

Thanks!!