# Pinegrow and Vs Code

**URL:** <https://forum.pinegrow.com/t/pinegrow-and-vs-code/4385>\
**Category:** Beginners\
**Created:** [July 26, 2020, 2:32pm UTC](https://forum.pinegrow.com/t/pinegrow-and-vs-code/4385 "2020-07-26T14:32:43Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![rjscratch](https://avatars.discourse-cdn.com/v4/letter/r/919ad9/32.png) [@rjscratch](https://forum.pinegrow.com/u/rjscratch)\
**Post date:** [July 26, 2020, 2:32pm UTC](https://forum.pinegrow.com/t/pinegrow-and-vs-code/4385/1 "2020-07-26T14:32:44Z")

</div>

Hi all i’m a newbie learning to code, i use Pinegrow with VsCode iv’e watched the video’s on how to set them both up but for some strange reason i keep getting this prompt from VsCode,

Unable to connect to Pinegrow at [http://localhost:40003/editor](http://localhost:40003/editor).

I have copied the Api from Pinegrow to VsCode,uninstalled and reinstalled Pinegrow try to change the settings in VsCode but i get the same prompt ???

I guess it’s a very simple fix for the more experienced but as i say i’m a newbie so i guess i’m making a simple mistake, if anyone could help shed some light on this would be much appreciated as i’m trying to finish a course and using VsCode with Pinegrow makes coding so much easier for me.

Thanks,  
RJ.

---

<div class="post-metadata">

**Author:** ![droidgoo](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/droidgoo/32/2209_2.png) [@droidgoo](https://forum.pinegrow.com/u/droidgoo)\
**Post date:** [July 26, 2020, 3:38pm UTC](https://forum.pinegrow.com/t/pinegrow-and-vs-code/4385/2 "2020-07-26T15:38:49Z")

</div>

you need to go into the settings on both apps and make sure they agree on the host values

mine are both set to

host  
127.0.0.1

port  
40000

which is, i believe, the default

---

<div class="post-metadata">

**Author:** ![rjscratch](https://avatars.discourse-cdn.com/v4/letter/r/919ad9/32.png) [@rjscratch](https://forum.pinegrow.com/u/rjscratch)\
**Post date:** [July 26, 2020, 5:17pm UTC](https://forum.pinegrow.com/t/pinegrow-and-vs-code/4385/3 "2020-07-26T17:17:24Z")

</div>

Hello droidgoo,  
yea i have gone into both Apps and set the port and host details but still have same issue.

Thanks for your reply.

---

<div class="post-metadata">

**Author:** ![droidgoo](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/droidgoo/32/2209_2.png) [@droidgoo](https://forum.pinegrow.com/u/droidgoo)\
**Post date:** [July 26, 2020, 6:05pm UTC](https://forum.pinegrow.com/t/pinegrow-and-vs-code/4385/4 "2020-07-26T18:05:06Z")

</div>

this is what i have in my VSC extension setting

[http://127.0.0.1:40000](http://127.0.0.1:40000)

have you tried changing both to these values, or are you set on using the ones you posted

not sure using a named ip address is going to work, i would go with the explicit form of the number ip…

---

<div class="post-metadata">

**Author:** ![droidgoo](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/droidgoo/32/2209_2.png) [@droidgoo](https://forum.pinegrow.com/u/droidgoo)\
**Post date:** [July 26, 2020, 6:16pm UTC](https://forum.pinegrow.com/t/pinegrow-and-vs-code/4385/5 "2020-07-26T18:16:20Z")

</div>

> [@rjscratch](#):
>
> [http://localhost:40003](http://localhost:40003/editor)

UPDATE  
looks like there is a dns functioning so localhost works,  
but when i tried using your values, this weirdness happens

![Capture](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/0/06618f50a4f84a4c8164843d219920d65cc23c51.jpeg) i tried using your

try taking the /editor off the port number, i don’t think it is needed, and it screwed mine up when i tried it.

---

<div class="post-metadata">

**Author:** ![rjscratch](https://avatars.discourse-cdn.com/v4/letter/r/919ad9/32.png) [@rjscratch](https://forum.pinegrow.com/u/rjscratch)\
**Post date:** [July 26, 2020, 7:07pm UTC](https://forum.pinegrow.com/t/pinegrow-and-vs-code/4385/6 "2020-07-26T19:07:26Z")

</div>

Hi droidgoo,  
firstly thanks for all your help i just managed to get them both to sync.  
Tbh i can’t say i anything Techical apart from go through the same process for the  
80th time,close VsCode and then Pinegrow and then restart in the reverse order  
and for strangely it worked.  
I was getting the same error as in your screen shot, i have been on this since yesterday (lol)  
so i’m very happy to have got it sorted with your help.

I’ve been looking to find a Workflow like this using Pinegrow and a good text editor to help me learn to code and have a better understanding of what the code is doing and how to solve when it’s not working, for me this is defo the way forward, PERFECT.  
A very happy newbie coder.

Thanks drooidgoo.

---

<div class="post-metadata">

**Author:** ![droidgoo](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/droidgoo/32/2209_2.png) [@droidgoo](https://forum.pinegrow.com/u/droidgoo)\
**Post date:** [July 26, 2020, 9:12pm UTC](https://forum.pinegrow.com/t/pinegrow-and-vs-code/4385/7 "2020-07-26T21:12:53Z")

</div>

glad you got it working… there’s still some kinks in the communication between PG, VSC and my mouse hand that could use improvement, but it’s handy to have a text editor with all the bells and whistles.

ur gonna want spell right too and you figure out how to get that to work, you let me know.
