Atom.project undefined…


#1

Hi,

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?


#2

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


#3

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.


#4

@olmokramer Thanks a lot, you were definitely right.