For months if not a year now, I get frequent compile failures of a sort. About a minute after hitting the cloud compile button, it says success, but there is no binary created. If I try the command line compile, it just says “Compile failed. Exiting. Server error.” It really feels to me like a timeout, and usually just retrying a couple times or restarting Dev gets it to go through. I wouldn’t be surprised if we have a much larger project size than most users, but I’m at a point where I can’t get the build to go through at all anymore.
I just tried the local compiler package for Particle Dev, but that is broken on the current version of Docker. I guess I will try the local toolchain now, but it would be great if I could continue to just work from Particle Dev. Is this an issue anyone else has encountered? Is it a timeout on a long-running compile? Thanks.
I’m sorry you’re experiencing those issues. Like you said, the local compile package for Dev is currently broken but we’re not abandoning it. Recently we’ve made a big overhaul of our cloud compiler to use the Docker images which will allow having the same behavior when compiling locally using them. There’s still work to be done on the CLI/Dev part to make it accessible but until then you might try using compile.sh script I made. It’s a temporary measure but please let me know if it helped.
Thanks, @suda. I was able to compile running the full toolchain running natively, to get myself unblocked. It’s not very pretty, but it seems to be working. Once the local compile package for Dev is up and running again, I’d definitely prefer that.
Compiling with the cloud from Particle Dev is still dead in the water for me though. Frustrating.
Hmmm, I’m trying to upgrade the package to 0.1.0, but I get the following error. Seems like the version of node bundled with Particle Dev is too old for the new version of the local-compiler package on Windows?
Hmmm, that’s blowing up on me too. I downloaded and installed Atom 1.16, tried to install particle-dev and then particle-dev-complete, but both blew up with a bunch of errors.
That’s caused by the serialport module which has to be compiled from sources for Atom. Installing Xcode should help. This is why we provide the Particle Dev App which already bundles all the modules. As the local compiler is still a alpha feature it might have some rough edges.
Oh, what might help is installing the recommended node-gyp toolchain with: npm install --global --production windows-build-tools. This should install everything in version they need.
Cool, thanks. I have all the packages installed successfully now. Compiling locally gives me this though:
make -C ../modules/photon/user-part all
make[1]: Entering directory '/firmware/modules/photon/user-part'
make -C ../../../user
make[2]: Entering directory '/firmware/user'
build.mk:63: *** "No sources found in /workspace/". Stop.
make[2]: Leaving directory '/firmware/user'
../../../build/recurse.mk:11: recipe for target 'user' failed
make[1]: Leaving directory '/firmware/modules/photon/user-part'
make[1]: *** [user] Error 2
../build/recurse.mk:11: recipe for target 'modules/photon/user-part' failed
make: *** [modules/photon/user-part] Error 2
Local compilation failed
I also get an error finding an include file with the cloud compiler now. Has anything changed in this setup with the file structures? I have subfolders for a lot of things, but it all gets flattened out in the version I've been using, so the #include statements don't reference the subfolders.
Hmm this looks like no sources were sent to the local compiler. Could you take a screenshot of Atom window?
Yes the project flattening shouldn’t happen. It might be a regression in our tools when using the online compilation. We’ll look into this! The local compiler should match the directory structure exactly so it’s possible you’ll need to use relative paths when including files.
Well, flattening out my folder structure seemed to help, since that's what my #includes assume given the cloud compile behavior of the current, official Particle Dev installer.
If I compile against 0.6.2 I get a normal-looking compilation error, probably due to some change under the hood. However if I use 0.6.1, which we currently target, I get this after a long while:
Redis error Error: Redis connection to 10.0.75.1:6379 failed - connect ETIMEDOUT 10.0.75.1:6379
Local compilation failed
I imagine connecting to 10.0.75.1 will be pretty difficult from my network.
That doesn't mesh with the previous error though, which was actual compiler output, just the missing project files, like you said. I only just now compiled against 0.6.2 for the first time accidentally. Is there a problem switching back to 0.6.1? I wiped Atom including the user folder and re-installed, but still getting the same message.
Thanks for working through all this. Hopefully it'll be helpful to you as well, haha.