Could you try to save everything and restart editor. Generate definitions works a bit weird for new projects