CodeboxIDE / codebox

Open source cloud & desktop IDE
https://www.codebox.io
Apache License 2.0
4.13k stars 588 forks source link

Unable to save/open a file #234

Closed colinprieto closed 10 years ago

colinprieto commented 10 years ago

Sometimes when i try to save or open a file codebox gets stuck. The loading indicators spin endlessly ...

capture decran 2014-02-04 a 16 52 59 Trying to open a file : capture decran 2014-02-04 a 17 07 23

To fix this i have to restart codebox which is really irritating. Thanks for your help !

AaronO commented 10 years ago

@colinprieto Sorry about that, I get that it can be really irritating.

This seems like a top priority bug. I'm looking into it as we speak.

Can you take a look at your chrome devtools when this happens and paste the logs here.

By any chance are you using the doks addon ?

AaronO commented 10 years ago

Look for pending requests in the network tab as well.

colinprieto commented 10 years ago

I do use doks addon. Here are the logs : capture decran 2014-02-04 a 18 01 19

AaronO commented 10 years ago

Ok can you try uninstalling.

It's now useless by the way, because I removed the doks.io service in favor of a self contained module that will replace the functionality of doks.io that we used for codebox.

So uninstall it, restart your codebox instance and report back if you're still getting any errors, I don't think you should.

A few other people were experiencing the same errors as you and it seems like the doks addon is to blame since.

The doks addon will be updated by this weekend to use the new node module instead of the service via the API and won't even need the network any more for code completion and will only use the network to open documentation pages which is the desired and preferred behavior IMHO.

Give this a shot, tell me if that solves the issue, if so we'll get this closed.

@colinprieto Thanks for pointing this out and sorry for the inconvenience.

colinprieto commented 10 years ago

I have removed doks but i am still getting some errors on the logs. The indicator is not visible. capture decran 2014-02-04 a 18 32 33

AaronO commented 10 years ago

You'll need to restart your instance to complete the removal. (maybe an improvement would be to support clean removal of add-ons at runtime or just make the common ones clean).

Give that a try and let us know.

colinprieto commented 10 years ago

I got these errors after restarting the box

AaronO commented 10 years ago

Do you have offline sync enabled on a large project ? (Check Settings > Offline and check if the box is toggled or not)

AaronO commented 10 years ago

Do you have the offline sync in progress when this happens (it has an indicator in the bottom left corner) ?

Maybe the offline sync (of a large project) is the origin of your problems.

colinprieto commented 10 years ago

Offline sync is disabled. No offline sync in progress.

Arthurlouge commented 10 years ago

:+1:

SamyPesse commented 10 years ago

Is it still happening ?

If yes, can you answer the following questions:

Really sorry about this issue :/ I need to know the maximum about the situation for solving this.

colinprieto commented 10 years ago

It seems to work fine now but if it happens again i will let you know.