[josm-dev] Feature Request: Timed Save

2010-06-23 Thread Nick Elliott
Hi all

Is there any chance the option of timed saves could be added to JOSM?  I
find the program does occasionally exit without warning and I just lost
about 25mins of editing..  Doh.

Many thanks for a great program

Nick


___
josm-dev mailing list
josm-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/josm-dev


Re: [josm-dev] Feature Request: Timed Save

2010-06-23 Thread Ævar Arnfjörð Bjarmason
On Wed, Jun 23, 2010 at 10:37, Nick Elliott  wrote:
> Is there any chance the option of timed saves could be added to JOSM?  I
> find the program does occasionally exit without warning and I just lost
> about 25mins of editing..  Doh.

That may be a good idea, but if JOSM is randomly crashing on you we
should try to fix that first.

Do you get anything in the console log when it does this? What are you
doing at the time etc.

___
josm-dev mailing list
josm-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/josm-dev


Re: [josm-dev] Feature Request: Timed Save

2010-06-23 Thread MP
On my old computer JOSM was quite a favorite target for OOM killer (1
gb java heap) or prone to OutOfMemory exceptions (500-600 mb java
heap). I think neither of these can be fixed in JOSM. There are also
other crashes that can't be fixed in the JOSM code - power outages,
blue screens of death, kernel crashes, whole computer freezes, etc
 So some form of autosave would be nice.

Martin

On 23/06/2010, Ævar Arnfjörð Bjarmason  wrote:
> On Wed, Jun 23, 2010 at 10:37, Nick Elliott  wrote:
>  > Is there any chance the option of timed saves could be added to JOSM?  I
>  > find the program does occasionally exit without warning and I just lost
>  > about 25mins of editing..  Doh.
>
>
> That may be a good idea, but if JOSM is randomly crashing on you we
>  should try to fix that first.
>
>  Do you get anything in the console log when it does this? What are you
>  doing at the time etc.
>
>
>  ___
>  josm-dev mailing list
>  josm-dev@openstreetmap.org
>  http://lists.openstreetmap.org/listinfo/josm-dev
>

___
josm-dev mailing list
josm-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/josm-dev


Re: [josm-dev] Feature Request: Timed Save

2010-06-23 Thread Alan Mintz
At 2010-06-23 13:51, MP wrote:
>...So some form of autosave [in JOSM] would be nice...

Yes, it would. With a configurable time period, of course.

--
Alan Mintz 


___
josm-dev mailing list
josm-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/josm-dev


Re: [josm-dev] Feature Request: Timed Save

2010-06-24 Thread Attila Szász
This request sounds very similar to a kind of a "session saver" I thought
about recently.
Personally I prefer doing a series of edits then I upload them in one single
batch - probably because I am too lazy to add comments with every upload.
The other scenario is that e.g. you lose your network connection while
editing and obviously you don't want to lose your edits by closing JOSM
down. It would be really handy to be able to "continue" later on.
A similar third scenario: you are surveying for several days with your
laptop and you don't have network access. You don't want to keep JOSM open
for the entire period of time as you want to shut your system down when not
working to save battery.

By the way, will JOSM detect conflicts when uploading, right?, i.e. when
somebody else has edited the same primitives while being offline.


Attila


On 23 June 2010 23:12, Ævar Arnfjörð Bjarmason  wrote:

> On Wed, Jun 23, 2010 at 20:51, MP  wrote:
> > On my old computer JOSM was quite a favorite target for OOM killer (1
> > gb java heap) or prone to OutOfMemory exceptions (500-600 mb java
> > heap). I think neither of these can be fixed in JOSM.
>
> Well, JOSM could use on-disk storage (like SQLite or PostgreSQL), but
> that would be a pretty major change. Although perhaps it's easier now
> with more encapsulated access to the storage backends.
>
> But a feature like this sounds useful, although personally I just get
> into the habit of making very quick and granular uploads.
>
> ___
> josm-dev mailing list
> josm-dev@openstreetmap.org
> http://lists.openstreetmap.org/listinfo/josm-dev
>
___
josm-dev mailing list
josm-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/josm-dev


Re: [josm-dev] Feature Request: Timed Save

2010-06-24 Thread Claudius
Am 24.06.2010 11:37, Attila Szász:
> Personally I prefer doing a series of edits then I upload them in one single
> batch - probably because I am too lazy to add comments with every upload.
> The other scenario is that e.g. you lose your network connection while
> editing and obviously you don't want to lose your edits by closing JOSM
> down. It would be really handy to be able to "continue" later on.

