spring-attic / sagan

The spring.io site and reference application
http://spring.io
BSD 3-Clause "New" or "Revised" License
3.14k stars 1.52k forks source link

Gradle build error on windows #336

Closed DarrenRatcliffe closed 10 years ago

DarrenRatcliffe commented 10 years ago

I am getting a build error when performing the Gradle build command:

C:\Users\a538209\sagan\sagan-site>c:\users\a538209\sagan\gradlew build -x check :sagan-client:compileJava UP-TO-DATE :sagan-client:processResources UP-TO-DATE :sagan-client:classes UP-TO-DATE :sagan-client:npmInstall FAILED

FAILURE: Build failed with an exception.

I have npm installed and it can be called fine from the cmd prompt?

cbeams commented 10 years ago

@bclozel, might this be the race condition problem with npm rearing its head again?

flemer commented 10 years ago

I'm having the same problem

cbeams commented 10 years ago

Thanks, @flemer. We'll look into this asap and get back.

briancavalier commented 10 years ago

@DarrenRatcliffe @flemer what version(s) of npm are you running?

flemer commented 10 years ago

npm version 1.4.3 node v0.10.26

bclozel commented 10 years ago

Could you run the same command with the --info flag to get more logs (or manually run npm install in the sagan-client folder?).

@flemer @DarrenRatcliffe Many npm users had weird IO/permission issues on windows, some may be related to antivirus software or Microsoft security essentials (see npm/npm#4997). Could you run npm cache clean in the sagan-client folder and try again?

@briancavalier aren't we misusing the prepublish task in our package.json? Shouldn't we use the postinstall task instead?

briancavalier commented 10 years ago

@bclozel npm specifically recommends not using postinstall, and using prepublish for these kinds of things. I agree it's very unintuitive :/ I don't mind deviating from their recommendation if we need to, tho.

bclozel commented 10 years ago

@briancavalier this is confusing, indeed. I can see why preinstall/install shouldn't be used, but find strange that prepublish is advertised over postinstall. To me, postinstall should fetch additional resources (not dependent on the OS), and prepublish should generate new artifacts from the current project before publishing.

Anyway, both are supposed to run after a complete install, so I guess it has nothing to do with our .bin directory not being there.

arey commented 10 years ago

For your information, I've got the same issue than DarrenRatcliffe on Windows 7, with pre-installed npm 1.2.15 and NodeJS 0.10.2 I've tried to execute the npm cache clean command in the sagan-client but the error remains.

bclozel commented 10 years ago

@arey @flemer @DarrenRatcliffe I finally managed to reproduce this in a Win7 VM - it was previously working on that same VM, so I don't know what change triggered this issue.

Anyway could you edit your sagan-client\build.gradle file and replace it with this?

import org.gradle.api.tasks.Exec
import org.apache.tools.ant.taskdefs.condition.Os

apply plugin: 'java'

jar {
    from 'dist'
    eachFile { details ->
        details.path = details.path.startsWith('META-INF') ?: 'static/'+details.path
    }
    // Jar contains duplicate empty folders, see Gradle issue:
    // http://issues.gradle.org/browse/GRADLE-1830
    // so we need to set includeEmptyDirs to false
    includeEmptyDirs = false
}

task npmInstall(type:Exec) {
    // be Gradle-like and suppress boilerplate logging
    logging.captureStandardOutput LogLevel.INFO
    // but we do always want to see downloads in the log
    logging.captureStandardError LogLevel.LIFECYCLE
    inputs.files "package.json", "bower.json"
    outputs.dir "node_modules"
    if(Os.isFamily(Os.FAMILY_WINDOWS) {
      commandLine 'cmd', '/c', 'npm', 'install'
    } else {
      commandLine 'npm', 'install'
    }    
}

task npmBuild(dependsOn: npmInstall, type:Exec) {
    logging.captureStandardOutput LogLevel.INFO
    logging.captureStandardError LogLevel.INFO
    inputs.dir "src"
    inputs.file "gulpfile.js"
    outputs.dir "dist"
    if(Os.isFamily(Os.FAMILY_WINDOWS) {
      commandLine 'cmd', '/c', 'npm', 'run', 'build'
    } else {
      commandLine 'npm', 'run', 'build'
    }
}

jar.dependsOn npmBuild

idea.module {
    // see .gitignore
    excludeDirs += [
            file('dist'),
            file('src/lib'),
            file('node_modules')
    ]
}

Note: when running thoses tasks (either with git bash or the regular win cmd), I printed the full path with println environment in the gradle script. All env variables were correctly set, so the problem is with the way commands are issued...

bclozel commented 10 years ago

@arey Wait, I didn't commit/merge anything yet in the repo - so nothing has changed in that part of the application. So it's working now?

arey commented 10 years ago

@bclozel I've just removed my comment. Your right. I just launch gradlew and not gradlew build I'm testing your fix. A ) is missing at the end of the if(Os.isFamily(Os.FAMILY_WINDOWS)) { statement

import org.gradle.api.tasks.Exec
import org.apache.tools.ant.taskdefs.condition.Os

apply plugin: 'java'

jar {
    from 'dist'
    eachFile { details ->
        details.path = details.path.startsWith('META-INF') ?: 'static/'+details.path
    }
    // Jar contains duplicate empty folders, see Gradle issue:
    // http://issues.gradle.org/browse/GRADLE-1830
    // so we need to set includeEmptyDirs to false
    includeEmptyDirs = false
}

task npmInstall(type:Exec) {
    // be Gradle-like and suppress boilerplate logging
    logging.captureStandardOutput LogLevel.INFO
    // but we do always want to see downloads in the log
    logging.captureStandardError LogLevel.LIFECYCLE
    inputs.files "package.json", "bower.json"
    outputs.dir "node_modules"
    if(Os.isFamily(Os.FAMILY_WINDOWS)) {
      commandLine 'cmd', '/c', 'npm', 'install'
    } else {
      commandLine 'npm', 'install'
    }    
}
task npmBuild(dependsOn: npmInstall, type:Exec) {
    logging.captureStandardOutput LogLevel.INFO
    logging.captureStandardError LogLevel.INFO
    inputs.dir "src"
    inputs.file "gulpfile.js"
    outputs.dir "dist"
    if(Os.isFamily(Os.FAMILY_WINDOWS)) {
      commandLine 'cmd', '/c', 'npm', 'run', 'build'
    } else {
      commandLine 'npm', 'run', 'build'
    }
}

jar.dependsOn npmBuild

idea.module {
    // see .gitignore
    excludeDirs += [
            file('dist'),
            file('src/lib'),
            file('node_modules')
    ]
}

I've now got the following error:

n-client:npmInstall
D

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':sagan-client:npmInstall'.
> Process 'command 'cmd'' finished with non-zero exit value 34

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED
flemer commented 10 years ago

Ok, npmInstall is working now, but npmBuild is failing.

C:\projects\sagan\sagan-client>npm run build

> sagan@ build C:\projects\sagan\sagan-client
> gulp build

[gulp] Using file C:\projects\sagan\sagan-client\gulpfile.js
[gulp] Working directory changed to C:\projects\sagan\sagan-client
[gulp] Running 'minify-css'...
[gulp] Running 'build-modules'...
[gulp] Running 'copy-assets'...
[gulp] Running 'bower-files'...
warning: grokking "src/run.js": Did not inspect code inside `.then()` callback(s).
`appRoot` is inferred to be "src"
`baseUrl` resolved to "C:\projects\sagan\sagan-client/src/"
`output` resolved to "C:\projects\sagan\sagan-client/C:\projects\sagan\sagan-client\.gulpcram.js"
Compiling preloads
Compiling poly/es5
Compiling poly/object
Compiling poly/string
Compiling poly/date
Compiling poly/array
Compiling poly/function
Compiling poly/json
Compiling poly/xhr
[gulp] Finished 'minify-css' in 1.25 s
Compiling poly/lib/_base
Compiling poly/lib/_base
Compiling poly/lib/_base
Compiling poly/lib/_base
Compiling poly/support/json3
Compiling poly/lib/_base
Compiling poly/lib/_array
[gulp] Finished 'copy-assets' in 1.26 s
Error caught from uglify: Unexpected character '#' in C:\projects\sagan\sagan-client\src\lib\jquery\build\release-notes.js. Returning unminifed code
Error caught from uglify: Unexpected character '#' in C:\projects\sagan\sagan-client\src\lib\jquery\build\release.js. Returning unminifed code
Error caught from uglify: Unexpected token: eof (undefined) in C:\projects\sagan\sagan-client\src\lib\jquery\src\intro.js. Returning unminifed code
Error caught from uglify: Unexpected token: punc (}) in C:\projects\sagan\sagan-client\src\lib\jquery\src\outro.js. Returning unminifed code
Error caught from uglify: Unexpected token: punc (:) in C:\projects\sagan\sagan-client\src\lib\jquery\test\data\json_obj.js. Returning unminifed code
Compiling poly/lib/_base
[gulp] Finished 'bower-files' in 9.6 s
Compiling modules
Compiling app/main
Compiling jquery
Compiling curl/loader/legacy
Compiling curl/loader/cjsm11
Excluded curl/_privileged
Compiling feature/search/main
Compiling feature/searchFacets/main
Compiling feature/filterableList/main
Compiling feature/clipboardButtons/main
Compiling feature/codeSidebar/main
Compiling feature/stsImport/main
Compiling feature/mobileSupport/main
Compiling feature/infoPopups/main
Compiling feature/platformDownloads/main
Compiling feature/formWidgets/main
Compiling feature/prettify/main
Compiling feature/newsletterSubscription/main
Compiling feature/map/main
Compiling most/most
Compiling jquery
Compiling curl/plugin/_fetchText
Excluded curl/_privileged
Compiling feature/search/SearchController
Compiling jquery
Compiling jquery
Compiling feature/searchFacets/filterForm
Compiling feature/filterableList/filterableList
Compiling feature/filterableList/getUrlFilter
Compiling jquery
Compiling ZeroClipboard
Compiling feature/clipboardButtons/buttonConnector
Compiling feature/clipboardButtons/copyButtonProvider
Compiling curl/plugin/text!./button.html
Compiling jquery
Compiling bootstrap
Compiling jquery
Compiling jquery
Compiling jquery
Compiling jquery
Compiling platform/os
Compiling jquery
Compiling jquery
Compiling bootstrap-datetimepicker
Compiling jquery
Compiling prettify
Compiling jquery
Compiling curl/plugin/text!./subscription.html
Compiling jquery
Compiling most/Stream
Compiling most/async
Compiling jquery
Compiling feature/filterableList/filter
Compiling feature/filterableList/attributeMatcher
Compiling jquery
Compiling jquery
Compiling bootstrap
Compiling most/async
Compiling jquery
Writing prefix
cram failed:  ENOENT, open 'C:\projects\sagan\sagan-client\C:\projects\sagan\sagan-client\.gulpcram.js'
Error: ENOENT, open 'C:\projects\sagan\sagan-client\C:\projects\sagan\sagan-client\.gulpcram.js'

C:\projects\sagan\sagan-client\node_modules\when\when.js:927
                                throw fatalError;
                                      ^
TypeError: undefined is not a function
    at cramError (C:\projects\sagan\sagan-client\node_modules\gulp-cram\index.js:41:19)
    at Promise.RejectedPromise._when (C:\projects\sagan\sagan-client\node_modules\when\when.js:472:47)
    at Array.deliver [as 0] (C:\projects\sagan\sagan-client\node_modules\when\when.js:108:7)
    at runHandlers (C:\projects\sagan\sagan-client\node_modules\when\when.js:370:12)
    at Array.1 (C:\projects\sagan\sagan-client\node_modules\when\when.js:130:5)
    at runHandlers (C:\projects\sagan\sagan-client\node_modules\when\when.js:370:12)
    at drainQueue (C:\projects\sagan\sagan-client\node_modules\when\when.js:819:3)
    at process._tickCallback (node.js:415:13)

npm ERR! sagan@ build: `gulp build`
npm ERR! Exit status 8
npm ERR!
npm ERR! Failed at the sagan@ build script.
npm ERR! This is most likely a problem with the sagan package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     gulp build
npm ERR! You can get their info via:
npm ERR!     npm owner ls sagan
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "build"
npm ERR! cwd C:\projects\sagan\sagan-client
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     C:\projects\sagan\sagan-client\npm-debug.log
npm ERR! not ok code 0

npm-debug.log:

0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\\\node.exe',
1 verbose cli   'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'run',
1 verbose cli   'build' ]
2 info using npm@1.4.3
3 info using node@v0.10.26
4 verbose node symlink C:\Program Files\nodejs\\node.exe
5 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
6 info prebuild sagan@
7 info build sagan@
8 verbose unsafe-perm in lifecycle true
9 info sagan@ Failed to exec build script
10 error sagan@ build: `gulp build`
10 error Exit status 8
11 error Failed at the sagan@ build script.
11 error This is most likely a problem with the sagan package,
11 error not with npm itself.
11 error Tell the author that this fails on your system:
11 error     gulp build
11 error You can get their info via:
11 error     npm owner ls sagan
11 error There is likely additional logging output above.
12 error System Windows_NT 6.1.7601
13 error command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "build"
14 error cwd C:\projects\sagan\sagan-client
15 error node -v v0.10.26
16 error npm -v 1.4.3
17 error code ELIFECYCLE
18 verbose exit [ 1, true ]
bclozel commented 10 years ago

Thanks, really! @arey could you delete sagan-client\node_modules, re-run the command with the --info flag? @flemer I've opened bclozel/gulp-cram/issues/5 to get this fixed...

arey commented 10 years ago

@bclozel I've got the same error after deleting sagan-client\node_modules

n-client:npmInstall
D
:sagan-client:npmInstall (Thread[main,5,main]) completed. Took 1 mins 7.176 secs.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':sagan-client:npmInstall'.
> Process 'command 'cmd'' finished with non-zero exit value 50

* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.

BUILD FAILED

Total time: 1 mins 12.795 secs
Stopped 0 compiler daemon(s).
cbeams commented 10 years ago

Thanks, Brian. @arey, @flemer, @DarrenRatcliffe, it would be great to hear back as to whether you can now build successfully.

arey commented 10 years ago

@cbeams I've done a git pull then a gradlew build -x check and I still have the following error:

ttp
04 https://registry.npmjs.org/delayed-stream/0.0.5
pm
WARN prefer global bower@1.3.2 should be installed with -g
pm
sagan-client:npmInstall
AILED
FAILURE: Build failed with an exception.
...
* What went wrong:
Execution failed for task ':sagan-client:npmInstall'.
> Process 'command 'cmd'' finished with non-zero exit value 1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 57.684 secs

flemer commented 10 years ago

:sagan-client:npmInstall task works for me, but I have another error for :sagan-client:npmBuild

Running it manually to get more details:

C:\projects\sagan\sagan-client>npm run build

> sagan@ build C:\projects\sagan\sagan-client
> gulp build

[gulp] Using gulpfile C:\projects\sagan\sagan-client\gulpfile.js
[gulp] Starting 'minify-css'...
[gulp] Starting 'build-modules'...
[gulp] Starting 'copy-assets'...
[gulp] Starting 'bower-files'...
warning: grokking "src/run.js": Did not inspect code inside `.then()` callback(s).
`appRoot` is inferred to be "src"
`baseUrl` resolved to "C:\projects\sagan\sagan-client/src/"
`output` resolved to "C:\projects\sagan\sagan-client/.gulpcram.js"
Compiling preloads
Compiling poly/es5
Compiling poly/object
Compiling poly/string
Compiling poly/date
Compiling poly/array
Compiling poly/function
Compiling poly/json
Compiling poly/xhr
[gulp] Finished 'minify-css' after 1.25 s
Compiling poly/lib/_base
Compiling poly/lib/_base
Compiling poly/lib/_base
Compiling poly/lib/_base
Compiling poly/lib/_array
Compiling poly/lib/_base
Compiling poly/support/json3
[gulp] Finished 'copy-assets' after 1.26 s
Error caught from uglify: Unexpected character '#' in C:\projects\sagan\sagan-client\src\lib\jquery\build\release-notes.js. Returning unminifed code
Error caught from uglify: Unexpected character '#' in C:\projects\sagan\sagan-client\src\lib\jquery\build\release.js. Returning unminifed code
Error caught from uglify: Unexpected token: eof (undefined) in C:\projects\sagan\sagan-client\src\lib\jquery\src\intro.js. Returning unminifed code
Error caught from uglify: Unexpected token: punc (}) in C:\projects\sagan\sagan-client\src\lib\jquery\src\outro.js. Returning unminifed code
Error caught from uglify: Unexpected token: punc (:) in C:\projects\sagan\sagan-client\src\lib\jquery\test\data\json_obj.js. Returning unminifed code
Compiling poly/lib/_base
Compiling modules
Compiling app/main
Compiling jquery
Compiling curl/loader/legacy
Compiling curl/loader/cjsm11
Excluded curl/_privileged
Compiling feature/search/main
Compiling feature/searchFacets/main
Compiling feature/filterableList/main
Compiling feature/clipboardButtons/main
Compiling feature/codeSidebar/main
Compiling feature/stsImport/main
Compiling feature/mobileSupport/main
Compiling feature/infoPopups/main
Compiling feature/platformDownloads/main
Compiling feature/formWidgets/main
Compiling feature/prettify/main
Compiling feature/newsletterSubscription/main
Compiling feature/map/main
Compiling most/most
Compiling jquery
[gulp] Finished 'bower-files' after 9.49 s
Compiling curl/plugin/_fetchText
Excluded curl/_privileged
Compiling feature/search/SearchController
Compiling jquery
Compiling jquery
Compiling feature/searchFacets/filterForm
Compiling feature/filterableList/filterableList
Compiling feature/filterableList/getUrlFilter
Compiling jquery
Compiling ZeroClipboard
Compiling feature/clipboardButtons/buttonConnector
Compiling feature/clipboardButtons/copyButtonProvider
Compiling curl/plugin/text!./button.html
Compiling jquery
Compiling bootstrap
Compiling jquery
Compiling jquery
Compiling jquery
Compiling jquery
Compiling jquery
Compiling platform/os
Compiling jquery
Compiling bootstrap-datetimepicker
Compiling jquery
Compiling prettify
Compiling jquery
Compiling curl/plugin/text!./subscription.html
Compiling jquery
Compiling most/Stream
Compiling most/async
cram failed:  UNKNOWN, open 'C:\projects\sagan\sagan-client\.cram\meta\jquery.json'
Error: UNKNOWN, open 'C:\projects\sagan\sagan-client\.cram\meta\jquery.json'
Compiling jquery
Compiling feature/filterableList/filter
Compiling feature/filterableList/attributeMatcher
Compiling jquery

