[josm-dev] New plugin development - wiki issues
Hi, I wan't to test some ideas on Tracer plugin (connect to different, vector based source - RUIAN). So I went through wiki page: http://josm. openstreetmap.de/wiki/DevelopersGuide/DevelopingPlugins I've fetched plugins svn, slightly updated the Tracer plugin and tried to build them. It failed - some utils missed. I had to build all plugins first, then I was able to build it. Maybe this should be mentioned in Wiki. Then I decided to fork the Tracer plugin. I have copied the Tracer folder, renamed it. Now, it builds fine, but then it fails on REVISION.XML. = compile: [echo] compiling sources for ../../dist/RUIANTracer.jar ... [javac] Compiling 6 source files to /home/marian/data/josm/josm_plugins/ plugins/RUIANtracer/build [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.6 [javac] 1 warning init-svn-revision-xml: [exec] Result: 1 init-git-revision-xml: revision: [xmlproperty] [Fatal Error] :-1:-1: Premature end of file. BUILD FAILED /home/marian/data/josm/josm_plugins/plugins/build-common.xml:192: Failed to load /home/marian/data/josm/josm_plugins/plugins/RUIANtracer/REVISION.XML Total time: 3 seconds = Output of: svn info --xml . svn: warning: W155010: The node '/home/marian/data/josm/josm_plugins/ plugins/RUIANtracer' was not found. svn: E29: Could not display info for all targets because some targets don't exist = Hi can I pass it without commit? Note: I have only basic knowledge about java. Note2: I saw there is Tracer2 plugin - nice work. maybe I'll get some inspiration there as well. Regards, Marián ___ josm-dev mailing list josm-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/josm-dev
[josm-dev] Request for review of plugins
Hi all, some time before I've started with plugin development. Initially I only wanted to change the hardcoded server URL in the Tracer plugin (http://wiki.openstreetmap.org/wiki/JOSM/Plugins/Tracer). But then it started to growth ;-) The original Trace plugin traces buildings (and other areas) from bitmaps from (Czech) cadastral map. Currently we have a new source in Czech Republic, called RUIAN (http://wiki.openstreetmap.org/wiki/RUIAN) where all buildings and parcels are already traced. As a bonus, some additional attributes like building usage, building levels, flats, start date and associated address are included as well. After some investigation I decided to extend the Tracer plugin to work with this new source. I've created a new mode called Tracer - RUIAN (accessible via Ctrl+T shorcut). The old Tracer is still available (shortcut: T) and can be used in areas that are not covered by RUIAN data (digitalization is still in progress and will take next several years). Later one, I've noticed that there is a new plugin called Tracer2 from Dirk Brünig. I liked the ability to update geometry of current building, so I decided to adopt this function (Thanks Dirk). It caused some troubles to me - Tracing the same building more times generated duplicated (not merged) nodes. Tracing in garages block causes duplicated nodes as well. I've tried to fix it and it is much better now, but still not perfect and I'm working on it. I also added some configuration page to allow change server URL and adjust traced building position (currently there is an discrepancy between cadastral map and RUIAN in some areas). The updated source with some screenshots could be found on https://github.com/mkyral/josm-tracer/tree/ruian I also made a brand new plugin called pointInfo. It is based on tracer plugin, but instead of tracing building, it shows an message with available information from RUIAN: building details, parcel details, associated addresses and close street. It is a simple plugin, I tried to make it modular, so it could be easy extended by new source. Screenshot and details are on github https://github.com/mkyral/josm-pointInfo Both plugins were discussed and tested by Czech OSM community (talk-cz@) and are regularly used by several users. I think that now are both plugins stable enough to include them in JOSM repository (and fix the annoying missing version issue). As I'm not a java programmer, I'm asking for code review and for help with commiting to JOSM tree. I've some experience with open source, I've made two plugins for Gimp (lisp and python) and I'm one of developer yawp (yet another weather plasmoid) for KDE. Thanks a lot, Marián ___ josm-dev mailing list josm-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/josm-dev
Re: [josm-dev] Request for review of plugins
Dne 25.2.2014 10:34, Dirk Stöcker napsal: On Tue, 25 Feb 2014, Marián Kyral wrote: Both plugins were discussed and tested by Czech OSM community (talk-cz@) and are regularly used by several users. I think that now are both plugins stable enough to include them in JOSM repository (and fix the annoying missing version issue). See https://josm.openstreetmap.de/wiki/DevelopersGuide/DevelopingPlugins Yes, I read this page, several times ;-) I think, it needs some improvements. E.g.: how to handle version in manifest for new plugin without commit to svn (se below). Some notes: a) You aren't required to have plugins in OSM-SVN. External plugins are also supported, see https://josm.openstreetmap.de/wiki/Plugins , but SVN has some advantages (like translations). No I aren't, but in case of Tracer plugin it is much better to update the source. It will avoid all possible future issues. I would like to keep git and sync it with the JOSM svn (via git-svn or by applying patches) Teoretically, I could manage PoinInfo externally, but I have an issue with versions in Manifest file. I tried git mirror - but I was not able to compile plugins. Now I'm using svn tree, but ant requires at least one commit of the new plugin, otherwise "ant dist" fails in target init-svn-revision-xml I have no idea how to fix it without commit to JOSM svn. As an workaround, I've changed to . b) If your code is an extension of Tracer plugin without breaking existing functionality, I'd vote for updating the existing plugin instead of a new one. If Tracer and Tracer2 can be joined I'd also would welcome that. It's confusing for users to have multiple plugins with the same goal. Tracer2 plugin uses rewritten .Net server. Allows user to define more sources of bitmaps. I did not tested deeply, but one user on talk-cz told me, that he prefers original Tracer as the results are better. Maybe it is just an issue with configuration, or it is a bug. I could ask him for some examples if needed. Initially I planned to do a third Tracer plugin ;-), then I decided to merge it with original Tracer and later on I've found that there is Tracer2 also. In theory Tracer and Tracer2 plugins could be merged in future, but currently Tracer plugin is focused mainly to Czech specific cases (Especially the RUIAN mode - server is sending not only geometry, but also additional attributes.) and Tracer2 is much more universal. c) Regarding shortcuts, have a look at https://josm.openstreetmap.de/wiki/DevelopersGuide/ShortcutsList :-) Yes, shortcuts. My nightmare :-( For Tracer, I wanted to stay close to "T", for pointInfo I wanted something that could be easily pressed by left hand. The only good news is, that user could change shortcut when needed (even they don't know about this possibility). As I'm not a java programmer, I'm asking for code review and for help with commiting to JOSM tree. I also was no Java programmer before starting with JOSM. We wont cut your head if you make errors. Testing with multiple users sounds already like a very good approach. Good to hear :-D Marián ___ josm-dev mailing list josm-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/josm-dev
Re: [josm-dev] Request for review of plugins
Dne 25.2.2014 12:55, Dirk Stöcker napsal: On Tue, 25 Feb 2014, Marián Kyral wrote: https://josm.openstreetmap.de/wiki/DevelopersGuide/DevelopingPlugins Yes, I read this page, several times ;-) I think, it needs some improvements. E.g.: how to handle version in manifest for new plugin without commit to svn (se below). Feel free to improve it... But I don't know how :-( a) You aren't required to have plugins in OSM-SVN. External plugins are also supported, see https://josm.openstreetmap.de/wiki/Plugins , but SVN has some advantages (like translations). No I aren't, but in case of Tracer plugin it is much better to update the source. It will avoid all possible future issues. I would like to keep git and sync it with the JOSM svn (via git-svn or by applying patches) Teoretically, I could manage PoinInfo externally, but I have an issue with versions in Manifest file. I tried git mirror - but I was not able to compile plugins. Now I'm using svn tree, but ant requires at least one commit of the new plugin, otherwise "ant dist" fails in target init-svn-revision-xml I have no idea how to fix it without commit to JOSM svn. As an workaround, I've changed to . ... or fix the build-common.xml. When reading the text it tells me, that svn should fail and git be used instead. Seems your svn does not fail enough? It probably delivers something. Maybe a check is needed to detect that invalid output? I have official svn copy and I've created a new plugin folder. Git is used only inside pointInfo folder. What I get: [pointInfo (master)]$ ant dist Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on Buildfile: /home/marian/data/josm/josm_plugins/plugins/pointInfo/build.xml init: compile: [echo] compiling sources for ../../dist/pointInfo.jar ... init-svn-revision-xml: [exec] Result: 1 init-git-revision-xml: revision: [xmlproperty] [Fatal Error] :-1:-1: Premature end of file. BUILD FAILED /home/marian/data/josm/josm_plugins/plugins/build-common.xml:193: Failed to load /home/marian/data/josm/josm_plugins/plugins/pointInfo/REVISION.XML Total time: 1 second When I rename .git to .git_ it changes a little: [pointInfo]$ ant dist Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on Buildfile: /home/marian/data/josm/josm_plugins/plugins/pointInfo/build.xml init: compile: [echo] compiling sources for ../../dist/pointInfo.jar ... init-svn-revision-xml: [exec] Result: 1 init-git-revision-xml: [exec] Result: 128 revision: [xmlproperty] [Fatal Error] REVISION.XML:1:1: Content is not allowed in prolog. BUILD FAILED /home/marian/data/josm/josm_plugins/plugins/build-common.xml:193: Failed to load /home/marian/data/josm/josm_plugins/plugins/pointInfo/REVISION.XML Total time: 1 second What I want - plugin compiles. Maybe use some default value in MANIFEST. Still we encourage using the SVN for several reasons, I18n and installation history for old JOSM versions are the two most important ones. I18n - do you mean lauchpad integration? - I don't like launchpad. I want to download .po file without registration (but this is a different story) Regards, Marián ___ josm-dev mailing list josm-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/josm-dev
Re: [josm-dev] Request for review of plugins
Dne 25.2.2014 16:13, Dirk Stöcker napsal: On Tue, 25 Feb 2014, Marián Kyral wrote: Feel free to improve it... But I don't know how :-( You can do so, when you know it :-) I have official svn copy and I've created a new plugin folder. Git is used only inside pointInfo folder. What I get: [...snip...] This looks much like a error in init-git-revision-xml. I never used that. It seems the code is designed to extract the value "git-svn-id". Your copy is git-only, so it has no git id. A check needs to be added, which does something useful in this case (e.g. using the date as version [2010-02-25 or 20100225], as git has no real version field). In folder with local .git repository (without git-svn-id), the command: git log -1 --grep=git-svn-id --pretty=format:%B%n%ai HEAD creates a blank REVISION.XML file. This then cause an error: revision: [xmlproperty] Loading /home/marian/data/josm/josm_plugins/plugins/pointInfo/REVISION.XML [xmlproperty] [Fatal Error] :-1:-1: Premature end of file. --- In plain folder (without .git folder inside), the same command generates following REVISION.XML file: $ cat /home/marian/data/josm/josm_plugins/plugins/pointInfo/REVISION.XML fatal: Not a git repository (or any parent up to mount point /home) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). This then causes an error: revision: [xmlproperty] Loading /home/marian/data/josm/josm_plugins/plugins/pointInfo/REVISION.XML [xmlproperty] [Fatal Error] REVISION.XML:1:1: Content is not allowed in prolog. Ant should handle correctly both situations: 1) init-git-revision-xml finished correctly, but REVISION.XML file is blank 2) init-git-revision-xml finished with error code 128 and REVISION.XML contains bad content (git error message) I don't know ant, but looks to me that the init-git-revision-xml target is called only when init-svn-revision-xml fails, but there is no check for result of init-git-revision-xml. The script is expecting that there always will be svn or git if svn is not available. So, in first case, there should be some check for zero size REVISON.XML and init-git-revision-xml should return error code in this case. In second case, the bad REVISION.XML file should be deleted. In both cases, the revision target should expect that svn and git call could fail and use some default value in this case. Regards, Marián ___ josm-dev mailing list josm-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/josm-dev
Re: [josm-dev] Progress monitor not being closed
Hi, I've the same problem in my pointInfo plugin: https://github.com/mkyral/josm-pointInfo/blob/master/src/org/openstreetmap/ josm/plugins/pointinfo/PointInfoAction.java#L93 (https://github.com/mkyral/josm-pointInfo/blob/master/src/org/openstreetmap/josm/plugins/pointinfo/PointInfoAction.java#L93) I've tried many thinks, but the progress monitor dialog is still shown on background, when I'm showing the result. It only disappear when I destroy the result window. I'm not able to close the progress monitor dialog nor at least hide it. I think, there some should be some method like "destroy", "close" or "hide" implemented. Marián -- Původní zpráva -- Od: Toby Murray Komu: josm-dev Datum: 14. 4. 2014 21:12:34 Předmět: [josm-dev] Progress monitor not being closed "I'm working on the notes plugin some more and have run into a problem with ProgressMonitor. I am able to make a PleaseWaitProgressMonitor pop up on the screen and even update the text being shown to the user. But when I call finishTask the dialog does not close. It just stays on the screen indefinitely. For testing I have simplified my function down to the following which matches the suggested use in the ProgressMonitor interface: public List searchNotes(, ProgressMonitor monitor) { if(monitor == null) { monitor = NullProgressMonitor.INSTANCE; } monitor.beginTask("Searching", 1); monitor.worked(1); monitor.finishTask(); I am passing in a PleaseWaitProgressMonitor that is created with the default constructor. This happens in code that is already in GitHub: https://github.com/iandees/josm-notes/blob/search-progress-bar/src/org/ openstreetmap/josm/plugins/notes/gui/action/SearchAction.java#L146 Any tips as to what could be going on here? Thanks, Toby ___ josm-dev mailing list josm-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/josm-dev"; ___ josm-dev mailing list josm-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/josm-dev
Re: [josm-dev] Progress monitor not being closed
-- Původní zpráva -- Od: Paul Hartmann Komu: josm-dev@openstreetmap.org Datum: 15. 4. 2014 14:20:30 Předmět: Re: [josm-dev] Progress monitor not being closed "On 14.04.2014 21:10, Toby Murray wrote: > I'm working on the notes plugin some more and have run into a problem with > ProgressMonitor. I am able to make a PleaseWaitProgressMonitor pop up on > the screen and even update the text being shown to the user. But when I > call finishTask the dialog does not close. > Any tips as to what could be going on here? Apparently, finishTask() doesn't do much in PleaseWaitProgressMonitor. You can call close() to make the dialog disappear. PleaseWaitProgressMonitor is actually a helper class for PleaseWaitRunnable; in most cases you it is better to use PleaseWaitRunnable directly. " There is no close() method on PleaseWaitRunnable class. Did I miss something? [javac] /home/marian/data/josm/josm_plugins/plugins/pointInfo/src/org/ openstreetmap/josm/plugins/pointinfo/PointInfoAction.java:110: error: cannot find symbol [javac] infoTask.close(); [javac] ^ [javac] symbol: method close() [javac] location: variable infoTask of type PleaseWaitRunnable [javac] 1 error [javac] 1 warning final PleaseWaitRunnable infoTask = new PleaseWaitRunnable(tr( "Connecting server")) { @Override protected void realRun() throws SAXException { infoSync(pos, progressMonitor.createSubTaskMonitor (ProgressMonitor.ALL_TICKS, false)); } @Override protected void finish() { infoTask.close(); Marián " Paul ___ josm-dev mailing list josm-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/josm-dev"; ___ josm-dev mailing list josm-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/josm-dev
Re: [josm-dev] Exception when opening a preset
Dne 27.4.2014 18:08, Dirk Stöcker napsal(a): > On Sat, 26 Apr 2014, Nicolás Alvarez wrote: > >> I'm running a self-compiled JOSM 7006 with a few patches on top. >> Whenever I try to open a preset dialog, I get this error: >> >> java.lang.RuntimeException: Fatal: failed to locate image 'pin.???'. >> This is a serious configuration problem. JOSM will stop working. >>at >> org.openstreetmap.josm.tools.ImageProvider.get(ImageProvider.java:307) >>at >> org.openstreetmap.josm.tools.ImageProvider.get(ImageProvider.java:357) >>at >> org.openstreetmap.josm.gui.tagging.TaggingPreset$ToolbarButtonAction.(TaggingPreset.java:511) >>at >> org.openstreetmap.josm.gui.tagging.TaggingPreset.createPanel(TaggingPreset.java:258) >>at >> org.openstreetmap.josm.gui.tagging.TaggingPreset.showDialog(TaggingPreset.java:323) >>at >> org.openstreetmap.josm.gui.tagging.TaggingPreset.actionPerformed(TaggingPreset.java:292) >>at >> javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018) >>at >> javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341) >>at >> javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402) >>at >> javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259) >>at javax.swing.AbstractButton.doClick(AbstractButton.java:376) >>at [...] >> >> What could be the cause? My patches aren't anywhere near the preset or >> image-loading code... > > Very likely you have a toolbar action for a preset and this one uses > an image "pin.png". Either an error or the file existed in the past > and exists no more. > And is it correct that JOSM stops just due to missing image? What about to show no image or some "missing" image instead? Maybe together with a warning that will show which preset is looking for what image. Marián ___ josm-dev mailing list josm-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/josm-dev
Re: [josm-dev] Mouse symbols not visible
Hi, I've noticed it as well. In some cases. mouse cursor changes to standard one. I have to switch to another application and then back to fix it. But I' ve no idea, when it exactly happen and how to reproduce it. I'm on Linux. Marián -- Původní zpráva -- Od: Martin Koppenhoefer Komu: josm-dev@openstreetmap.org Datum: 4. 9. 2014 12:48:23 Předmět: Re: [josm-dev] Mouse symbols not visible "sorry for the noise, maybe some kind of hickup. They now reappeared without me doing anything but continue to use JOSM... ___ josm-dev mailing list josm-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/josm-dev"; ___ josm-dev mailing list josm-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/josm-dev
Re: [josm-dev] JOSM server shut down for maintenance
Hi, it still does not work for me. The wellcome message, list of presets, styles and plugins fails on: [java] CHYBA: SSLException: java.lang.RuntimeException: Could not generate DH keypair [java] VAROVÁNÍ: Already here java.security.InvalidAlgorithmParameterException: Prime size must be multiple of 64, and can only range from 512 to 1024 (inclusive) Tested JOSM versions: 7480, 7506 and 7508 Marián Dne 6.9.2014 13:20, Vincent Privat napsal(a): > Hi, > The server is operational again. > Vincent > > > 2014-09-06 2:53 GMT+02:00 Vincent Privat : > >> Hi, >> Unfortunately I encountered unexpected errors and the website is not yet >> 100% functional. >> SVN access is restored but many links on website are broken right now. >> The download links are OK though. >> >> We'll try to bring back the site alive tomorrow. In the meantime please >> refrain to edit any wiki page (translations are ok but please do not try to >> "fix" links). >> >> Please also do not create tickets for broken pages/failed downloads. >> >> Vincent >> >> >> 2014-09-05 21:50 GMT+02:00 Vincent Privat : >> >>> Hi everyone, >>> >>> The JOSM server will be shut down for maintenance at 20:00 GMT (in 10 >>> minutes). >>> >>> Following services will be unavailable: >>> - wiki >>> - bug reporting >>> - download from website >>> - SVN >>> >>> It's a perfect time to test the new "offline" mode of JOSM :) >>> java -jar josm.jar --offline=josm_website >>> >>> Regards, >>> Vincent >>> >> > ___ > josm-dev mailing list > josm-dev@openstreetmap.org > https://lists.openstreetmap.org/listinfo/josm-dev ___ josm-dev mailing list josm-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/josm-dev
Re: [josm-dev] JOSM server shut down for maintenance
I'm on linux with icedtea. I had no issue before server update. $ java -version Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on java version "1.7.0_55" OpenJDK Runtime Environment (IcedTea 2.4.7) (Gentoo build 1.7.0_55-b14) OpenJDK 64-Bit Server VM (build 24.51-b03, mixed mode) Tell me, if you need more. Regards, Marián Dne 6.9.2014 20:41, Marián Kyral napsal(a): > Hi, > it still does not work for me. The wellcome message, list of presets, > styles and plugins fails on: > > [java] CHYBA: SSLException: java.lang.RuntimeException: Could not > generate DH keypair > [java] VAROVÁNÍ: Already here > java.security.InvalidAlgorithmParameterException: Prime size must be > multiple of 64, and can only range from 512 to 1024 (inclusive) > > Tested JOSM versions: 7480, 7506 and 7508 > > Marián > > Dne 6.9.2014 13:20, Vincent Privat napsal(a): >> Hi, >> The server is operational again. >> Vincent >> >> >> 2014-09-06 2:53 GMT+02:00 Vincent Privat : >> >>> Hi, >>> Unfortunately I encountered unexpected errors and the website is not yet >>> 100% functional. >>> SVN access is restored but many links on website are broken right now. >>> The download links are OK though. >>> >>> We'll try to bring back the site alive tomorrow. In the meantime please >>> refrain to edit any wiki page (translations are ok but please do not try to >>> "fix" links). >>> >>> Please also do not create tickets for broken pages/failed downloads. >>> >>> Vincent >>> >>> >>> 2014-09-05 21:50 GMT+02:00 Vincent Privat : >>> >>>> Hi everyone, >>>> >>>> The JOSM server will be shut down for maintenance at 20:00 GMT (in 10 >>>> minutes). >>>> >>>> Following services will be unavailable: >>>> - wiki >>>> - bug reporting >>>> - download from website >>>> - SVN >>>> >>>> It's a perfect time to test the new "offline" mode of JOSM :) >>>> java -jar josm.jar --offline=josm_website >>>> >>>> Regards, >>>> Vincent >>>> >> ___ >> josm-dev mailing list >> josm-dev@openstreetmap.org >> https://lists.openstreetmap.org/listinfo/josm-dev > > ___ > josm-dev mailing list > josm-dev@openstreetmap.org > https://lists.openstreetmap.org/listinfo/josm-dev ___ josm-dev mailing list josm-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/josm-dev
Re: [josm-dev] JOSM server shut down for maintenance
It works now. Thanks, Marián Dne 7.9.2014 01:32, Vincent Privat napsal(a): > > My fault I tried to improve the default security parameters. I have > now reverted this change it should work now. > > Le 7 sept. 2014 00:48, "Richard Z." <mailto:ricoz@gmail.com>> a écrit : > > On Sat, Sep 06, 2014 at 08:41:15PM +0200, Marián Kyral wrote: > > Hi, > > it still does not work for me. The wellcome message, list of > presets, > > styles and plugins fails on: > > > > [java] CHYBA: SSLException: java.lang.RuntimeException: > Could not > > generate DH keypair > > [java] VAROVÁNÍ: Already here > > java.security.InvalidAlgorithmParameterException: Prime size must be > > multiple of 64, and can only range from 512 to 1024 (inclusive) > > had the same issue with openstreetmap/api a few days ago, > hopefully the > same solution that Tom has found can be applied for this problem. > > (search for "JOSM connection problems downloading/uploading data?" > in archives) > > Richard > > ___ > josm-dev mailing list > josm-dev@openstreetmap.org <mailto:josm-dev@openstreetmap.org> > https://lists.openstreetmap.org/listinfo/josm-dev > ___ josm-dev mailing list josm-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/josm-dev
Re: [josm-dev] JOSM server shut down for maintenance
Hi, Maybe I've found another issue. I want to add an external plugin Tracer-testing (a testing version of improved Tracer plugin that I want to put to the SVN one day). So I add a link the jar file [1] to the external plugins page [2]. It should be updated in 10 minutes. But after one hour later, the Tracer-testing plugin is still not visible on the plugins list [3]. The link to the Tracer-testing.jar file works correctly. Is this problem on the site, or I did something wrong? [1] http://osm.kyralovi.cz/bin/Tracer-testing.jar [2] http://josm.openstreetmap.de/wiki/PluginsSource [3] http://josm.openstreetmap.de/wiki/Plugins Marián Dne 7.9.2014 08:56, Marián Kyral napsal(a): > It works now. > > Thanks, > Marián > > Dne 7.9.2014 01:32, Vincent Privat napsal(a): >> My fault I tried to improve the default security parameters. I have >> now reverted this change it should work now. >> >> Le 7 sept. 2014 00:48, "Richard Z." > <mailto:ricoz@gmail.com>> a écrit : >> >> On Sat, Sep 06, 2014 at 08:41:15PM +0200, Marián Kyral wrote: >> > Hi, >> > it still does not work for me. The wellcome message, list of >> presets, >> > styles and plugins fails on: >> > >> > [java] CHYBA: SSLException: java.lang.RuntimeException: >> Could not >> > generate DH keypair >> > [java] VAROVÁNÍ: Already here >> > java.security.InvalidAlgorithmParameterException: Prime size must be >> > multiple of 64, and can only range from 512 to 1024 (inclusive) >> >> had the same issue with openstreetmap/api a few days ago, >> hopefully the >> same solution that Tom has found can be applied for this problem. >> >> (search for "JOSM connection problems downloading/uploading data?" >> in archives) >> >> Richard >> >> ___ >> josm-dev mailing list >> josm-dev@openstreetmap.org <mailto:josm-dev@openstreetmap.org> >> https://lists.openstreetmap.org/listinfo/josm-dev >> > ___ > josm-dev mailing list > josm-dev@openstreetmap.org > https://lists.openstreetmap.org/listinfo/josm-dev ___ josm-dev mailing list josm-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/josm-dev
Re: [josm-dev] JOSM server shut down for maintenance
-- Původní zpráva -- Od: Dirk Stöcker Komu: josm-dev@openstreetmap.org Datum: 9. 9. 2014 8:36:33 Předmět: Re: [josm-dev] JOSM server shut down for maintenance "On Mon, 8 Sep 2014, Marián Kyral wrote: > I want to add an external plugin Tracer-testing (a testing version of > improved Tracer plugin that I want to put to the SVN one day). > So I add a link the jar file [1] to the external plugins page [2]. It > should be updated in 10 minutes. But after one hour later, the > Tracer-testing plugin is still not visible on the plugins list [3]. You added a comment before the line. The parser didn't like that :-) Fixed now. " Thanks a lot. Marián " Ciao -- http://www.dstoecker.eu/ (PGP key available) ___ josm-dev mailing list josm-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/josm-dev"; ___ josm-dev mailing list josm-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/josm-dev
Re: [josm-dev] JOSM server shut down for maintenance
Dne 7.9.2014 01:32, Vincent Privat napsal(a): > > My fault I tried to improve the default security parameters. I have > now reverted this change it should work now. > > Le 7 sept. 2014 00:48, "Richard Z." <mailto:ricoz@gmail.com>> a écrit : > > On Sat, Sep 06, 2014 at 08:41:15PM +0200, Marián Kyral wrote: > > Hi, > > it still does not work for me. The wellcome message, list of > presets, > > styles and plugins fails on: > > > > [java] CHYBA: SSLException: java.lang.RuntimeException: > Could not > > generate DH keypair > > [java] VAROVÁNÍ: Already here > > java.security.InvalidAlgorithmParameterException: Prime size must be > > multiple of 64, and can only range from 512 to 1024 (inclusive) > > had the same issue with openstreetmap/api a few days ago, > hopefully the > same solution that Tom has found can be applied for this problem. > > (search for "JOSM connection problems downloading/uploading data?" > in archives) > Hi, the issue is back. Could you check it please? Thansk, Marián ___ josm-dev mailing list josm-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/josm-dev
Re: [josm-dev] JOSM server shut down for maintenance
Dne 19.9.2014 22:51, Dirk Stöcker napsal(a): > On Fri, 19 Sep 2014, Marián Kyral wrote: > >> the issue is back. Could you check it please? > > Hmpf - this time I did it. > > What Java version do you use? It should have affected only Java 6, > which we don't support anymore. > > Ciao java version "1.7.0_55" OpenJDK Runtime Environment (IcedTea 2.4.7) (Gentoo build 1.7.0_55-b14) OpenJDK 64-Bit Server VM (build 24.51-b03, mixed mode) But it works again :-) Marián ___ josm-dev mailing list josm-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/josm-dev
[josm-dev] Multiple use of ChangeCommand for one way in one batch
Hi, Why I can't do this: cmds.add(new ChangeCommand(origWay, firstUpdateOfWay,)); cmds.add(new ChangeCommand(firstUpdateOfWay, secondUpdateOfWay)); cmds.add(new ChangeCommand(secondUpdateOfWay, thirdUpdateOfWay)); Currently, only first command is performed. Any later updates of the way are silently rejected (or not applied). I have to change it to: cmds.add(new ChangeCommand(origWay, updatedWay1)); cmds.add(new ChangeCommand(origWay, secondUpdateOfWay)); cmds.add(new ChangeCommand(origWay, thirdUpdateOfWay)); In that way, all changes are performed. But this means that I have to always remember the original way and it limiting me. Is this a bug or feature? Thanks, Marián ___ josm-dev mailing list josm-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/josm-dev
[josm-dev] josm-latest frozes on Linux (icedtea-bin-7.2.5.5)
Hi, some time I did not mapped, so I don't know when exactly this happen, but I just tested josm-latest and it does not start. It freezes on first java message. CPU works for a while, but then went back to minimal CPU usage and josm does not start. $ java -jar ~/programy/josm/josm-latest.jar Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on ^C$ Gentoo amd64, dev-java/icedtea-bin-7.2.5.5 josm-tested works correctly. The strace output is attached. Maybe it helps. Regards, Marián execve("/usr/bin/java", ["java", "-jar", "/home/marian/programy/josm/josm-"...], [/* 143 vars */]) = 0 brk(0) = 0xc41000 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fad4e0b4000 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=206425, ...}) = 0 mmap(NULL, 206425, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fad4e081000 close(3)= 0 open("/lib64/libreadline.so.6", O_RDONLY|O_CLOEXEC) = 3 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0PV\1\0\0\0\0\0"..., 832) = 832 fstat(3, {st_mode=S_IFREG|0555, st_size=279888, ...}) = 0 mmap(NULL, 2380712, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fad4dc4f000 mprotect(0x7fad4dc8c000, 2093056, PROT_NONE) = 0 mmap(0x7fad4de8b000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3c000) = 0x7fad4de8b000 mmap(0x7fad4de93000, 5032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fad4de93000 close(3)= 0 open("/lib64/libncurses.so.5", O_RDONLY|O_CLOEXEC) = 3 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0p=\1\0\0\0\0\0"..., 832) = 832 fstat(3, {st_mode=S_IFREG|0755, st_size=353984, ...}) = 0 mmap(NULL, 2451568, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fad4d9f8000 mprotect(0x7fad4da4a000, 2093056, PROT_NONE) = 0 mmap(0x7fad4dc49000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x51000) = 0x7fad4dc49000 mmap(0x7fad4dc4e000, 2160, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fad4dc4e000 close(3)= 0 open("/lib64/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\340\16\0\0\0\0\0\0"..., 832) = 832 fstat(3, {st_mode=S_IFREG|0755, st_size=14520, ...}) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fad4e08 mmap(NULL, 2109712, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fad4d7f4000 mprotect(0x7fad4d7f6000, 2097152, PROT_NONE) = 0 mmap(0x7fad4d9f6000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7fad4d9f6000 close(3)= 0 open("/lib64/libc.so.6", O_RDONLY|O_CLOEXEC) = 3 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\300\33\2\0\0\0\0\0"..., 832) = 832 fstat(3, {st_mode=S_IFREG|0755, st_size=1660416, ...}) = 0 mmap(NULL, 3766680, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fad4d45c000 mprotect(0x7fad4d5ea000, 2097152, PROT_NONE) = 0 mmap(0x7fad4d7ea000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x18e000) = 0x7fad4d7ea000 mmap(0x7fad4d7f, 14744, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fad4d7f close(3)= 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fad4e07f000 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fad4e07e000 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fad4e07d000 arch_prctl(ARCH_SET_FS, 0x7fad4e07e700) = 0 mprotect(0x7fad4d7ea000, 16384, PROT_READ) = 0 mprotect(0x7fad4d9f6000, 4096, PROT_READ) = 0 mprotect(0x7fad4dc49000, 16384, PROT_READ) = 0 mprotect(0x7fad4de8b000, 8192, PROT_READ) = 0 mprotect(0x6b, 4096, PROT_READ) = 0 mprotect(0x7fad4e0b5000, 4096, PROT_READ) = 0 munmap(0x7fad4e081000, 206425) = 0 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 open("/dev/tty", O_RDWR|O_NONBLOCK) = 3 close(3)= 0 brk(0) = 0xc41000 brk(0xc62000) = 0xc62000 open("/usr/lib64/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=1723360, ...}) = 0 mmap(NULL, 1723360, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fad4ded8000 close(3)= 0 getuid()= 1000 getgid()= 1000 geteuid() = 1000 getegid() = 1000 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 open("/proc/meminfo", O_RDONLY|O_CLOEXEC) = 3 fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fad4e0b300
Re: [josm-dev] josm-latest frozes on Linux (icedtea-bin-7.2.5.5)
So, it is a known issue: https://josm.openstreetmap.de/ticket/11591 Marián Dne 26.6.2015 v 07:42 Marián Kyral napsal(a): > Hi, > some time I did not mapped, so I don't know when exactly this happen, but I > just tested josm-latest and it does not start. It freezes on first java > message. CPU works for a while, but then went back to minimal CPU usage and > josm does not start. > > $ java -jar ~/programy/josm/josm-latest.jar > Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on > ^C$ > > Gentoo amd64, dev-java/icedtea-bin-7.2.5.5 > > josm-tested works correctly. The strace output is attached. Maybe it helps. > > Regards, > Marián > > > ___ > josm-dev mailing list > josm-dev@openstreetmap.org > https://lists.openstreetmap.org/listinfo/josm-dev ___ josm-dev mailing list josm-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/josm-dev
Re: Plugins: deprecated API to be removed
Hi, try doc page: https://josm.openstreetmap.de/doc/deprecated-list.html Some plugins were already updated. E.g. my plugins: https://github.com/mkyral/josm-tracer/commits/development https://github.com/mkyral/josm-pointInfo/commits/master Regards, Marián Dne 21.10.2017 v 18:46 Holger Mappt napsal(a): > Hi, > > Is there a plugin that is updated already? I need some examples to see > what I should do with the deprecated items. E.g. I have > Main.map.mapView.addMouseListener(mouseAdapter); > in my plugin. Main.map is a deprecated field and should be changed to > MainApplication.getMap(). But the access to > MainApplication.getMap().mapView is discouraged. The documentation [1] > says I should use LayerManager [2] instead. But how do I register a > mouse listener with the LayerManager? Or should I use the MainPanel > [3] for the mouse listener? If so it would be good to have a direct > mapping from Main.map.mapView.addMouseListener() to the corresponding > call on the deprecation page [4]. BTW, do I access MainPanel directly > (MainPanel.addMouseListener()) or what would be the right way to get a > reference to the MainPanel? > > Thanks, > Holger > > [1] > https://josm.openstreetmap.de/doc/org/openstreetmap/josm/gui/MapFrame.html#mapView > [2] > https://josm.openstreetmap.de/doc/org/openstreetmap/josm/gui/layer/LayerManager.html > [3] > https://josm.openstreetmap.de/doc/org/openstreetmap/josm/gui/MainPanel.html > [4] https://josm.openstreetmap.de/doc/deprecated-list.html > > > On 2017-10-19 at 15:22 +0200 Paul Hartmann wrote: >> Please update any plugins that you are maintaining! The majority of >> fixes should be not more than replacing one method by another, as >> indicated in the deprecation JavaDoc comment. > >
Publish plugin issue
Hi, It is a long time when I published new version of pointInfo plugin. Now I want to publish updated version, but it does not work :-( I've commited changes in code: r34168 | mkyral | 2018-04-24 07:48:05 +0200 (Út, 24 dub 2018) | 5 lines PointInfo: Add Spanish Cadastre Web Services module. Patch by Javier Sánchez Portero. Then I want to publish updated binary: $ cd /home/marian/projekty/josm/josm_plugins/dist/ $ svn status ! pointInfo.jar $ svn update Updating '.': Restored 'pointInfo.jar' At revision 34194. $ cd - /home/marian/projekty/josm/josm_plugins/plugins/pointInfo $ ant publish Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Djava.net.preferIPv4Stack=true Buildfile: /home/marian/projekty/josm/josm_plugins/plugins/pointInfo/build.xml ensure-svn-present: core-info: [echo] Building against core revision 13780. [echo] Plugin-Mainversion is set to 12666. [delete] Deleting: /home/marian/projekty/josm/josm_plugins/plugins/pointInfo/core.info.xml commit-current: [echo] Commiting the plugin source with message 'PointInfo: Add Spanish Cadastre Web Services module. Patch by Javier Sánchez Portero.' ... update-current: [echo] Updating plugin source ... [echo] Updating /home/marian/projekty/josm/josm_plugins/dist/pointInfo.jar ... [exec] Result: 1 clean: [delete] Deleting: /home/marian/projekty/josm/josm_plugins/dist/pointInfo.jar init: [mkdir] Created dir: /home/marian/projekty/josm/josm_plugins/plugins/pointInfo/build pre-compile: compile: [echo] compiling sources for /home/marian/projekty/josm/josm_plugins/dist/pointInfo.jar ... [javac] Compiling 15 source files to /home/marian/projekty/josm/josm_plugins/plugins/pointInfo/build javadoc: [javadoc] Generating Javadoc [javadoc] Javadoc execution [javadoc] Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Djava.net.preferIPv4Stack=true [javadoc] Loading source files for package org.openstreetmap.josm.plugins.pointinfo... [javadoc] Loading source files for package org.openstreetmap.josm.plugins.pointinfo.catastro... [javadoc] Loading source files for package org.openstreetmap.josm.plugins.pointinfo.ruian... [javadoc] Constructing Javadoc information... [javadoc] Creating destination directory: "/home/marian/projekty/josm/josm_plugins/plugins/pointInfo/javadoc/" [javadoc] Standard Doclet version 1.8.0_172 [javadoc] Building tree for all the packages and classes... [javadoc] Building index for all the packages and classes... [javadoc] Building index for all classes... init-svn-revision-xml: init-git-svn-revision-xml: init-git-revision-xml: init-revision-fallback: revision: [delete] Deleting: /home/marian/projekty/josm/josm_plugins/plugins/pointInfo/REVISION.XML dist: [echo] creating pointInfo.jar ... setup-dist: setup-dist-default: [copy] Copying 15 files to /home/marian/projekty/josm/josm_plugins/plugins/pointInfo/build/images [copy] Copying 35 files to /home/marian/projekty/josm/josm_plugins/plugins/pointInfo/build/data [copy] Copying 2 files to /home/marian/projekty/josm/josm_plugins/plugins/pointInfo/build check-manifest-attribute: add-manifest-attribute: check-manifest-attribute: add-manifest-attribute: check-manifest-attribute: add-manifest-attribute: check-manifest-attribute: add-manifest-attribute: check-manifest-attribute: add-manifest-attribute: check-manifest-attribute: add-manifest-attribute: additional-manifest: [jar] Building jar: /home/marian/projekty/josm/josm_plugins/dist/pointInfo.jar [jar] Building jar: /home/marian/projekty/josm/josm_plugins/dist/pointInfo-sources.jar [jar] Building jar: /home/marian/projekty/josm/josm_plugins/dist/pointInfo-javadoc.jar [delete] Deleting: /home/marian/projekty/josm/josm_plugins/plugins/pointInfo/MANIFEST post-dist: commit-dist: [echo] [echo] * Properties of published /home/marian/projekty/josm/josm_plugins/dist/pointInfo.jar * [echo] Commit message: 'PointInfo: Add Spanish Cadastre Web Services module. Patch by Javier Sánchez Portero.' [echo] Plugin-Mainversion: 12666 [echo] JOSM build version: 13780 [echo] Plugin-Version: 34181 [echo] * / Properties of published /home/marian/projekty/josm/josm_plugins/dist/pointInfo.jar * [echo] [echo] Now commiting /home/marian/projekty/josm/josm_plugins/dist/pointInfo.jar ... [echo] [exec] Result: 1 publish: BUILD SUCCESSFUL Total time: 11 seconds *Even there is "BUILD SUCCESSFUL" is message, I can see two messages "[exec] Result: 1" in log with these details in svn.log* --
Publish plugin issue
Hi, It is a long time ago when I published last version of pointInfo plugin. Now I want to publish updated version, but it does not work :-( I've commited changes in code: r34168 | mkyral | 2018-04-24 07:48:05 +0200 (Út, 24 dub 2018) | 5 lines PointInfo: Add Spanish Cadastre Web Services module. Patch by Javier Sánchez Portero. Then I want to publish updated binary: $ cd /home/marian/projekty/josm/josm_plugins/dist/ $ svn status ! pointInfo.jar $ svn update Updating '.': Restored 'pointInfo.jar' At revision 34194. $ cd - /home/marian/projekty/josm/josm_plugins/plugins/pointInfo $ ant publish Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Djava.net. preferIPv4Stack=true Buildfile: /home/marian/projekty/josm/josm_plugins/plugins/pointInfo/build. xml ensure-svn-present: core-info: [echo] Building against core revision 13780. [echo] Plugin-Mainversion is set to 12666. [delete] Deleting: /home/marian/projekty/josm/josm_plugins/plugins/ pointInfo/core.info.xml commit-current: [echo] Commiting the plugin source with message 'PointInfo: Add Spanish Cadastre Web Services module. Patch by Javier Sánchez Portero.' ... update-current: [echo] Updating plugin source ... [echo] Updating /home/marian/projekty/josm/josm_plugins/dist/pointInfo. jar ... [exec] Result: 1 clean: [delete] Deleting: /home/marian/projekty/josm/josm_plugins/dist/ pointInfo.jar init: [mkdir] Created dir: /home/marian/projekty/josm/josm_plugins/plugins/ pointInfo/build pre-compile: compile: [echo] compiling sources for /home/marian/projekty/josm/josm_plugins/ dist/pointInfo.jar ... [javac] Compiling 15 source files to /home/marian/projekty/josm/josm_ plugins/plugins/pointInfo/build javadoc: [javadoc] Generating Javadoc [javadoc] Javadoc execution [javadoc] Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on - Djava.net.preferIPv4Stack=true [javadoc] Loading source files for package org.openstreetmap.josm.plugins. pointinfo... [javadoc] Loading source files for package org.openstreetmap.josm.plugins. pointinfo.catastro... [javadoc] Loading source files for package org.openstreetmap.josm.plugins. pointinfo.ruian... [javadoc] Constructing Javadoc information... [javadoc] Creating destination directory: "/home/marian/projekty/josm/josm _plugins/plugins/pointInfo/javadoc/" [javadoc] Standard Doclet version 1.8.0_172 [javadoc] Building tree for all the packages and classes... [javadoc] Building index for all the packages and classes... [javadoc] Building index for all classes... init-svn-revision-xml: init-git-svn-revision-xml: init-git-revision-xml: init-revision-fallback: revision: [delete] Deleting: /home/marian/projekty/josm/josm_plugins/plugins/ pointInfo/REVISION.XML dist: [echo] creating pointInfo.jar ... setup-dist: setup-dist-default: [copy] Copying 15 files to /home/marian/projekty/josm/josm_plugins/ plugins/pointInfo/build/images [copy] Copying 35 files to /home/marian/projekty/josm/josm_plugins/ plugins/pointInfo/build/data [copy] Copying 2 files to /home/marian/projekty/josm/josm_plugins/ plugins/pointInfo/build check-manifest-attribute: add-manifest-attribute: check-manifest-attribute: add-manifest-attribute: check-manifest-attribute: add-manifest-attribute: check-manifest-attribute: add-manifest-attribute: check-manifest-attribute: add-manifest-attribute: check-manifest-attribute: add-manifest-attribute: additional-manifest: [jar] Building jar: /home/marian/projekty/josm/josm_plugins/dist/ pointInfo.jar [jar] Building jar: /home/marian/projekty/josm/josm_plugins/dist/ pointInfo-sources.jar [jar] Building jar: /home/marian/projekty/josm/josm_plugins/dist/ pointInfo-javadoc.jar [delete] Deleting: /home/marian/projekty/josm/josm_plugins/plugins/ pointInfo/MANIFEST post-dist: commit-dist: [echo] [echo] * Properties of published /home/marian/projekty/josm/ josm_plugins/dist/pointInfo.jar * [echo] Commit message : 'PointInfo: Add Spanish Cadastre Web Services module. Patch by Javier Sánchez Portero.' [echo] Plugin-Mainversion: 12666 [echo] JOSM build version: 13780 [echo] Plugin-Version : 34181 [echo] * / Properties of published /home/marian/projekty/josm/ josm_plugins/dist/pointInfo.jar * [echo] [echo] Now commiting /home/marian/projekty/josm/josm_plugins/dist/ pointInfo.jar ... [echo] [exec] Result: 1 publish: BUILD SUCCESSFUL Total time: 11 seconds Even there is "BUILD SUCCESSFUL" message, I can see two messages "[exec] Result: 1" in log with these details in svn.log
Re: Publish plugin issue
ow commiting /home/marian/projekty/josm/josm_plugins/dist/pointInfo.jar ... [echo] [exec] Result: 1 publish: BUILD SUCCESSFUL Total time: 11 seconds *The svn.log* [22:15:06 marian@worker pointInfo (master)]$ cat svn.log svn, version 1.10.0 (r1827917) compiled Apr 20 2018, 00:07:44 on x86_64-pc-linux-gnu Copyright (C) 2018 The Apache Software Foundation. This software consists of contributions made by many people; see the NOTICE file for more information. Subversion is open source software, see http://subversion.apache.org/ The following repository access (RA) modules are available: * ra_svn : Module for accessing a repository using the svn network protocol. - handles 'svn' scheme * ra_local : Module for accessing a repository on local disk. - handles 'file' scheme * ra_serf : Module for accessing a repository via WebDAV protocol using serf. - using serf 1.3.8 (compiled with 1.3.8) - handles 'http' scheme - handles 'https' scheme The following authentication credential caches are available: * Plaintext cache in /home/marian/.subversion * GPG-Agent * KWallet (KDE) Updating '.': At revision 34216. Skipped '../dist/home/marian/projekty/josm/josm_plugins/dist/pointInfo.jar'svn: E155007: None of the targets are working copies Skipped '../dist/home/marian/projekty/josm/josm_plugins/dist/pointInfo-javadoc.jar' Skipped '../dist/home/marian/projekty/josm/josm_plugins/dist/pointInfo-sources.jar' svn: E29: Commit failed (details follow): svn: E29: '/home/marian/projekty/josm/josm_plugins/dist/pointInfo-sources.jar' is not under version control *And current status:* [22:15:10 marian@worker pointInfo (master)]$ svn status -u ? svn.log Status against revision: 34216 [22:23:10 marian@worker pointInfo (master)]$ svn status -u ../../dist M 34216 ../../dist/pointInfo.jar Status against revision: 34216 [22:23:15 marian@worker pointInfo (master)]$ Maybe, could you try? Thanks, Marián > > Regards, > Holger > > > On 2018-05-17 at 12:42 +0200 Marián Kyral wrote: >> Hi, >> It is a long time ago when I published last version of pointInfo plugin. >> Now I want to publish updated version, but it does not work :-( >> >> >> I've commited changes in code: >> >> >> r34168 | mkyral | 2018-04-24 07:48:05 +0200 (Út, 24 dub 2018) | 5 lines >> >> PointInfo: Add Spanish Cadastre Web Services module. >> >> Patch by Javier Sánchez Portero. >> >> >> Then I want to publish updated binary: >> >> >> $ cd /home/marian/projekty/josm/josm_plugins/dist/ >> $ svn status >> ! pointInfo.jar >> $ svn update >> Updating '.': >> Restored 'pointInfo.jar' >> At revision 34194. >> > > > >
DownloadOsmTask - the zoomAfterDownload parameter does not work
Hi, I'm not sure if this is a bug in Tracer-testing plugin or regression in Josm. In new Tracer (Tracer-testing) we are using Download action to automatically download area around clicked point if needed. public final class DownloadOsmMissingAreaTask extends DownloadOsmTask { @Override public Future download(OsmServerReader reader, boolean newLayer, Bounds downloadArea, ProgressMonitor progressMonitor) { return download(new DownloadMissingAreaTask(newLayer, reader, progressMonitor), downloadArea); } protected class DownloadMissingAreaTask extends DownloadOsmTask. DownloadTask { public DownloadMissingAreaTask(boolean newLayer, OsmServerReader reader, ProgressMonitor progressMonitor) { super(newLayer, reader, progressMonitor, false); // do not center and scale to downloaded area } } } https://github.com/mkyral/josm-tracer/blob/development/src/org/ openstreetmap/josm/plugins/tracer/DownloadOsmMissingAreaTask.java It worked well, but in current Josm, the "zoomAfterDownload" parameter has no effect. The zoom always change to downloaded area. I'm investigating this issue, but I'm not not sure, what is wrong. What do you think? Thanks, Marián
Re: DownloadOsmTask - the zoomAfterDownload parameter does not work
hmm, it seems that this commit is the reason: https://github.com/openstreetmap/josm/commit/29c7baa5cc67150685293607ce0dcee 2eeccf2b8?diff=unified (https://github.com/openstreetmap/josm/commit/29c7baa5cc67150685293607ce0dcee2eeccf2b8?diff=unified) [javac] Compiling 67 source files to /home/marian/projekty/josm/josm_ plugins/plugins/tracer/build [javac] /home/marian/projekty/josm/josm_plugins/plugins/tracer/src/org/ openstreetmap/josm/plugins/tracer/DownloadOsmMissingAreaTask.java:31: warning: [deprecation] download(OsmServerReader,boolean,Bounds, ProgressMonitor) in DownloadOsmTask has been deprecated [javac] public Future download(OsmServerReader reader, boolean newLayer, Bounds downloadArea, ProgressMonitor progressMonitor) { [javac] ^ [javac] /home/marian/projekty/josm/josm_plugins/plugins/tracer/src/org/ openstreetmap/josm/plugins/tracer/DownloadOsmMissingAreaTask.java:37: warning: [deprecation] DownloadOsmTask.DownloadTask(boolean,OsmServerReader, ProgressMonitor,boolean) in DownloadOsmTask.DownloadTask has been deprecated [javac] super(newLayer, reader, progressMonitor, false); // do not center and scale to downloaded area [javac] ^ [javac] /home/marian/projekty/josm/josm_plugins/plugins/tracer/src/org/ openstreetmap/josm/plugins/tracer/TracerModule.java:279: warning: [deprecation] download(boolean,Bounds,ProgressMonitor) in DownloadOsmTask has been deprecated [javac] final Future future = task.download(false, area, null); [javac] ^ [javac] 3 warnings I'm not sure how to fix it yet, but will try. Regards, Marián -- Původní e-mail -- Od: Marián Kyral Komu: josm-dev@openstreetmap.org Datum: 18. 7. 2018 8:24:42 Předmět: DownloadOsmTask - the zoomAfterDownload parameter does not work " Hi, I'm not sure if this is a bug in Tracer-testing plugin or regression in Josm. In new Tracer (Tracer-testing) we are using Download action to automatically download area around clicked point if needed. public final class DownloadOsmMissingAreaTask extends DownloadOsmTask { @Override public Future download(OsmServerReader reader, boolean newLayer, Bounds downloadArea, ProgressMonitor progressMonitor) { return download(new DownloadMissingAreaTask(newLayer, reader, progressMonitor), downloadArea); } protected class DownloadMissingAreaTask extends DownloadOsmTask. DownloadTask { public DownloadMissingAreaTask(boolean newLayer, OsmServerReader reader, ProgressMonitor progressMonitor) { super(newLayer, reader, progressMonitor, false); // do not center and scale to downloaded area } } } https://github.com/mkyral/josm-tracer/blob/development/src/org/ openstreetmap/josm/plugins/tracer/DownloadOsmMissingAreaTask.java It worked well, but in current Josm, the "zoomAfterDownload" parameter has no effect. The zoom always change to downloaded area. I'm investigating this issue, but I'm not not sure, what is wrong. What do you think? Thanks, Marián "
Re: DownloadOsmTask - the zoomAfterDownload parameter does not work
Fixed in https://github.com/mkyral/josm-tracer/commit/17fcab50509cf8fb37cf 7798b6558ed6fc334e7e Sorry for disturbing ;-) Marián -- Původní e-mail -- Od: Marián Kyral Komu: josm-dev@openstreetmap.org Datum: 18. 7. 2018 8:40:05 Předmět: Re: DownloadOsmTask - the zoomAfterDownload parameter does not work " hmm, it seems that this commit is the reason: https://github.com/openstreetmap/josm/commit/29c7baa5cc67150685293607ce0dcee 2eeccf2b8?diff=unified (https://github.com/openstreetmap/josm/commit/29c7baa5cc67150685293607ce0 dcee2eeccf2b8?diff=unified) [javac] Compiling 67 source files to /home/marian/projekty/josm/josm_ plugins/plugins/tracer/build [javac] /home/marian/projekty/josm/josm_plugins/plugins/tracer/src/org/ openstreetmap/josm/plugins/tracer/DownloadOsmMissingAreaTask.java:31: warning: [deprecation] download(OsmServerReader,boolean,Bounds, ProgressMonitor) in DownloadOsmTask has been deprecated [javac] public Future download(OsmServerReader reader, boolean newLayer, Bounds downloadArea, ProgressMonitor progressMonitor) { [javac] ^ [javac] /home/marian/projekty/josm/josm_plugins/plugins/tracer/src/org/ openstreetmap/josm/plugins/tracer/DownloadOsmMissingAreaTask.java:37: warning: [deprecation] DownloadOsmTask.DownloadTask(boolean,OsmServerReader, ProgressMonitor,boolean) in DownloadOsmTask.DownloadTask has been deprecated [javac] super(newLayer, reader, progressMonitor, false); // do not center and scale to downloaded area [javac] ^ [javac] /home/marian/projekty/josm/josm_plugins/plugins/tracer/src/org/ openstreetmap/josm/plugins/tracer/TracerModule.java:279: warning: [deprecation] download(boolean,Bounds,ProgressMonitor) in DownloadOsmTask has been deprecated [javac] final Future future = task.download(false, area, null); [javac] ^ [javac] 3 warnings I'm not sure how to fix it yet, but will try. Regards, Marián -- Původní e-mail -- Od: Marián Kyral Komu: josm-dev@openstreetmap.org Datum: 18. 7. 2018 8:24:42 Předmět: DownloadOsmTask - the zoomAfterDownload parameter does not work " Hi, I'm not sure if this is a bug in Tracer-testing plugin or regression in Josm. In new Tracer (Tracer-testing) we are using Download action to automatically download area around clicked point if needed. public final class DownloadOsmMissingAreaTask extends DownloadOsmTask { @Override public Future download(OsmServerReader reader, boolean newLayer, Bounds downloadArea, ProgressMonitor progressMonitor) { return download(new DownloadMissingAreaTask(newLayer, reader, progressMonitor), downloadArea); } protected class DownloadMissingAreaTask extends DownloadOsmTask. DownloadTask { public DownloadMissingAreaTask(boolean newLayer, OsmServerReader reader, ProgressMonitor progressMonitor) { super(newLayer, reader, progressMonitor, false); // do not center and scale to downloaded area } } } https://github.com/mkyral/josm-tracer/blob/development/src/org/ openstreetmap/josm/plugins/tracer/DownloadOsmMissingAreaTask.java It worked well, but in current Josm, the "zoomAfterDownload" parameter has no effect. The zoom always change to downloaded area. I'm investigating this issue, but I'm not not sure, what is wrong. What do you think? Thanks, Marián " "
Re: Call to plugin authors: svgs in JOSM
Hi, I'm working on it, but it doesn't work. I've made svg icons, updated code, but image is not shown in josm. Menu icon, cursor, preferences - no icon shown - only blank space :-( What I'm doing wrong? https://github.com/mkyral/josm-pointInfo/commit/74974527d5ce1bcd83c4eb265dc 81c3279fd7bcc Thanks. Marián -- Původní e-mail -- Od: simson.gert...@gmail.com Komu: josm-dev Datum: 12. 9. 2020 17:01:46 Předmět: Call to plugin authors: svgs in JOSM "Hi, there were constantly made improvements in the last years for better hidpi support in JOSM. Since the newest JOSM tested version 17013 all internal icons are in svg (except Potlatch2 mappaint style icons). However most plugins still use png icons. This is a call to all plugin authors to follow and to transform all icons of your JOSM plugins to svg (or reuse core icons if suitable are available). You don't want your pixelated icons stand out between the sharp core icons ;) I recommend to clean your svgs with svgcleaner to keep the plugin jar file size small. Regards, Stefa "
Re: Call to plugin authors: svgs in JOSM
It is much better now. Still not perfect, but I will tune it. Thanks, Marian -- Původní e-mail -- Od: simson.gert...@gmail.com Komu: josm-dev Datum: 14. 9. 2020 21:56:02 Předmět: Re: Call to plugin authors: svgs in JOSM "Hello, text in svgs can be problematic and might be displayed differently e.g. on different os. To be safe I suggest to convert the text to a path. (In inkscape menu Path -> Object to Path) Regards, Stefan Am 14.09.2020 um 21:24 schrieb Marián Kyral: > Hi, > > I'm working on it, but it doesn't work. I've made svg icons, updated code, > but image is not shown in josm. > > Menu icon, cursor, preferences - no icon shown - only blank space :-( > > > > > What I'm doing wrong? > > > > > https://github.com/mkyral/josm-pointInfo/commit/74974527d5ce1bcd83c4eb265 dc > 81c3279fd7bcc > > > > > Thanks. > > Marián > "
Re: Call to plugin authors: svgs in JOSM
Yes, I know, I've investigated the code, when I tried to make it work. Now I need design a better icon for cursor modifier. My current attempt looks ugly :-( Marián -- Původní e-mail -- Od: Dirk Stöcker Komu: josm-dev@openstreetmap.org Datum: 15. 9. 2020 8:21:15 Předmět: Re: Call to plugin authors: svgs in JOSM "On Tue, 15 Sep 2020, Marián Kyral wrote: > It is much better now. Still not perfect, but I will tune it. Note than in the source code like for png it is a good idea to not add the svg exension. JOSM automagically handles that. Ciao -- http://www.dstoecker.eu/ (PGP key available) "
Re: Call to plugin authors: svgs in JOSM
Thanks. Now I'm more or less happy with current look. Now I want commit my changes and publish new plugin version. But I'm quite confused with current status after latest repo switch. Can I ask for svn (or git) access to pointInfo plugin? Or I have to create ticket with patch? Thanks, Marián -- Původní e-mail -- Od: Dirk Stöcker Komu: josm-dev@openstreetmap.org Datum: 15. 9. 2020 9:26:36 Předmět: Re: Call to plugin authors: svgs in JOSM "Hello, > I know, I've investigated the code, when I tried to make it work. Now I need > design a better icon for cursor modifier. My current attempt looks ugly :- ( Welcome in the club. That's usually the case when programmers design icons. :-) Note from experience: For small sizes the SVGs must be properly aligned e.g. regarding position and size of the lines or otherwise it looks bad. The script in josm scripts directory also allows to check for some common issues in SVGs which josm does not like. Ciao -- http://www.dstoecker.eu/ (PGP key available) "
Re: Tracer2 Plugin / Alternative / WFS?
Forget to cc josm-dev@openstreetmap.org :-( -- Původní e-mail -- Od: Marián Kyral Komu: Florian Lohoff Datum: 14. 12. 2020 8:41:58 Předmět: Re: Tracer2 Plugin / Alternative / WFS? " Hi Florian, -- Původní e-mail -- Od: Florian Lohoff Komu: josm-dev@openstreetmap.org Datum: 13. 12. 2020 20:43:18 Předmět: Tracer2 Plugin / Alternative / WFS? " Hi, as the ALKIS Data for example for Northrhine-Westfalia have been republished as CC0 it is possible to use the Tracer2 Plugin and External Helper which have bitrottet a bit over the last years and are prone to backtraces/crashes and other problems. As Northrhine-Westfalia has also published the Building Outlines as a shape it would also be possible to use the outlines from the shape. While thinking about it it would a pretty plugin for be able to click somewhere and get a feature from a WFS Service which surrounds the clicked point. There is no point in trying an import as 90% of the buildings are there already. I'd rather like to see a simpler point-and-click feature by feature update/import. Is there some kind of WFS based Plugin? " In Czechia we have developed a new version of original Tracer plugin. It is modular and the LPIS module is using WFS. The plan was to replace the original Tracer plugin, but it did not happened yet. It is developed separately in my github repository and the plugin is called tracer-testing in JOSM. https://github.com/mkyral/josm-tracer/blob/development/src/org/ openstreetmap/josm/plugins/tracer/modules/lpis/LpisServer.java Please check it, fell free to test and create a new module. Maybe it is a time to move forward and replace the original Tracer plugin. I have made "Classic" module, that should work in the same way as original module, but it is not tested a much as it needs mono server on localhost. Regards, Marián " Flo -- Florian Lohoff f...@zz.de UTF-8 Test: The 🐈 ran after a 🐁, but the 🐁 ran away ""
Re: Tracer2 Plugin / Alternative / WFS?
I think it is mainly update of Tracer wiki page and then merge development branch to master and push to svn. I don't think there is anyone still using the old mono server. I also need to "migrate" current tracer-testing users back to tracer. Also it should allow future integration of the Tracer2 functionality as a new module. Regards, Marián -- Původní e-mail -- Od: Vincent Privat Komu: Marián Kyral Datum: 14. 12. 2020 13:45:51 Předmět: Re: Tracer2 Plugin / Alternative / WFS? " Hi Marián, Have you identified what remains to be done in order to replace the original tracer plugin? Cheers, Vincent Le lun. 14 déc. 2020 à 08:47, Marián Kyral mailto:mky...@email.cz)> a écrit : " Forget to cc josm-dev@openstreetmap.org(mailto:josm-dev@openstreetmap.org) :-( -- Původní e-mail -- Od: Marián Kyral mailto:mky...@email.cz)> Komu: Florian Lohoff mailto:f...@zz.de)> Datum: 14. 12. 2020 8:41:58 Předmět: Re: Tracer2 Plugin / Alternative / WFS? " Hi Florian, -- Původní e-mail -- Od: Florian Lohoff mailto:f...@zz.de)> Komu: josm-dev@openstreetmap.org(mailto:josm-dev@openstreetmap.org) Datum: 13. 12. 2020 20:43:18 Předmět: Tracer2 Plugin / Alternative / WFS? " Hi, as the ALKIS Data for example for Northrhine-Westfalia have been republished as CC0 it is possible to use the Tracer2 Plugin and External Helper which have bitrottet a bit over the last years and are prone to backtraces/crashes and other problems. As Northrhine-Westfalia has also published the Building Outlines as a shape it would also be possible to use the outlines from the shape. While thinking about it it would a pretty plugin for be able to click somewhere and get a feature from a WFS Service which surrounds the clicked point. There is no point in trying an import as 90% of the buildings are there already. I'd rather like to see a simpler point-and-click feature by feature update/import. Is there some kind of WFS based Plugin? " In Czechia we have developed a new version of original Tracer plugin. It is modular and the LPIS module is using WFS. The plan was to replace the original Tracer plugin, but it did not happened yet. It is developed separately in my github repository and the plugin is called tracer-testing in JOSM. https://github.com/mkyral/josm-tracer/blob/development/src/org/ (https://github.com/mkyral/josm-tracer/blob/development/src/org/) openstreetmap/josm/plugins/tracer/modules/lpis/LpisServer.java Please check it, fell free to test and create a new module. Maybe it is a time to move forward and replace the original Tracer plugin. I have made "Classic" module, that should work in the same way as original module, but it is not tested a much as it needs mono server on localhost. Regards, Marián " Flo -- Florian Lohoff f...@zz.de(mailto:f...@zz.de) UTF-8 Test: The 🐈 ran after a 🐁, but the 🐁 ran away "" " "
Re: Tracer2 Plugin / Alternative / WFS?
Hi, maybe you can test the classic module of tracer-testing. We no more using bitmap tracer module as we have available vector data from government. So the module is not much tested. Marián -- Původní e-mail -- Od: Florian Lohoff Komu: Marián Kyral Datum: 14. 12. 2020 16:12:35 Předmět: Re: Tracer2 Plugin / Alternative / WFS? "On Mon, Dec 14, 2020 at 02:38:09PM +0100, Marián Kyral wrote: > > I think it is mainly update of Tracer wiki page and then merge development > branch to master and push to svn. I don't think there is anyone still using > the old mono server. I also need to "migrate" current tracer-testing users > back to tracer. > Yep there is - Me - And i asked out local community and there are more people still using it. All with the same issues like crashes in the josm plugin, problems with different image stuff like dashed lines etc. Flo -- Florian Lohoff f...@zz.de UTF-8 Test: The 🐈 ran after a 🐁, but the 🐁 ran away "
Re: Tracer2 Plugin / Alternative / WFS?
Then start local mono server. Default url is http://localhost:5050 (http://localhost:5050) - could be changed in preferrences Now it should be possible to start Tracer in Menu: More Tools / Tracer Cursor will change and you can trace by clicking. Note: there is probably a confict with original Tracer and shorcut was changed for one plugin Marián -- Původní e-mail -- Od: Florian Lohoff Komu: Marián Kyral Datum: 15. 12. 2020 22:33:37 Předmět: Re: Tracer2 Plugin / Alternative / WFS? "On Mon, Dec 14, 2020 at 05:10:01PM +0100, Marián Kyral wrote: > > Hi, > > maybe you can test the classic module of tracer-testing. We no more using > bitmap tracer module as we have available vector data from government. So > the module is not much tested. I fail to even grasp the idea of what i need. The Wiki (English version) does not have any description/instructions. I installed the tracer-testing and configured the classic plugin and then? Flo -- Florian Lohoff f...@zz.de UTF-8 Test: The 🐈 ran after a 🐁, but the 🐁 ran away "