Unexpected identifier in world, not in sim



  • Not sure if this is a bug or something I haven't noticed, I'd appreciate if someone could point out the root cause.

    In sim, the code executes just fine, but in the world I'm getting this (right after tutorial 5):

    role.harvester:2 function run(creep) { ^^^ SyntaxError: Unexpected identifier at main:1:57 at sigintHandlersWrap (vm.js:32:31) at sigintHandlersWrap (vm.js:73:12)

    (Can't get a multiline code quote to work, but, basically, run is highlighted.)

    Notably, even if I completely empty role.harvester OR main module and save, it still keeps persisting.



  • Strange. Looks like the problem went away all on its own. Baffling.