Open Sally-Xu opened 9 years ago
Are you using visual studio to run?
Try running gulp reset
from the command line. Of that works, then we can narrow in on the problem.
yes, I'm using visual studio's task runner.
Tried to run gulp reset from command line, still not working. I can see testsite/lib/minerva folder, but when I cd to this folder, then run "dir" command, I got this:
dir : Could not find a part of the path 'D:\Project\FaydeProject\Fayde\testsite\lib\minerva'. At line:1 char:1
- CategoryInfo : ReadError: (D:\Project\Fayd...ite\lib\minerva:String) [Get-ChildI
Exception
- FullyQualifiedErrorId : DirIOError,Microsoft.PowerShell.Commands.GetChildItemCommand
When I run "Dir" under testsite/lib folder, I can see lib/fayde is a directory. but other folders are created as "Junction", they are pointing to D:\Project\lib\XXX which doesn't exist. They should be pointing to the lib folder under the Fayde project which is "D:\Project\FaydeProject\Fayde\lib\XXX" in my case.
Please try with latest.
Still not working. Still pointing to D:\Project\lib\XXX.
Can you run node -v
and npm -v
?
node -v : v0.10.28 npm -v: 1.4.9
Just updated node to v0.12.7 and npm to v.2.11.3.
still not working.
I was able to reproduce it. Are you using win10?
Found the issue to this. gulp-symlink
uses symlinks as a first attempt. It falls back to using junctions which do not support relative symlinks. Since Fayde is using relative symlinks, it's intepreting the link incorrectly.
I will work on converting symlinks to absolute to resolve this later.
As a workaround, run this with admin privileges. The symlink attempt is failing due to a permissions issue.
yup, that worked. I usually always set to open visual studio as admin. I just forgot to do that after installing vs 2015.
Just updated the latest Fayde project, Looks like you switched from Grunt to Gulp now. Somehow running Gulp reset or symlink only creates empty lib structure under the testsite, test and stress, but no files under those folders.
Looks like Gulp symlink has a problem, here is the error message:
cmd.exe /c gulp -b "D:\Project\FaydeProject\Fayde" --color --gulpfile "D:\Project\FaydeProject\Fayde\Gulpfile.js" symlink-testsite [11:58:54] Using gulpfile D:\Project\FaydeProject\Fayde\Gulpfile.js [11:58:54] Starting 'symlink-testsite'... [11:58:54] gulp-symlink:D:\Project\FaydeProject\Fayde\lib\minerva symlinked to testsite\lib\minerva [11:58:54] 'symlink-testsite' errored after 44 ms [11:58:54] Error in plugin 'gulp-symlink' Message: EEXIST, symlink 'D:\Project\lib\minerva' Details: errno: 47 code: EEXIST path: D:\Project\lib\minerva [11:58:54] gulp-symlink:D:\Project\FaydeProject\Fayde\lib\nullstone symlinked to testsite\lib\nullstone [11:58:54] gulp-symlink:D:\Project\FaydeProject\Fayde\lib\perfex symlinked to testsite\lib\perfex [11:58:54] gulp-symlink:D:\Project\FaydeProject\Fayde\lib\requirejs symlinked to testsite\lib\requirejs [11:58:54] gulp-symlink:D:\Project\FaydeProject\Fayde\lib\requirejs-text symlinked to testsite\lib\requirejs-text [11:58:54] gulp-symlink:D:\Project\FaydeProject\Fayde\dist symlinked to testsite\lib\fayde\dist
Looks like it is not looking for the correct lib path.