# Issue creating library with Particle Workbench

**URL:** <https://community.particle.io/t/issue-creating-library-with-particle-workbench/51568>\
**Category:** Libraries\
**Tags:** boron, xenon\
**Created:** [August 7, 2019, 10:26pm UTC](https://community.particle.io/t/issue-creating-library-with-particle-workbench/51568 "2019-08-07T22:26:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![HAL9000](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/hal9000/32/22076_2.png) [@HAL9000](https://community.particle.io/u/HAL9000)\
**Post date:** [August 7, 2019, 10:26pm UTC](https://community.particle.io/t/issue-creating-library-with-particle-workbench/51568/1 "2019-08-07T22:26:49Z")

</div>

I’m trying to create a library using [this as a guide](https://docs.particle.io/tutorials/device-os/libraries/). The CLI created the structure properly, but I get Intellisense errors that .h files can’t be found. I did a “Particle: Audit Environment” on that project and a known working (non-library) project.

The main difference between the two is that the workspace:folders[] member is empty in the library project:

```auto
    "workspace": {
        "name": "mylib",
        "isWorkspace": false,
        "folders": []
    },

```

I can hard code that section, but I’d like to have the tools produce it for consistency, etc. How can I get that section populated?

---

<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:** [August 8, 2019, 6:10am UTC](https://community.particle.io/t/issue-creating-library-with-particle-workbench/51568/2 "2019-08-08T06:10:55Z")

</div>

I don’t think there is a Workbench template for _creating_ a library.  
However, I’d just create a “helper” project, manually add a subfolder `lib` and then copy your CLI created library tree into that folder.  
With that you can use the “helper” implementation in `./src` to develop an example while using the `.lib/<yourLib>/src` files to work on the library itself.

Once you have library and example up and running you can copy the example `.ino` file to `./lib/<yourLibrary>/examples/<yourExample>/<yourExample.ino>` and use CLI from `./lib/<yourLibrary>` to `particle library upload` to the cloud.

---

<div class="post-metadata">

**Author:** ![HAL9000](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/hal9000/32/22076_2.png) [@HAL9000](https://community.particle.io/u/HAL9000)\
**Post date:** [August 10, 2019, 1:47pm UTC](https://community.particle.io/t/issue-creating-library-with-particle-workbench/51568/3 "2019-08-10T13:47:02Z")

</div>

This worked perfectly, thank you.
