@paulstraw, I have made some changes that fix some other edge problems so please pull the most recent code… But here, the problem is really not a problem, it’s just a matter of misconfiguration… with javascript you just use files, and each file needs to be located somehow. Since it doesn’t have an “import” command, it’s impossible to know where the files are located by just guessing (files could be anywhere in your hard drive). So you must tell where all the directories containing javascript files are. You do this by creating a ‘.codeintel’ folder and a configuration file called ‘config’ in either your home directory (~/.codeintel/config) or your project root directory (codeIntelTest/.codeintel/config) and adding the paths there:
{
"JavaScript": {
"javascriptExtraPaths":
"subfolder",
"/some/other/weird/absolute/subfolder",
"some/relative/subfolder/to/the/project",
"~/some/subfolder/in/your/home/directory"
]
}
}
Basically what that says is that for language “JavaScript”, you want some additional paths to be added, that contain more javascript files that will be used, by setting “javascriptExtraPaths”. It adds the project folder itself to the extra paths, as wel as some extra “subfolder” directories.
In this particular case, the file “config” is not really needed, as CodeIntel will search inside the project’s root folder for JavaScript files in up to 10 levels… however, you must still flag the root of your project by adding an empty folder named “.codeintel”. That alone should solve the problems you were having. For your example, simply create the directory called “codeIntelTest/.codeintel”, and then it’ll work as expected.