{"action":"created","issue":{"url":"https://api.github.com/repos/dariober/ASCIIGenome/issues/37","repository_url":"https://api.github.com/repos/dariober/ASCIIGenome","labels_url":"https://api.github.com/repos/dariober/ASCIIGenome/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/dariober/ASCIIGenome/issues/37/comments","events_url":"https://api.github.com/repos/dariober/ASCIIGenome/issues/37/events","html_url":"https://github.com/dariober/ASCIIGenome/issues/37","id":189995441,"number":37,"title":"trim with window resizing","user":{"login":"dariober","id":6883382,"avatar_url":"https://avatars.githubusercontent.com/u/6883382?v=3","gravatar_id":"","url":"https://api.github.com/users/dariober","html_url":"https://github.com/dariober","followers_url":"https://api.github.com/users/dariober/followers","following_url":"https://api.github.com/users/dariober/following{/other_user}","gists_url":"https://api.github.com/users/dariober/gists{/gist_id}","starred_url":"https://api.github.com/users/dariober/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dariober/subscriptions","organizations_url":"https://api.github.com/users/dariober/orgs","repos_url":"https://api.github.com/users/dariober/repos","events_url":"https://api.github.com/users/dariober/events{/privacy}","received_events_url":"https://api.github.com/users/dariober/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-17T09:52:37Z","updated_at":"2016-11-28T15:28:01Z","closed_at":"2016-11-28T15:28:01Z","body":"`trim` doesn't play very well with terminal window resizing try:\r\n\r\n```\r\nASCIIGenome hg19_genes_head.gtf.gz -r chr1:11583-12359\r\n```\r\n\r\nThen execute `trim` -> ok. Then resize terminal window to make it smaller, `trim` again. You get:\r\n\r\n```\r\njava.lang.IndexOutOfBoundsException: Index: 85, Size: 85\r\n\tat java.util.ArrayList.rangeCheck(ArrayList.java:653)\r\n\tat java.util.ArrayList.set(ArrayList.java:444)\r\n\tat tracks.TrackIntervalFeature.printToScreenOneLine(TrackIntervalFeature.java:361)\r\n\tat tracks.TrackIntervalFeature.printToScreen(TrackIntervalFeature.java:312)\r\n\tat samTextViewer.TrackProcessor.iterateTracks(TrackProcessor.java:66)\r\n\tat samTextViewer.InteractiveInput.processInput(InteractiveInput.java:325)\r\n\tat samTextViewer.Main.main(Main.java:156)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:497)\r\n\tat org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)\r\n```\r\n\r\n~Then resize window again to make it larger. zoom out and go to another feature. `trim` again. the window has become smaller.~\r\n\r\nYou probably need to play with getUserWindowSize() in the trim method.\r\n\r\nThere are other issues with trim. Make this method undocumented for now"},"comment":{"url":"https://api.github.com/repos/dariober/ASCIIGenome/issues/comments/263300451","html_url":"https://github.com/dariober/ASCIIGenome/issues/37#issuecomment-263300451","issue_url":"https://api.github.com/repos/dariober/ASCIIGenome/issues/37","id":263300451,"user":{"login":"dariober","id":6883382,"avatar_url":"https://avatars.githubusercontent.com/u/6883382?v=3","gravatar_id":"","url":"https://api.github.com/users/dariober","html_url":"https://github.com/dariober","followers_url":"https://api.github.com/users/dariober/followers","following_url":"https://api.github.com/users/dariober/following{/other_user}","gists_url":"https://api.github.com/users/dariober/gists{/gist_id}","starred_url":"https://api.github.com/users/dariober/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dariober/subscriptions","organizations_url":"https://api.github.com/users/dariober/orgs","repos_url":"https://api.github.com/users/dariober/repos","events_url":"https://api.github.com/users/dariober/events{/privacy}","received_events_url":"https://api.github.com/users/dariober/received_events","type":"User","site_admin":false},"created_at":"2016-11-28T15:28:01Z","updated_at":"2016-11-28T15:28:01Z","body":"Issue closed at least for now since `trim` is not that useful anyway, leave it undocumented."}}
{"actor":{"display_login":"dariober"}}