Modify

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#9518 closed enhancement (fixed)

Automatically reload local config files when changed

Reported by: naoliv Owned by: team
Priority: normal Milestone: 14.06
Component: Core Version:
Keywords: Cc:

Description

It would be nice if JOSM could automatically reload local config files (validator .cfg or .mapcss, for example) when they get modified (using some file notification system for this).

Attachments (0)

Change History (14)

comment:1 by simon04, 10 years ago

Milestone: 14.05

comment:2 by Klumbumbus, 10 years ago

That would be very helpful. When you edit and test mappaint styles, you always need to restart JOSM or delete and re add the style to JOSM after every little change to see the result. That is a bit annoying.

comment:3 by Don-vip, 10 years ago

Concerning map styles, there is already a mechanism with mappaint.auto_reload_local_styles in the Map Paint dialog, which can be replaced by a generic WatchService approach.

in reply to:  3 comment:4 by Klumbumbus, 10 years ago

Replying to Don-vip:

Concerning map styles, there is already a mechanism with mappaint.auto_reload_local_styles in the Map Paint dialog.

Thanks for the hint, that helps a lot. Though this does only work if the dialog is displayed in the sidebar.

comment:5 by Don-vip, 10 years ago

Yes I plan to replace this feature by a better mechanism. But I'll keep the preference entry.

comment:6 by Don-vip, 10 years ago

Milestone: 14.0514.06

comment:7 by Don-vip, 10 years ago

In 7185/josm:

see #9518 - Automatically reload local styles using new Java 7 WatchService API

comment:8 by Don-vip, 10 years ago

In 7188/josm:

see #9518, see #10078 - add debug message for ignored events

comment:9 by naoliv, 10 years ago

It still doesn't apply to local MapCSS validator files, right?

comment:10 by Don-vip, 10 years ago

Not yet, work in progress :)

comment:11 by Don-vip, 10 years ago

Ticket #10188 has been marked as a duplicate of this ticket.

comment:12 by Don-vip, 10 years ago

In 7275/josm:

see #9518 - refactor internals of MapCSSTagChecker to prepare later work, improve javadoc

comment:13 by Don-vip, 10 years ago

Resolution: fixed
Status: newclosed

In 7276/josm:

fix #9518 - Automatically reload MapCSS tagchecker validator rules (configurable with validator.auto_reload_local_rules property), improve javadoc

comment:14 by Don-vip, 10 years ago

Ticket #6046 has been marked as a duplicate of this ticket.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.