question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

FlatLAF is breaking JOSM

See original GitHub issue

The FlatLAF plugin for JOSM directs me to https://www.formdev.com/flatlaf/ for further info, which directs me to here. Please tell me where to go, if this is not the right place.

What I do:

  1. Install FlatLAF in JOSM
  2. Restart JOSM (which works fine)
  3. Select the FlatLaf Darcula theme
  4. Restart JOSM (or so I thought)

Expected behavior:

JOSM coming back from restart

Actual behavior:

JOSM does not restart and I am not able to start it manually again. It just dies within one second from launching, not even showing the loading box.

Workaround:

  1. Start JOSM with the --skip-plugins parameter like this (in Windows):%JAVA_HOME%\bin\javaw.exe -jar josm-tested.jar --skip-plugins
  2. JOSM starts up
    1. (just an unimportant side note: Weirdly enough, with some alternative theme loaded. If I close JOSM and start it a second time with the --skip-plugins parameter, it will load the default JOSM theme. No big worries, we don’t have to restart it such a second time for the solution to work)
  3. Close JOSM.
  4. Start JOSM normally (without the --skip-plugins parameter)
  5. Uninstall FlatLAF

Context:

JOSM Version 18583

Same problem occurs on a completely newly installed JOSM without any cache, preferences, plugins.

I am using the JOSM parameters -Djosm.home=. -Djosm.pref=./preferences -Djosm.cache=./cache as documented here, as I want to have those close by and my JOSM as a stand alone application

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
DevCharlycommented, Nov 15, 2022

The issue is fixed in JOSM flatlaf plugin version 36036.

0reactions
mikkolukascommented, Nov 20, 2022

@tsmock Inside JOSM, where you install plugins, you’ll find the JOSM FlatLaf plugin listed as shown here:

image

The link leads directly to https://www.formdev.com/flatlaf/, misleading one to:

  1. Believe that FlatLaf and the JOSM FlatLaf plugin is the one and same thing (I suspected it was not).
  2. Not have a proper place to report errors that are related to the JOSM FlatLaf plugin, but not FlatLaf itself (I did a good effort to google for it, but couldn’t find it anywhere).

Hence the situation we are now in, that I reported the bug to FlatLaf, while the error was in the JOSM FlatLaf plugin, bothering the upstream developer.

Read more comments on GitHub >

github_iconTop Results From Across the Web

19027 (FlatLaf dark and light look and feels) - JOSM
FlatLaf is a new modern open-source L&F that looks similar to Darcula/IntelliJ themes you maybe know from IntelliJ IDEA. It comes with dark...
Read more >
Josm, what a tool! : r/openstreetmap - Reddit
FlatLAF is breaking JOSM ! What I do: Install FlatLAF plugin in JOSM. Restart JOSM (which works fine). Select the FlatLaf Darcula theme....
Read more >
FlatLaf - Swing Look and Feel (with Darcula/IntelliJ ... - GitHub
FlatLaf is a modern open-source cross-platform Look and Feel for Java Swing desktop applications. It looks almost flat (no shadows or gradients), clean,...
Read more >
lp:~openstreetmap/josm/josm_osm - Launchpad Code
Get this branch: bzr branch lp:~openstreetmap/josm/josm_osm ... flatlaf: fix broken dark themes (since updating FlatLaf from 1.6.1 to 2.6).
Read more >
JOSM: Use FlatLaf dark and light look and feels?
Hello,. I'm the author of the FlatLaf look and feel and wanted to ask whether the JOSM community is interested in using FlatLaf...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found