Pure-D / workspace-d

CLI deprecated, API + functionality moved into https://github.com/Pure-D/serve-d
MIT License
75 stars 15 forks source link

Error: module sourceapi is in file 'sourceapi.d' which cannot be read #23

Closed finnonly closed 8 years ago

finnonly commented 8 years ago
C:\Users\Administrator\Desktop\workspace-d>install.bat

C:\Users\Administrator\Desktop\workspace-d>dub run :installer -- .
Building package workspace-d:installer in C:\Users\Administrator\Desktop\workspace-d\installer\
Performing "debug" build using dmd for x86.
workspace-d:installer 2.7.1+commit.15.gfd0cd7e: building configuration "application"...
Linking...
Running .\installer\iworkspaced.exe .
Welcome to the workspace-d installation guide.
Make sure, you have dub and git installed.

LDC is required on your platform!

Which optional dependencies do you want to install?
[1] DCD - auto completion
[2] DScanner - code linting
[3] dfmt - code formatting
Enter a comma separated list of numbers
Selected [all]:
Using existing git repository for workspace-d
Compiling...
$ dub upgrade
none
Upgrading project in C:\Users\Administrator\Desktop\workspace-d
$ dub build --compiler=ldc2 --combined --build=release
none
Performing "release" build using ldc2 for x86.
workspace-d 2.7.1+commit.15.gfd0cd7e: building configuration "application"...
Error: module sourceapi is in file 'sourceapi.d' which cannot be read
import path[0] = D:/dlang/D/ldc2_64/bin/../include/d/ldc
import path[1] = D:/dlang/D/ldc2_64/bin/../include/d
import path[2] = source
import path[3] = ....AppDataRoamingdubpackagesdub-1.0.0dubsource
import path[4] = ....AppDataRoamingdubpackagesdunit-1.0.12dunitsource
import path[5] = ....AppDataRoamingdubpackagespainlessjson-1.3.7painlessjsonsource
import path[6] = ....AppDataRoamingdubpackagespainlesstraits-0.2.0painlesstraitssource
ldc2 failed with exit code 1.
Error while compiling workspace-d.
Program exited with code 1
WebFreak001 commented 8 years ago

what DMD version is LDC based on? (ldc2 --version)

finnonly commented 8 years ago

DMD32 D Compiler v2.071.1

LDC2 1.1.0-alpha1 (DMD v2.071.1, LLVM 3.9.0git)

WebFreak001 commented 8 years ago

Hmm I'm not sure why it tries to access sourceapi.d. I never ever use such a module name in my code and all dependencies are recent too, so they are probably also not calling that.

Can you run dub build --compiler=ldc2 --build=release -V and post the output here?

finnonly commented 8 years ago
D:\dlang\workspace-d>dub build --compiler=ldc2 --build=release -V
Using dub registry url 'http://code.dlang.org/'
Refreshing local packages (refresh existing: true)...
Looking for local package map at C:\ProgramData\dub\packages\local-packages.json
Looking for local package map at C:\Users\Administrator\AppData\Roaming\dub\packages\local-packages.json
Determined package version using GIT: workspace-d 2.7.1+commit.15.gfd0cd7e
Refreshing local packages (refresh existing: false)...
Looking for local package map at C:\ProgramData\dub\packages\local-packages.json
Looking for local package map at C:\Users\Administrator\AppData\Roaming\dub\packages\local-packages.json
  Found dependency dub 1.0.0
    Version selection for dependency vibe-d (vibe-d) of dub is missing.
    Missing dependency vibe-d ~>0.7.28 (optional) of dub
    Version selection for dependency vibe-d (vibe-d) of dub is missing.
    Missing dependency vibe-d >=0.7.19-rc.4 <0.8.0 (optional) of dub
  Found dependency painlessjson 1.3.7
    Found dependency painlesstraits 0.2.0
    Found dependency dunit 1.0.12
Refreshing local packages (refresh existing: false)...
Looking for local package map at C:\ProgramData\dub\packages\local-packages.json
Looking for local package map at C:\Users\Administrator\AppData\Roaming\dub\packages\local-packages.json
  Found dependency dub 1.0.0
    Version selection for dependency vibe-d (vibe-d) of dub is missing.
    Missing dependency vibe-d ~>0.7.28 (optional) of dub
    Version selection for dependency vibe-d (vibe-d) of dub is missing.
    Missing dependency vibe-d >=0.7.19-rc.4 <0.8.0 (optional) of dub
  Found dependency painlessjson 1.3.7
    Found dependency painlesstraits 0.2.0
    Found dependency dunit 1.0.12
