Skip to content
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

Feature Request : Add path prefix for dev:urn:generate #7945

Closed
kanduvisla opened this issue Dec 23, 2016 · 1 comment
Closed

Feature Request : Add path prefix for dev:urn:generate #7945

kanduvisla opened this issue Dec 23, 2016 · 1 comment

Comments

@kanduvisla
Copy link
Contributor

So I recently 'discovered' that you can set the proper urn's for your IDE with the command bin/magento dev:urn:generate, but if you're running your Magento development environment in a VM (like I am) the paths generated do not match with the path on your development machine.

For example, in my VM, Magento 2 is installed in /var/www/magento, and /var/www is mounted on my local directory /Users/giel/PhpStormProjects/ProjectName.

So when I run bin/magento dev:urn:generate ../misc.xml it generates all mappings to /var/www/magento instead of /Users/giel/PhpStormProjects/ProjectName, rendering this feature useless if you're running it in a VM.

So there are 2 options here:

  • I can edit misc.xml and find and replace all the paths. Or:
  • We can add an extra option to the CLI command, --prefix for example.

If we go for option 2, we can do something like:

bin/magento dev:urn:generate --prefix="/Users/giel/PhpStormProjects/ProjectName/" ../misc.xml

Would this be a nice attribution to this function? If so, I wouldn't mind spending some time creating it and sending a PR.

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants