digitalmars.D.learn - dub commands do not run correctly.
- Alain De Vos (11/11) Apr 10 2021 In order to run commands correctly I have to put soft links :
- rikki cattermole (3/12) Apr 10 2021 No idea, need to see the results of the command.
- Alain De Vos (10/24) Apr 10 2021 For instance for me,
- rikki cattermole (2/2) Apr 10 2021 dub run dfmt -- ./app.d
- Alain De Vos (3/5) Apr 10 2021 Right that worked.
- Andre Pany (5/16) Apr 10 2021 Side info, dub has also command "lint" which calls DScanner
- Alain De Vos (5/5) Apr 10 2021 dub fetch lint
- z (5/10) Apr 10 2021 He meant `dub lint`, with the working directory in the package's
- Alain De Vos (24/25) Apr 10 2021 Unknown command: lint
- Andre Pany (6/32) Apr 10 2021 You might have an old version of dub. Dub lint was added I assume
In order to run commands correctly I have to put soft links : I.e. dfmt -> /home/x/.dub/packages/dfmt-0.13.4/dfmt/bin/dfmt or, dscanner -> /home/x/.dub/packages/dscanner-0.11.0/dscanner/bin/dscanner Then ./dfmt or ./dscanner run fine. I use freebsd as O.S. But "dub run dscanner" or "dub run dfmt" do not give the right result. Did I miss something ?
Apr 10 2021
On 10/04/2021 11:44 PM, Alain De Vos wrote:In order to run commands correctly I have to put soft links : I.e. dfmt -> /home/x/.dub/packages/dfmt-0.13.4/dfmt/bin/dfmt or, dscanner -> /home/x/.dub/packages/dscanner-0.11.0/dscanner/bin/dscanner Then ./dfmt or ./dscanner run fine. I use freebsd as O.S.dub does not set this up for you.But "dub run dscanner" or "dub run dfmt" do not give the right result. Did I miss something ?No idea, need to see the results of the command.
Apr 10 2021
On Saturday, 10 April 2021 at 11:46:27 UTC, rikki cattermole wrote:On 10/04/2021 11:44 PM, Alain De Vos wrote:For instance for me, /home/x/.dub/packages/dfmt-0.13.4/dfmt/bin/dfmt ./app.d runs fine. But, dub run dfmt ./app.d returns, Expected one or zero arguments. Run "dub run -h" for more information about the "run" command.In order to run commands correctly I have to put soft links : I.e. dfmt -> /home/x/.dub/packages/dfmt-0.13.4/dfmt/bin/dfmt or, dscanner -> /home/x/.dub/packages/dscanner-0.11.0/dscanner/bin/dscanner Then ./dfmt or ./dscanner run fine. I use freebsd as O.S.dub does not set this up for you.But "dub run dscanner" or "dub run dfmt" do not give the right result. Did I miss something ?No idea, need to see the results of the command.
Apr 10 2021
dub run dfmt -- ./app.d You passed "./app.d" to dub, not dfmt.
Apr 10 2021
On Saturday, 10 April 2021 at 11:54:03 UTC, rikki cattermole wrote:dub run dfmt -- ./app.d You passed "./app.d" to dub, not dfmt.Right that worked.
Apr 10 2021
On Saturday, 10 April 2021 at 11:44:12 UTC, Alain De Vos wrote:In order to run commands correctly I have to put soft links : I.e. dfmt -> /home/x/.dub/packages/dfmt-0.13.4/dfmt/bin/dfmt or, dscanner -> /home/x/.dub/packages/dscanner-0.11.0/dscanner/bin/dscanner Then ./dfmt or ./dscanner run fine. I use freebsd as O.S. But "dub run dscanner" or "dub run dfmt" do not give the right result. Did I miss something ?Side info, dub has also command "lint" which calls DScanner internally. Kind regards Andre
Apr 10 2021
dub fetch lint Getting a release version failed: (1): Error: Got JSON of type null_, expected object. Retry with ~master... (1): Error: Got JSON of type null_, expected object.
Apr 10 2021
On Saturday, 10 April 2021 at 13:15:19 UTC, Alain De Vos wrote:dub fetch lint Getting a release version failed: (1): Error: Got JSON of type null_, expected object. Retry with ~master... (1): Error: Got JSON of type null_, expected object.He meant `dub lint`, with the working directory in the package's root folder(where dub.sdl/dub.json is present) It should then automatically fetch and compile dscanner and execute it on the package.
Apr 10 2021
dub lint returns,dub lintUnknown command: lint USAGE: dub [--version] [<command>] [<options...>] [-- [<application arguments...>]] Manages the DUB project in the current directory. If the command is omitted, DUB will default to "run". When running an application, "--" can be used to separate DUB options from options passed to the application. Run "dub <command> --help" to get help for a specific command. You can use the "http_proxy" environment variable to configure a proxy server to be used for fetching packages. Available commands ================== Package creation ---------------- init [<directory> [<dependency>...]] Initializes an empty package skeleton Build, test and run ------------------- run [<package>] Builds and runs a package (default command) build [<package>] Builds a package (uses the main package in
Apr 10 2021
On Saturday, 10 April 2021 at 18:08:55 UTC, Alain De Vos wrote:dub lint returns,You might have an old version of dub. Dub lint was added I assume several months ago. Here is the documentation https://dub.pm/commandline.html#lint Kind regards Andre[...]Unknown command: lint USAGE: dub [--version] [<command>] [<options...>] [-- [<application arguments...>]] Manages the DUB project in the current directory. If the command is omitted, DUB will default to "run". When running an application, "--" can be used to separate DUB options from options passed to the application. Run "dub <command> --help" to get help for a specific command. You can use the "http_proxy" environment variable to configure a proxy server to be used for fetching packages. Available commands ================== Package creation ---------------- init [<directory> [<dependency>...]] Initializes an empty package skeleton Build, test and run ------------------- run [<package>] Builds and runs a package (default command) build [<package>] Builds a package (uses the main package in
Apr 10 2021