HotReload LiveReload LiveXaml [Mac] [Windows] [nuget package] [opensource]

13»

Posts

  • JohnHJohnH GBMember ✭✭✭✭✭
    edited June 13

    @AndreiMisiukevich_ said:
    Device autodiscovery feature is released

    Just tried it and it works nicely! However for me I had to set the discovery port to 15001 and I still need to do the adb port forward. The result of this is that I can only see the XAML changes on a single droid emulator at a time.
    EDIT: I am using VS2019 on Windows in case that makes a difference

  • AndreiMisiukevich_AndreiMisiukevich_ USMember ✭✭✭✭✭

    @JohnH unfortunately it's constraint :( try to run one more emulator, what will happen?

  • AndreiMisiukevich_AndreiMisiukevich_ USMember ✭✭✭✭✭

    We added RIDER plugin
    Also you needn't forward ports on android emulators anymore

    https://github.com/AndreiMisiukevich/HotReload

  • AndreiMisiukevich_AndreiMisiukevich_ USMember ✭✭✭✭✭

    @JamesLavery said:
    This looks impressive but I'm afraid a major advantage of LiveXAML over HotReload is that you don't need to make any code changes to your app - just add the NuGet package.

    check HotReload again ) it became much more powerful

  • AndreiMisiukevich_AndreiMisiukevich_ USMember ✭✭✭✭✭

    @alinescoo said:
    Hello,

    I gave HotReload a try and I find something confusing about setting it up. (Windows 10, android emulator 8.1)
    Here's what I did:
    1. added the extension, nuget package in the projects
    2. I am using emulator so tried with default 127.0.0.1:8000 but I did not see my xaml being updated as I changed it.
    3. I've set the port to another value in Init constructor and also used the adb forward.

    It worked for a little while, even if it threw some errors but I managed to get some preview, now it fails again to work. I press Connect and the icon turns green, no error shown.

    Interesting that on output I can see that HOTRELOAD STARTED and I see the emulator IP addresses, but they are different from localhost.

    What am I doing wrong? Any advices?

    check latest version mate )

  • AndreiMisiukevich_AndreiMisiukevich_ USMember ✭✭✭✭✭

    @JohnH said:

    @AndreiMisiukevich_ said:
    Device autodiscovery feature is released

    Just tried it and it works nicely! However for me I had to set the discovery port to 15001 and I still need to do the adb port forward. The result of this is that I can only see the XAML changes on a single droid emulator at a time.
    EDIT: I am using VS2019 on Windows in case that makes a difference

    latest versions don't require manual port forwarding. It is achieved automatically) check Readme on my github

  • AndreiMisiukevich_AndreiMisiukevich_ USMember ✭✭✭✭✭
  • JohnHJohnH GBMember ✭✭✭✭✭

    That looks great! How soon is soon? :p

  • AndreiMisiukevich_AndreiMisiukevich_ USMember ✭✭✭✭✭

    @JohnH 1 week approximately, i think

  • batmacibatmaci DEMember ✭✭✭✭✭

    nice progress. it works fine on windows but i dont why i cant make it my macbook. its probably some port problem but i couldnt get it work. any clue? or how can i diagnose it? output window shows no error

  • AndreiMisiukevich_AndreiMisiukevich_ USMember ✭✭✭✭✭

    @batmaci it's weird. HotReload for Mac is usually more stable.

    Do you use real macbook?
    Can you try to disable firewall ?

    btw, have you enabled extension ?

  • batmacibatmaci DEMember ✭✭✭✭✭

    @AndreiMisiukevich_ said:
    @batmaci it's weird. HotReload for Mac is usually more stable.

    Do you use real macbook?
    Can you try to disable firewall ?

    btw, have you enabled extension ?

    @AndreiMisiukevich_ said:
    @batmaci it's weird. HotReload for Mac is usually more stable.

    Do you use real macbook?
    Can you try to disable firewall ?

    btw, have you enabled extension ?

    yes sure physical macbook, no remote connection or vm :D i disabled firewall and enabled extension but it didnt help. 15000 is the port it shows that it is connected but i think that in the output i see something like port 8000. could it be the problem? i had no problem on windows. it connected without doing any set up.

  • AndreiMisiukevich_AndreiMisiukevich_ USMember ✭✭✭✭✭

    @batmaci said:

    @AndreiMisiukevich_ said:
    @batmaci it's weird. HotReload for Mac is usually more stable.

    Do you use real macbook?
    Can you try to disable firewall ?

    btw, have you enabled extension ?

    @AndreiMisiukevich_ said:
    @batmaci it's weird. HotReload for Mac is usually more stable.

    Do you use real macbook?
    Can you try to disable firewall ?

    btw, have you enabled extension ?

    yes sure physical macbook, no remote connection or vm :D i disabled firewall and enabled extension but it didnt help. 15000 is the port it shows that it is connected but i think that in the output i see something like port 8000. could it be the problem? i had no problem on windows. it connected without doing any set up.

    well,

    enable extension
    run your app

    try to switch to another xaml page then go back (i've fixed one such bug today..)

  • JohnHJohnH GBMember ✭✭✭✭✭

    @AndreiMisiukevich_ said:
    @JohnH 1 week approximately, i think

    Is it 1 week yet? ;)
    Looking forward to demonstrating this to the team!

  • AndreiMisiukevich_AndreiMisiukevich_ USMember ✭✭✭✭✭

    @JohnH said:

    @AndreiMisiukevich_ said:
    @JohnH 1 week approximately, i think

    Is it 1 week yet? ;)
    Looking forward to demonstrating this to the team!

    i think, you will be able to do it on Monday :)

  • AndreiMisiukevich_AndreiMisiukevich_ USMember ✭✭✭✭✭

    @batmaci said:

    @AndreiMisiukevich_ said:
    @batmaci it's weird. HotReload for Mac is usually more stable.

    Do you use real macbook?
    Can you try to disable firewall ?

    btw, have you enabled extension ?

    @AndreiMisiukevich_ said:
    @batmaci it's weird. HotReload for Mac is usually more stable.

    Do you use real macbook?
    Can you try to disable firewall ?

    btw, have you enabled extension ?

    yes sure physical macbook, no remote connection or vm :D i disabled firewall and enabled extension but it didnt help. 15000 is the port it shows that it is connected but i think that in the output i see something like port 8000. could it be the problem? i had no problem on windows. it connected without doing any set up.

    https://github.com/AndreiMisiukevich/HotReload/issues/102

  • JohnHJohnH GBMember ✭✭✭✭✭

    @AndreiMisiukevich_ said:

    @JohnH said:

    @AndreiMisiukevich_ said:
    @JohnH 1 week approximately, i think

    Is it 1 week yet? ;)
    Looking forward to demonstrating this to the team!

    i think, you will be able to do it on Monday :)

    Morning Andrei! How are you getting on?

  • AndreiMisiukevich_AndreiMisiukevich_ USMember ✭✭✭✭✭

    @JohnH said:

    @AndreiMisiukevich_ said:

    @JohnH said:

    @AndreiMisiukevich_ said:
    @JohnH 1 week approximately, i think

    Is it 1 week yet? ;)
    Looking forward to demonstrating this to the team!

    i think, you will be able to do it on Monday :)

    Morning Andrei! How are you getting on?

    almost finished. Have some troubles with Android. But hope i will create release tonight

  • JohnHJohnH GBMember ✭✭✭✭✭

    Thanks Andrei, it works very well!
    The requirement of having to add attributes and interfaces to the page, is that going to stay long term?

  • AndreiMisiukevich_AndreiMisiukevich_ USMember ✭✭✭✭✭

    @JohnH said:

    Thanks Andrei, it works very well!
    The requirement of having to add attributes and interfaces to the page, is that going to stay long term?

    unfortunately it's limit of current solution :(

  • RicoDevRicoDev Member ✭✭

    This HotReloader does not work for me.

    I have visual studio 2017

  • RicoDevRicoDev Member ✭✭

    This HotReloader does not work for me.

    I have windows \ visual studio 2017 and work on android device

    Set Extension

    version 1.4.0 and enabled icon (Extension has started to listen 15000 port for IP auto discovery)

    Set package nuget

    1.4.19 only on PCL project

    Set run on app

      public App()
        {
            InitializeComponent();
    

    if DEBUG

            HotReloader.Current.Run(this); 
    

    endif

    Set HotReloader.CSharpVisual on Content page

    [HotReloader.CSharpVisual]
    public partial class LoginPage : ContentPage
    {

    What did i do wrong?

  • AndreiMisiukevich_AndreiMisiukevich_ USMember ✭✭✭✭✭

    @RicoDev stay on nuget version 1.4.15 and enjoy XAML reloading
    seems there is an issue with windows and latest nuget version

  • RicoDevRicoDev Member ✭✭

    I set for nuget version 1.4.15.

    The clause [HotReloader.CSharpVisual] doest exists and i removed it.

    But anyway doesnt work .

    What need more?

  • AndreiMisiukevich_AndreiMisiukevich_ USMember ✭✭✭✭✭

    @RicoDev said:
    I set for nuget version 1.4.15.

    The clause [HotReloader.CSharpVisual] doest exists and i removed it.

    But anyway doesnt work .

    What need more?

    Code reloading is not available in version 1.4.15, XAML only

    Check documentation for setting up this plugin https://github.com/AndreiMisiukevich/HotReload

  • RicoDevRicoDev Member ✭✭

    Ok, i did understand, but i mean about XAML only.
    Does NOT work on XAML and when looks like work, then changes is too slow on screen or doesn´t change nothing.

    Do I need to make any changes to my configuration?

  • AndreiMisiukevich_AndreiMisiukevich_ USMember ✭✭✭✭✭

    @RicoDev said:
    Ok, i did understand, but i mean about XAML only.
    Does NOT work on XAML and when looks like work, then changes is too slow on screen or doesn´t change nothing.

    Do I need to make any changes to my configuration?

    Don't think you can do anything in case of it sometimes works for you.

Sign In or Register to comment.