Skip to main content
dbDavideBoscolo
Legend
September 15, 2023
Question

Conflict between Extensions

  • September 15, 2023
  • 2 replies
  • 1452 views

Hi all, 

 

I have a persistent problem which I am not able to solve. I have developed two extensions which now sit on my workspace the whole time.

They are separate extensions, they don't communicate with each other. However, I've had a weird issue with one extension sometimes reading the other extension license key instead of its own (but they use different folders!), then returning an alert and loading the extension as if the License Key were wrong (which is correct).

I'm not sure what the reason was, but I renamed some jsx functions so they have different names plus I removed the folder object on each jsx file from being a global variable and I've put that into a function instead.

It worked but still I don't get why it happened. Anyway, let's move on...

 

There is still one issue going on and I think its related to the problem above. If I close one of these two extensions, it could happen that the other extension panel becomes empty. No buttons, nothing. And the only way at this point is to close the second one too, then reopen both. And this is too weird.

 

The two extensions have different data folders, different names, they listen to different events, all the names in the manifest files are different. Why does that happen?

 

Moreover, if I quit Overlord, which is another extension and not one of mine, it might also cause one of my two extensions to go empty.

 

Any ideas? 

This topic has been closed for replies.

2 replies

dbDavideBoscolo
Legend
November 30, 2023

Unfortunately using cep-bolt doesn't fix the issue. 

I have translated one of my extensions to cep-bolt and the problem persists as yoh can see here:

https://youtu.be/Wa3lZgNiAbU?feature=shared

Alex White
Legend
September 15, 2023

I'm very sure that the conflict occurs because of the JSX code. I'd recommend switching to Bolt-CEP since this boilerplate is flavored for a single JSX object attached to helper object $ for all your panels to prevent pollution in the global namespace.

https://github.com/hyperbrew/bolt-cep

 

dbDavideBoscolo
Legend
September 15, 2023

I love you! Thank you!