GithubHelp home page GithubHelp logo

arcadia's Introduction

Arcadia IDE

version 1.1.1

by Antonio Galeone on Sep 29, 2015

About

Arcadia is a light editor (IDE) for Ruby language written in Ruby using the classic Tcl/Tk GUI toolkit and developed with Arcadia itself.

Some of Arcadia IDE project features include:

  • Editor with source browsing, syntax highlighting, code completion
  • Working on any platform where Ruby and Tcl-Tk work.
  • Debugging support
  • Highly estensibile architecture.

How to install

  • exec on command line "gem install arcadia"

How to run

  • exec on command line "arcadia"

Wiki

[https://github.com/angal/arcadia/wiki]

News

[1.1.1] This release:

  • bug fixed [issue #58]

[1.1.0] This release:

  • added possibility to define custom runner: go to "run current" menubutton and click on "Manage runner ...". A dialog window will open. You can do actions as: "add new runner", "copy a runner", "delete a personal runner", "save". The list of runners is usable also in "Dir Projects".

    These are keywords that you can use in cmd definitions (see preconfigured runners): <> ruby interpreter <> current file <

    > current dir <<FILE_BASENAME>> basename of current file <<FILE_BASENAME_WITHOUT_EXT>> basename of current file without extension <<INPUT_FILE>> open select file dialog to get file <<INPUT_DIR>> open select dir dialog to get dir <<INPUT_STRING>> open select string dialog to get a generic string

  • on ruby >= 2.0 added runner "debug selected as ruby file in console"

  • on ruby >= 2.0 discontinued dependence from rdebug gem

  • done changes for ruby >= 2.0 and tck/tk 8.6 compatability

  • improved "Output", added option to auto open in editor a file, usefull with the runner "debug selected as ruby file in console"

  • fixed bugs

  • introduces other general improvements

[1.0.0]

  • improves crossplatform features
  • changes dialogs metaphor
  • improves start speed
  • introduces other general improvements

[0.13.1]

  • added Russian translation (Thanks to Michael)
  • bug fixes and various improvements

[0.13.0]

  • improves file-history introducing bookmarks management
  • improves layout
  • fixes bugs

[0.12.2]

  • this release adds support to debugger gem and fixes minor bugs

[0.12.1]

  • fixed bug in file-history

[0.12.0]

  • added new extension : terminal's integration from Projects' navigator you can now open a terminal from selected directory in linux is required xterm and xdotool (xterm is embedded like a other frame)
  • buffers' interchange between more instance of editor
  • introduced internationalization of text : in conf/LC/ are searched translation files in format .LANG (es. en-UK.LANG) locale is settable in ~/.arcadia/arcadia.conf overriding default (locale=en-UK) ... collaborations in translations are welcome!
  • added possibility to interact with running application typing input in output's console
  • introduced in file-history a new kind of view (list view) activable by button on toolbar
  • bugs fixed and optimizations

Dependencies

  • rubygems
  • ruby-tk
  • tcl/tk
  • tk-tile (if Tcl/Tk < 8.5)
  • ctags (Linux)
  • xterm (Linux, optional)
  • xdotool (Linux, optional)
  • ack (optional)
  • gem coderay (> 1.0)
  • gem debugger (only for Ruby < 2.0)
  • gem win32-process (only on Windows)
  • gem ruby-wmi (only on Windows)

Short User guide

Application layout is splitted in vertical and horizontal resizable frames. On vertical and horizontal splitter two button appear for left or right one shot frame closing. Every frame has a title, a button to expand or resizing it and a menu-button for dynamic layout functions (like add row, add column, close or for move a frame).

Main Toolbar

The toolbar button are in order:

  • new, open, save, find (relatively to edit/find operation) after "new" there is a menubutton to choose a type of file
  • new, open Dir Project, search in files, Open terminal from current folder, Toggle bookmark
  • run current, run last (for execute the raised file in the editor or the last runned file)
    after "run current" there is a menubutton to choose a configurated runner to apply at current file
  • (on ruby < 2.0) debug current, debug last, quit debug panel
  • quit (to exit from arcadia)

Editor

Editor can use the notebook metaphor. Same command are on the popup menu that is raised on "Button-3" click event fundamentally for closing the tab under the mouse pointer. These are same editor short-cut:

  • Ctrl-c => copy selected text

  • Ctrl-v => paste copied text

  • Ctrl-x => cut selected text

  • Ctrl-g => show go to line dialog

  • Ctrl-o => open file dialog

  • Ctrl-d => close file dialog

  • Ctrl-z => undo

  • Ctrl-r => redo

  • Ctrl-f => copy the selected text on input combobox of find dialog and moves focus

  • Ctrl-s => save

  • Ctrl-space or esc => completion code

  • Ctrl-shift-i or Tab => indent the selected block

  • Ctrl-shift-u or Shift-Tab => unindent the selected block

  • Ctrl-shift-c => comment/uncomment the selected code block

  • Alt-shift-a => select all

  • Alt-shift-i => invert selection

  • Alt-shift-u => selected to uppercase

  • Alt-shift-l => selected to lowercase

  • F5 => execute the current file

  • F3 => find/ find next

  • Ctrl-F3 => Search in files

  • Double-Click on line number set or unset a debug breakpoint

Project drawer

It is a navigational tree:

  • open or create dir as project
  • make commons file system activity (by contextual menu)
  • make custom action (by runners)
  • open terminal from selected dir

File history

The last used files are organizing in tree so you can reopen them or their directory by clicking on the tree node.

Debug

Require debugger gem and ruby < 2.0. It is created when a debug session init. The debug button are: Step Next, Step Into, Step Over, Resume and quit. The debug frame show the local, instance and global variables for each step.

NOTE: at this moment on ruby >= 2.0 you can debug by using "debug selected as ruby file in console" runner and optionally on "Output" the flag "auto open file in editor" using standard ruby debug input commands:

Debugger help v.-0.002b Commands b[reak] [file:|class:]<line|method> b[reak] [class.]<line|method> set breakpoint to some position wat[ch] set watchpoint to some expression cat[ch] (|off) set catchpoint to an exception b[reak] list breakpoints cat[ch] show catchpoint del[ete][ nnn] delete some or all breakpoints disp[lay] add expression into display expression list undisp[lay][ nnn] delete one particular or all display expressions c[ont] run until program ends or hit breakpoint s[tep][ nnn] step (into methods) one line or till line nnn n[ext][ nnn] go over one line or till line nnn w[here] display frames f[rame] alias for where l[ist][ (-|nn-mm)] list program, - lists backwards nn-mm lists given lines up[ nn] move to higher frame down[ nn] move to lower frame fin[ish] return to outer frame tr[ace] (on|off) set trace mode of current thread tr[ace] (on|off) all set trace mode of all threads q[uit] exit from debugger v[ar] g[lobal] show global variables v[ar] l[ocal] show local variables v[ar] i[nstance] show instance variables of object v[ar] c[onst] show constants of object m[ethod] i[nstance] show methods of object m[ethod] <class|module> show instance methods of class or module th[read] l[ist] list all threads th[read] c[ur[rent]] show current thread th[read] [sw[itch]] switch thread context to nnn th[read] stop stop thread nnn th[read] resume resume thread nnn pp expression evaluate expression and pretty_print its value p expression evaluate expression and print its value r[estart] restart program h[elp] print this help evaluate

Configuration

Same Arcadia properties are locally configurabled by editing the file arcadia.conf under ~/.arcadia directory. The format of property definition are: PROPERTY_NAME=PROPERTY_VALUE

I have tested arcadia with ruby 1.8, 1.9, 2.x on

  • Archlinux
  • Ubuntu/Mint
  • Fedora
  • FreeBsd,
  • Vector linux,
  • Mac OS X
  • Windows 2000/XP/7,
  • Cygwin (note: same page fault error on dll under cygwin may be solved in this way: by ash.exe exec "/bin/rebaseall")

Developers e general information

Released on arcadia web site (http://www.arcadia-ide.org)

License

Arcadia is released under the Ruby License

Contacts

For all questions: [email protected]

For bugs, support request, features request: http://github.com/angal/arcadia/issues

Repository at: http://github.com/angal/arcadia/tree/master

arcadia's People

Contributors

angal avatar gitter-badger avatar mibamur avatar rdp avatar soulhakr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

arcadia's Issues

Code completion not working

I've tried with several of my own .rb files, and even tried typing the example shown in the screenshot to the letter, but arcadia never suggests code completion. It will sometimes work sporadically right after saving a file, but otherwise it seems not to pop up.

Arcadia debugging problem

Hi,

I am on windows xp sp3 x86 with

ruby 1.9.3p125 and latest devkit.

After an adventurous installation of rdebug-base-19x , rdebug-19 (fix dependency) and ruby-wmi (fix :->; in base.rb)

I can start arcadia and run simple programs however when I try to debug the debugger is very slow to "start???"
an error appears at arcadia log

socket_session : Errno::ECONNREFUSED: No connection could be made because the target machine actively refused it. - connect(2)

while rdebug (which standalone seems to work fine) says

d:/winoss/Ruby193/bin/rdebug.bat:1: syntax error, unexpected tCONSTANT, expecting $end

the debugger does not appear to work.

Arcadia not starting

Using Windows 7 x64 Ruby 1.9.2p180, tk-win gem

D:\projects>arcadia
C:/Ruby192/lib/ruby/gems/1.9.1/gems/tk-win-0.2.2-x86-mingw32/lib/tk.rb:2856:in `
_toUTF8': unknown encoding name 'cp437' (ArgumentError)
        from C:/Ruby192/lib/ruby/gems/1.9.1/gems/tk-win-0.2.2-x86-mingw32/lib/tk
.rb:2856:in `_toUTF8'
        from C:/Ruby192/lib/ruby/gems/1.9.1/gems/tk-win-0.2.2-x86-mingw32/lib/tk
.rb:675:in `_toUTF8'
        from C:/Ruby192/lib/ruby/gems/1.9.1/gems/tk-win-0.2.2-x86-mingw32/lib/tk
.rb:5076:in `hash_kv'
        from C:/Ruby192/lib/ruby/gems/1.9.1/gems/tk-win-0.2.2-x86-mingw32/lib/tk
.rb:5076:in `create_self'
        from C:/Ruby192/lib/ruby/gems/1.9.1/gems/tk-win-0.2.2-x86-mingw32/lib/tk
.rb:5058:in `initialize'
        from C:/Ruby192/lib/ruby/gems/1.9.1/gems/arcadia-0.9.3/lib/a-tkcommons.r
b:814:in `new'
        from C:/Ruby192/lib/ruby/gems/1.9.1/gems/arcadia-0.9.3/lib/a-tkcommons.r
b:814:in `__add_button'
        from C:/Ruby192/lib/ruby/gems/1.9.1/gems/arcadia-0.9.3/lib/a-tkcommons.r
b:800:in `add_fixed_button'
        from C:/Ruby192/lib/ruby/gems/1.9.1/gems/arcadia-0.9.3/lib/a-tkcommons.r
b:1263:in `on_close='
        from C:/Ruby192/lib/ruby/gems/1.9.1/gems/arcadia-0.9.3/lib/a-core.rb:488
:in `prepare'
        from C:/Ruby192/lib/ruby/gems/1.9.1/gems/arcadia-0.9.3/lib/a-core.rb:85:
in `initialize'
        from C:/Ruby192/lib/ruby/gems/1.9.1/gems/arcadia-0.9.3/bin/arcadia:12:in
 `new'
        from C:/Ruby192/lib/ruby/gems/1.9.1/gems/arcadia-0.9.3/bin/arcadia:12:in
 `'
        from C:/Ruby192/bin/arcadia:19:in `load'
        from C:/Ruby192/bin/arcadia:19:in `'

Arcadia 24295392 dying at 2011-05-10 02:29:47 -0500

D:\projects>ruby -v
ruby 1.9.2p180 (2011-02-18) [i386-mingw32]

unable to set a breakpoint in a file that "has no name" like (...)*new

TypeError: can't convert nil into String
---< backtrace of Ruby side >-----
./ext/ae-editor/ae-editor.rb:3498:in `expand_path'
./ext/ae-editor/ae-editor.rb:3498:in `tab_file_name'
./ext/ae-editor/ae-editor.rb:3060:in `on_before_debug'
./lib/a-commons.rb:401:in `send'
./lib/a-commons.rb:401:in `_process_fase'
./lib/a-commons.rb:397:in `each'
./lib/a-commons.rb:397:in `_process_fase'
./lib/a-commons.rb:349:in `process_event'
./lib/a-commons.rb:348:in `each'
./lib/a-commons.rb:348:in `process_event'
./ext/ae-editor/ae-editor.rb:3240:in `breakpoint_add'
./ext/ae-editor/ae-editor.rb:1766:in `toggle_breakpoint'
./ext/ae-editor/ae-editor.rb:1695:in `initialize_line_number'
c:/ruby18/lib/ruby/site_ruby/1.8/tk.rb:1187:in `call'
c:/ruby18/lib/ruby/site_ruby/1.8/tk.rb:1187:in `eval_cmd'
c:/ruby18/lib/ruby/site_ruby/1.8/tk.rb:1187:in `cb_eval'
c:/ruby18/lib/ruby/site_ruby/1.8/tk.rb:1138:in `call'
c:/ruby18/lib/ruby/site_ruby/1.8/tk.rb:1324:in `callback'
c:/ruby18/lib/ruby/site_ruby/1.8/tk.rb:1323:in `catch'
c:/ruby18/lib/ruby/site_ruby/1.8/tk.rb:1323:in `callback'
c:/ruby18/lib/ruby/site_ruby/1.8/tk.rb:1557:in `mainloop'
c:/ruby18/lib/ruby/site_ruby/1.8/tk.rb:1557:in `mainloop'
./lib/a-tkcommons.rb:62:in `run'
c:/ruby18/lib/ruby/gems/1.8/gems/arcadia-0.7.0.1/bin/arcadia:12
c:/ruby18/bin/arcadia:19:in `load'
c:/ruby18/bin/arcadia:19
---< backtrace of Tk side >-------
    invoked from within
"rb_out c00261"
    (menu invoke)

Can't run on Ubuntu 12.10

Using rbenv and ruby 1.9.3p362, I can't run it. I get this error:

----------------------------------------------
       *** LOAD ERROR ***
 ----------------------------------------------
       Arcadia require ruby-tk extension     
       and tcl/tk run-time                   
       you must install before run ...       
 ----------------------------------------------
 ----- LoadError Details-----------------------
    Platform : "i686-linux"          
    Ruby version : "1.9.3"
    Message : 
     "cannot load such file -- tk"
 ----------------------------------------------

what am I doing wrong?

Not starting on Ubuntu 10.10 / Ruby 1.9.2

I just installed arcadia as a gem. Also installed tk_as_gem, ruby-debug19 and coderay gems. tcl/tk version 8.3 on my system. Ubuntu 10.10 with rvm and Ruby1.9.2.

When I run 'arcadia' one small 100x100px window quickly appears and disappears, and my cpu goes to 100%.

Continuos errors: NoMethodError: undefined method `length' for 114:Fixnum

At startup and everytime I use scrollbar it show error dialog:
NoMethodError: undefined method length' for 114:Fixnum ---< backtrace of Ruby side >----- /usr/lib/ruby/gems/1.8/gems/arcadia-0.10.0/ext/ae-editor/ae-editor.rb:3519:inhighlight_tags'
/usr/lib/ruby/gems/1.8/gems/arcadia-0.10.0/ext/ae-editor/ae-editor.rb:3508:in each' /usr/lib/ruby/gems/1.8/gems/arcadia-0.10.0/ext/ae-editor/ae-editor.rb:3508:inhighlight_tags'
/usr/lib/ruby/gems/1.8/gems/arcadia-0.10.0/ext/ae-editor/ae-editor.rb:3010:in highlightlines' /usr/lib/ruby/gems/1.8/gems/arcadia-0.10.0/ext/ae-editor/ae-editor.rb:2881:inrehighlightlines'
/usr/lib/ruby/gems/1.8/gems/arcadia-0.10.0/ext/ae-editor/ae-editor.rb:3051:in highlight_zone' /usr/lib/ruby/gems/1.8/gems/arcadia-0.10.0/ext/ae-editor/ae-editor.rb:2907:indo_line_update'
/usr/lib/ruby/gems/1.8/gems/arcadia-0.10.0/ext/ae-editor/ae-editor.rb:2906:in upto' /usr/lib/ruby/gems/1.8/gems/arcadia-0.10.0/ext/ae-editor/ae-editor.rb:2906:indo_line_update'
/usr/lib/ruby/gems/1.8/gems/arcadia-0.10.0/ext/ae-editor/ae-editor.rb:1885:in initialize_text_binding' /usr/lib/ruby/gems/1.8/gems/arcadia-0.10.0/lib/a-tkcommons.rb:1726:incall'
/usr/lib/ruby/gems/1.8/gems/arcadia-0.10.0/lib/a-tkcommons.rb:1726:in do_yscrollcommand' /usr/lib/ruby/gems/1.8/gems/arcadia-0.10.0/lib/a-tkcommons.rb:1800:inarm_scroll_binding'
/usr/lib/ruby/1.8/tk.rb:1250:in call' /usr/lib/ruby/1.8/tk.rb:1250:ineval_cmd'
/usr/lib/ruby/1.8/tk.rb:1250:in cb_eval' /usr/lib/ruby/1.8/tk.rb:1197:incall'
/usr/lib/ruby/1.8/tk.rb:1387:in callback' /usr/lib/ruby/1.8/tk.rb:1386:incatch'
/usr/lib/ruby/1.8/tk.rb:1386:in callback' /usr/lib/ruby/1.8/tk.rb:1421:inmainloop'
/usr/lib/ruby/1.8/tk.rb:1646:in mainloop' /usr/lib/ruby/gems/1.8/gems/arcadia-0.10.0/lib/a-tkcommons.rb:90:inrun'
/usr/lib/ruby/gems/1.8/gems/arcadia-0.10.0/bin/arcadia:15
/usr/bin/arcadia:19:in `load'
/usr/bin/arcadia:19
---< backtrace of Tk side >-------
invoked from within
"rb_out c00465 0.0167427701674277 0.5121765601217656"
(vertical scrolling command executed by text)

ruby -v : ruby 1.8.7 (2011-06-30 patchlevel 352) [i686-linux]

breakpoint creation not always work

how to recreate:
create a new file [new file icon]
type in
a = 3
a = 4
a = 5

save it
now try and set breakpoints on its various lines by double clicking left of the line number. For me it creates some yes, others no.
Thanks!

Idea: Separate Arcadia in sub-projects (gems)

For instance, separate code which responsible for autocompletion. So this code can be reused with other editors (vim, emacs, ruco). This idea inspired by gocode.
We all deserve better autocomplete for ruby written in ruby (so any ruby developer can hack it).

arcadia cannot start if an edited file disappears

close arcadia, delete a file you were editing in it, reopen arcadia:

C:\dev\ruby\arcadia>ruby bin\arcadia
./ext/ae-editor/ae-editor.rb:3068:in readlines': No such file or directory - C:/dev/clean me up.txt (Errno::ENOENT) from ./ext/ae-editor/ae-editor.rb:3068:inon_before_debug'
from ./lib/a-commons.rb:401:in send' from ./lib/a-commons.rb:401:in_process_fase'
from ./lib/a-commons.rb:397:in each' from ./lib/a-commons.rb:397:in_process_fase'
from ./lib/a-commons.rb:349:in process_event' from ./lib/a-commons.rb:348:ineach'
from ./lib/a-commons.rb:348:in process_event' ... 12 levels... from ./lib/a-core.rb:374:inprepare'
from ./lib/a-core.rb:76:in initialize' from bin/arcadia:12:innew'
from bin/arcadia:12

It refuses to start on fedora16

[tempwall@temp-nc ~]$ arcadia
/usr/lib/ruby/1.8/tk.rb:2049:in _invoke_without_enc': unknown option "-" (RuntimeError) from /usr/lib/ruby/1.8/tk.rb:2049:in_ip_invoke_core'
from /usr/lib/ruby/1.8/tk.rb:2085:in _tk_call_core' from /usr/lib/ruby/1.8/tk.rb:2113:intk_call_without_enc'
from /usr/lib/ruby/1.8/tk.rb:5155:in create_self' from /usr/lib/ruby/1.8/tk.rb:5137:ininitialize'
from /usr/lib/ruby/gems/1.8/gems/arcadia-0.11.1/lib/a-tkcommons.rb:411:in new' from /usr/lib/ruby/gems/1.8/gems/arcadia-0.11.1/lib/a-tkcommons.rb:411:ininitialize'
from /usr/lib/ruby/gems/1.8/gems/arcadia-0.11.1/lib/a-core.rb:2557:in new' from /usr/lib/ruby/gems/1.8/gems/arcadia-0.11.1/lib/a-core.rb:2557:in_prepare_cols'
from /usr/lib/ruby/gems/1.8/gems/arcadia-0.11.1/lib/a-core.rb:2686:in add_cols_perc' from /usr/lib/ruby/gems/1.8/gems/arcadia-0.11.1/lib/a-core.rb:502:ininitialize_layout'
from /usr/lib/ruby/gems/1.8/gems/arcadia-0.11.1/lib/a-core.rb:490:in each' from /usr/lib/ruby/gems/1.8/gems/arcadia-0.11.1/lib/a-core.rb:490:ininitialize_layout'
from /usr/lib/ruby/gems/1.8/gems/arcadia-0.11.1/lib/a-core.rb:592:in prepare' from /usr/lib/ruby/gems/1.8/gems/arcadia-0.11.1/lib/a-core.rb:122:ininitialize'
from /usr/lib/ruby/gems/1.8/gems/arcadia-0.11.1/bin/arcadia:15:in new' from /usr/lib/ruby/gems/1.8/gems/arcadia-0.11.1/bin/arcadia:15 from /usr/bin/arcadia:19:inload'
from /usr/bin/arcadia:19

Arcadia -612040588 dying at Fri Feb 24 05:07:47 +0800 2012

The environment:
Fedora16,ruby 1.8.7,official software repository. All requirements meet as some time it could be run well...
And the arcadia 0.11.1 is to be run.

crash report: close project then reopen same dir

I believe you recreate it by opening a new project, closing it, opening same dir as project again, try to expand it, this results.

NoMethodError: undefined method cache_dirs' for nil:NilClass ---< backtrace of Ruby side >----- ./ext/ae-dir-projects/ae-dir-projects.rb:221:indo_open_folder'
./ext/ae-dir-projects/ae-dir-projects.rb:692:in add_node' ./ext/ae-dir-projects/ae-dir-projects.rb:712:inadd_project'
./ext/ae-dir-projects/ae-dir-projects.rb:461:in do_open_project' ./ext/ae-dir-projects/ae-dir-projects.rb:68:inon_build'
c:/installs/ruby_msvc/lib/ruby/1.8/tk.rb:1187:in call' c:/installs/ruby_msvc/lib/ruby/1.8/tk.rb:1187:ineval_cmd'
c:/installs/ruby_msvc/lib/ruby/1.8/tk.rb:1187:in cb_eval' c:/installs/ruby_msvc/lib/ruby/1.8/tk.rb:1138:incall'
c:/installs/ruby_msvc/lib/ruby/1.8/tk.rb:1324:in callback' c:/installs/ruby_msvc/lib/ruby/1.8/tk.rb:1323:incatch'
c:/installs/ruby_msvc/lib/ruby/1.8/tk.rb:1323:in callback' c:/installs/ruby_msvc/lib/ruby/1.8/tk.rb:1557:inmainloop'
c:/installs/ruby_msvc/lib/ruby/1.8/tk.rb:1557:in mainloop' ./lib/a-tkcommons.rb:62:inrun'
c:/installs/ruby_msvc/lib/ruby/gems/1.8/gems/arcadia-0.7.0.1/bin/arcadia:12
c:/installs/ruby_msvc/bin/arcadia:19:in `load'
c:/installs/ruby_msvc/bin/arcadia:19
---< backtrace of Tk side >-------
invoked from within
"rb_out c00118"
("uplevel" body line 1)
invoked from within
"uplevel #0 $cmd"
(procedure "Button::_release" line 19)
invoked from within
"Button::_release .w00001.frame.w00115.w00116.b1"
(command bound to event)

Multiple issues on starting Arcadia

I installed Arcadia as a gem on Ubuntu 10.10. Although the documentation says it should start by issuing 'arcadia', this did't work. I had to locate the file in '/var/lib/gems/1.9.1/gems/arcadia-0.9.3/bin/arcadia' and start it there.
The 3rd time I started the app - without installing, removing anything - it started with a huge error:

$ ./arcadia
/var/lib/gems/1.9.1/gems/arcadia-0.9.3/ext/ae-ruby-debug/ae-ruby-debug.rb:1555:in `breakpoint_add': undefined method`<<' for nil:NilClass (NoMethodError)
    from /var/lib/gems/1.9.1/gems/arcadia-0.9.3/ext/ae-ruby-debug/ae-ruby-debug.rb:1481:in `on_debug'
    from /var/lib/gems/1.9.1/gems/arcadia-0.9.3/lib/a-commons.rb:456:in`block in _process_fase'
    from /var/lib/gems/1.9.1/gems/arcadia-0.9.3/lib/a-commons.rb:452:in `each'
    from /var/lib/gems/1.9.1/gems/arcadia-0.9.3/lib/a-commons.rb:452:in`_process_fase'
    from /var/lib/gems/1.9.1/gems/arcadia-0.9.3/lib/a-commons.rb:409:in `block in process_event'
    from /var/lib/gems/1.9.1/gems/arcadia-0.9.3/lib/a-commons.rb:408:in`each'
    from /var/lib/gems/1.9.1/gems/arcadia-0.9.3/lib/a-commons.rb:408:in `process_event'
    from /var/lib/gems/1.9.1/gems/arcadia-0.9.3/ext/ae-breakpoints/ae-breakpoints.rb:40:in`block in load_persistent_breakpoints'
    from /var/lib/gems/1.9.1/gems/arcadia-0.9.3/ext/ae-breakpoints/ae-breakpoints.rb:37:in `each'
    from /var/lib/gems/1.9.1/gems/arcadia-0.9.3/ext/ae-breakpoints/ae-breakpoints.rb:37:in`load_persistent_breakpoints'
    from /var/lib/gems/1.9.1/gems/arcadia-0.9.3/ext/ae-breakpoints/ae-breakpoints.rb:19:in `on_after_build'
    from /var/lib/gems/1.9.1/gems/arcadia-0.9.3/lib/a-commons.rb:462:in`block in _process_fase'
    from /var/lib/gems/1.9.1/gems/arcadia-0.9.3/lib/a-commons.rb:461:in `each'
    from /var/lib/gems/1.9.1/gems/arcadia-0.9.3/lib/a-commons.rb:461:in`_process_fase'
    from /var/lib/gems/1.9.1/gems/arcadia-0.9.3/lib/a-commons.rb:414:in `block in process_event'
    from /var/lib/gems/1.9.1/gems/arcadia-0.9.3/lib/a-commons.rb:413:in`each'
    from /var/lib/gems/1.9.1/gems/arcadia-0.9.3/lib/a-commons.rb:413:in `process_event'
    from /var/lib/gems/1.9.1/gems/arcadia-0.9.3/lib/a-core.rb:276:in`do_build'
    from /var/lib/gems/1.9.1/gems/arcadia-0.9.3/lib/a-core.rb:497:in `prepare'
    from /var/lib/gems/1.9.1/gems/arcadia-0.9.3/lib/a-core.rb:85:in`initialize'
    from ./arcadia:12:in `new'
    from ./arcadia:12:in`

File menu Save_As error

0.7.0 on win XP SP3 Tk8.4 Ruby 1.8.6

NoMethodError: undefined method length' for nil:NilClass ---< backtrace of Ruby side >----- ./ext/ae-dir-projects/ae-dir-projects.rb:415:inselected'
./ext/ae-dir-projects/ae-dir-projects.rb:856:in on_before_save_as_buffer' ./lib/a-commons.rb:367:insend'
./lib/a-commons.rb:367:in _process_fase' ./lib/a-commons.rb:366:ineach'
./lib/a-commons.rb:366:in _process_fase' ./lib/a-commons.rb:310:inprocess_event'
./lib/a-commons.rb:309:in each' ./lib/a-commons.rb:309:inprocess_event'
./lib/a-core.rb:797:in build' C:/Ruby-1.8.6/lib/ruby/1.8/tk.rb:1187:incall'
C:/Ruby-1.8.6/lib/ruby/1.8/tk.rb:1187:in eval_cmd' C:/Ruby-1.8.6/lib/ruby/1.8/tk.rb:1187:incb_eval'
C:/Ruby-1.8.6/lib/ruby/1.8/tk.rb:1138:in call' C:/Ruby-1.8.6/lib/ruby/1.8/tk.rb:1324:incallback'
C:/Ruby-1.8.6/lib/ruby/1.8/tk.rb:1323:in catch' C:/Ruby-1.8.6/lib/ruby/1.8/tk.rb:1323:incallback'
C:/Ruby-1.8.6/lib/ruby/1.8/tk.rb:1354:in mainloop' C:/Ruby-1.8.6/lib/ruby/1.8/tk.rb:1557:inmainloop'
./lib/a-tkcommons.rb:62:in run' C:/Ruby-1.8.6/lib/ruby/gems/1.8/gems/arcadia-0.7.0/bin/arcadia:13 C:/Ruby-1.8.6/bin/arcadia:19:inload'
C:/Ruby-1.8.6/bin/arcadia:19
---< backtrace of Tk side >-------
invoked from within
"rb_out c00076"
(menu invoke)

debug expansion fails at times

ex: expanding @@active_connections within a rails process.

NoMethodError: undefined method `<=>' for :database:Symbol
---< backtrace of Ruby side >-----
./ext/ae-ruby-debug/ae-ruby-debug.rb:602:in `sort'
./ext/ae-ruby-debug/ae-ruby-debug.rb:602:in `var_deep'
./ext/ae-ruby-debug/ae-ruby-debug.rb:630:in `var_deep'
./ext/ae-ruby-debug/ae-ruby-debug.rb:604:in `each'
./ext/ae-ruby-debug/ae-ruby-debug.rb:604:in `var_deep'
./ext/ae-ruby-debug/ae-ruby-debug.rb:630:in `var_deep'
./ext/ae-ruby-debug/ae-ruby-debug.rb:604:in `each'
./ext/ae-ruby-debug/ae-ruby-debug.rb:604:in `var_deep'
./ext/ae-ruby-debug/ae-ruby-debug.rb:584:in `inspect_node'
./ext/ae-ruby-debug/ae-ruby-debug.rb:195:in `build_var_panel'
C:/ruby18/lib/ruby/site_ruby/1.8/tk.rb:1187:in `call'
C:/ruby18/lib/ruby/site_ruby/1.8/tk.rb:1187:in `eval_cmd'
C:/ruby18/lib/ruby/site_ruby/1.8/tk.rb:1187:in `cb_eval'
C:/ruby18/lib/ruby/site_ruby/1.8/tk.rb:1138:in `call'
C:/ruby18/lib/ruby/site_ruby/1.8/tk.rb:1324:in `callback'
C:/ruby18/lib/ruby/site_ruby/1.8/tk.rb:1323:in `catch'
C:/ruby18/lib/ruby/site_ruby/1.8/tk.rb:1323:in `callback'
C:/ruby18/lib/ruby/site_ruby/1.8/tk.rb:1557:in `mainloop'
C:/ruby18/lib/ruby/site_ruby/1.8/tk.rb:1557:in `mainloop'
./lib/a-tkcommons.rb:62:in `run'
C:/ruby18/lib/ruby/gems/1.8/gems/arcadia-0.7.0.1/bin/arcadia:12
c:/ruby18/bin/arcadia:19:in `load'
c:/ruby18/bin/arcadia:19
---< backtrace of Tk side >-------
    invoked from within
"rb_out c00390 class_var@@@@@active_connections"
    ("uplevel" body line 1)
    invoked from within
"uplevel \#0 $cmd [list $node]"
    (procedure "Tree::_cross_event" line 14)
    invoked from within
"Tree::_cross_event .w00001.frame.w00250.w00253.w00255.fvars.w00256"
    (command bound to event)

Initial width too high for Editor frame

When starting arcadia the central frame 'Editor' is too wide. It entirely hides the 'Outline' frame and frame control buttons for 'Editor' frame. You have to resize the container window to almost double the screen's width to get to the splitter and drag it back to a normal width. Maybe it is trying to guess my screen width and it's getting it wrong because sometimes I plug some extra monitor and the screen gets wider.

In general, when resizing the container window no frame should become hidden, or at least there should be some kind of 'layout my frames' menu entry to auto resize all frames to fit the container window.

For everything else i've tried, arcadia seems pretty awesome !!

Ubuntu 11.04, rvm 1.6.18, ruby 1.9.2, tk 8.4, tk_as_gem 0.1, arcadia 0.10

Great software guys !

Thanks.

user input in "output" tab

Would be good to include user input in "output" tab... so I don't have to run the program in a console...

I think this is a very usefull feature...

dependency missing

When installed, a message that Gem 'ruby-debug19' and ctags are missing.

Here's the install:

thufir@dur:$
thufir@dur:
$
thufir@dur:$ gem install arcadia --no-rdoc --no-ri
Fetching: coderay-1.0.5.gem (100%)
Fetching: arcadia-0.11.1.1.gem (100%)
Successfully installed coderay-1.0.5
Successfully installed arcadia-0.11.1.1
2 gems installed
thufir@dur:
$
thufir@dur:$
thufir@dur:
$ arcadia

[1]+ Stopped arcadia
thufir@dur:~$ NOTE: Gem.available? is deprecated, use Specification::find_by_name. It will be removed on or after 2011-11-01.
Gem.available? called from /home/thufir/.rvm/gems/ruby-1.9.3-p125/gems/arcadia-0.11.1.1/lib/a-core.rb:268.
NOTE: Gem.available? is deprecated, use Specification::find_by_name. It will be removed on or after 2011-11-01.
Gem.available? called from /home/thufir/.rvm/gems/ruby-1.9.3-p125/gems/arcadia-0.11.1.1/lib/a-core.rb:268.
NOTE: Gem.available? is deprecated, use Specification::find_by_name. It will be removed on or after 2011-11-01.
Gem.available? called from /home/thufir/.rvm/gems/ruby-1.9.3-p125/gems/arcadia-0.11.1.1/lib/a-core.rb:268.

thufir@dur:$
thufir@dur:
$
thufir@dur:~$ rvm --version

rvm 1.10.3 by Wayne E. Seguin [email protected], Michal Papis [email protected] [https://rvm.beginrescueend.com/]

thufir@dur:$
thufir@dur:
$ ruby --version
ruby 1.9.3p125 (2012-02-16 revision 34643) [i686-linux]
thufir@dur:$
thufir@dur:
$ gem --version
1.8.19
thufir@dur:$
thufir@dur:
$
thufir@dur:$ type rvm | head -1
rvm is a function
thufir@dur:
$
thufir@dur:~$

Start Terminal from here tries to open cdm!

When right clicking on a project or file and trying to start terminal from here tries to start CDM instead of CMD.

its in the do_run_external_term method in the ae-term.rb file.

I just fixed the typo in mine and it works fine now.

C:\Ruby193\lib\ruby\gems\1.9.1\gems\arcadia-0.12.2\ext\ae-term\ae-term.rb

def do_run_external_term(_dir)
if Arcadia.is_windows?
system("cd #{_dir} & start cmd") ################## used to say: system("cd #{_dir} & start cdm"
else
system("cd #{_dir}; xterm &")
end
end

FYI im using windows 7

debugging won't start

symptoms:
start debugger in one file.
close the file that has the debugger "in it" currently
stop debugger
try to start debugger in a different file.
Refuses to start.

In reality it appears the previous debugger doesn't close down right/well.

doesn't re highlight after a reload

After you modify a file outside of the editor and it prompts you "do you want to reload' (you click yes) the syntax highlighting all disappears :)
-r

"close project" crashes

at least for me, when run on the root, at times...

NoMethodError: undefined method length' for nil:NilClass ---< backtrace of Ruby side >----- ./ext/ae-dir-projects/ae-dir-projects.rb:415:inselected'
./ext/ae-dir-projects/ae-dir-projects.rb:378:in pop_up_menu_tree' c:/installs/ruby_msvc/lib/ruby/1.8/tk.rb:1187:incall'
c:/installs/ruby_msvc/lib/ruby/1.8/tk.rb:1187:in eval_cmd' c:/installs/ruby_msvc/lib/ruby/1.8/tk.rb:1187:incb_eval'
c:/installs/ruby_msvc/lib/ruby/1.8/tk.rb:1138:in call' c:/installs/ruby_msvc/lib/ruby/1.8/tk.rb:1324:incallback'
c:/installs/ruby_msvc/lib/ruby/1.8/tk.rb:1323:in catch' c:/installs/ruby_msvc/lib/ruby/1.8/tk.rb:1323:incallback'
c:/installs/ruby_msvc/lib/ruby/1.8/tk.rb:1557:in mainloop' c:/installs/ruby_msvc/lib/ruby/1.8/tk.rb:1557:inmainloop'
./lib/a-tkcommons.rb:62:in run' c:/installs/ruby_msvc/lib/ruby/gems/1.8/gems/arcadia-0.7.0.1/bin/arcadia:13 c:/installs/ruby_msvc/bin/arcadia:19:inload'
c:/installs/ruby_msvc/bin/arcadia:19
---< backtrace of Tk side >-------
invoked from within
"rb_out c00154"
(menu invoke)

"open dir as project" doesn't open dir

when you right click on a directory in "dir projects" and choose "open dir as project" it doesn't open the dir as project--it prompts you to pick a whole new [other] dir as project. Expected?

doesn't highlight right

Dir.glob('lib/gems_here/*').each{|d| $: << "#{d}/lib" } highlights poorly arcadia?

highlights poorly [though this is a low priority, for sure]

closed editor pane then will not allow file opens

Once editor pane is closed, no file will open from either clicks in File History or the File menu

RuntimeError: NoMethodError: undefined method []' for nil:NilClass ---< backtrace of Ruby side >----- C:/Ruby-1.8.6/lib/ruby/1.8/tk.rb:1354:in__invoke'
C:/Ruby-1.8.6/lib/ruby/1.8/tk.rb:2272:in _invoke' C:/Ruby-1.8.6/lib/ruby/1.8/tk.rb:1696:in_ip_invoke_core'
C:/Ruby-1.8.6/lib/ruby/1.8/tk.rb:1730:in _tk_call_core' C:/Ruby-1.8.6/lib/ruby/1.8/tk.rb:1754:intk_call'
C:/Ruby-1.8.6/lib/ruby/1.8/tk.rb:3878:in tk_send' C:/Ruby-1.8.6/lib/ruby/1.8/tkextlib/bwidget/notebook.rb:137:inraise'
./ext/ae-editor/ae-editor.rb:3456:in open_buffer' ./ext/ae-editor/ae-editor.rb:3426:inopen_file'
./ext/ae-editor/ae-editor.rb:3051:in on_buffer' ./lib/a-commons.rb:362:insend'
./lib/a-commons.rb:362:in _process_fase' ./lib/a-commons.rb:358:ineach'
./lib/a-commons.rb:358:in _process_fase' ./lib/a-commons.rb:315:inprocess_event'
./lib/a-commons.rb:314:in each' ./lib/a-commons.rb:314:inprocess_event'
./ext/ae-file-history/ae-file-history.rb:135:in on_build' ./ext/ae-file-history/ae-file-history.rb:154:incall'
./ext/ae-file-history/ae-file-history.rb:154:in on_build' C:/Ruby-1.8.6/lib/ruby/1.8/tk.rb:1187:incall'
C:/Ruby-1.8.6/lib/ruby/1.8/tk.rb:1187:in eval_cmd' C:/Ruby-1.8.6/lib/ruby/1.8/tk.rb:1187:incb_eval'
C:/Ruby-1.8.6/lib/ruby/1.8/tk.rb:1138:in call' C:/Ruby-1.8.6/lib/ruby/1.8/tk.rb:1324:incallback'
C:/Ruby-1.8.6/lib/ruby/1.8/tk.rb:1323:in catch' C:/Ruby-1.8.6/lib/ruby/1.8/tk.rb:1323:incallback'
C:/Ruby-1.8.6/lib/ruby/1.8/tk.rb:1354:in mainloop' C:/Ruby-1.8.6/lib/ruby/1.8/tk.rb:1557:inmainloop'
./lib/a-tkcommons.rb:62:in run' C:/Ruby-1.8.6/lib/ruby/gems/1.8/gems/arcadia-0.7.0/bin/arcadia:13 C:/Ruby-1.8.6/bin/arcadia:19:inload'
C:/Ruby-1.8.6/bin/arcadia:19
---< backtrace of Tk side >-------
invoked from within
"rb_out c00203 .w00001.frame.w00171.w00173 c:/ruby-1.8.6/bin@@@tk-test.rb"
("uplevel" body line 1)
invoked from within
"uplevel #0 $selectcmd"
(procedure "__call_selectcmd" line 9)
invoked from within
"__call_selectcmd $path"
("set" arm line 17)
invoked from within
"switch -- $cmd {
toggle {
foreach node $args {
set node [_node_name $path $node]
if {![info exists data($..."
(procedure "selection" line 5)
invoked from within
"selection .w00001.frame.w00171.w00173 set c:/ruby-1.8.6/bin@@@tk-test.rb"
("eval" body line 1)
invoked from within
"eval [linsert $args 0 selection $path $cmd]"
(procedure "Tree::_mouse_select" line 2)
invoked from within
"Tree::_mouse_select .w00001.frame.w00171.w00173 set [Tree::_get_node_name .w00001.frame.w00171.w00173 current 2]"
(command bound to event)

warning on block call

./ext/ae-dir-projects/ae-dir-projects.rb:178: warning: multiple values for a block parameter (2 for 1)
Thanks!

file -> open doesn't work

NameError: undefined local variable or method `open_file_dialog' for #
---< backtrace of Ruby side >-----
./lib/a-core.rb:942:in`build'
c:/ruby18/lib/ruby/site_ruby/1.8/tk.rb:1187:in `call'
c:/ruby18/lib/ruby/site_ruby/1.8/tk.rb:1187:in`eval_cmd'
c:/ruby18/lib/ruby/site_ruby/1.8/tk.rb:1187:in `cb_eval'
c:/ruby18/lib/ruby/site_ruby/1.8/tk.rb:1138:in`call'
c:/ruby18/lib/ruby/site_ruby/1.8/tk.rb:1324:in `callback'
c:/ruby18/lib/ruby/site_ruby/1.8/tk.rb:1323:in`catch'
c:/ruby18/lib/ruby/site_ruby/1.8/tk.rb:1323:in `callback'
c:/ruby18/lib/ruby/site_ruby/1.8/tk.rb:1354:in`mainloop'
c:/ruby18/lib/ruby/site_ruby/1.8/tk.rb:1557:in `mainloop'
./lib/a-tkcommons.rb:62:in`run'
bin/arc:12
---< backtrace of Tk side >-------
    invoked from within
"rb_out c00059"

"save as" doesn't work

at least in doze...

NoMethodError: undefined method length' for nil:NilClass ---< backtrace of Ruby side >----- ./ext/ae-dir-projects/ae-dir-projects.rb:415:inselected'
./ext/ae-dir-projects/ae-dir-projects.rb:856:in on_before_save_as_buffer' ./lib/a-commons.rb:368:insend'
./lib/a-commons.rb:368:in _process_fase' ./lib/a-commons.rb:367:ineach'
./lib/a-commons.rb:367:in _process_fase' ./lib/a-commons.rb:310:inprocess_event'
./lib/a-commons.rb:309:in each' ./lib/a-commons.rb:309:inprocess_event'
./lib/a-core.rb:797:in build' d:/installs/ruby_msvc_rc2/lib/ruby/1.8/tk.rb:1187:incall'
d:/installs/ruby_msvc_rc2/lib/ruby/1.8/tk.rb:1187:in eval_cmd' d:/installs/ruby_msvc_rc2/lib/ruby/1.8/tk.rb:1187:incb_eval'
d:/installs/ruby_msvc_rc2/lib/ruby/1.8/tk.rb:1138:in call' d:/installs/ruby_msvc_rc2/lib/ruby/1.8/tk.rb:1324:incallback'
d:/installs/ruby_msvc_rc2/lib/ruby/1.8/tk.rb:1323:in catch' d:/installs/ruby_msvc_rc2/lib/ruby/1.8/tk.rb:1323:incallback'
d:/installs/ruby_msvc_rc2/lib/ruby/1.8/tk.rb:1354:in mainloop' d:/installs/ruby_msvc_rc2/lib/ruby/1.8/tk.rb:1557:inmainloop'
./lib/a-tkcommons.rb:62:in `run'
arcadia:12
---< backtrace of Tk side >-------
invoked from within
"rb_out c00076"
(menu invoke)

debugger doesn't work in doze

in mingw I receive this output:

socket_session : #<Errno::ECONNREFUSED: No connection could be made because the target machine actively refused it. - connect(2)>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.