Isuues using freeCodeCamp VS Code Extension

  • Mac OS 13.4 Ventura
  • VS Code 1.79
  • NPM 9.5.1
  • Node.js 18.16.0

After installing the VS Code extension and successfully installing the freeCodeCamp OS I am not able to open any freeCodeCamp course from VS Code.

When I try to open any of the courses VS Code returns the warning dialog…
“Directory is not empty.
Please empty working directory, and try again.”

I have created an empty directory with my “workspace.code-workspace” file in it.

Essentially, I don’t know, what I don’t know here. Are there any full and more verbose steps. Things that I don’t find clear from the VS Code extension documentation and the github documentation are…

  • This extension helps run the freeCodeCamp courses found here: ./resources/courses.json

There is no explanation of “where” you are to place the courses.json file, not to mention the same version of this file from github is installed to the .vscode / Extensions location for the freeCodeCamp extension.

  • Add a freecodecamp.conf.json file to your project root:

I’ve added the freecodecamp.conf.json to what i think is my root. Root of my drive, root of my workspace folder??

Apologies ahead of time for being lost here. I’m really wanting to use this extension because I really like the freeCodeCamp tutorials and VS Code is great script editor.

Hello there,

Which course are you trying to run?

The instructions for running the courses can be found in various locations:

You should not be installing freecodecamp-os unless you are creating a course: Introduction - freeCodeCampOS

Hope this clarifies.

I was trying to run the the freeCodeCamp course curriculum from VS Code . Appears that’s not what the extension is for however, so, yes, this answers my question, thank you.

As an aside, someone might want to change the verbiage for the extension in VS Code as it’s a bit misleading.

“Provides tooling for quick and easy selection of courses offered by freeCodeCamp

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.