Save your edits as .osm file?

> A similar third scenario: you are surveying for several days with your
> laptop and you don't have network access. You don't want to keep JOSM open
> for the entire period of time as you want to shut your system down when not
> working to save battery.

Save your edits as .osm file?

Yet apart from that an automatically created autosave.osm would be nice 
indeed.

> By the way, will JOSM detect conflicts when uploading, right?, i.e. when
> somebody else has edited the same primitives while being offline.

Yes. You will be prompted to download the area of conflict and resolve 
them with the help of the... *drumroll* conflict resolve window :)

Claudius


___
josm-dev mailing list
josm-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/josm-dev


Re: [josm-dev] Feature Request: Timed Save

2010-06-24 Thread Marko Mäkelä

On Thu, Jun 24, 2010 at 01:34:26PM +0200, Claudius wrote:

Am 24.06.2010 11:37, Attila Szász:

Personally I prefer doing a series of edits then I upload them in one single
batch - probably because I am too lazy to add comments with every upload.
The other scenario is that e.g. you lose your network connection while
editing and obviously you don't want to lose your edits by closing JOSM
down. It would be really handy to be able to "continue" later on.


Save your edits as .osm file?


And lose your undo history when reloading?

Marko

___
josm-dev mailing list
josm-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/josm-dev


Re: [josm-dev] Feature Request: Timed Save

2010-06-24 Thread M∡rtin Koppenhoefer
2010/6/24 Marko Mäkelä :
> On Thu, Jun 24, 2010 at 01:34:26PM +0200, Claudius wrote:

>> Save your edits as .osm file?
>
> And lose your undo history when reloading?


yes. IMHO that's a minor issue. If you're editing you might need a lot
of undos for the last actions, but you will never (at least me) undo
all of your work because you made a mistake at the beginning (and
loose all the other edits). Either you undo shortly after the action
or you will not undo generally,
my 2 cts.

+1 for an autosave action (sure, in the background would be very
nice), configurable (on/off and time intervall in minutes)

cheers,
Martin

___
josm-dev mailing list
josm-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/josm-dev


Re: [josm-dev] Feature Request: Timed Save

2010-06-24 Thread Marko Mäkelä

On Thu, Jun 24, 2010 at 03:14:58PM +0200, M∡rtin Koppenhoefer wrote:

2010/6/24 Marko Mäkelä :

On Thu, Jun 24, 2010 at 01:34:26PM +0200, Claudius wrote:



Save your edits as .osm file?


And lose your undo history when reloading?



yes. IMHO that's a minor issue. If you're editing you might need a lot 
of undos for the last actions


If the crash is unpredictable, you might need to undo some last actions 
after recovering from the *.osm file.


+1 for an autosave action (sure, in the background would be very nice), 
configurable (on/off and time intervall in minutes)


With a configurable file name pattern, it could be even more useful.  
Then you would have some "history" by having multiple snapshots of the 
work.


Marko

___
josm-dev mailing list
josm-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/josm-dev


Re: [josm-dev] Feature Request: Timed Save

2010-06-24 Thread Attila Szász
On 24 June 2010 12:34, Claudius  wrote:

> Am 24.06.2010 11:37, Attila Szász:
> > Personally I prefer doing a series of edits then I upload them in one
> single
> > batch - probably because I am too lazy to add comments with every upload.
> > The other scenario is that e.g. you lose your network connection while
> > editing and obviously you don't want to lose your edits by closing JOSM
> > down. It would be really handy to be able to "continue" later on.
>
> Save your edits as .osm file?
>

I must have overlooked that menu. Sorry for that. :)
However an .osm file won't contain session information, e.g. layer settings,
command history, those would be lost on reopen.
But session information saving is probably a different topic.


> > A similar third scenario: you are surveying for several days with your
> > laptop and you don't have network access. You don't want to keep JOSM
> open
> > for the entire period of time as you want to shut your system down when
> not
> > working to save battery.
>
> Save your edits as .osm file?
>
> Yet apart from that an automatically created autosave.osm would be nice
> indeed.
>
> > By the way, will JOSM detect conflicts when uploading, right?, i.e. when
> > somebody else has edited the same primitives while being offline.
>
> Yes. You will be prompted to download the area of conflict and resolve
> them with the help of the... *drumroll* conflict resolve window :)
>
> Claudius
>
>
> ___
> josm-dev mailing list
> josm-dev@openstreetmap.org
> http://lists.openstreetmap.org/listinfo/josm-dev
>
___
josm-dev mailing list
josm-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/josm-dev