I am new to Hybris environment. For past two days i have been working on addons concept. i can able to copy my addon files to the target storefront successfully and also compiled with no error. But the issue is my addon is not working(overriding) the functionality of the core code base. The core code is only executing.
I tried to debug, debugger is entering into my corresponding addon controller, then i got the following error message from eclipse. then it jumps into the core code controller and it got executed.
Can someone explain me the complete workflow of the AddOn and also the mistake that i have committed?
Any sort of answer is welcome from the Hybris developers. Thank you in advance.
I think you have committed mistake in < storefrontTemplateName >. The command to install addon is
ant addoninstall -Daddonnames="addon_name" -DaddonStorefront.yacceleratorstorefront="custom_storefront_name"
Do you have done some 'copy and paste action' or did you use the install command from hybris? You have to explicit 'install' the addon. Have a look here how it is working:
https://wiki.hybris.com/display/accdoc50to56/Installing+an+AddOn+for+a+Specific+Storefront
Related
I am trying to figure out how my VSIX project stopped working [VS2022]. following this article, I was able to run and debug my VSIX project with an IWizard implementation. Something changed, I'm not sure what. I can F5-run and everything works but the code executing is not the latest code and I'm unable to hit any breakpoints (VS says No Symbols have been loaded for this document). I can tell its not the latest code because of the debug console messages and the UI is an older version.
I've tried a number of things including
Clean install
Made sure I'm in debug
Removed the extension from VS, and just tried running debug from VS
Verified compiled output is in AppData\Local\Microsoft\VisualStudio\17.0_c281014fExp\Extensions\ {myextension}
Property settings are set
Assets have not changed
I did mess around adding additional install targets but I don't think this caused any issues
Any ideas how the the project can be out of sync with the code?
I could go back to the start and implement a new project but hoping someone out there can help resolve this issue. Appreciate the help.
I figured this out. I don't know why it works the way it does, but this definitely fixed the problem.
I removed ALL extensions from VS using the extensions manager interface. So, all old instances are gone (but are they?)
In my VSIXProject I would do a clean solution, rebuild, run. I verified that the latest DLL's were being output to
C:\Users{user}\AppData\Local\Microsoft\VisualStudio\17.0_c281014fExp\Extensions{username}\Acme Project Template\1.0\VSIProject1.dll - VS Build output went here
In the debugger, when my little windows form loaded, I could tell it was old code and caught the reference in the output windows that it was loading an older version of the package.
C:\Users{user}\AppData\Local\Microsoft\VisualStudio\17.0_c281014fExp\Extensions{username}\Multi Project Name\1.0\VSIProject1.dll - debugger loaded this
C:\Users{user}\AppData\Local\Microsoft\VisualStudio\17.0_c281014fExp\Extensions{username}\Acme Project Name\1.0\VSIProject1.dll - debugger loaded this after deleting above
C:\Users{user}\AppData\Local\Microsoft\VisualStudio\17.0_c281014fExp\Extensions{username}\Acme Project Template\1.0\VSIProject1.dll - VS Build output went here
After I deleted all the previous extensions in file explorer and re-ran my project, the right code executed and debugging was enabled. IDK why the older versions were picked during debugging but it's fixed. HTH someone.
I have apim source code from github, How can i add some code to the project and build as new ? How to run and debug in intellij idea?
If you are looking to add backend changes, you can do the necessary changes in the carbon-apimgt repository. Once the changes have been done, if you are looking to build a new pack with your changes, you can follow the steps mentioned here. You can follow this guide to debug using IntelliJ IDEA.
If you are looking to add frontend changes, you can follow the steps mentioned here.
Can anyone help me with this one.
I git cloned a new azetothcore.
Added custom mods like Luna, anti cheat, AH bot, etc... all from azerothcore
Then add build file, and attempt to compile, but I keep getting errors
[
I found that the issue was related to Linux... I compiled on windows OS, and it worked fine
I started looking at the Magnolia CMS system and found a project on the web and I can't open it and run it.
This are the files:
author.tar
magnolia.tar.xz
public.tar.xz
magnolia.tar
I tried to add the files into apache folder and run it, I tried with Magnolia CLI to run it, but with no success.
I miss something, but I'm completely new to Magnolia, so I have no idea.
Thanks in advance.
These pages should be sufficient to get started.
https://documentation.magnolia-cms.com/display/DOCS56/Getting+started+with+Magnolia
If you fancy CLI, then
https://documentation.magnolia-cms.com/display/DOCS56/Magnolia+CLI
Hope that helps,
Cheers,
After migrating from my old Macbook Pro to my new one, I find that my project will no longer run. Grails keeps giving me a "Error /Users/Michael/{proj}/{proj} does not appear to be part of a Grails application". Refresh dependencies does seem to run successfully.
I have verified the following:
there exists a folder grails-app in the project folder at the same location as on the old machine.
I did run a grails clean followed by a grails upgrade to 2.0.4
The one thing it could be is that the user directory name has changed between the two machines, but I do not see the old user directory name in either .project or application.properties or in any settings.
I solved this by deleting workspace\.metadata\.plugins\org.eclipse.debug.core\.launches\<project>.launch. It had cached the old absolute path.
Open the command line from within STS and executed a "run-app". There is sometime a problem with he workspace caches.
oops, saw that I had left this question unanswered.
The answer was to erase everything and rebuild from github. When in doubt, nuke it until it glows....
Armand's answer above was the simplest solution - thanks Armand
This has been my experience - when working with the Grails in the IDE - in certain cases it's better to use the command line to issue grails commands (this was a good reminder)
Related to this, it seems better to run-app from cmd line as well (as opposed to using the IDE Project->Run As), since you can just stop the server easily with ctrl-c