Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Line number shown in errors does not correspond to actual error location #45

Open
radimt opened this issue Jul 1, 2014 · 2 comments
Open
Labels
Milestone

Comments

@radimt
Copy link

radimt commented Jul 1, 2014

Here is an example of an error generated by running code with total of 69 lines. Note how the error message is indicating line 170 as error location.

System.ArgumentOutOfRangeException: StartIndex cannot be less than zero.
Parameter name: startIndex
at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)
at .Host(Object& $retval)
at Mono.CSharp.Evaluator.Evaluate(String input, Object& result, Boolean& result_set)
at CShell.ScriptingEngine.Evaluate(String input, String sourceFile) in c:\Users\Luke\Dev\GitHub\CShell\Src\CShellCore\ScriptingEngine.cs:line 170

@medmondson
Copy link
Contributor

Could you provide the code you were running when you hit the issue?

@lukebuehler
Copy link
Owner

yes this references the actual place in the scripting engine where your code is executed. We should actually not show this line!

@lukebuehler lukebuehler added the bug label May 7, 2015
@lukebuehler lukebuehler added this to the v0.2 milestone May 7, 2015
@lukebuehler lukebuehler modified the milestones: v0.3, v0.2 Aug 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants