{"action":"created","issue":{"url":"https://api.github.com/repos/kaitai-io/kaitai_struct_visualizer/issues/15","repository_url":"https://api.github.com/repos/kaitai-io/kaitai_struct_visualizer","labels_url":"https://api.github.com/repos/kaitai-io/kaitai_struct_visualizer/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/kaitai-io/kaitai_struct_visualizer/issues/15/comments","events_url":"https://api.github.com/repos/kaitai-io/kaitai_struct_visualizer/issues/15/events","html_url":"https://github.com/kaitai-io/kaitai_struct_visualizer/issues/15","id":216902680,"number":15,"title":"Enable support for opaque types?","user":{"login":"tschoening","id":6223655,"avatar_url":"https://avatars2.githubusercontent.com/u/6223655?v=3","gravatar_id":"","url":"https://api.github.com/users/tschoening","html_url":"https://github.com/tschoening","followers_url":"https://api.github.com/users/tschoening/followers","following_url":"https://api.github.com/users/tschoening/following{/other_user}","gists_url":"https://api.github.com/users/tschoening/gists{/gist_id}","starred_url":"https://api.github.com/users/tschoening/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tschoening/subscriptions","organizations_url":"https://api.github.com/users/tschoening/orgs","repos_url":"https://api.github.com/users/tschoening/repos","events_url":"https://api.github.com/users/tschoening/events{/privacy}","received_events_url":"https://api.github.com/users/tschoening/received_events","type":"User","site_admin":false},"labels":[{"id":360160357,"url":"https://api.github.com/repos/kaitai-io/kaitai_struct_visualizer/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"closed","locked":false,"assignee":{"login":"GreyCat","id":157154,"avatar_url":"https://avatars3.githubusercontent.com/u/157154?v=3","gravatar_id":"","url":"https://api.github.com/users/GreyCat","html_url":"https://github.com/GreyCat","followers_url":"https://api.github.com/users/GreyCat/followers","following_url":"https://api.github.com/users/GreyCat/following{/other_user}","gists_url":"https://api.github.com/users/GreyCat/gists{/gist_id}","starred_url":"https://api.github.com/users/GreyCat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GreyCat/subscriptions","organizations_url":"https://api.github.com/users/GreyCat/orgs","repos_url":"https://api.github.com/users/GreyCat/repos","events_url":"https://api.github.com/users/GreyCat/events{/privacy}","received_events_url":"https://api.github.com/users/GreyCat/received_events","type":"User","site_admin":false},"assignees":[{"login":"GreyCat","id":157154,"avatar_url":"https://avatars3.githubusercontent.com/u/157154?v=3","gravatar_id":"","url":"https://api.github.com/users/GreyCat","html_url":"https://github.com/GreyCat","followers_url":"https://api.github.com/users/GreyCat/followers","following_url":"https://api.github.com/users/GreyCat/following{/other_user}","gists_url":"https://api.github.com/users/GreyCat/gists{/gist_id}","starred_url":"https://api.github.com/users/GreyCat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GreyCat/subscriptions","organizations_url":"https://api.github.com/users/GreyCat/orgs","repos_url":"https://api.github.com/users/GreyCat/repos","events_url":"https://api.github.com/users/GreyCat/events{/privacy}","received_events_url":"https://api.github.com/users/GreyCat/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2017-03-24T20:56:21Z","updated_at":"2017-04-03T14:07:26Z","closed_at":"2017-04-03T14:07:26Z","body":"I'm currently working to get my KSYs usable using an opaque type in the Ruby visualizer and by default it doesn't seem to work. I need to activate support for opaque types in the compiler:\r\n\r\n> args = ['--debug', '-t', 'ruby', fn, '-d', code_dir]\r\nto\r\n> args = ['--debug', '-t', 'ruby', '--opaque-types=true', fn, '-d', code_dir]\r\n\r\nI don't see any way providing this on the shell or such. So, do you want to provide some way or simply enable this feature like you hard code e.g. `debug` as well?"},"comment":{"url":"https://api.github.com/repos/kaitai-io/kaitai_struct_visualizer/issues/comments/291154035","html_url":"https://github.com/kaitai-io/kaitai_struct_visualizer/issues/15#issuecomment-291154035","issue_url":"https://api.github.com/repos/kaitai-io/kaitai_struct_visualizer/issues/15","id":291154035,"user":{"login":"tschoening","id":6223655,"avatar_url":"https://avatars2.githubusercontent.com/u/6223655?v=3","gravatar_id":"","url":"https://api.github.com/users/tschoening","html_url":"https://github.com/tschoening","followers_url":"https://api.github.com/users/tschoening/followers","following_url":"https://api.github.com/users/tschoening/following{/other_user}","gists_url":"https://api.github.com/users/tschoening/gists{/gist_id}","starred_url":"https://api.github.com/users/tschoening/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tschoening/subscriptions","organizations_url":"https://api.github.com/users/tschoening/orgs","repos_url":"https://api.github.com/users/tschoening/repos","events_url":"https://api.github.com/users/tschoening/events{/privacy}","received_events_url":"https://api.github.com/users/tschoening/received_events","type":"User","site_admin":false},"created_at":"2017-04-03T14:07:26Z","updated_at":"2017-04-03T14:07:26Z","body":"> Ok, I'm slow again[...]\r\n\r\nDon't worry, I appreciate everything you do and had a workaround, so wasn't stuck. Everything's fine. :-) I tried your changes and they work, so am closing this.\r\n\r\n> Probably I'll add something like -r or --require to allow loading of arbitrary Ruby source files into program space, so one can actually use some custom Ruby code for these opaque types.\r\n\r\nIs it really necessary to implement that in `ksv`, while it's already available in the Ruby binary itself? I have the following command line for example, which uses `-r` to load an opaque implementation. Wouldn't it be enough to document that?\r\n\r\n> /C start \"${env_var:ComSpec}\" /K \"\"\"${env_var:ProgramFiles(x86)}\\Ruby23\\bin\\ruby.exe\" \"-I${env_var:ProgramFiles(x86)}\\kaitai_struct\\runtime\\ruby\\lib\" \"-r../parser/record/fmt_oms_rec_pre_proc.rb\" \"${env_var:ProgramFiles(x86)}\\kaitai_struct\\visualizer\\bin\\ksv\" \"--opaque-types=true\" \"${workspace_loc}/../../Svn/Bin/Giftschrank/Smart-Metering/data.bin\" \"record/fmt_clt_recs.ksy\"\"\""}}
{"actor":{"display_login":"tschoening"}}