You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These are the logs, just going to paste them here.
spike@jacob-windows MINGW64 ~/Documents/github.com/spikespaz/search-deflector (master)
$ dub fetch drepl
Fetching drepl 0.2.0...
Please note that you need to use `dub run <pkgname>` or add it to dependencies of your package to actually use/run it. dub does not do actual installation of packages outside of its own ecosystem.
spike@jacob-windows MINGW64 ~/Documents/github.com/spikespaz/search-deflector (master)
$ dub run drepl
Building package drepl in C:\Users\spike\AppData\Local\dub\packages\drepl-0.2.0\drepl\
Fetching linenoise 1.1.0+1.0.0 (getting selected version)...
Fetching colorize 1.0.5 (getting selected version)...
Package stdx-allocator can be upgraded from 2.77.0 to 2.77.2.
Package libdparse can be upgraded from 0.8.0 to 0.8.6.
Use "dub upgrade" to perform those changes.
Performing "debug" build using C:\D\dmd2\windows\bin\dmd.exe for x86.
colorize 1.0.5: building configuration "library"...
stdx-allocator 2.77.0: target for configuration "library" is up to date.
libdparse 0.8.0: target for configuration "library" is up to date.
drepl 0.2.0: building configuration "console"...
..\..\..\..\AppData\Local\dub\packages\drepl-0.2.0\drepl\src\drepl\engines\dmd.d(146,26): Error: template object.dup cannot deduce function from argument types !()(int), candidates are:
C:\D\dmd2\windows\bin\..\..\src\druntime\import\object.d(2086,6): object.dup(T : V[K], K, V)(T aa)
C:\D\dmd2\windows\bin\..\..\src\druntime\import\object.d(2122,6): object.dup(T : V[K], K, V)(T* aa)
C:\D\dmd2\windows\bin\..\..\src\druntime\import\object.d(4191,16): object.dup(T)(T[] a) if (!is(const(T) : T))
C:\D\dmd2\windows\bin\..\..\src\druntime\import\object.d(4207,15): object.dup(T)(const(T)[] a) if (is(const(T) : T))
..\..\..\..\AppData\Local\dub\packages\drepl-0.2.0\drepl\src\drepl\engines\dmd.d(147,26): Error: template object.dup cannot deduce function from argument types !()(int), candidates are:
C:\D\dmd2\windows\bin\..\..\src\druntime\import\object.d(2086,6): object.dup(T : V[K], K, V)(T aa)
C:\D\dmd2\windows\bin\..\..\src\druntime\import\object.d(2122,6): object.dup(T : V[K], K, V)(T* aa)
C:\D\dmd2\windows\bin\..\..\src\druntime\import\object.d(4191,16): object.dup(T)(T[] a) if (!is(const(T) : T))
C:\D\dmd2\windows\bin\..\..\src\druntime\import\object.d(4207,15): object.dup(T)(const(T)[] a) if (is(const(T) : T))
..\..\..\..\AppData\Local\dub\packages\drepl-0.2.0\drepl\src\drepl\engines\dmd.d(150,9): Error: undefined identifier dup2, did you mean template dup(T : V[K], K, V)(T aa)?
..\..\..\..\AppData\Local\dub\packages\drepl-0.2.0\drepl\src\drepl\engines\dmd.d(151,9): Error: undefined identifier dup2, did you mean template dup(T : V[K], K, V)(T aa)?
..\..\..\..\AppData\Local\dub\packages\drepl-0.2.0\drepl\src\drepl\engines\dmd.d(167,9): Error: undefined identifier dup2, did you mean template dup(T : V[K], K, V)(T aa)?
..\..\..\..\AppData\Local\dub\packages\drepl-0.2.0\drepl\src\drepl\engines\dmd.d(168,9): Error: undefined identifier dup2, did you mean template dup(T : V[K], K, V)(T aa)?
..\..\..\..\AppData\Local\dub\packages\drepl-0.2.0\drepl\src\drepl\engines\dmd.d(217,24): Error: undefined identifier dlerror, did you mean function ferror?
..\..\..\..\AppData\Local\dub\packages\drepl-0.2.0\drepl\src\drepl\engines\dmd.d(220,16): Error: undefined identifier dlsym
C:\D\dmd2\windows\bin\dmd.exe failed with exit code 1.
The text was updated successfully, but these errors were encountered:
spikespaz
changed the title
Not installing with DUB dub --version
Not installing with DUB version 1.8.1
Jun 9, 2018
I face the same problem using Windows. The functions dup and dup2 that are causing issues are from core.sys.posix.unistd. From what I can see, they are missing in Windows, and dup is instead resolved to object.dup which doesn't have a compatible signature.
These are the logs, just going to paste them here.
The text was updated successfully, but these errors were encountered: