These are chat archives for ExtCore/ExtCore

20th
Aug 2016
Артём Баранов
@artemb89
Aug 20 2016 07:11
На правах рекламы) Вчера сделал очень небольшое расширение https://github.com/artemb89/ExtCore.ThemeManager
Dmitry Sikorsky
@DmitrySikorsky
Aug 20 2016 07:12
:) посмотрим
Артём Баранов
@artemb89
Aug 20 2016 07:13
В демке тема переключается в конфиге)
там их пока две, Red и Blue.
gergc
@gergc
Aug 20 2016 19:46
Hey Dmitry, I'm the one who submitted the whole extensions not working on Linux thing. I still can't get it to work. Nothing in the logs that I can see which would indicate where the problem is coming from.
Any thoughts or ideas?
Dmitry Sikorsky
@DmitrySikorsky
Aug 20 2016 19:54
I will check this. But you can just copy extcore sources into your app and debug. If it doesnt try to load the extensions maybe it is just path problem.
gergc
@gergc
Aug 20 2016 19:54
I was thinking that, but I strace'd dotnet as it ran and it didn't seem to even try and find the Extensions directory. I'm just trying to run your sample
Dmitry Sikorsky
@DmitrySikorsky
Aug 20 2016 19:55
I will be able to check on Linux only on Monday
gergc
@gergc
Aug 20 2016 19:55
Where does it try to find the path itself? ExtCore.Infrastructure?
Dmitry Sikorsky
@DmitrySikorsky
Aug 20 2016 19:55
ExtCore.WebApplication, AssemblyProvider
gergc
@gergc
Aug 20 2016 19:56
Ah, okay. I'll take a look.
Dmitry Sikorsky
@DmitrySikorsky
Aug 20 2016 19:56
It diesnt try to load extensions if a) there is no path parameter in config or b) if there is no such path
gergc
@gergc
Aug 20 2016 19:58
yeah, I tried specifying the explicit path but that doesn't seem to work.
Dmitry Sikorsky
@DmitrySikorsky
Aug 20 2016 20:01
It adds app root
So abs path will not work
gergc
@gergc
Aug 20 2016 20:06
Ah, i see.
gergc
@gergc
Aug 20 2016 20:40
OK, I figured it out.
It's obviously a path issue.
By default your extensions path is \\Extensions
This message was deleted
but your code does something like %AppRoot%\
A Linux path, for example. is /srv/Application/. That would make it try and use /srv/Application\Extensions which is invalid
To fix it I had to specify the path like: //Extensions
Dmitry Sikorsky
@DmitrySikorsky
Aug 20 2016 20:45
Oh, so it works? I will add this info to the readme!
Thank you!
gergc
@gergc
Aug 20 2016 20:46
Yes, it does. Specifying the path like //Extensions also works with Windows, so you can probably just change it in the default config and put a note there.
(I don't know about Mac, haven't tried it there)
my guess is it'll be the same as Linux...but I could be wrong.
Dmitry Sikorsky
@DmitrySikorsky
Aug 20 2016 21:24
I will add the comment to the config too, yes!