# Web IDE won't compile project

**URL:** <https://community.particle.io/t/web-ide-wont-compile-project/29306>\
**Category:** Troubleshooting\
**Created:** [February 14, 2017, 8:08pm UTC](https://community.particle.io/t/web-ide-wont-compile-project/29306 "2017-02-14T20:08:54Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![jackpot](https://avatars.discourse-cdn.com/v4/letter/j/51bf81/32.png) [@jackpot](https://community.particle.io/u/jackpot)\
**Post date:** [February 14, 2017, 8:08pm UTC](https://community.particle.io/t/web-ide-wont-compile-project/29306/1 "2017-02-14T20:08:54Z")

</div>

I am trying to compile a code and I keep getting an error for Onewire.h. I have added it to my code via the IDE. I have no clue what I am missing.

Thanks

 ![](https://us1.discourse-cdn.com/flex026/uploads/particle/original/2X/6/6054803fa4e495bb90c8b7d92d9385622ec5c69f.png)

---

<div class="post-metadata">

**Author:** ![ScruffR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/scruffr/32/6952_2.png) [@ScruffR](https://community.particle.io/u/ScruffR)\
**Post date:** [February 14, 2017, 8:42pm UTC](https://community.particle.io/t/web-ide-wont-compile-project/29306/2 "2017-02-14T20:42:06Z")

</div>

The `spark-dallas-temperature` library is not properly ported to Libs 2.0  
You could try a previous version of the lib which might still work.

---

<div class="post-metadata">

**Author:** ![jackpot](https://avatars.discourse-cdn.com/v4/letter/j/51bf81/32.png) [@jackpot](https://community.particle.io/u/jackpot)\
**Post date:** [February 14, 2017, 9:02pm UTC](https://community.particle.io/t/web-ide-wont-compile-project/29306/3 "2017-02-14T21:02:05Z")

</div>

Thank you for your reply. I figured it had something to do with the new IDE. My older versions of the same code still compile even with the new IDE. Ill start doing some digging to see what I can figure out

Thank you

---

<div class="post-metadata">

**Author:** ![jackpot](https://avatars.discourse-cdn.com/v4/letter/j/51bf81/32.png) [@jackpot](https://community.particle.io/u/jackpot)\
**Post date:** [February 14, 2017, 9:18pm UTC](https://community.particle.io/t/web-ide-wont-compile-project/29306/4 "2017-02-14T21:18:46Z")

</div>

@ScruffR I was able to click on the spark dallas temperature library in the “Included Libraries” section of the IDE. I was then able to click on the “more info” button where I was given a choice of different versions of the library. I simply clicked on 0.0.4 and added that to my project. The project then compiled correctly. Now on to see if it works!

Thanks for the help

---

<div class="post-metadata">

**Author:** ![ScruffR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/scruffr/32/6952_2.png) [@ScruffR](https://community.particle.io/u/ScruffR)\
**Post date:** [February 14, 2017, 9:22pm UTC](https://community.particle.io/t/web-ide-wont-compile-project/29306/5 "2017-02-14T21:22:06Z")

</div>

I have opened an issue about this

> <https://github.com/particle-iot/cloud/issues/19>

---

<div class="post-metadata">

**Author:** ![jackpot](https://avatars.discourse-cdn.com/v4/letter/j/51bf81/32.png) [@jackpot](https://community.particle.io/u/jackpot)\
**Post date:** [February 14, 2017, 9:23pm UTC](https://community.particle.io/t/web-ide-wont-compile-project/29306/6 "2017-02-14T21:23:29Z")

</div>

Great. Thanks again! 😁

---

<div class="post-metadata">

**Author:** ![mrkale](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/mrkale/32/5870_2.png) [@mrkale](https://community.particle.io/u/mrkale)\
**Post date:** [February 15, 2017, 8:36am UTC](https://community.particle.io/t/web-ide-wont-compile-project/29306/7 "2017-02-15T08:36:20Z")

</div>

I have already notified on this fact in the thread [Particle Libraries v2.0 in particle-cli 1.19.1 drawbacks](https://community.particle.io/t/particle-libraries-v2-0-in-particle-cli-1-19-1-drawbacks/28839) within others. It would be worth to make an issue in the [particle-cli GitHub project](https://github.com/spark/particle-cli/issues). Some of them have been solved, but this one hasn’t yet.

---

<div class="post-metadata">

**Author:** ![ScruffR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/scruffr/32/6952_2.png) [@ScruffR](https://community.particle.io/u/ScruffR)\
**Post date:** [February 15, 2017, 9:00am UTC](https://community.particle.io/t/web-ide-wont-compile-project/29306/8 "2017-02-15T09:00:34Z")

</div>

That issue is not confined to _Particle CLI_ so the more general [_cloud_](https://github.com/spark/cloud/issues) repo may be the more appropriate one (or alternatively the [_particle-library-manager_](https://github.com/spark/particle-library-manager))

And I have already created issues on both of them.

---

<div class="post-metadata">

**Author:** ![jackpot](https://avatars.discourse-cdn.com/v4/letter/j/51bf81/32.png) [@jackpot](https://community.particle.io/u/jackpot)\
**Post date:** [March 5, 2017, 6:49pm UTC](https://community.particle.io/t/web-ide-wont-compile-project/29306/9 "2017-03-05T18:49:40Z")

</div>

@ScruffR I have an earlier version of my code that compiles with the legacy libraries. I then have my latest version that does not compile with Spark Dallas Temperature 0.0.5 and I had to use 0.0.4 to compile. I am wondering how I can find out what version of each of the included Legacy Libraries I used in my initial sketch?

I can see the versions here  
 ![](https://us1.discourse-cdn.com/flex026/uploads/particle/original/2X/5/5010667710b69f4c8a1b71e30a30c3004e3250d7.png)

But not here  
 ![](https://us1.discourse-cdn.com/flex026/uploads/particle/original/2X/c/c2f8d462f81776c6e5d3b63104e4a40a070ed1d8.png)

Thanks in advance

---

<div class="post-metadata">

**Author:** ![ScruffR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/scruffr/32/6952_2.png) [@ScruffR](https://community.particle.io/u/ScruffR)\
**Post date:** [March 5, 2017, 8:17pm UTC](https://community.particle.io/t/web-ide-wont-compile-project/29306/10 "2017-03-05T20:17:46Z")

</div>

This is something I have already complained about too.  
Previously there was the option to peek the used libraries but I got told that was removed deliberately but I didn’t get told the reason behind that “deliberation” 😉

---

<div class="post-metadata">

**Author:** ![jackpot](https://avatars.discourse-cdn.com/v4/letter/j/51bf81/32.png) [@jackpot](https://community.particle.io/u/jackpot)\
**Post date:** [March 5, 2017, 8:20pm UTC](https://community.particle.io/t/web-ide-wont-compile-project/29306/11 "2017-03-05T20:20:31Z")

</div>

LOL, that sucks! I am having an issue with a DS18b20 and since I originally had an issue with the Spark Dallas library, I wanted to compare versions to see if I can track down an issue in that regards.

Hmmm. back to the drawing board,

Thanks for your time

---

<div class="post-metadata">

**Author:** ![ScruffR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/scruffr/32/6952_2.png) [@ScruffR](https://community.particle.io/u/ScruffR)\
**Post date:** [March 5, 2017, 8:24pm UTC](https://community.particle.io/t/web-ide-wont-compile-project/29306/12 "2017-03-05T20:24:13Z")

</div>

I have recently taken over ownership of the DS18B20 lib.  
What kind of problem do you have with it?  
How many sensors do you have on the one bus?  
What do you think is the advantage of the `Spark-Dallas-Temperaure` library over the `DS18B20` one?

---

<div class="post-metadata">

**Author:** ![jackpot](https://avatars.discourse-cdn.com/v4/letter/j/51bf81/32.png) [@jackpot](https://community.particle.io/u/jackpot)\
**Post date:** [March 5, 2017, 8:44pm UTC](https://community.particle.io/t/web-ide-wont-compile-project/29306/13 "2017-03-05T20:44:52Z")

</div>

What I have noticed is that I have one probe that intermittently shuts off (-196). I have not found a rhyme or reason to it. I should also tell you that in the past, I had a DSB1820 malfunction and become very warm, so I have included in my code a provision to shut off the probe if a threshold temperature is reached. I have used that successfully on a similar project running on an Arduino Mega 2560 R3 for roughly 2 years now. Anyway, partially based on that, I do not believe that is the issue. I only have two sensors and they are both on their own bus, ONE\_WIRE\_BUS D1 and ONE\_WIRE\_BUS D2  
I am not sophisticated enough to answer your last question, LOL. I just started using the Spark library and that’s really it!

---

<div class="post-metadata">

**Author:** ![ScruffR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/scruffr/32/6952_2.png) [@ScruffR](https://community.particle.io/u/ScruffR)\
**Post date:** [March 5, 2017, 8:51pm UTC](https://community.particle.io/t/web-ide-wont-compile-project/29306/14 "2017-03-05T20:51:00Z")

</div>

I’m using the DS18B20 library and have explicitly tweaked the lib for single drop scenarios (only one sensor on the bus) and hence my dud:good readings ratio has dropped considerably, I’d suggest you’ll move over to that lib (if it doesn’t really make any difference to you).  
If you find an issue with that lib, please report it and I’ll try to fix it - other libraries don’t seem to be looked after by their contributors anymore.

---

<div class="post-metadata">

**Author:** ![jackpot](https://avatars.discourse-cdn.com/v4/letter/j/51bf81/32.png) [@jackpot](https://community.particle.io/u/jackpot)\
**Post date:** [March 5, 2017, 9:00pm UTC](https://community.particle.io/t/web-ide-wont-compile-project/29306/15 "2017-03-05T21:00:12Z")

</div>

Ill give it a try. Thank you very much
