<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">I see why. You can either:<div class=""><br class=""></div><div class="">1) rename the parent directory to “gx” rather than “gx-master” </div><div class="">2) or edit the path attribute in priv/ide.xml line 41 <filetree id="filetree" fill="both" <b class="">path="../gx"</b> onclick="on_tree" ondblclick="on_tree" onchange="on_tree”>  change it to a valid directory (e.g. ../gx-master in your case)...</div><div class=""><br class=""></div><div class="">...and it should work.<div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">When I left it, I was using the editor to hack the code itself…<div class=""><br class=""></div><div class="">Alternatively set the path<br class=""><div class=""><div class=""><br class=""></div><div class=""><div class=""><div><blockquote type="cite" class=""><div class="">On Jul 11, 2017, at 12:57 PM, Steve Davis <<a href="mailto:steven.charles.davis@gmail.com" class="">steven.charles.davis@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">You shouldn’t have to, no. I just cloned a new copy from github (and cleared my ERL_LIBS to make sure I wasn’t pulling in anything else) and it all seemed to work for me.<br class=""><br class="">Do you have the stacktrace?<br class=""><br class=""><br class=""><blockquote type="cite" class="">On Jul 11, 2017, at 9:39 AM, Joe Armstrong <<a href="mailto:erlang@gmail.com" class="">erlang@gmail.com</a>> wrote:<br class=""><br class="">It didn't work for me - how did you launch this?<br class=""><br class="">I did erl -pa ebin in the root directory (gx-master)<br class="">gx:config works and I see a window<br class=""><br class="">but gx:idx() crashes with a badmatch<br class="">in line 37 of gx_ui_filetree.erl the line saying<br class=""><br class="">directory = path:type(Path),<br class=""><br class="">I think this is returning undefined -<br class=""><br class="">Do I have to set some environment variables or something?<br class=""><br class="">./Joe<br class=""><br class=""><br class=""><br class="">On Tue, Jul 11, 2017 at 1:22 PM, Steve Davis<br class=""><<a href="mailto:steven.charles.davis@gmail.com" class="">steven.charles.davis@gmail.com</a>> wrote:<br class=""><blockquote type="cite" class="">1) One of those projects that I haven’t had time for. If there was interest,<br class="">it may rekindle my interest in moving it along. Looking back, with the<br class="">second prototype I diverged too far from the GS way of doing this as I got<br class="">focused on XML definitions and so the interactive REPL part suffered. it’s<br class="">really code in mid-flight.<br class=""><br class="">2) However, the code still seems to work under R20 - See console session<br class="">below:<br class=""><br class="">Erlang/OTP 20 [erts-9.0] [source] [64-bit] [smp:4:4] [ds:4:4:10]<br class="">[async-threads:10] [hipe] [kernel-poll:false]<br class=""><br class="">Eshell V9.0  (abort with ^G)<br class="">1> gx:start().<br class="">[<0.63.0> gx_driver:150] "/opt/local/lib/erlang/lib/wx-1.8.1/priv"<br class="">[<0.63.0> gx_driver:124] info_got_wx_consts<br class="">[<0.63.0> gx_driver:134] {handle_info,<br class="">                            {wxe_driver,open_file,"/Users/stevedavis"}}<br class="">{ok,<0.62.0>}<br class="">2> rr(gx).<br class="">[aui,bitmapbutton,box,button,calendar,checkbox,checklist,<br class="">choice,combo,control,date,dialog,editor,evh,filetree,font,<br class="">frame,g,grid,gs,gs_font,gui,gx,gx_cache,gx_ui,gx_wx,image,<br class="">input,line|...]<br class="">3> F = #frame{id=window, size={400,200}}.<br class="">#frame{id = window,ref = undefined,label = undefined,<br class="">      pos = {-1,-1},<br class="">      size = {400,200},<br class="">      callbacks = [],icon = undefined,title = <<"Untitled">>,<br class="">      show = true,virtual = false,content = []}<br class="">4> gx:create(F).<br class="">[#gx_ui{id = window,<br class="">       ref = #wx_ref{ref = 37,type = wxFrame,state = []},<br class="">       parent = #wx_ref{ref = 0,type = wx,state = []},<br class="">       module = gx_ui_frame}]<br class="">5> gx:names().<br class="">[window]<br class="">6> gx:config(window, size, {800, 400}).<br class="">[<0.60.0> gx_ui:59] {{g,<0.62.0>,#Port<0.3025>,undefined,<0.64.0>,gx},<br class="">                    window,<br class="">                    [{size,{800,400}}]}<br class="">[ok]<br class="">7> gx:ide().<br class="">[<0.95.0> gx_ui:59] {{g,<0.93.0>,#Port<0.3158>,undefined,<0.94.0>,ide},<br class="">                    log,<br class="">                    [{append,<<"$<br class="">{init,{gx,ide,{wx_ref,0,wx,[]},gx,start,[],[]},[{resources,undefined}]}\n">>}]}<br class="">{ok,<0.93.0>}<br class=""><br class=""><br class=""><br class=""><br class="">On Jul 11, 2017, at 2:48 AM, Joe Armstrong <<a href="mailto:erlang@gmail.com" class="">erlang@gmail.com</a>> wrote:<br class=""><br class="">Wow - lot's of code for me to stare at - thanks<br class=""><br class="">A couple of questions:<br class=""><br class="">1) I downloaded the gx project and saw that there had been no<br class="">  commits since Jul 13 2014 - is this totally dead?<br class=""><br class="">2) How do I run your gx code? - what's a top level command to create a<br class="">window???<br class=""><br class="">Cheers<br class=""><br class="">/Joe<br class=""><br class=""><br class="">On Tue, Jul 11, 2017 at 1:07 AM, Steve Davis<br class=""><<a href="mailto:steven.charles.davis@gmail.com" class="">steven.charles.davis@gmail.com</a>> wrote:<br class=""><br class="">Sizers are crazy. A while back I had a decent go at making a hand-written<br class="">version of wx interfacing directly to the erlang driver and trying to make<br class="">it sensible as an API like GS. I think it should still work.<br class=""><br class="">The following code was the result of a lot of reading the WxWidgets C++ API<br class="">docs and translating into what I felt was sensible to get to a single<br class="">interface module that resembled GS (i.e the module gx.erl).<br class=""><br class=""><a href="https://github.com/komone/gx/blob/master/src/ui/gx_ui_sizer.erl" class="">https://github.com/komone/gx/blob/master/src/ui/gx_ui_sizer.erl</a><br class=""><br class="">https://github.com/komone/gx/blob/master/src/ui/gx_ui_control.erl<br class=""><br class="">https://github.com/komone/gx/blob/master/src/ui/gx_ui_button.erl<br class=""><br class=""><br class=""><br class=""></blockquote></blockquote><br class=""></div></div></blockquote></div><br class=""></div></div></div></div></div></div></body></html>