{"action":"created","issue":{"url":"https://api.github.com/repos/magento/magento2/issues/3447","repository_url":"https://api.github.com/repos/magento/magento2","labels_url":"https://api.github.com/repos/magento/magento2/issues/3447/labels{/name}","comments_url":"https://api.github.com/repos/magento/magento2/issues/3447/comments","events_url":"https://api.github.com/repos/magento/magento2/issues/3447/events","html_url":"https://github.com/magento/magento2/issues/3447","id":134329625,"number":3447,"title":"grunt exec:[mytheme] fails after @import 'filename' in .less","user":{"login":"dav1dian","id":17298002,"avatar_url":"https://avatars.githubusercontent.com/u/17298002?v=3","gravatar_id":"","url":"https://api.github.com/users/dav1dian","html_url":"https://github.com/dav1dian","followers_url":"https://api.github.com/users/dav1dian/followers","following_url":"https://api.github.com/users/dav1dian/following{/other_user}","gists_url":"https://api.github.com/users/dav1dian/gists{/gist_id}","starred_url":"https://api.github.com/users/dav1dian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dav1dian/subscriptions","organizations_url":"https://api.github.com/users/dav1dian/orgs","repos_url":"https://api.github.com/users/dav1dian/repos","events_url":"https://api.github.com/users/dav1dian/events{/privacy}","received_events_url":"https://api.github.com/users/dav1dian/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-17T16:29:38Z","updated_at":"2016-02-19T09:49:54Z","closed_at":null,"body":"Hi.\r\nI've installed magento 2, created my custom theme and now trying to work with .less files using grunt watch task.\r\nsctucture - web/css/\r\n_styles.less\r\nstyles-new.less\r\ncustom.less\r\nin styles.less i have @import '_styles';\r\nso at first i did grunt exec:[mytheme]\r\n\r\nNow, the problem is, that in pu/static i got symlink(i guess) to custom.less, but styles-new.less became not symlink, but copy of my file.. and i don't know the reason, but grunt watch is watching this file instead of original one from app/design\r\n\r\nhttp://prntscr.com/a4hmyh\r\nhttp://prntscr.com/a4hn7b\r\n\r\nI'm running magento 2 on Win7. I can't find way to fight this issue :(\r\n"},"comment":{"url":"https://api.github.com/repos/magento/magento2/issues/comments/186142715","html_url":"https://github.com/magento/magento2/issues/3447#issuecomment-186142715","issue_url":"https://api.github.com/repos/magento/magento2/issues/3447","id":186142715,"user":{"login":"alankent","id":5702163,"avatar_url":"https://avatars.githubusercontent.com/u/5702163?v=3","gravatar_id":"","url":"https://api.github.com/users/alankent","html_url":"https://github.com/alankent","followers_url":"https://api.github.com/users/alankent/followers","following_url":"https://api.github.com/users/alankent/following{/other_user}","gists_url":"https://api.github.com/users/alankent/gists{/gist_id}","starred_url":"https://api.github.com/users/alankent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alankent/subscriptions","organizations_url":"https://api.github.com/users/alankent/orgs","repos_url":"https://api.github.com/users/alankent/repos","events_url":"https://api.github.com/users/alankent/events{/privacy}","received_events_url":"https://api.github.com/users/alankent/received_events","type":"User","site_admin":false},"created_at":"2016-02-19T09:49:54Z","updated_at":"2016-02-19T09:49:54Z","body":"Hi. It always watches pub/static is my understanding as that is what Less will read from - but if its a symlink, then this is fine. If a file copy, then watching does not work.\r\n\r\nCould you supply a copy of styles-new.less?  What happens is the `magento dev:source-theme:deploy` script uses a symlink if it can, but if the source file includes any \"Magento magic\", it has to copy the file to replace the magic with standard Less files. So for example, any file with `//@magento_import` is copied (with that instruction expanded to be a series of `@import` statements).  Another one I would look for is using a `Magento_Theme::` style prefix. Those paths I suspect are patched as well, so again a copy is required rather than a symlink.\r\n\r\nTo detect this sort of change, could you diff the original file to what is in pub/static - I think some differences will be reported which is triggering the copy instead of symlink that you would prefer. If so, could you tell me at least the diff? I am curious to know what the problem is."}}