insert_source_files does not work from source code directory, only from pkm install dir
Suppose I have a source file called /tmp/test/mypackage/Test.c .
If I run insert_source_files from the pkm-api directory, as follows:
$ insert_source_files testdb /tmp/test/mypackage/Test.c
It works. But if I go in /tmp/test/mypackage/ and call "insert_source_files testdb Test.c", the following error occurs:
/tmp/test/mypackage$ insert_source_files testdb Test.c
internal/validators.js:121
throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
^
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
at validateString (internal/validators.js:121:11)
at Object.resolve (path.js:980:7)
at Object.<anonymous> (/home/gibello/DCR/D1.3/pkm-api/common.js:6:21)
at Module._compile (internal/modules/cjs/loader.js:1118:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1138:10)
at Module.load (internal/modules/cjs/loader.js:982:32)
at Function.Module._load (internal/modules/cjs/loader.js:875:14)
at Module.require (internal/modules/cjs/loader.js:1022:19)
at require (internal/modules/cjs/helpers.js:72:18)
at Object.<anonymous> (/home/gibello/DCR/D1.3/pkm-api/insert_source_files.js:7:16) {
code: 'ERR_INVALID_ARG_TYPE'
}
So, I can't insert source code from my source code directory, only from the PKM installation dir...