{"action":"created","issue":{"url":"https://api.github.com/repos/processing/processing/issues/4017","labels_url":"https://api.github.com/repos/processing/processing/issues/4017/labels{/name}","comments_url":"https://api.github.com/repos/processing/processing/issues/4017/comments","events_url":"https://api.github.com/repos/processing/processing/issues/4017/events","html_url":"https://github.com/processing/processing/issues/4017","id":112017798,"number":4017,"title":"Tweak Mode: Some numbers ignored in second tab.","user":{"login":"erniejunior","id":1250234,"avatar_url":"https://avatars.githubusercontent.com/u/1250234?v=3","gravatar_id":"","url":"https://api.github.com/users/erniejunior","html_url":"https://github.com/erniejunior","followers_url":"https://api.github.com/users/erniejunior/followers","following_url":"https://api.github.com/users/erniejunior/following{/other_user}","gists_url":"https://api.github.com/users/erniejunior/gists{/gist_id}","starred_url":"https://api.github.com/users/erniejunior/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erniejunior/subscriptions","organizations_url":"https://api.github.com/users/erniejunior/orgs","repos_url":"https://api.github.com/users/erniejunior/repos","events_url":"https://api.github.com/users/erniejunior/events{/privacy}","received_events_url":"https://api.github.com/users/erniejunior/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-18T12:53:24Z","updated_at":"2015-10-18T17:05:44Z","closed_at":null,"body":"While trying out the new pull request by @galsasson https://github.com/processing/processing/pull/4014 I found another bug in Tweak Mode when using more than one tab. Some decimals in my second tab were mysteriously ignored. After digging a bit around in [SketchParser.java](https://github.com/processing/processing/blob/master/java/src/processing/mode/java/tweak/SketchParser.java) I found out that they are falsely accused of being inside one of the ignored functions (setup or settings). After looking a bit deeper into that ignore mechanism, which is based on ranges over characters I figured, that it is tab agnostic:\r\n\r\nAssume our setup function spans char 5 to char 80 in the first tab, then numbers between char 5 to char 80 are ignored in every other tab! This was the reason why only some of my numbers were ignored and others not.\r\n\r\nI am happy to work on a fix of this bug as soon as I get processing up and running in an IDE. I will let you know when I start the actual work so there is no double effort.\r\n\r\nEdit: Working on it now ..."},"comment":{"url":"https://api.github.com/repos/processing/processing/issues/comments/149030841","html_url":"https://github.com/processing/processing/issues/4017#issuecomment-149030841","issue_url":"https://api.github.com/repos/processing/processing/issues/4017","id":149030841,"user":{"login":"erniejunior","id":1250234,"avatar_url":"https://avatars.githubusercontent.com/u/1250234?v=3","gravatar_id":"","url":"https://api.github.com/users/erniejunior","html_url":"https://github.com/erniejunior","followers_url":"https://api.github.com/users/erniejunior/followers","following_url":"https://api.github.com/users/erniejunior/following{/other_user}","gists_url":"https://api.github.com/users/erniejunior/gists{/gist_id}","starred_url":"https://api.github.com/users/erniejunior/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erniejunior/subscriptions","organizations_url":"https://api.github.com/users/erniejunior/orgs","repos_url":"https://api.github.com/users/erniejunior/repos","events_url":"https://api.github.com/users/erniejunior/events{/privacy}","received_events_url":"https://api.github.com/users/erniejunior/received_events","type":"User","site_admin":false},"created_at":"2015-10-18T17:05:44Z","updated_at":"2015-10-18T17:05:44Z","body":"Hi @galsasson, I do not know why git does not show the individual changes. Maybe it has something to do with the fact, that I applied an automatic code formatter to comply with the [Style Guide](https://github.com/processing/processing/wiki/Style-Guidelines)? That was probably a stupid idea ...\r\n\r\nBasically I added a ``tab`` property to the ``Range`` class and the ``Range.contains`` method now also checks if the tabs are equal. Then I worked my way up to make any necessary changes for the rest of the code to work again. We certainly could use a more elaborate method to filter the actually used numbers and also remove some duplicate code. But for now I wanted to respect your work and make only minimal changes to fix the bug as quickly as possible.\r\n\r\nIs this enough information to understand the changes that I made or should I redo them without applying the code formatter?"}}