Sim
Well-known member
- Affected version
- XF2.x
I have an addon in development on my XF2.0 dev machine which I wanted to test on XF2.1.
I cloned my addon's git repo to a new XF2.1b4 installation and checked out my develop branch which contains the _output directory (and no _data directory).
Next, I went to the addon section in the admin UI and clicked install next to the installable addon.
It gave me the usual warnings about development output and so I checked the "proceed" box and installed.
The installation said it was successful - but my addon wasn't working. On further investigation, I discovered that the code event listener (only thing this addon creates) was not installed. Importing the addon data from the CLI didn't help.
So to further test this, I created a new XF2.0 dev install, and cloned the git repo again, but this time I used the CLI to install the addon:
This time the code event listener was created as expected. I went back and confirmed that installing on XF2.1 via CLI also worked.
So, on both XF2.0 and XF2.1b4 - installing an addon from dev output via the GUI does not work as expected, while installing it from the CLI does.
I get the feeling like we've had this conversation before (way back in XF2.0 beta territory) and that you're going to tell me that this is expected behaviour?
I cloned my addon's git repo to a new XF2.1b4 installation and checked out my develop branch which contains the _output directory (and no _data directory).
Next, I went to the addon section in the admin UI and clicked install next to the installable addon.
It gave me the usual warnings about development output and so I checked the "proceed" box and installed.
The installation said it was successful - but my addon wasn't working. On further investigation, I discovered that the code event listener (only thing this addon creates) was not installed. Importing the addon data from the CLI didn't help.
So to further test this, I created a new XF2.0 dev install, and cloned the git repo again, but this time I used the CLI to install the addon:
xf-addon:install MyAddonId
This time the code event listener was created as expected. I went back and confirmed that installing on XF2.1 via CLI also worked.
So, on both XF2.0 and XF2.1b4 - installing an addon from dev output via the GUI does not work as expected, while installing it from the CLI does.
I get the feeling like we've had this conversation before (way back in XF2.0 beta territory) and that you're going to tell me that this is expected behaviour?