{"action":"created","issue":{"url":"https://api.github.com/repos/poppinss/edge/issues/10","repository_url":"https://api.github.com/repos/poppinss/edge","labels_url":"https://api.github.com/repos/poppinss/edge/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/poppinss/edge/issues/10/comments","events_url":"https://api.github.com/repos/poppinss/edge/issues/10/events","html_url":"https://github.com/poppinss/edge/issues/10","id":269349502,"number":10,"title":"Space after new tag throws InvalidExpressionException","user":{"login":"akaiSuicchi","id":4684236,"avatar_url":"https://avatars3.githubusercontent.com/u/4684236?v=4","gravatar_id":"","url":"https://api.github.com/users/akaiSuicchi","html_url":"https://github.com/akaiSuicchi","followers_url":"https://api.github.com/users/akaiSuicchi/followers","following_url":"https://api.github.com/users/akaiSuicchi/following{/other_user}","gists_url":"https://api.github.com/users/akaiSuicchi/gists{/gist_id}","starred_url":"https://api.github.com/users/akaiSuicchi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akaiSuicchi/subscriptions","organizations_url":"https://api.github.com/users/akaiSuicchi/orgs","repos_url":"https://api.github.com/users/akaiSuicchi/repos","events_url":"https://api.github.com/users/akaiSuicchi/events{/privacy}","received_events_url":"https://api.github.com/users/akaiSuicchi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-10-28T20:58:36Z","updated_at":"2017-10-28T22:14:40Z","closed_at":null,"author_association":"NONE","body":"**Version** 1.1.1\r\n**Found** Bug\r\n\r\nAfter reading the docs from both AdonisJS 4 and Edge (awesome projects btw) and write an example ...\r\n```html\r\n@if(username) \r\n  <h1> Hello {{ username }} </h1>\r\n@else\r\n  <h1> Hello anonymous </h1>\r\n@endif\r\n```\r\nthis happened\r\n```console\r\n{ InvalidExpressionException: E_INVALID_EXPRESSION: Invalid expression <username) > passed to (if) block\r\n    at (C:\\Users\\prvjefolar0\\Desktop\\personal_workspace\\test\\views\\whitespace.edge:1:0)\r\n    at Function.invalidTagExpression (C:\\Users\\prvjefolar0\\Desktop\\personal_workspace\\test\\node_modules\\edge.js\\src\\Exceptions\\index.js:87:19)\r\n    at IfTag._compileStatement (C:\\Users\\prvjefolar0\\Desktop\\personal_workspace\\test\\node_modules\\edge.js\\src\\Tags\\BaseTag.js:43:43)\r\n    at IfTag.compile (C:\\Users\\prvjefolar0\\Desktop\\personal_workspace\\test\\node_modules\\edge.js\\src\\Tags\\IfTag.js:82:36)\r\n    at TemplateCompiler.parseTag (C:\\Users\\prvjefolar0\\Desktop\\personal_workspace\\test\\node_modules\\edge.js\\src\\Template\\Compiler.js:152:21)\r\n    at TemplateCompiler.parseLine (C:\\Users\\prvjefolar0\\Desktop\\personal_workspace\\test\\node_modules\\edge.js\\src\\Template\\Compiler.js:186:12)\r\n    at ast.forEach (C:\\Users\\prvjefolar0\\Desktop\\personal_workspace\\test\\node_modules\\edge.js\\src\\Template\\Compiler.js:116:32)\r\n    at Array.forEach (native)\r\n    at TemplateCompiler._compileAst (C:\\Users\\prvjefolar0\\Desktop\\personal_workspace\\test\\node_modules\\edge.js\\src\\Template\\Compiler.js:116:9)\r\n    at TemplateCompiler.compile (C:\\Users\\prvjefolar0\\Desktop\\personal_workspace\\test\\node_modules\\edge.js\\src\\Template\\Compiler.js:225:80)\r\n    at Template._compileView (C:\\Users\\prvjefolar0\\Desktop\\personal_workspace\\test\\node_modules\\edge.js\\src\\Template\\index.js:221:37) lineno: 1, charno: '0' }\r\n```\r\nAt first I wasn't sure about the problem. Then I copy/paste from docs and tried it again and everything was ok.\r\nIt turns out that I wrote the first line with a space\r\n```html\r\n@if(username)//space or &nbsp;\r\n```\r\nBut only the first line, following tags (@else or @END_TAG ) take this without a problem.\r\n\r\nPrevious versions handle this except for 1.1.0.\r\nIs not a big problem, if one write each line correctly this can be avoided but I thought I should report this.\r\n\r\nPS. If this was already fixed in a future release please ignore this. \r\n\r\nThanks for your time and effort on this projects."},"comment":{"url":"https://api.github.com/repos/poppinss/edge/issues/comments/340223365","html_url":"https://github.com/poppinss/edge/issues/10#issuecomment-340223365","issue_url":"https://api.github.com/repos/poppinss/edge/issues/10","id":340223365,"user":{"login":"akaiSuicchi","id":4684236,"avatar_url":"https://avatars3.githubusercontent.com/u/4684236?v=4","gravatar_id":"","url":"https://api.github.com/users/akaiSuicchi","html_url":"https://github.com/akaiSuicchi","followers_url":"https://api.github.com/users/akaiSuicchi/followers","following_url":"https://api.github.com/users/akaiSuicchi/following{/other_user}","gists_url":"https://api.github.com/users/akaiSuicchi/gists{/gist_id}","starred_url":"https://api.github.com/users/akaiSuicchi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akaiSuicchi/subscriptions","organizations_url":"https://api.github.com/users/akaiSuicchi/orgs","repos_url":"https://api.github.com/users/akaiSuicchi/repos","events_url":"https://api.github.com/users/akaiSuicchi/events{/privacy}","received_events_url":"https://api.github.com/users/akaiSuicchi/received_events","type":"User","site_admin":false},"created_at":"2017-10-28T22:14:40Z","updated_at":"2017-10-28T22:14:40Z","author_association":"NONE","body":"Hi @RomainLanz .\r\nYou are right. After install ```edge.js``` from Github and run ```npm run test:win``` everything works just fine.\r\nBut then why version 1.1.0 and 1.1.1 fails from npm? I reinstall it and ```npm cache clear``` and still fails."}}
{"actor":{"display_login":"akaiSuicchi"}}