hubot-jira-bot icon indicating copy to clipboard operation
hubot-jira-bot copied to clipboard

UNEXPECTED INDENT ERROR

Open navaneeth-c opened this issue 6 years ago • 0 comments

I tried to install a fresh hubot and tried to run it, it was working properly. But if add hubot-jira-bot module and run the bot, i am getting the below error. I tried to trouble shoot it with different ways. If I comment out the total index.coffee file, then I am not getting any error. The code was actually running good and suddenly this happened. I was actually thinking it maybe because of some tab-space issue, but I dont know how to solve this. It would be of great help if someone help me with this.

I am using rubymine for the project.

Below is my stack trace and the error:

ERROR Unable to load C:\Users\navaneethc\Downloads\wesleyTest\node_modules\hubot-jira-bot\src\index: SyntaxError: unexpected INDENT at Object.exports.throwSyntaxError (C:\Users\navaneethc\Downloads\wesleyTest\node_modules\coffee-script\lib\coffee-script\helpers.js:197:13) at Parser.parser.yy.parseError (C:\Users\navaneethc\Downloads\wesleyTest\node_modules\coffee-script\lib\coffee-script\coffee-script.js:265:20) at Parser.parse (C:\Users\navaneethc\Downloads\wesleyTest\node_modules\coffee-script\lib\coffee-script\parser.js:537:22) at compile (C:\Users\navaneethc\Downloads\wesleyTest\node_modules\coffee-script\lib\coffee-script\coffee-script.js:35:24) at Object.loadFile (C:\Users\navaneethc\Downloads\wesleyTest\node_modules\coffee-script\lib\coffee-script\coffee-script.js:176:14) at Module.load (C:\Users\navaneethc\Downloads\wesleyTest\node_modules\coffee-script\lib\coffee-script\coffee-script.js:211:36) at tryModuleLoad (module.js:505:12) at Function.Module._load (module.js:497:3) at Module.require (module.js:596:17) at require (internal/module.js:11:18) at Object. (C:\Users\navaneethc\Downloads\wesleyTest\node_modules\hubot-jira-bot\src\index.coffee:23:10, :8:12) at Object. (C:\Users\navaneethc\Downloads\wesleyTest\node_modules\hubot-jira-bot\src\index.coffee:20:1, :591:4) at Module._compile (module.js:652:30) at Object.loadFile (C:\Users\navaneethc\Downloads\wesleyTest\node_modules\coffee-script\lib\coffee-script\coffee-script.js:182:19) at Module.load (C:\Users\navaneethc\Downloads\wesleyTest\node_modules\coffee-script\lib\coffee-script\coffee-script.js:211:36) at tryModuleLoad (module.js:505:12) at Function.Module._load (module.js:497:3) at Module.require (module.js:596:17) at require (internal/module.js:11:18) at Robot.loadFile (C:\Users\navaneethc\Downloads\wesleyTest\node_modules\hubot\src\robot.coffee:355:9, :224:20) at C:\Users\navaneethc\Downloads\wesleyTest\node_modules\hubot-jira-bot\index.coffee:7:5, :13:22 at FSReqWrap.cb [as oncomplete] (fs.js:312:19)

navaneeth-c avatar Jun 21 '18 18:06 navaneeth-c