Importing modules under DUB on Windows
H. S. Teoh
hsteoh at qfbox.info
Wed Oct 26 16:58:08 UTC 2022
On Wed, Oct 26, 2022 at 04:20:01PM +0000, DLearner via Digitalmars-d-learn wrote:
> Hi
>
> Never used DUB before.
> Wanted to use a function stored in a module outside the main source.
>
> Main source has `import <modulename>;`
>
> Put a line into the JSON: `"importPaths": "C:\\Users\\..."` pointing
> to the directory holding the module.
>
> `dub run` failed with `Expected JSON array, got string`.
Maybe try instead:
"importPaths": [ "C:\\Users\\..." ]
since the error message indicates that it expects an array, not a
string.
T
--
It said to install Windows 2000 or better, so I installed Linux instead.
More information about the Digitalmars-d-learn
mailing list