Errors Not Showing Any In IDE Even Though They Are There ???
Hi,
When writing C# code in the IDE, it does not show me any errors in the code even though there are some deliberate ones.
Even after clicking the build button the errors still do not show.
For example:
//////////////////////////////////////////////
using System;
namespace SampleNamespace
{
struct Person
{
public string firstName;
public string lastName;
public int age;
public Genders gender;
public Person(string FirstName, string LastName, int Age, Genders Gender)
{
this.firstName = FirstName;
this.lastName = LastName;
thsi.age = Age; // Error On This Line
this.gender = Gender;
}
public override string ToStri // Error On This Line
{
return firstName + " " + lastName + " (" + gender + "), age " + age;
}
public enum Genders {Male, Female};
}
public class CreateStruct
{
private static void Main() // Error On This Line
{
Person p = ne Person("Dean", "Cooke", 32, Person.Genders.Male); // Error On This Line
Console.WriteLine(p.ToString());
Console.Read();
// Error - Missing "}"
// Error - Missing "}"
}
}
//////////////////////////////////////////////
As you can see there are quite a few deliberate errors (marked with “// Error On This Line”) however the IDE is not picking these up.
Also everytime I press Enter on my keyborad to go to the next Line, the IDE allways drops down 2 Line breaks which is very annoying.
Please can these bugs be fixed.
Yours sincerely
Hi,
I am using Internet Explorer 8.0
Will try using a different browser / computer and will let you know the outcome.
Thanks
I receive two errors with this code initially:
public override string ToStri
"get or set accessor expected"
And a missing } at the end
I then resolve those two errors, and two more come up:
thsi.age = Age;
and
Person p = ne Person("Dean", "Cooke", 32, Person.Genders.Male);
Then I fix those and there are no more errors:
private static void Main() is perfectly acceptable to the compiler,
and only one "}" is needed to close the namespace.
But you aren't seeing any errors reported at all?
May I ask what operating system you are using, what version of windows, or are you using the Mac version of IE?
I couldn't replicate the double spacing issue, I am using IE 8 on Windows 7 64 bit.
Hi Dean, we will definitely look into this. Could you let me know what Browser you are using?
Developer - Compilr.com