Setting up free code camp on visual editor

Hello friends,

Happy thursday: Just wanted to get in touch:

  • I was thinking to contribute to an open source project and in an effort to do that I have found freecodecamp.org a great place
    But while setting up the code repo I am facing an error: for which I have not been able to find any solution

This is the error:
Error: Filename C:\Users\ACER\freeCodeCamp\curriculum\challenges\english\21-a2-english-for-developers\learn-introductions-in-an-online-team-meeting\651dd5a46ffb500e3f2ce47b.md does not match challenge id 651dd5a46ffb500e3f2ce47b
at addMetaToChallenge (C:\Users\ACER\freeCodeCamp\curriculum\get-challenges.js:283:15)
at createChallenge (C:\Users\ACER\freeCodeCamp\curriculum\get-challenges.js:359:5)
at async buildChallenges (C:\Users\ACER\freeCodeCamp\curriculum\get-challenges.js:265:7)

When I did a root cause analysis (Here are the possible solution I did):

  • Did a pnpm clean
  • Did a verification check on both the ID’s (appears to be the same)

Can you help me diagnose or suggest a possible fix? Did any of you guys faced similar issue while setting up the codebase:

  • Please help me understand or provide a solution

Your support in solving this problem and setting up the repo will be much appreciated.

Much thanks.

My guess is you have to use WSL.

It looks related to the path and how the test is doing a split on / and then popping it. It should be logging the file name and not the full path in the error.

Hello @lasjorg thanks for your response, I have installed latest version of WSL: However the error is not resolved:

Here is the directory structure related to the error:

Your path and the fact that you look to be using PowerShell doesn’t seem to suggest the repo is running inside WSL. Did you clone the repo into the distro location?

You need to set everything up so it is running on the Linux distro (except the docker MongoDB setup and VS Code has a WSL integration extension).

Here is another article the docs link to you might want to read.

hmm, agreed from the previous image (my bad):

Have a look now:

What should be the next steps:

Or What should I do afterwards, thoughts?

What am I supposed to do with that?

Use Docker Desktop

Docs: Configure Docker Desktop for WSL

Article: Steps to install Docker on Windows and configure WSL2 as a backend.

Hi @lasjorg , thanks for your solution and guidance on opting for th WSL-2 solution:

  • In doing so: Now I am not facing any similar meta ID issue:

But with this appraoch: My CPU resources are unable to build the development bundle to run it to the (localhost:8000)

  • comm surrogate and vmmem processes have been consuming: 100% CPU utilization

After I press the:

  • pnpm develop on the wsl2

it took almost 5 hours and still the development bundle wasnt able to load on to the server.

I also seek help from ChatGPt for memory optimization of CPU and Ram in such scenario:

  • Configured (.wslconfig: [wsl2]
    memory=8GB # Limit WSL to 8GB RAM
    processors=2 # Limit WSL to use only 2 CPU cores
    swap=4GB # 4 GB of swap memory)

But it does not solved the problem, Any advice on how Can i solve this problem?

  • Just to let you know I also did (pnpm run test-client) to minimize the load but it didn’t ran

My laptop specs: The specs of my cpu are i5-3230 CPU @260 GHZ , RAM 16 GB

It might be the CPU, if it really is Intel Core i5-3230M that looks to be a mobile CPU with 2 cores and 4 threads released in 2013. That might not cut it.

I don’t have any suggestion other than the standard tweaks.

I would try using Gitpod or Codespaces, as described in the docs. It is a pretty good solution for getting started with contributing.

1 Like