C# error line

Hi all,

Since I use Unity 3, I saw that all error in my script are marked for the wrong line.
For example, if an error is at line 728 in my script, the console will say line 683…
I lost each time a lot of time to find the correct line.

The problem is the same under unity on my mac or on my PC with windows.

Somebody already have the same problem or know how to solve it please?

Though I’m just starting playing around with Unity, I too will be using C# and I would like to take care of this problem early on. If anyone has an answer… :slight_smile:

Works fine for me. What editor are you using? Is it possible you are mixing and matching EOL types (win,Mac,Linux all use different ones)?

Just double-click the error. Actually searching for a line number is slow.

I use Unitron on both windows and mac. If I double-click on the error, I’m going to the line that the console told me but it’s the wrong line number. As if comment line are not taken.

I need to do some test but I think I found something. There is a bug with CR line ending. If you choose this, your comment will not be taken for error line number. Always encode your code with LF line ending.