Can't Run a Ruby Hello World Application in Aptana

Can't run a ruby hello world application in Aptana

I don't know if this will fix it, but Max gave the following answer to a similar problem I had asked about:

This has been fixed in 3.0.4 which is now under QA and will be public
early this week. You have a choice of either wait or switch to Beta
builds following instructions at
http://wiki.appcelerator.org/display/tis/Changing+the+Update+Type

Cheers, Max

Can't run a ruby hello world application in Aptana

This has been fixed in 3.0.4 which is now under QA and will be public early this week.
You have a choice of either wait or switch to Beta builds following instructions at http://wiki.appcelerator.org/display/tis/Changing+the+Update+Type

Cheers,
Max

Error Dealing with Rails in Aptana

I managed to solve it by making alias for gem, ruby & rails. I found the ans here.
So All what I wrote the following commands in the terminal of Aptana:

alias ruby='C:/ruby192/bin/ruby.exe'
alias rails='C:/ruby192/bin/rails'
alias gem='C:/ruby192/bin/gem'

And it works fine now, running rails from inside aptana terminal on a windows machine.

Aptana Studio: A server is already running error

It is saying that PID (process id) 512 is running the server.

Go to Start -> then type taskmgr.exe. Then, go to the processes tab and look for that process and kill it. It might be a bug that it does not close the server correctly on exit.

Aptana 3 ruby debugger - Exception in DebugThread loop: undefined method `is_binary_data?'

My ruby version:

ruby 1.9.3p0 (2011-10-30) [i386-mingw32]

My gems list:

...
linecache19 (0.5.13)
ruby-debug-base19 (0.11.26)
ruby-debug-ide19 (0.4.12)
...

In Aptana 3, I got same error.

Exception in DebugThread loop: undefined method `is_binary_data?' for "#<PostsController:0x65a8da8>":String

See ruby-debug-ide19-0.4.12 / xml_printer.rb .

  value_str = "[Binary Data]" if value_str.is_binary_data?
print("<variable name=\"%s\" kind=\"%s\" value=\"%s\" type=\"%s\" hasChildren=\"%s\" objectId=\"%#+x\"/>",
CGI.escapeHTML(name), kind, CGI.escapeHTML(value_str), value.class,
has_children, value.respond_to?(:object_id) ? value.object_id : value.id)

See http://apidock.com/ruby/String/is_binary_data%3F .

String#is_binary_data?

This method is deprecated or moved on the latest stable version. The last existing version (v1_9_1_378) is shown here.

 def is_binary_data?
( self.count( "^ -~", "^\r\n" ).fdiv(self.size) > 0.3 || self.index( "\x00" ) ) unless empty?
end

Add this code to xml_printer.rb (or to your code).

class String
def is_binary_data?
( self.count( "^ -~", "^\r\n" ).fdiv(self.size) > 0.3 || self.index( "\x00" ) ) unless empty?
end
end

Thank you.

Eclipse / Aptana 3 : Launching wrong browser

Apparently that particular setting only affects browsing in the integrated browser, not running and debugging web applications.

The setting that needs to be modified for running/debugging is in the run/debug configurations. Why that doesn't by default automatically use the default browser set in the preferences page is beyond me.

In order to get Eclipse/Aptana to open the correct browser when debugging and running web applications, do this:

In the Project Manager, r-click on the project and go to Run As -> Run Configurations... and under 'Web Browser' in the left pane, either edit the default one or add a new run configuration. I just replaced the standard 'Firefox - Internal Server' entry.
In the Web Browser field, either type in the full path to the browser executable (in my case FirefoxPortable.exe), or click 'Browse' and browse to the executable.

That should do it. and now it's doing what I would expect it to.



Related Topics



Leave a reply



Submit