C:\projects\sagan\sagan-client\node_modules\when\lib\decorators\flow.js:50
                                setTimer(function() { throw e; }, 0);
                                                            ^
[←[32mgulp←[39m] Error in plugin '←[36mgulp-cram←[39m': [←[32mgulp←[39m] Error in plugin ...

 (...)

    at cramError (C:\projects\sagan\sagan-client\node_modules\gulp-cram\index.js:42:19)
    at tryCatchReject (C:\projects\sagan\sagan-client\node_modules\when\lib\makePromise.js:738:14)
    at RejectedHandler.when (C:\projects\sagan\sagan-client\node_modules\when\lib\makePromise.js:634:7)
    at ThenableHandler.DeferredHandler.run (C:\projects\sagan\sagan-client\node_modules\when\lib\makePromise.js:417:13)
    at Scheduler._drainQueue (C:\projects\sagan\sagan-client\node_modules\when\lib\scheduler.js:42:14)
    at Scheduler.drainQueue (C:\projects\sagan\sagan-client\node_modules\when\lib\scheduler.js:19:9)
    at process._tickCallback (node.js:415:13)
    at cramError (C:\projects\sagan\sagan-client\node_modules\gulp-cram\index.js:42:19)
    at tryCatchReject (C:\projects\sagan\sagan-client\node_modules\when\lib\makePromise.js:738:14)
    at RejectedHandler.when (C:\projects\sagan\sagan-client\node_modules\when\lib\makePromise.js:634:7)
    at ThenableHandler.DeferredHandler.run (C:\projects\sagan\sagan-client\node_modules\when\lib\makePromise.js:417:13)
    at Scheduler._drainQueue (C:\projects\sagan\sagan-client\node_modules\when\lib\scheduler.js:42:14)
    at Scheduler.drainQueue (C:\projects\sagan\sagan-client\node_modules\when\lib\scheduler.js:19:9)
    at process._tickCallback (node.js:415:13)

npm ERR! sagan@ build: `gulp build`
npm ERR! Exit status 8
npm ERR!
npm ERR! Failed at the sagan@ build script.
npm ERR! This is most likely a problem with the sagan package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     gulp build
npm ERR! You can get their info via:
npm ERR!     npm owner ls sagan
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "build"
npm ERR! cwd C:\projects\sagan\sagan-client
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     C:\projects\sagan\sagan-client\npm-debug.log
npm ERR! not ok code 0
cbeams commented 10 years ago

Thanks @flemer, @arey; I'm reopening this as it looks like we've got more work to do here.

bclozel commented 10 years ago

@arey could you manually run npm install in the sagan-client dir, like @flemer did? Thanks again - some of those issues are hard to reproduce and your help is much appreciated.

@flemer the issue you're facing is now related to #353, as it is not specific to windows anymore. Work will happen there and I'll ping you when necessary.

arey commented 10 years ago

@bclozel I have removed the node_modules sub-directory then I ran a npm install in the sagan-client. I've got the following error;

3760 error Error: No compatible version found: gulp-util@'^2.2.0'
3760 error Valid install targets:
3760 error ["0.0.1","1.0.0","1.1.0","1.1.1","1.2.0","1.3.0","2.0.0","2.1.1","2.1.2","2.1.3","2.1.4","2.2.0","2.2.1","2.2.2","2.2.3","2.2.5","2.2.6","2.2.7","2.2.8","2.2.9","2.2.10","2.2.11","2.2.12","2.2.13","2.2.14"]
3760 error     at installTargetsError (C:\Software\Dev\nodejs\node_modules\npm\lib\cache.js:685:10)
3760 error     at C:\Software\Dev\nodejs\node_modules\npm\lib\cache.js:607:10
3760 error     at saved (C:\Software\Dev\nodejs\node_modules\npm\node_modules\npm-registry-client\lib\get.js:138:7)
3760 error     at Object.oncomplete (fs.js:107:15)
3761 error If you need help, you may report this log at:
3761 error     <http://github.com/isaacs/npm/issues>
3761 error or email it to:
3761 error     <npm-@googlegroups.com>
3762 error System Windows_NT 6.1.7601
3763 error command "C:\\Software\\Dev\\nodejs\\\\node.exe" "C:\\Software\\Dev\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
3764 error cwd D:\jtb\workspaces\WS_Sagan\sagan\sagan-client
3765 error node -v v0.10.2
3766 error npm -v 1.2.15
bclozel commented 10 years ago

@arey it looks like your git pull did not work out, since it's trying to get an older version of gulp-util and we're using a newer one as of 685a0012e2d240.

Maybe those commands can solve this issue then:

Thanks!

Note: it seems gulp-util developers retired this version altogether from npm, weird.

arey commented 10 years ago

@bclozel I manually removed the saga-client\node_modules then I've tried your 2 command. I've got the following error:

npm http 304 https://registry.npmjs.org/vinyl-fs
npm ERR! Error: No compatible version found: pretty-hrtime@'^0.2.0'
npm ERR! Valid install targets:
npm ERR! ["0.2.0","0.2.1"]
npm ERR!     at installTargetsError (C:\Software\Dev\nodejs\node_modules\npm\lib\cache.js:685:10)
npm ERR!     at C:\Software\Dev\nodejs\node_modules\npm\lib\cache.js:607:10
npm ERR!     at saved (C:\Software\Dev\nodejs\node_modules\npm\node_modules\npm-registry-client\lib\get.js:138:7)
npm ERR!     at Object.oncomplete (fs.js:107:15)
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Software\\Dev\\nodejs\\\\node.exe" "C:\\Software\\Dev\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! cwd D:\jtb\workspaces\WS_Sagan\sagan\sagan-client
npm ERR! node -v v0.10.2
npm ERR! npm -v 1.2.15
npm http 304 https://registry.npmjs.org/semver
npm http 304 https://registry.npmjs.org/deprecated
npm http 304 https://registry.npmjs.org/chalk
npm http 304 https://registry.npmjs.org/liftoff
npm http 304 https://registry.npmjs.org/archy
npm http 304 https://registry.npmjs.org/gulp-util
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     C:\projects\sagan\sagan-client\npm-debug.log
npm ERR! not ok code 0
badboy605 commented 10 years ago

I am having the same issue as arey did, log as below,

C:\Users\awu\Documents\sagan>gradlew.bat :sagan-site:bootRun --info Starting Build Settings evaluated using settings file 'C:\Users\awu\Documents\sagan\settings.gr adle'. Projects loaded. Root project using build file 'C:\Users\awu\Documents\sagan\bui ld.gradle'. Included projects: [root project 'sagan', project ':sagan-client', project ':sag an-common', project ':sagan-indexer', project ':sagan-site'] Evaluating root project 'sagan' using build file 'C:\Users\awu\Documents\sagan\b uild.gradle'. Evaluating project ':sagan-client' using build file 'C:\Users\awu\Documents\saga n\sagan-client\build.gradle'. Evaluating project ':sagan-common' using build file 'C:\Users\awu\Documents\saga n\sagan-common\build.gradle'. Configuring agent Evaluating project ':sagan-indexer' using build file 'C:\Users\awu\Documents\sag an\sagan-indexer\build.gradle'. Configuring agent Evaluating project ':sagan-site' using build file 'C:\Users\awu\Documents\sagan\ sagan-site\build.gradle'. Configuring agent All projects evaluated. Selected primary task ':sagan-site:bootRun' Tasks to be executed: [task ':sagan-client:compileJava', task ':sagan-client:pro cessResources', task ':sagan-client:classes', task ':sagan-client:npmInstall', t ask ':sagan-client:npmBuild', task ':sagan-client:jar', task ':sagan-common:comp ileJava', task ':sagan-common:processResources', task ':sagan-common:classes', t ask ':sagan-common:jar', task ':sagan-site:compileJava', task ':sagan-site:proce ssResources', task ':sagan-site:classes', task ':sagan-site:findMainClass', task ':gitMetadata', task ':sagan-site:writeGitPropertiesFile', task ':sagan-site:bo otRun'] :sagan-client:compileJava (Thread[main,5,main]) started. :sagan-client:compileJava Skipping task ':sagan-client:compileJava' as it has no source files. :sagan-client:compileJava UP-TO-DATE :sagan-client:compileJava (Thread[main,5,main]) completed. Took 0.012 secs. :sagan-client:processResources (Thread[main,5,main]) started. :sagan-client:processResources Skipping task ':sagan-client:processResources' as it has no source files. :sagan-client:processResources UP-TO-DATE :sagan-client:processResources (Thread[main,5,main]) completed. Took 0.009 secs.

:sagan-client:classes (Thread[main,5,main]) started. :sagan-client:classes Skipping task ':sagan-client:classes' as it has no actions. :sagan-client:classes UP-TO-DATE :sagan-client:classes (Thread[main,5,main]) completed. Took 0.011 secs. :sagan-client:npmInstall (Thread[main,5,main]) started. :sagan-client:npmInstall Executing task ':sagan-client:npmInstall' (up-to-date check took 1 mins 0.972 se cs) due to: No history is available. Starting process 'command 'cmd''. Working directory: C:\Users\awu\Documents\saga n\sagan-client Command: cmd /c npm install Successfully started process 'command 'cmd''

sagan@ prepublish C:\Users\awu\Documents\sagan\sagan-client bower install --config.interactive=false

                                                                           :

sagan-client:npmInstall
FAILED :sagan-client:npmInstall (Thread[main,5,main]) completed. Took 1 mins 1.997 secs .

FAILURE: Build failed with an exception.

BUILD FAILED

Total time: 1 mins 8.273 secs Stopped 0 compiler daemon(s).

C:\Users\awu\Documents\sagan>

bclozel commented 10 years ago

@badboy605 could you manually run "npm install" in your sagan-client folder and copy/paste the output here? I'll update node dependencies anyway, it seems that many issues like this were fixed lately.

badboy605 commented 10 years ago

@bclozel Thx! I have done "npm install" in sagan-client folder and it worked now, I clearly remembered I have done the same before posting but it didn't work ;s

But now I have another issue is the building process is stuck at 94% without any failed msg for more than 20 mins, and I have tried 3 times. output as below, ran the command with --info,

Executing task ':sagan-site:findMainClass' (up-to-date check took 0.001 secs) du
e to:
  Task has not declared any outputs.
:sagan-site:findMainClass (Thread[main,5,main]) completed. Took 0.004 secs.
:gitMetadata (Thread[main,5,main]) started.
:gitMetadata
Executing task ':gitMetadata' (up-to-date check took 0.0 secs) due to:
  Task has not declared any outputs.
:gitMetadata (Thread[main,5,main]) completed. Took 0.163 secs.
:sagan-site:writeGitPropertiesFile (Thread[main,5,main]) started.
:sagan-site:writeGitPropertiesFile
Executing task ':sagan-site:writeGitPropertiesFile' (up-to-date check took 0.0 s
ecs) due to:
  Task has not declared any outputs.
:sagan-site:writeGitPropertiesFile (Thread[main,5,main]) completed. Took 0.016 s
ecs.
:sagan-site:bootRun (Thread[main,5,main]) started.
:sagan-site:bootRun
Executing task ':sagan-site:bootRun' (up-to-date check took 0.0 secs) due to:
  Task has not declared any outputs.
Adding managed exclusion rule commons-logging:commons-logging to DefaultExternal
ModuleDependency{group='org.springframework.boot', name='spring-boot-starter-web
', version='null', configuration='default'}
Adding managed exclusion rule commons-logging:commons-logging to DefaultExternal
ModuleDependency{group='org.springframework.boot', name='spring-boot-starter-act
uator', version='null', configuration='default'}
Adding managed exclusion rule commons-logging:commons-logging to DefaultExternal
ModuleDependency{group='org.springframework.boot', name='spring-boot-starter-sec
urity', version='null', configuration='default'}
Adding managed exclusion rule commons-logging:commons-logging to DefaultExternal
ModuleDependency{group='org.apache.httpcomponents', name='httpclient', version='
4.3', configuration='default'}
Adding classpath: [C:\Users\awu\Documents\sagan\sagan-site\src\main\resources]
Starting process 'command 'C:\Program Files\Java\jdk1.8.0_05\bin\java.exe''. Wor
king directory: C:\Users\awu\Documents\sagan\sagan-site Command: C:\Program File
s\Java\jdk1.8.0_05\bin\java.exe -DSAGAN_HOME=C:\Users\awu\Documents\sagan -Dfile
.encoding=GBK -cp C:\Users\awu\Documents\sagan\sagan-site\src\main\resources;C:\
Users\awu\Documents\sagan\sagan-site\build\classes\main;C:\Users\awu\Documents\s
agan\sagan-site\build\resources\main;C:\Users\awu\.gradle\caches\modules-2\files
-2.1\org.slf4j\slf4j-api\1.7.7\2b8019b6249bb05d81d3a3094e468753e2b21311\slf4j-ap
i-1.7.7.jar;C:\Users\awu\Documents\sagan\sagan-common\build\libs\sagan-common.ja
r;C:\Users\awu\Documents\sagan\sagan-client\build\libs\sagan-client.jar;C:\Users
\awu\.gradle\caches\modules-2\files-2.1\org.springframework.boot\spring-boot-sta
rter-web\1.1.1.RELEASE\351b4c5322362ee50bba85775ab40a94d6e1816a\spring-boot-star
ter-web-1.1.1.RELEASE.jar;C:\Users\awu\.gradle\caches\modules-2\files-2.1\org.sp
ringframework.boot\spring-boot-starter-actuator\1.1.1.RELEASE\9c669853dd230c8e8c
4bbb77c9214a35ba15057f\spring-boot-starter-actuator-1.1.1.RELEASE.jar;C:\Users\a
wu\.gradle\caches\modules-2\files-2.1\org.springframework.boot\spring-boot-start
er-security\1.1.1.RELEASE\a871231e4f953488c4daa32091736dbe97ac03d\spring-boot-st
arter-security-1.1.1.RELEASE.jar;C:\Users\awu\.gradle\caches\modules-2\files-2.1
\org.springframework.security\spring-security-acl\3.2.4.RELEASE\a015c944e8018fb3
37075ee7c74876133cee555f\spring-security-acl-3.2.4.RELEASE.jar;C:\Users\awu\.gra
dle\caches\modules-2\files-2.1\org.thymeleaf\thymeleaf-spring4\2.1.3.RELEASE\245
c44aa3f2735f6f8346bbd5028a20652215dbf\thymeleaf-spring4-2.1.3.RELEASE.jar;C:\Use
rs\awu\.gradle\caches\modules-2\files-2.1\org.thymeleaf\thymeleaf\2.1.3.RELEASE\
2712ec998d7b4065e041146d01d4202da20009b7\thymeleaf-2.1.3.RELEASE.jar;C:\Users\aw
u\.gradle\caches\modules-2\files-2.1\nz.net.ultraq.thymeleaf\thymeleaf-layout-di
alect\1.2.4\ad1e24ea3f4adcca0e86efe6c54fb6badd6e2002\thymeleaf-layout-dialect-1.
2.4.jar;C:\Users\awu\.gradle\caches\modules-2\files-2.1\com.github.mxab.thymelea
f.extras\thymeleaf-extras-data-attribute\1.3\54773015479dfbfbf5050f35af14fbea787
71ebf\thymeleaf-extras-data-attribute-1.3.jar;C:\Users\awu\.gradle\caches\module
s-2\files-2.1\org.thymeleaf.extras\thymeleaf-extras-springsecurity3\2.1.1.RELEAS
E\da0d116c514849d3cbe650f2d124767eb19783b9\thymeleaf-extras-springsecurity3-2.1.
1.RELEASE.jar;C:\Users\awu\.gradle\caches\modules-2\files-2.1\net.java.dev.rome\
rome\1.0.0\8b4f0da455c59746435e987285b30c22b09ba18d\rome-1.0.0.jar;C:\Users\awu\
.gradle\caches\modules-2\files-2.1\org.apache.httpcomponents\httpcore-nio\4.3\d2
d9f8c1fc7b2acf4240c6fd77f31a0efe66d2ef\httpcore-nio-4.3.jar;C:\Users\awu\.gradle
\caches\modules-2\files-2.1\org.tuckey\urlrewritefilter\4.0.3\1a4b56629cacf3ec8d
530405af2db018a679575e\urlrewritefilter-4.0.3.jar;C:\Users\awu\.gradle\caches\mo
dules-2\files-2.1\net.sourceforge.nekohtml\nekohtml\1.9.20\f7c918a3548dd81a15aab
0619809b59f9bf4e931\nekohtml-1.9.20.jar;C:\Users\awu\.gradle\caches\modules-2\fi
les-2.1\org.springframework\spring-context\4.0.5.RELEASE\98cd9a4b8bb0c695c0cfcc2
04cf804f433851cfe\spring-context-4.0.5.RELEASE.jar;C:\Users\awu\.gradle\caches\m
odules-2\files-2.1\org.springframework.security\spring-security-core\3.2.4.RELEA
SE\493bc57396a821e8ffa7d99fac77cc79c15e9b7f\spring-security-core-3.2.4.RELEASE.j
ar;C:\Users\awu\.gradle\caches\modules-2\files-2.1\org.springframework.social\sp
ring-social-github\1.0.0.M4\a184a059357cbb82ecc66c27795470c4175a1248\spring-soci
al-github-1.0.0.M4.jar;C:\Users\awu\.gradle\caches\modules-2\files-2.1\org.sprin
gframework\spring-webmvc\4.0.5.RELEASE\2459455b0f2e19e7a51fc7bff4de341947d9bc57\
spring-webmvc-4.0.5.RELEASE.jar;C:\Users\awu\.gradle\caches\modules-2\files-2.1\
org.springframework.boot\spring-boot-starter-data-jpa\1.1.1.RELEASE\3bcc95f08ca7
5a187da840d150e94f327cc35659\spring-boot-starter-data-jpa-1.1.1.RELEASE.jar;C:\U
sers\awu\.gradle\caches\modules-2\files-2.1\org.elasticsearch\elasticsearch\0.90
.2\c5bb75432553f8a5df98d875627c1ff87b9e2a3e\elasticsearch-0.90.2.jar;C:\Users\aw
u\.gradle\caches\modules-2\files-2.1\io.searchbox\jest\0.0.4\9d5f59376d44362a378
f2cb725865da318e39fa8\jest-0.0.4.jar;C:\Users\awu\.gradle\caches\modules-2\files
-2.1\org.springframework.cloud\spring-service-connector\0.9.5\94f353a49e341ad694
4043f275bfda751f2dbfce\spring-service-connector-0.9.5.jar;C:\Users\awu\.gradle\c
aches\modules-2\files-2.1\org.springframework.cloud\cloudfoundry-connector\0.9.5
\7ee26f4aeb4a99dd7fc397f3a3c3a7fdcd6120ff\cloudfoundry-connector-0.9.5.jar;C:\Us
ers\awu\.gradle\caches\modules-2\files-2.1\com.h2database\h2\1.3.175\408ed316edd
dbce6db031c6bdceee73a09647d9e\h2-1.3.175.jar;C:\Users\awu\.gradle\caches\modules
-2\files-2.1\org.apache.tomcat\tomcat-jdbc\7.0.54\c325fb6d376df8bb34de0252aef2f7
472658d4d7\tomcat-jdbc-7.0.54.jar;C:\Users\awu\.gradle\caches\modules-2\files-2.
1\org.flywaydb\flyway-core\3.0\f1029646a43e2419b54c6556e12f969964a4f683\flyway-c
ore-3.0.jar;C:\Users\awu\.gradle\caches\modules-2\files-2.1\org.simpleframework\
simple-xml\2.7\48f90a787b2d59faab3b8c203945e4b0db32aec4\simple-xml-2.7.jar;C:\Us
ers\awu\.gradle\caches\modules-2\files-2.1\org.jsoup\jsoup\1.7.2\d7e275ba05aa380
ca254f72d0c0ffebaedc3adcf\jsoup-1.7.2.jar;C:\Users\awu\.gradle\caches\modules-2\
files-2.1\org.yaml\snakeyaml\1.13\73cbb494a912866c4c831a178c3a2a9169f4eaad\snake
yaml-1.13.jar;C:\Users\awu\.gradle\caches\modules-2\files-2.1\joda-time\joda-tim
e\2.3\56498efd17752898cfcc3868c1b6211a07b12b8f\joda-time-2.3.jar;C:\Users\awu\.g
radle\caches\modules-2\files-2.1\org.hibernate\hibernate-validator\5.0.3.Final\e
0fa071d3ced426a05fc1a59d788cb72a1659c3c\hibernate-validator-5.0.3.Final.jar;C:\U
sers\awu\.gradle\caches\modules-2\files-2.1\org.asciidoctor\asciidoctor-java-int
egration\0.1.4\3596c7142fd30d7b65a0e64ba294f3d9d4bd538f\asciidoctor-java-integra
tion-0.1.4.jar;C:\Users\awu\.gradle\caches\modules-2\files-2.1\org.postgresql\po
stgresql\9.2-1002-jdbc4\a535facdcc0b4c488798e0c19499c08b1bc3a2e\postgresql-9.2-1
002-jdbc4.jar;C:\Users\awu\.gradle\caches\modules-2\files-2.1\org.springframewor
k.boot\spring-boot-starter\1.1.1.RELEASE\e2c7643ce64b8cc806bfccea90b5e2218e1835d
4\spring-boot-starter-1.1.1.RELEASE.jar;C:\Users\awu\.gradle\caches\modules-2\fi
les-2.1\org.springframework.boot\spring-boot-starter-tomcat\1.1.1.RELEASE\bd23f3
910bdcc6b3021df68ea4642fdf00629399\spring-boot-starter-tomcat-1.1.1.RELEASE.jar;
C:\Users\awu\.gradle\caches\modules-2\files-2.1\com.fasterxml.jackson.core\jacks
on-databind\2.3.3\63b77400b5f1cf83a81823562c48d3120ef5518e\jackson-databind-2.3.
3.jar;C:\Users\awu\.gradle\caches\modules-2\files-2.1\org.springframework\spring
-core\4.0.5.RELEASE\cce94116431b5a1384d58316a4090bbe7718fd5a\spring-core-4.0.5.R
ELEASE.jar;C:\Users\awu\.gradle\caches\modules-2\files-2.1\org.springframework\s
pring-web\4.0.5.RELEASE\1819f6d4ab65fb33e19c492d5c5aa21396e42b3f\spring-web-4.0.
5.RELEASE.jar;C:\Users\awu\.gradle\caches\modules-2\files-2.1\org.springframewor
k.boot\spring-boot-actuator\1.1.1.RELEASE\ab842768bc003b58751467bbd8a75c7c35b36c
fb\spring-boot-actuator-1.1.1.RELEASE.jar;C:\Users\awu\.gradle\caches\modules-2\
files-2.1\org.springframework\spring-beans\4.0.5.RELEASE\11e00022f109653ee0dbe16
b59c26e19bd90fa08\spring-beans-4.0.5.RELEASE.jar;C:\Users\awu\.gradle\caches\mod
ules-2\files-2.1\org.springframework\spring-expression\4.0.5.RELEASE\d7ddbc320c3
1c15cb3612ed64607e181c3b2d851\spring-expression-4.0.5.RELEASE.jar;C:\Users\awu\.
gradle\caches\modules-2\files-2.1\org.springframework.security\spring-security-c
onfig\3.2.4.RELEASE\952da051fc959b215c8e5882a7ab1ca5137af036\spring-security-con
fig-3.2.4.RELEASE.jar;C:\Users\awu\.gradle\caches\modules-2\files-2.1\org.spring
framework.security\spring-security-web\3.2.4.RELEASE\197d803ab63dd3523d9df186505
fc1cc93044334\spring-security-web-3.2.4.RELEASE.jar;C:\Users\awu\.gradle\caches\
modules-2\files-2.1\org.springframework\spring-aop\4.0.5.RELEASE\d22abbbba78f7c8
854fc39346cc99362272c5c90\spring-aop-4.0.5.RELEASE.jar;C:\Users\awu\.gradle\cach
es\modules-2\files-2.1\aopalliance\aopalliance\1.0\235ba8b489512805ac13a8f9ea77a
1ca5ebe3e8\aopalliance-1.0.jar;C:\Users\awu\.gradle\caches\modules-2\files-2.1\o
gnl\ognl\3.0.6\a3665cf8e3426686ee751790f3d1e1ec5705e9dc\ognl-3.0.6.jar;C:\Users\
awu\.gradle\caches\modules-2\files-2.1\org.unbescape\unbescape\1.0\4d6208849cec8
ae8c16467c285df1e6272bff2ce\unbescape-1.0.jar;C:\Users\awu\.gradle\caches\module
s-2\files-2.1\jdom\jdom\1.0\a2ac1cd690ab4c80defe7f9bce14d35934c35cec\jdom-1.0.ja
r;C:\Users\awu\.gradle\caches\modules-2\files-2.1\xerces\xercesImpl\2.10.0\91616
54d2afe7f9063455f02ccca8e4ec2787222\xercesImpl-2.10.0.jar;C:\Users\awu\.gradle\c
aches\modules-2\files-2.1\org.springframework.social\spring-social-config\1.1.0.
M4\3bffeea5ce2cf8f286d8d8dcc9d66d04359d30f3\spring-social-config-1.1.0.M4.jar;C:
\Users\awu\.gradle\caches\modules-2\files-2.1\org.springframework.social\spring-
social-core\1.1.0.M4\c9378dd5d119fde1b852da4cb71f13637cd317ac\spring-social-core
-1.1.0.M4.jar;C:\Users\awu\.gradle\caches\modules-2\files-2.1\org.springframewor
k.boot\spring-boot-starter-aop\1.1.1.RELEASE\46dfb3ce13499dcffb45f84edb24f139a31
f519c\spring-boot-starter-aop-1.1.1.RELEASE.jar;C:\Users\awu\.gradle\caches\modu
les-2\files-2.1\org.springframework.boot\spring-boot-starter-jdbc\1.1.1.RELEASE\
f8e202b99e638a6d5b61782ba19ecf36f5fd8200\spring-boot-starter-jdbc-1.1.1.RELEASE.
jar;C:\Users\awu\.gradle\caches\modules-2\files-2.1\org.hibernate\hibernate-enti
tymanager\4.3.1.Final\c27f33216ed0d0351f1ecf6a5b6f6c490b4bcbb9\hibernate-entitym
anager-4.3.1.Final.jar;C:\Users\awu\.gradle\caches\modules-2\files-2.1\org.sprin
gframework\spring-orm\4.0.5.RELEASE\8e2a686e8fb135fafbfb6eb97d55f0948c5b0467\spr
ing-orm-4.0.5.RELEASE.jar;C:\Users\awu\.gradle\caches\modules-2\files-2.1\org.sp
ringframework.data\spring-data-jpa\1.6.0.RELEASE\a2ba2a2efe54814e2768a70bab78dc2
b42476a90\spring-data-jpa-1.6.0.RELEASE.jar;C:\Users\awu\.gradle\caches\modules-
2\files-2.1\org.springframework\spring-aspects\4.0.5.RELEASE\14c28dda1fe39e1a0b2
16eb80e5b87df6fa938c8\spring-aspects-4.0.5.RELEASE.jar;C:\Users\awu\.gradle\cach
es\modules-2\files-2.1\org.apache.lucene\lucene-core\4.3.1\a57076844714d0701d536
1212eb1c01d78ea723\lucene-core-4.3.1.jar;C:\Users\awu\.gradle\caches\modules-2\f
iles-2.1\org.apache.lucene\lucene-analyzers-common\4.3.1\8f31a914bfbcf7bcf0e6429
ea1123a1363ddc206\lucene-analyzers-common-4.3.1.jar;C:\Users\awu\.gradle\caches\
modules-2\files-2.1\org.apache.lucene\lucene-codecs\4.3.1\13a53a6df25965eda8fcce
6798240daf7210c1bb\lucene-codecs-4.3.1.jar;C:\Users\awu\.gradle\caches\modules-2
\files-2.1\org.apache.lucene\lucene-queries\4.3.1\468ec16e77a70f5a11e5c08fe29178
28f86324e0\lucene-queries-4.3.1.jar;C:\Users\awu\.gradle\caches\modules-2\files-
2.1\org.apache.lucene\lucene-memory\4.3.1\6f703da224a69ab957f98b030b9567d26cbac5
d2\lucene-memory-4.3.1.jar;C:\Users\awu\.gradle\caches\modules-2\files-2.1\org.a
pache.lucene\lucene-highlighter\4.3.1\9a8b3d90eebba0ccd3ab4db13cda9468c588d02\lu
cene-highlighter-4.3.1.jar;C:\Users\awu\.gradle\caches\modules-2\files-2.1\org.a
pache.lucene\lucene-queryparser\4.3.1\3ba9bbaf53ba8599bb6d5b9fba01c403705a0e0a\l
ucene-queryparser-4.3.1.jar;C:\Users\awu\.gradle\caches\modules-2\files-2.1\org.
apache.lucene\lucene-suggest\4.3.1\ac3a9fc025b51357e33f4e3efcdbeb2d86fc7400\luce
ne-suggest-4.3.1.jar;C:\Users\awu\.gradle\caches\modules-2\files-2.1\org.apache.
lucene\lucene-join\4.3.1\91c8bc82a2f8587fab7a447424d816755c93e966\lucene-join-4.
3.1.jar;C:\Users\awu\.gradle\caches\modules-2\files-2.1\org.apache.lucene\lucene
-spatial\4.3.1\b6a210c295e35e393f5832f18a61ad391e2832b9\lucene-spatial-4.3.1.jar
;C:\Users\awu\.gradle\caches\modules-2\files-2.1\org.apache.httpcomponents\httpa
syncclient\4.0-beta3\c841ffe78b77d6ca1fd38f744e2b107b5f6f74d6\httpasyncclient-4.
0-beta3.jar;C:\Users\awu\.gradle\caches\modules-2\files-2.1\com.google.guava\gua
va\14.0.1\69e12f4c6aeac392555f1ea86fab82b5e5e31ad4\guava-14.0.1.jar;C:\Users\awu
\.gradle\caches\modules-2\files-2.1\com.google.code.gson\gson\2.2.3\91ac0b4c3a38
b721c7548baa239950f23b65b56e\gson-2.2.3.jar;C:\Users\awu\.gradle\caches\modules-
2\files-2.1\commons-lang\commons-lang\2.4\16313e02a793435009f1e458fa4af5d879f6fb
11\commons-lang-2.4.jar;C:\Users\awu\.gradle\caches\modules-2\files-2.1\org.spri
ngframework.cloud\core\0.9.5\63dc001406bf6e7b379108bf1bd314d3a0969503\core-0.9.5
.jar;C:\Users\awu\.gradle\caches\modules-2\files-2.1\org.apache.tomcat\tomcat-ju
li\7.0.54\b1ab768678cb729831ed6ae926a90ab6f0974a60\tomcat-juli-7.0.54.jar;C:\Use
rs\awu\.gradle\caches\modules-2\files-2.1\javax.validation\validation-api\1.1.0.
Final\8613ae82954779d518631e05daa73a6a954817d5\validation-api-1.1.0.Final.jar;C:
\Users\awu\.gradle\caches\modules-2\files-2.1\com.fasterxml\classmate\1.0.0\434e
fef28c81162b17c540e634cffa3bd9b09b4c\classmate-1.0.0.jar;C:\Users\awu\.gradle\ca
ches\modules-2\files-2.1\org.jruby\jruby-complete\1.7.4\74984d84846523bd7da49064
679ed1ccf199e1db\jruby-complete-1.7.4.jar;C:\Users\awu\.gradle\caches\modules-2\
files-2.1\com.beust\jcommander\1.30\c440b30a944ba199751551aee393f8aa03b3c327\jco
mmander-1.30.jar;C:\Users\awu\.gradle\caches\modules-2\files-2.1\org.springframe
work.boot\spring-boot\1.1.1.RELEASE\3791a3d70acf06ee5f64d3f8149368f953fb7a0f\spr
ing-boot-1.1.1.RELEASE.jar;C:\Users\awu\.gradle\caches\modules-2\files-2.1\org.s
pringframework.boot\spring-boot-autoconfigure\1.1.1.RELEASE\c8b89472377944ad04c1
364a522167e4af9ac69c\spring-boot-autoconfigure-1.1.1.RELEASE.jar;C:\Users\awu\.g
radle\caches\modules-2\files-2.1\org.springframework.boot\spring-boot-starter-lo
gging\1.1.1.RELEASE\e932785394b4798b416eae292720a29f55fc685b\spring-boot-starter
-logging-1.1.1.RELEASE.jar;C:\Users\awu\.gradle\caches\modules-2\files-2.1\org.a
pache.tomcat.embed\tomcat-embed-core\7.0.54\874cb56db3ccd8101d9373f433d86f1badb5
dada\tomcat-embed-core-7.0.54.jar;C:\Users\awu\.gradle\caches\modules-2\files-2.
1\org.apache.tomcat.embed\tomcat-embed-el\7.0.54\3c9425b650ba700ac47185500facabd
9ab970adc\tomcat-embed-el-7.0.54.jar;C:\Users\awu\.gradle\caches\modules-2\files
-2.1\org.apache.tomcat.embed\tomcat-embed-logging-juli\7.0.54\68a1a1fc9fa2c7f974
31a36e89f95c5d2eb2ebd5\tomcat-embed-logging-juli-7.0.54.jar;C:\Users\awu\.gradle
\caches\modules-2\files-2.1\xml-apis\xml-apis\1.4.01\3789d9fada2d3d458c4ba2de349
d48780f381ee3\xml-apis-1.4.01.jar;C:\Users\awu\.gradle\caches\modules-2\files-2.
1\org.springframework.social\spring-social-web\1.1.0.M4\264aec0c88907ad9163619ee
9f480ba521a7fb54\spring-social-web-1.1.0.M4.jar;C:\Users\awu\.gradle\caches\modu
les-2\files-2.1\org.aspectj\aspectjrt\1.8.0\302d0fe0abba26bbf5f31c3cd5337b3125c7
44e3\aspectjrt-1.8.0.jar;C:\Users\awu\.gradle\caches\modules-2\files-2.1\org.asp
ectj\aspectjweaver\1.8.0\57ff384193755a8f2666d59fd9c718cdbdd550f4\aspectjweaver-
1.8.0.jar;C:\Users\awu\.gradle\caches\modules-2\files-2.1\org.jboss.logging\jbos
s-logging-annotations\1.2.0.Beta1\2f437f37bb265d9f8f1392823dbca12d2bec06d6\jboss
-logging-annotations-1.2.0.Beta1.jar;C:\Users\awu\.gradle\caches\modules-2\files
-2.1\org.hibernate\hibernate-core\4.3.1.Final\73618cbf2dd1fa989a13d9444d4f025cfc
51ec10\hibernate-core-4.3.1.Final.jar;C:\Users\awu\.gradle\caches\modules-2\file
s-2.1\dom4j\dom4j\1.6.1\5d3ccc056b6f056dbf0dddfdf43894b9065a8f94\dom4j-1.6.1.jar
;C:\Users\awu\.gradle\caches\modules-2\files-2.1\org.hibernate.common\hibernate-
commons-annotations\4.0.4.Final\f1af75eca4e13ac0578750a497159695feceebfc\hiberna
te-commons-annotations-4.0.4.Final.jar;C:\Users\awu\.gradle\caches\modules-2\fil
es-2.1\org.hibernate.javax.persistence\hibernate-jpa-2.1-api\1.0.0.Final\5e731d9
61297e5a07290bfaf3db1fbc8bbbf405a\hibernate-jpa-2.1-api-1.0.0.Final.jar;C:\Users
\awu\.gradle\caches\modules-2\files-2.1\org.jboss.spec.javax.transaction\jboss-t
ransaction-api_1.2_spec\1.0.0.Final\1f9fef7a9fcbb41cc390fc370a291cf30729e094\jbo
ss-transaction-api_1.2_spec-1.0.0.Final.jar;C:\Users\awu\.gradle\caches\modules-
2\files-2.1\org.springframework.data\spring-data-commons\1.8.0.RELEASE\6db4c9700
bc71677068c227422b0538be2271490\spring-data-commons-1.8.0.RELEASE.jar;C:\Users\a
wu\.gradle\caches\modules-2\files-2.1\org.slf4j\jcl-over-slf4j\1.7.7\56003dcd0a3
1deea6391b9e2ef2f2dc90b205a92\jcl-over-slf4j-1.7.7.jar;C:\Users\awu\.gradle\cach
es\modules-2\files-2.1\org.apache.lucene\lucene-sandbox\4.3.1\676b580f60cab474ce
093781fee198397c4dc613\lucene-sandbox-4.3.1.jar;C:\Users\awu\.gradle\caches\modu
les-2\files-2.1\org.apache.lucene\lucene-grouping\4.3.1\1639dd03b1b924e18abdba7e
064f0dfbe281541d\lucene-grouping-4.3.1.jar;C:\Users\awu\.gradle\caches\modules-2
\files-2.1\com.spatial4j\spatial4j\0.3\2fd58d1de64553db427ae4fbc1a6691adea460e2\
spatial4j-0.3.jar;C:\Users\awu\.gradle\caches\modules-2\files-2.1\org.slf4j\jul-
to-slf4j\1.7.7\def21bc1a6e648ee40b41a84f1db443132913105\jul-to-slf4j-1.7.7.jar;C
:\Users\awu\.gradle\caches\modules-2\files-2.1\org.slf4j\log4j-over-slf4j\1.7.7\
d521cb26a9c4407caafcec302e7804b048b07cea\log4j-over-slf4j-1.7.7.jar;C:\Users\awu
\.gradle\caches\modules-2\files-2.1\ch.qos.logback\logback-classic\1.1.2\b316e97
37eea25e9ddd6d88eaeee76878045c6b2\logback-classic-1.1.2.jar;C:\Users\awu\.gradle
\caches\modules-2\files-2.1\javax.inject\javax.inject\1\6975da39a7040257bd51d21a
231b76c915872d38\javax.inject-1.jar;C:\Users\awu\.gradle\caches\modules-2\files-
2.1\antlr\antlr\2.7.7\83cd2cd674a217ade95a4bb83a8a14f351f48bd0\antlr-2.7.7.jar;C
:\Users\awu\.gradle\caches\modules-2\files-2.1\org.jboss\jandex\1.1.0.Final\e84a
2122e76f0b6503be78094ddf2108057ac15f\jandex-1.1.0.Final.jar;C:\Users\awu\.gradle
\caches\modules-2\files-2.1\ch.qos.logback\logback-core\1.1.2\2d23694879c2c12f12
5dac5076bdfd5d771cc4cb\logback-core-1.1.2.jar;C:\Users\awu\.gradle\caches\module
s-2\files-2.1\org.apache.httpcomponents\httpclient\4.3.3\18f4247ff4572a074444572
cee34647c43e7c9c7\httpclient-4.3.3.jar;C:\Users\awu\.gradle\caches\modules-2\fil
es-2.1\commons-codec\commons-codec\1.6\b7f0fc8f61ecadeb3695f0b9464755eee44374d4\
commons-codec-1.6.jar;C:\Users\awu\.gradle\caches\modules-2\files-2.1\org.apache
.httpcomponents\httpcore\4.3.2\31fbbff1ddbf98f3aa7377c94d33b0447c646b6e\httpcore
-4.3.2.jar;C:\Users\awu\.gradle\caches\modules-2\files-2.1\org.springframework\s
pring-jdbc\4.0.5.RELEASE\464e18d797ef5f2f19e6b8c151ca0b196c806ad3\spring-jdbc-4.
0.5.RELEASE.jar;C:\Users\awu\.gradle\caches\modules-2\files-2.1\org.springframew
ork\spring-tx\4.0.5.RELEASE\bc94807ffcf9a6934428eb7ecdf9c37c41dd95a1\spring-tx-4
.0.5.RELEASE.jar;C:\Users\awu\.gradle\caches\modules-2\files-2.1\org.jboss.loggi
ng\jboss-logging\3.1.3.GA\64499e907f19e5e1b3fdc02f81440c1832fe3545\jboss-logging
-3.1.3.GA.jar;C:\Users\awu\.gradle\caches\modules-2\files-2.1\org.javassist\java
ssist\3.18.1-GA\d9a09f7732226af26bf99f19e2cffe0ae219db5b\javassist-3.18.1-GA.jar
;C:\Users\awu\.gradle\caches\modules-2\files-2.1\com.fasterxml.jackson.core\jack
son-annotations\2.3.0\f5e853a20b60758922453d56f9ae1e64af5cb3da\jackson-annotatio
ns-2.3.0.jar;C:\Users\awu\.gradle\caches\modules-2\files-2.1\com.fasterxml.jacks
on.core\jackson-core\2.3.3\7d8c5d79cc99995e21e6f955857312d8409f02a1\jackson-core
-2.3.3.jar sagan.SiteMain
Successfully started process 'command 'C:\Program Files\Java\jdk1.8.0_05\bin\jav
a.exe''
2014-06-20 10:28:52.485  INFO 7200 --- [           main] sagan.SaganApplication
                  : The default 'standalone' profile is active because no other
profiles have been specified.
 Spring Boot ::        (v1.1.1.RELEASE)

2014-06-20 10:28:52.770  INFO 7200 --- [           main] sagan.SiteMain:Starting SiteMain on PC-IT-15 with PID 7200 (C:\Users\awu\Do
cuments\sagan\sagan-site\build\classes\main started by awu in C:\Users\awu\Docum
ents\sagan\sagan-site)
2014-06-20 10:28:59.599  INFO 7200 --- [ost-startStop-1] b.a.s.AuthenticationMan
agerConfiguration :

Using default security password: a65424fe-a391-42dc-b0eb-e7752abe92fb

2014-06-20 10:29:00.277  WARN 7200 --- [           main] sagan.support.github.Gi
tHubConfig        : GitHub API access will be rate-limited at 60 req/hour
2014-06-20 10:29:04.072  INFO 7200 --- [           main] sagan.SiteMain : Started SiteMain in 11.63 seconds (JVM running for 12.35)
> Building 94% > :sagan-site:bootRun
badboy605 commented 10 years ago

I just tried to build on "Ubuntu 12.04.3 LTS" and encountered the same problem. Stuck at 94%

bclozel commented 10 years ago

Hi @badboy605 - the gradle info may say "94%", but the application has actually started.

2014-06-20 10:29:04.072  INFO 7200 --- [           main] sagan.SiteMain : Started SiteMain in 11.63 seconds (JVM running for 12.35)
Andromed commented 9 years ago

Hello, I have the same problem.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':sagan-client:npmInstall'.
> Process 'command 'npm'' finished with non-zero exit value 3

Have you any solution please? Thanks :-)

bclozel commented 9 years ago

@Andromed what happens when you do the following? Which platform are you using (windows? linux?)

$ cd sagan-client
$ node -v
$ npm install
$ npm run build
HFA-AlexByrd commented 9 years ago

(Picking up for Andromed)

 ~/dev/playground/sagan (master)
$ cd ./sagan-client

 ~/dev/playground/sagan/sagan-client (master)
$ node -v
v0.12.1

 ~/dev/playground/sagan/sagan-client (master)
$ npm install

> sagan@ prepublish %USERPROFILE%\dev\playground\sagan\sagan-client
> bower install --config.interactive=false

 ~/dev/playground/sagan/sagan-client (master)
$ npm run build

> sagan@ build %USERPROFILE%\dev\playground\sagan\sagan-client
> gulp build

[gulp] Using gulpfile %USERPROFILE%\dev\playground\sagan\sagan-client\gulpfile.js
[gulp] Starting 'minify-css'...
[gulp] Starting 'build-modules'...
[gulp] Starting 'copy-assets'...
[gulp] Starting 'bower-files'...
%USERPROFILE%\dev\playground\sagan\sagan-client\node_modules\gulp-cram\node_modules\cram\amd_modules\curl\dist\curl-for-ssjs\curl.js:1249
                                        if (rejected) rejected(ex); else throw ex;
                                                                               ^
Error: Multiple anonymous defines encountered
    at %USERPROFILE%\dev\playground\sagan\sagan-client\node_modules\gulp-cram\node_modules\cram\amd_modules\curl\dist\curl-for-ssjs\curl.js:963:19
    at loadScriptViaRequire (%USERPROFILE%\dev\playground\sagan\sagan-client\node_modules\gulp-cram\node_modules\cram\amd_modules\curl\dist\curl-for-ssjs\curl.js
:1575:4)
    at Object.priv.core.loadScript (%USERPROFILE%\dev\playground\sagan\sagan-client\node_modules\gulp-cram\node_modules\cram\amd_modules\curl\dist\curl-for-ssjs\
curl.js:1556:11)
    at Object.core.fetchResDef (%USERPROFILE%\dev\playground\sagan\sagan-client\node_modules\gulp-cram\node_modules\cram\amd_modules\curl\dist\curl-for-ssjs\curl
.js:951:9)
    at Object.core.fetchDep (%USERPROFILE%\dev\playground\sagan\sagan-client\node_modules\gulp-cram\node_modules\cram\amd_modules\curl\dist\curl-for-ssjs\curl.js
:1036:10)
    at getDep (%USERPROFILE%\dev\playground\sagan\sagan-client\node_modules\gulp-cram\node_modules\cram\amd_modules\curl\dist\curl-for-ssjs\curl.js:906:21)
    at Object.core.getDeps (%USERPROFILE%\dev\playground\sagan\sagan-client\node_modules\gulp-cram\node_modules\cram\amd_modules\curl\dist\curl-for-ssjs\curl.js:
888:6)
    at %USERPROFILE%\dev\playground\sagan\sagan-client\node_modules\gulp-cram\node_modules\cram\amd_modules\curl\dist\curl-for-ssjs\curl.js:1267:38
    at when (%USERPROFILE%\dev\playground\sagan\sagan-client\node_modules\gulp-cram\node_modules\cram\amd_modules\curl\dist\curl-for-ssjs\curl.js:219:11)
    at %USERPROFILE%\dev\playground\sagan\sagan-client\node_modules\gulp-cram\node_modules\cram\amd_modules\curl\dist\curl-for-ssjs\curl.js:1267:5

npm ERR! Windows_NT 6.3.9600
npm ERR! argv "c:\\Program Files\\nodejs\\node.exe" "c:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "build"
npm ERR! node v0.12.1
npm ERR! npm  v2.5.1
npm ERR! code ELIFECYCLE
npm ERR! sagan@ build: `gulp build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sagan@ build script 'gulp build'.
npm ERR! This is most likely a problem with the sagan package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     gulp build
npm ERR! You can get their info via:
npm ERR!     npm owner ls sagan
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     %USERPROFILE%\dev\playground\sagan\sagan-client\npm-debug.log
HFA-AlexByrd commented 9 years ago

Looks like this might be the same issue as #506

bclozel commented 9 years ago

Yeah, Sagan does not build correctly right now on 0.12 - I'd like to completely revisit the client side build and get that fixed at the same time.