Skip to content

Error reporting shows incorrect line for the error #2

Description

@MajorCooke

Download and start up this mod.

It will immediately error out, which is intended. Notice how the red line says "line 55". But if looking at GHOUSPWN.json from an IDE, "drops" is on 105.

My guess is, it's a mixture of comments and other factors. After removing all comments and extra lines so it looks like the below (until it hits "drops"):

{
	"mod_id": "GhoulSpawn", 
	"ghouls":
	[
		{
			"actor":		"GS_Sjas",
		},
		{
			"actor": 		"GS_Jitterskull",
		},
		{
			"actor": 		"GS_Creeper",
		},
		{
			"actor": 		"GS_Choke",
		},
		{
			"actor": 		"GS_Frostbite",
		},
		{
			"actor":		"GS_Misty",
		},
		{
			"actor":		"GS_Clowny",
		},
		{
			"actor":		"GS_SoulHarvester",
		},
		{
			"actor":		"GS_Yurei",
		},
	],
	"drops"

It still has the incorrect number reported. "drops" is at 33, but the error will say 37.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions