Importing modules under DUB on Windows

DLearner bmqazwsx123 at gmail.com
Wed Oct 26 16:20:01 UTC 2022


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`.

Please, any ideas?

Best regards



More information about the Digitalmars-d-learn mailing list