Skip to content

Dev env

Matheus Assis edited this page Sep 22, 2019 · 4 revisions

To create TodoChecklister I'm using VSCode with the following extensions:

How to set up EmmyLua on VS Code

The steps are for Windows 10 operating systems, but if you know how to set up environment variables in it you can get it to work on other SOs as well.

EmmyLua is a language server(which uses lsp: language server protocol). It is a running server on your computer that analyzes your file and gives your IDE important information. The EmmyLua extension depends on JAVA SE SDK installed, JAVA_HOME set to the installation folder of your sdk, and the SDK's /bin folder set up on your path.

If you don't know how to do it, follow this simple tutorial:

  • First, you have to install the JAVA SE SDK. While installing, make sure to write down your installation folder somewhere(in my case, C:\Program Files\Java\jdk-13\)
    Java SDK Installation path

  • Now, you have to set up an environment variable with the name JAVA_HOME pointing to the path you have just installed java to.

    If you have a different operating system, this website might help you

    Windows 10:

    • Press the ⊞ Win button and start typing "env" and select the "Edit the system environment variables" item.
    • It should open a window that look like this
      Windows "system environment" settings
    • Click on Environment Variables... button, right in the bottom. A new window should appear.
    • This window have two New... buttons. We will have to click on both of them, one at a time.
    • Click on any of the New... buttons and add the path you've installed your SDK to.
      Setting up JAVA_HOME
    • Now, click on the OTHER New... button and do the same thing.
  • It is also recommended adding the SDK's /bin(C:\Program Files\Java\jdk-13\ bin ) folder to your path.

    If you have a different operating system, this website might help you

    • On that same window, look for a variable named Path(in the top and bottom sides):
      Path variable
    • With the Path line selected, click on Edit... button and add YOUR_SDK_FOLDER\bin in a new line:
      Adding value to path
    • Repeat the same process clicking on the other Edit... button for the other Path.
  • Confirm by click OK in every window.

  • Install EmmyLua extension

  • Restart VSCode and if it's still not working. Restart your computer.

  • It should now be working!! 🎉 🎉 🎉

Clone this wiki locally