# Problem running Processing project in VSCode

**URL:** <https://discourse.processing.org/t/problem-running-processing-project-in-vscode/35198>\
**Category:** Beginners\
**Created:** [February 16, 2022, 3:56am UTC](https://discourse.processing.org/t/problem-running-processing-project-in-vscode/35198 "2022-02-16T03:56:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![avina](https://avatars.discourse-cdn.com/v4/letter/a/bb73d2/32.png) [@avina](https://discourse.processing.org/u/avina)\
**Post date:** [February 16, 2022, 3:56am UTC](https://discourse.processing.org/t/problem-running-processing-project-in-vscode/35198/1 "2022-02-16T03:56:12Z")

</div>

Hello, I am trying to get set up with processing in VSCode, and I am encountering the following problem when attempting to run the processing project.

I followed [this](https://www.youtube.com/watch?v=LKuu-WcOZYA) tutorial to get started. I don’t believe that I missed any steps, but at 8:20 I notice a discrepancy between what is shown when he runs the processing project in VSCode versus when I try to run it in my VSCode. His says

```auto
Executing task: processing-java --force "--sketch=C:\Users\Andrea\Downloads\hw0" "--output=C:\Users\Andrea\Downloads\hw0\out" --run

```

But mine does not start with “processing-java” like his does. My problem is that my terminal looks like this:

```auto
Executing task: C:\Users\Andrea\Downloads\hw0\processing-java --force "--sketch=C:\Users\Andrea\Downloads\hw0" "--output=C:\Users\Andrea\Downloads\hw0\out" --run

```

For some reason, the filepath to my sketch is being appended to the front of “processing-java”. This is the only issue, and I don’t know why it is happening. To be clear, I did add processing to my path, and I was able to successfully run the sketch by manually typing the command into powershell and command prompt.

The generated tasks.json file appears to be identical to his, so I’m not sure why this is happening. I’m hoping that it’s some dumb error on my part or it can be corrected with some small change, but any insight would be appreciated. Thanks in advance!

---

<div class="post-metadata">

**Author:** ![SomeOne](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/someone/32/8639_2.png) [@SomeOne](https://discourse.processing.org/u/SomeOne)\
**Post date:** [February 16, 2022, 4:46pm UTC](https://discourse.processing.org/t/problem-running-processing-project-in-vscode/35198/2 "2022-02-16T16:46:19Z")

</div>

Hi Avina,

Welcome to the forum. I don’t think that’s an error or a problem. For some reason your set up is just slightly different and whole path to processing-java is shown instead of the command only. In the end it should be irrelevant difference. After all the end result is the same and that counts.

---

<div class="post-metadata">

**Author:** ![avina](https://avatars.discourse-cdn.com/v4/letter/a/bb73d2/32.png) [@avina](https://discourse.processing.org/u/avina)\
**Post date:** [February 16, 2022, 5:10pm UTC](https://discourse.processing.org/t/problem-running-processing-project-in-vscode/35198/3 "2022-02-16T17:10:03Z")

</div>

I guess I didn’t describe the issue clearly enough, my bad. It actually is a problem, because processing-java is not located under that file path. It’s in its own folder in the program files folder (like the guy in the tutorial did), so when I try to run the sketch, it doesn’t work because there is no processing-java in that folder. If I manually type out the command with just “processing-java” instead, it works. My issue is that I need to stop “tasks.json” from prepending this (incorrect) file path to processing-java, as it is both incorrect and prevents the sketch from running. (Sorry about the formatting, I’m on mobile atm.)

---

<div class="post-metadata">

**Author:** ![SomeOne](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/someone/32/8639_2.png) [@SomeOne](https://discourse.processing.org/u/SomeOne)\
**Post date:** [February 16, 2022, 5:58pm UTC](https://discourse.processing.org/t/problem-running-processing-project-in-vscode/35198/4 "2022-02-16T17:58:57Z")

</div>

The line in json-file

> “command”: “${config:processing.path}”

determines command used to run the processing sketch. It gives a wrong value. Most direct route is to change it to

> “command”: “processing-java”

Trickier solution is to figure out why ${config:processing.path} gives non-working command

---

<div class="post-metadata">

**Author:** ![avina](https://avatars.discourse-cdn.com/v4/letter/a/bb73d2/32.png) [@avina](https://discourse.processing.org/u/avina)\
**Post date:** [February 17, 2022, 1:00am UTC](https://discourse.processing.org/t/problem-running-processing-project-in-vscode/35198/5 "2022-02-17T01:00:02Z")

</div>

Thank you so much, that fixed the issue! Yeah, I will have to investigate further, but this will work for now
