Skip to content

Getting an issue working with Grunt #3037

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ezequielalba opened this issue Jan 19, 2016 · 7 comments
Closed

Getting an issue working with Grunt #3037

ezequielalba opened this issue Jan 19, 2016 · 7 comments
Labels
Area: Frontend improvement Issue: Format is not valid Gate 1 Failed. Automatic verification of issue format is failed Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development

Comments

@ezequielalba
Copy link

I'm getting this issue after run grunt exec:<theme>, this shows up:

Processed Area: frontend, Locale: en_US, Theme: Ids/prueba, File type: less.
>> [Magento\Framework\Exception\FileSystemException]                                                                                                                                                                
>>   Cannot create a symlink for "/usr/local/devs/magento2/htdocs/vendor/magento/theme-frontend-blank/web/css/source/_reset.less" and place it to "/usr/local/devs/magento2/htdocs/pub/static/frontend/Ids/prueba/en_US/css/source/_reset.less" Warning!file_get_contents(/usr/local/devs/magento2/htdocs/var/cache//mage-tags/mage---e39_INTERCEPTION): failed to open stream: No such file or directory  

>> dev:source-theme:deploy [--type="..."] [--locale="..."] [--area="..."] [--theme="..."] [file1] ... [fileN]
>> Exited with code: 1.
Warning: Task "exec:prueba" failed. Use --force to continue.

And after i run grunt refresh, shows the same after it cleans all the paths.

Now, running the command for the bin/magento dev:source-theme:deploy got this:

Processed Area: frontend, Locale: en_US, Theme: Magento/luma, File type: less.

  [Magento\Framework\Exception\FileSystemException]                                                                                                                   
  Cannot create a symlink for "/usr/local/devs/magento2/htdocs/vendor/magento/theme-frontend-blank/web/css/source/_reset.less" and place it to "/usr/local/devs/mage  
  nto2/htdocs/pub/static/frontend/Magento/luma/en_US/css/source/_reset.less"                                                                                          

dev:source-theme:deploy [--type="..."] [--locale="..."] [--area="..."] [--theme="..."] [file1] ... [fileN]

I was triyng to fix this by following a lot of instructions on other issues already, nothing worked.

Any ideas why this might be happening?
I have a VM configured running of Ubuntu 14.04.3 LTS , and have node 5.4.1 with npm 3.3.12

Update of the issue: If a run the bin/magento static:deploy and after that i run grunt less:theme it gives no errors, but when watching isnt detecting the changes in the .less files of the theme.

@mrkhoa99
Copy link
Contributor

I met this issue on Windows OS, I tried to run CMD as Administrator. This issue was solved.
I also run Grunt successfully on Ubuntu. You try to set file system permission and ownership: http://devdocs.magento.com/guides/v2.0/install-gde/prereq/file-system-perms.html

@ezequielalba
Copy link
Author

@mrkhoa99 Mmm, i tried that too, i just checked if the permission and ownership changed, but are ok. The error still there after i execute the deploy or Grunt. Let me see if the VM misses something. But i don't think so.

@ezequielalba
Copy link
Author

@mrkhoa99 Nope, it isnt about permission. Got the same result.

@ezequielalba
Copy link
Author

Update of the issue: If a run the bin/magento static:deploy and after that i run grunt less:theme it gives no errors, but when watching isnt detecting the changes in the .less files of the theme.

@guz-anton
Copy link
Contributor

guz-anton commented Jul 13, 2016

Hi @ezequielalba
We'll do investigation under internal ticket MAGETWO-53822.

Thanks.

@piotrekkaminski
Copy link
Contributor

Thank you for your submission.

We recently made some changes to the way we process GitHub submissions to more quickly identify and respond to core code issues.

Feature Requests and Improvements should now be submitted to the new Magento 2 Feature Requests and Improvements forum (see details here).

We are closing this GitHub ticket and have moved your request to the new forum.

@veloraven veloraven added the Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development label Oct 26, 2016
@Quartermain
Copy link

Hi @piotrekkaminski and all

Please help me. I cazy this bug and lot many time.
I use Win10, run CMD, Xam by administrator and have change
Magento\Framework\App\View\Asset\MaterializationStrategy\Symlink
to

Magento\Framework\App\View\Asset\MaterializationStrategy\Copy
but still ERROR.

Some time run ok

Thanks

@magento-engcom-team magento-engcom-team added the Issue: Format is not valid Gate 1 Failed. Automatic verification of issue format is failed label Sep 12, 2017
magento-engcom-team pushed a commit that referenced this issue Aug 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Frontend improvement Issue: Format is not valid Gate 1 Failed. Automatic verification of issue format is failed Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development
Projects
None yet
Development

No branches or pull requests

10 participants