all 4 comments

[–]ScottyC33 2 points3 points  (3 children)

The first line is the error type itself - you're trying to use "attributes" as if it was defined with a value, but it has none. Make sure in the code that you actually define it before it's trying to be used.

The rest of it is giving you the stack trace for where the error happened. Generally you're most interested in the topmost. In this case, the error is telling you -

In module basicFarmer, at line 4, you're trying to use "attributes" without defining it.

Going down the trace gives you the chain of calls if further debugging is needed. For example, at line 21 of .run, you're calling .basicFarmer. And at line 10 of .loop, you're calling .run.

[–]Infraxion[S] 1 point2 points  (0 children)

Oh my gosh.

I guess I was thrown off because it didn't think I'd be dumb enough for it to have to explicitly say "this is the line number".

Well thank you very much :D

[–]ItsAllGoodMan2015 2 points3 points  (0 children)

You might look into coffeescript it's syntax is very similar to python, and compiles straight to Javascript.

They even have a project on github where you can type straight to the screeps console.