Skip to content

Source Map dosen't work in some scenarios. Possible fix. #159

Open
@DollarAkshay

Description

@DollarAkshay

Testcase :

    at RoomPosition.inRangeTo (:14512:20)
    at Object.Creep.meeleAttackTarget (main:4335:18)
    at attack$1 (main:310:11)
    at run$9 (main:324:9)
    at ErrorMapper.wrapLoop (main:4919:13)
    at Object.loop (main:4097:17)
    at __module (__mainLoop:1:52)
    at __mainLoop:2:3
    at Object.exports.evalCode (:15845:76)
    at Object.exports.run (:46468:24)

I think if you take a look at the error ErrorMapper.ts at this line you are checking if it is coming from the main file and breaking. Sometimes the first match doesn't necessarily come from main as seen in the above stack trace.

The possible solution for this was to remove the corresponding else block. While this solves this case I'm not sure if it is a general solution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions