-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stopToWay
is never cleared
#35
Comments
Do you have a list of steps that I could follow to reproduce this error, or were you trying something in particular when it occurred? |
Find some first/end stop where first/last way is not nearest to it (for example, first stop is nearest to second way...). Click validation and you will get this |
Here is most recent example: https://www.openstreetmap.org/relation/6964212. First stop ("Borca 3") is not near first way. If you validate, you will get error. However, if you move "Borca 3" to the east, so first way is closest, you will still get this validation error. If you do what I did with cache (clear it in ctor), error will go away on subsequent validations |
Thank you so much, I will try and get it done this week! |
I have changed the code and I think it should work now, but it is a bit hacky method (it is essentially doing what you did in constructor) so I am looking more deeply into why that variable is static in the first place. |
I had very weird problems where I got errors of sort:
"The last stop of the route does not match the last way"
that cannot go away.
So, while debugging, it turns out that
stopToWay
in linept_assistant/src/main/java/org/openstreetmap/josm/plugins/pt_assistant/utils/StopToWayAssigner.java
Line 38 in 494d8ad
stopToWay
never get that information as it takes it from cache. Only way is to restart JOSM. So, to make my problem go away, I just droppedstopToWay.clear();
inStopToWayAssigner
ctor and it works now. I guess this is not solution for PR, just a hack, but wanted to let you know hereThe text was updated successfully, but these errors were encountered: