Skip to content
This repository has been archived by the owner on May 30, 2020. It is now read-only.

angular-template error in compilation #86

Open
ticktockreed opened this issue May 23, 2016 · 5 comments
Open

angular-template error in compilation #86

ticktockreed opened this issue May 23, 2016 · 5 comments

Comments

@ticktockreed
Copy link

ticktockreed commented May 23, 2016

A recent update has introduced the following error on compilation.

The error:

C:\Sites\TEST\OBA\node_modules\angular-jsdoc\node_modules\angular-template\index.js:140
throw e;
^
SyntaxError: Unexpected reserved word
at Object.Function ()
at templateFunc (C:\Sites\TEST\OBA\node_modules\angular-jsdoc\node_modules\js-template\index.js:56:12)
at jsTemplate (C:\Sites\TEST\OBA\node_modules\angular-jsdoc\node_modules\js-template\index.js:65:18)
at angularTemplate (C:\Sites\TEST\OBA\node_modules\angular-jsdoc\node_modules\angular-template\index.js:128:14)
at generateSourceFiles (C:\Sites\TEST\OBA\node_modules\angular-jsdoc\angular-template\publish.js:100:16)
at Object.exports.publish (C:\Sites\TEST\OBA\node_modules\angular-jsdoc\angular-template\publish.js:283:3)
at Object.module.exports.cli.generateDocs (C:\Sites\TEST\OBA\node_modules\jsdoc\cli.js:430:39)
at Object.module.exports.cli.processParseResults (C:\Sites\TEST\OBA\node_modules\jsdoc\cli.js:383:20)
at module.exports.cli.main (C:\Sites\TEST\OBA\node_modules\jsdoc\cli.js:227:14)
at Object.module.exports.cli.runCommand (C:\Sites\TEST\OBA\node_modules\jsdoc\cli.js:180:5)
at C:\Sites\TEST\OBA\node_modules\jsdoc\jsdoc.js:103:9
at Object. (C:\Sites\TEST\OBA\node_modules\jsdoc\jsdoc.js:104:3)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
Warning: jsdoc terminated with a non-zero exit code Use --force to continue.

My Grunt task:

    // Create Javascript documentation
    jsdoc : {
        dist : {
            src: ['app/views/*/*.js','app/directives/*/*.js','app/services/*/*.js'],
            options: {
                destination: 'documentation/jsdoc',
                configure: 'node_modules/angular-jsdoc/common/conf.json',
                template: 'node_modules/angular-jsdoc/angular-template',
                tutorial: 'tutorials',
                readme: './README.md'
            }
        }
    },

Removing the template uses the default jsdoc template and works with no issues.

I can't tell whether this is due to a change in angular-jsdoc, jsdoc, or grunt-jsdoc.

@allenhwkim Could you please advise?

Thanks in advance

@ticktockreed
Copy link
Author

Thanks for taking the time to look at this @FDIM. I have implemented the fix and it works! Great :). When will you deploy to NPM?

@FDIM
Copy link
Contributor

FDIM commented Jun 2, 2016

Unfortunately I do not have access to this repo, you'll have to wait for @allenhwkim :)

@allenhwkim
Copy link
Owner

allenhwkim commented Jun 4, 2016

@FDIM, you are already a co-owner of this repo.
image

@FDIM
Copy link
Contributor

FDIM commented Jun 4, 2016

True, but the bugfix is in jsdoc :)

@allenhwkim
Copy link
Owner

allenhwkim commented Jun 4, 2016

@FDIM true, sorry about that. 1.4.2 has been published. If you want, I will invite you as the owner of angular-jsdoc

kapusta added a commit to kapusta/angular-jsdoc that referenced this issue Jun 22, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants