I had the same issue with one specific project and I kept trying to reset the line number attributes in Window->Preferences... Then I realized each project has it's own settings for line number attributes. Right click the project, go into properties, choose JavaCompiler, and check the box to "Add line number attributes..."