Checking for upgrades.
Using cached upgrade results...
Generating using build
Generate target workspace-d (executable D:\dlang\workspace-d workspace-d)
Generate target dub (staticLibrary C:\Users\Administrator\AppData\Roaming\dub\packages\dub-1.0.0\dub\bin dub)
Generate target dunit (staticLibrary C:\Users\Administrator\AppData\Roaming\dub\packages\dunit-1.0.12\dunit dunit)
Generate target painlessjson (staticLibrary C:\Users\Administrator\AppData\Roaming\dub\packages\painlessjson-1.3.7\painlessjson painlessjson)
Generate target painlesstraits (staticLibrary C:\Users\Administrator\AppData\Roaming\dub\packages\painlesstraits-0.2.0\painlesstraits painlesstraits)
Performing "release" build using ldc2 for x86.
Target 'C:\Users\Administrator\AppData\Roaming\dub\packages\dub-1.0.0\dub\.dub\build\library-release-windows-x86-ldc_0-D2E6C2EAAABD3775C56A9C6653DE09DC\dub.lib' doesn't exist, need rebuild.
dub 1.0.0: building configuration "library"...
Ignoring all import libraries for static library build.
ldc2 -lib -ofC:\Users\Administrator\AppData\Roaming\dub\packages\dub-1.0.0\dub\.dub\build\library-release-windows-x86-ldc_0-D2E6C2EAAABD3775C56A9C6653DE09DC\dub.lib -release -enable-inlining -O -w -oq -od=.dub/obj -d-version=DubUseCurl -d-version=Have_dub -IC:\Users\Administrator\AppData\Roaming\dub\packages\dub-1.0.0\dub\source C:\Users\Administrator\AppData\Roaming\dub\packages\dub-1.0.0\dub\source\dub\commandline.d C:\Users\Administrator\AppData\Roaming\dub\packages\dub-1.0.0\dub\source\dub\compilers\buildsettings.d C:\Users\Administrator\AppData\Roaming\dub\packages\dub-1.0.0\dub\source\dub\compilers\compiler.d C:\Users\Administrator\AppData\Roaming\dub\packages\dub-1.0.0\dub\source\dub\compilers\dmd.d C:\Users\Administrator\AppData\Roaming\dub\packages\dub-1.0.0\dub\source\dub\compilers\gdc.d C:\Users\Administrator\AppData\Roaming\dub\packages\dub-1.0.0\dub\source\dub\compilers\ldc.d C:\Users\Administrator\AppData\Roaming\dub\packages\dub-1.0.0\dub\source\dub\compilers\utils.d C:\Users\Administrator\AppData\Roaming\dub\packages\dub-1.0.0\dub\source\dub\dependency.d C:\Users\Administrator\AppData\Roaming\dub\packages\dub-1.0.0\dub\source\dub\dependencyresolver.d C:\Users\Administrator\AppData\Roaming\dub\packages\dub-1.0.0\dub\source\dub\description.d C:\Users\Administrator\AppData\Roaming\dub\packages\dub-1.0.0\dub\source\dub\dub.d C:\Users\Administrator\AppData\Roaming\dub\packages\dub-1.0.0\dub\source\dub\generators\build.d C:\Users\Administrator\AppData\Roaming\dub\packages\dub-1.0.0\dub\source\dub\generators\cmake.d C:\Users\Administrator\AppData\Roaming\dub\packages\dub-1.0.0\dub\source\dub\generators\generator.d C:\Users\Administrator\AppData\Roaming\dub\packages\dub-1.0.0\dub\source\dub\generators\sublimetext.d C:\Users\Administrator\AppData\Roaming\dub\packages\dub-1.0.0\dub\source\dub\generators\targetdescription.d C:\Users\Administrator\AppData\Roaming\dub\packages\dub-1.0.0\dub\source\dub\generators\visuald.d C:\Users\Administrator\AppData\Roaming\dub\packages\dub-1.0.0\dub\source\dub\init.d C:\Users\Administrator\AppData\Roaming\dub\packages\dub-1.0.0\dub\source\dub\internal\libInputVisitor.d C:\Users\Administrator\AppData\Roaming\dub\packages\dub-1.0.0\dub\source\dub\internal\sdlang\ast.d C:\Users\Administrator\AppData\Roaming\dub\packages\dub-1.0.0\dub\source\dub\internal\sdlang\exception.d C:\Users\Administrator\AppData\Roaming\dub\packages\dub-1.0.0\dub\source\dub\internal\sdlang\lexer.d C:\Users\Administrator\AppData\Roaming\dub\packages\dub-1.0.0\dub\source\dub\internal\sdlang\package.d C:\Users\Administrator\AppData\Roaming\dub\packages\dub-1.0.0\dub\source\dub\internal\sdlang\parser.d C:\Users\Administrator\AppData\Roaming\dub\packages\dub-1.0.0\dub\source\dub\internal\sdlang\symbol.d C:\Users\Administrator\AppData\Roaming\dub\packages\dub-1.0.0\dub\source\dub\internal\sdlang\token.d C:\Users\Administrator\AppData\Roaming\dub\packages\dub-1.0.0\dub\source\dub\internal\sdlang\util.d C:\Users\Administrator\AppData\Roaming\dub\packages\dub-1.0.0\dub\source\dub\internal\utils.d C:\Users\Administrator\AppData\Roaming\dub\packages\dub-1.0.0\dub\source\dub\internal\vibecompat\core\file.d C:\Users\Administrator\AppData\Roaming\dub\packages\dub-1.0.0\dub\source\dub\internal\vibecompat\core\log.d C:\Users\Administrator\AppData\Roaming\dub\packages\dub-1.0.0\dub\source\dub\internal\vibecompat\data\json.d C:\Users\Administrator\AppData\Roaming\dub\packages\dub-1.0.0\dub\source\dub\internal\vibecompat\data\serialization.d C:\Users\Administrator\AppData\Roaming\dub\packages\dub-1.0.0\dub\source\dub\internal\vibecompat\data\utils.d C:\Users\Administrator\AppData\Roaming\dub\packages\dub-1.0.0\dub\source\dub\internal\vibecompat\inet\path.d C:\Users\Administrator\AppData\Roaming\dub\packages\dub-1.0.0\dub\source\dub\internal\vibecompat\inet\url.d C:\Users\Administrator\AppData\Roaming\dub\packages\dub-1.0.0\dub\source\dub\package_.d C:\Users\Administrator\AppData\Roaming\dub\packages\dub-1.0.0\dub\source\dub\packagemanager.d C:\Users\Administrator\AppData\Roaming\dub\packages\dub-1.0.0\dub\source\dub\packagesupplier.d C:\Users\Administrator\AppData\Roaming\dub\packages\dub-1.0.0\dub\source\dub\platform.d C:\Users\Administrator\AppData\Roaming\dub\packages\dub-1.0.0\dub\source\dub\project.d C:\Users\Administrator\AppData\Roaming\dub\packages\dub-1.0.0\dub\source\dub\recipe\io.d C:\Users\Administrator\AppData\Roaming\dub\packages\dub-1.0.0\dub\source\dub\recipe\json.d C:\Users\Administrator\AppData\Roaming\dub\packages\dub-1.0.0\dub\source\dub\recipe\packagerecipe.d C:\Users\Administrator\AppData\Roaming\dub\packages\dub-1.0.0\dub\source\dub\recipe\sdl.d C:\Users\Administrator\AppData\Roaming\dub\packages\dub-1.0.0\dub\source\dub\semver.d C:\Users\Administrator\AppData\Roaming\dub\packages\dub-1.0.0\dub\source\dub\version_.d
Error: module UsersAdministratorAppDataRoamingdubpackagesdub-1.0.0dubsourcedubcommandline is in file 'C:UsersAdministratorAppDataRoamingdubpackagesdub-1.0.0dubsourcedubcommandline.d' which cannot be read
import path[0] = D:/dlang/D/ldc2_64/bin/../include/d/ldc
import path[1] = D:/dlang/D/ldc2_64/bin/../include/d
import path[2] = C:UsersAdministratorAppDataRoamingdubpackagesdub-1.0.0dubsource
FAIL C:\Users\Administrator\AppData\Roaming\dub\packages\dub-1.0.0\dub\.dub\build\library-release-windows-x86-ldc_0-D2E6C2EAAABD3775C56A9C6653DE09DC\ dub staticLibrary
ldc2 failed with exit code 1.
finnonly commented 8 years ago

I try to manually install configuration, but the following warning appears on vscode: Workspace-D is unresponsive. Auto completion might not work

WebFreak001 commented 8 years ago

Hm I think this might be an issue with LDC because it tries to do some weird shit with the import paths dub passes to it. Maybe the \?

Do you mean you tried to compile it with DMD? Well DMD has some threading bug in phobos which causes it to hang. Maybe I will add a custom SpawnProcess method in the future for windows so it will work better.

finnonly commented 8 years ago

Perhaps there is no '/'! Yes, I use cmd compiled, but it will happen after manual installation configuration! Can the release when it is compiled?

WebFreak001 commented 8 years ago

Bundling executables is probably a good idea. Also maybe resetting the version because this doesn't quite feel like version 2.x.x yet. If only I didn't start at 1.0.0

Vild commented 8 years ago

@WebFreak001, don't break http://semver.org/ , it is exist for a reason.

WebFreak001 commented 8 years ago

so workspace-d-rewrite incoming?

Rock48 commented 8 years ago

I was having this issue and found out that is is an LDC bug. It was fixed in build 1983.