Atom.project undefined…



I got this report just now:

which tells me that atom.project is undefined, but

tells me: “An instance of this class is always available as the atom.project global.”

Do I misunderstand?


I’m not sure when atom.project is initialized. It could be that it isn’t available at some point during startup.


The error actually says that the function you’re calling (getPath) is undefined. I think Project::getPath was deprecated in favor of Project::getPaths and removed in Atom v0.206.0 along with the other deprecated APIs.


@olmokramer Thanks a lot, you were definitely right.