GithubHelp home page GithubHelp logo

Comments (15)

iamvery avatar iamvery commented on May 9, 2024 1

Looks like #156 fixes the reload detection problem in IntelliJ. I guess we'll give @jkbbwr a couple days to confirm, and we'll close out this issue. Thanks everyone! ❤️

from elixir-koans.

cliche818 avatar cliche818 commented on May 9, 2024

I had to actually turn off safe write in IntelliJ (Appearance & Behavior > System Settings > Synchronization > check off Use "safe write".

My fix didn't really help as after a few edits, the watcher will fail to reload the right file.

It seems IntelliJ write temp files like
/elixir-koans/lib/koans/03_sigils.ex___jb_old___
/elixir-koans/lib/koans/03_sigils.ex___jb_tmp___

And it writes multiple times when I edit a file which I think causes the watcher to not keep up.

from elixir-koans.

jkbbwr avatar jkbbwr commented on May 9, 2024

Thanks very much!

from elixir-koans.

leapingfrogs avatar leapingfrogs commented on May 9, 2024

@cliche818 - I'm not experiencing the issue you mention in not keeping up with edits, but I'm curious whether that was impacted by reloading for all files not just the .ex files. Would filtering the jb_tmp file suffix as in #156 help at all?

from elixir-koans.

cliche818 avatar cliche818 commented on May 9, 2024

@leapingfrogs Doesn't seem to help, I am using the latest version of IntelliJ with the save write checked to try this out. Same thing happens as before. It does reload a few times, but then it dies. Sometimes, it even says Code.LoadError could not load [the file I just changed].

from elixir-koans.

iamvery avatar iamvery commented on May 9, 2024

@cliche818 you mentioned above both "jb_tmp" and "jb_old" files being generated. The "normalize" solution only accounts for "tmp" files. Do you think that might be related?

from elixir-koans.

jkbbwr avatar jkbbwr commented on May 9, 2024

yea reload aint working

from elixir-koans.

felipesere avatar felipesere commented on May 9, 2024

@jkbbwr @cliche818 can you tell me a bit more about your setup?
I am running mix meditate in iTerm and editing the files in IntelliJ and it seems happy.
Oh and all of this is in OSX.

I just pushed an update the helped the reload in Ubuntu. Maybe that solved it?

from elixir-koans.

jkbbwr avatar jkbbwr commented on May 9, 2024

Seems to magically fix it for me.
Linux devbox2 4.9.8-1-ARCH #1 SMP PREEMPT Mon Feb 6 12:59:40 CET 2017 x86_64 GNU/Linux
IDEA 2017.1 EAP

from elixir-koans.

cliche818 avatar cliche818 commented on May 9, 2024

Works for me on OSX, but not when I am on Windows 7 64bit. I am using IntelliJ IDEA 2016.3.4. On Windows, it seems to either have Code.LoadError (elixir) lib/code.ex:657: Code.find_file/2 (elixir) lib/code.ex:319: Code.load_file/2 or it is behind on my edits like it is 2 versions behind what I have actually done.

from elixir-koans.

felipesere avatar felipesere commented on May 9, 2024

Grrr... I'll have to test this on a Windows box to debug.

from elixir-koans.

felipesere avatar felipesere commented on May 9, 2024

@cliche818 can you try again with latest master? We have updated some dependencies.

And, I may have access to a Windows box debug this. Could tell me a bit about your setup @cliche818 ? What do I need to configure and how are you actually running mix meditate?

from elixir-koans.

cliche818 avatar cliche818 commented on May 9, 2024

@felipesere Still the same as before, tried on IntelliJ IDEA 2016.3.6 first then 2017.1 since I needed to update my IDE. It's Windows 7 64bit.

Just went to elixir-lang.org and got the installer for Windows. I am using elixir version 1.3.2, I haven't updated in like half a year, doubt it matters for this bug. I just use the window's command prompt to run mix meditate.

from elixir-koans.

felipesere avatar felipesere commented on May 9, 2024

Any movement on this?

from elixir-koans.

felipesere avatar felipesere commented on May 9, 2024

This has been resolved as we have @caspg changes in our tree.

from elixir-koans.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.