|
View:
New views
17 Messages
—
Rating Filter:
Alert me
|
|
|
Windows to OSXHi there,
I've recently purchased a mac, and I'm having a bit of trouble getting my project up and running on it. I was wondering if someone might have some suggestions around the following issues: 1) ImageMagick - when I run my app from terminal, it works fine, and I can upload and have images processed. When I run the app from within netbeans, it complains "sh: identify: command not found". I'm wondering if this is because the shell I use in the terminal is different to the env netbeans runs the project in. Can anyone point me at some guidance on how I'd fix this? 2) I can't get the debugger working. I have the 3 debug gems installed (ruby-debug, ruby-debug-base, and ruby-debug-id). I have the dev tools installed. When I try and run in debug mode it says: "Problem occured during debugger stat: Cannont connect to the debugged process in 15x: But server process is running you might try to increase the timeout. Killing... (sic) Error Output: Fast Debugger (ruby-debug-ide 0.2.0) listens on localhost:49604". How do you increase the timeout? Can anyone suggest a different cause for this? 3) Is it possible to attach the debugger to a process that is already running? Cheers, Tim (with no midnight oil left to burn). |
|
|
Re: Windows to OSXOh - I should have also mentioned the Gem Manager seems pretty broken for native Ruby. This is using yesterday's dev build.
Cheers, Tim. On Fri, Jun 27, 2008 at 12:57 AM, Tim Haines <tmhaines@...> wrote: Hi there, |
|
|
Re: Windows to OSXTim Haines wrote:
> Hi there, Hi Tim, --%<-- > 1) ImageMagick - when I run my app from terminal, it works fine, > and I can upload and have images processed. When I run the app > from within netbeans, it complains "sh: identify: command not > found". I'm wondering if this is because the shell I use in the > terminal is different to the env netbeans runs the project in. Can > anyone point me at some guidance on how I'd fix this? You can see the environment used when you turn on the detailed logging. Could you do so: http://wiki.netbeans.org/FaqRubyNBLogging and file an issue with the log attached or send it here, or to me. > 2) I can't get the debugger working. I have the 3 debug gems > installed (ruby-debug, ruby-debug-base, and ruby-debug-id). I have > the dev tools installed. When I try and run in debug mode it says: > "Problem occured during debugger stat: Cannont connect to the > debugged process in 15x: But server process is running you might > try to increase the timeout. Killing... (sic) Error Output: Fast > Debugger (ruby-debug-ide 0.2.0) listens on localhost:49604". How > do you increase the timeout? Can anyone suggest a different cause > for this? You can try to increase timeout as described here: http://wiki.netbeans.org/RubyDebugging#section-RubyDebugging-TimeoutProblem (I've just add it) But as described there you are likely encountering other bug. Please follow the information there. > 3) Is it possible to attach the debugger to a process that is > already running? Not possible yet, you might CC yourself here: http://www.netbeans.org/issues/show_bug.cgi?id=104473 to watch the progress. m. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: Windows to OSXTim Haines wrote:
> Oh - I should have also mentioned the Gem Manager seems pretty broken > for native Ruby. This is using yesterday's dev build. Could you specify what does 'pretty broken' in the sentence above mean? Thanks, m. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: Windows to OSXHi Martin,
Thanks for your offer of help here. I've emailed you log files as requested in previous email. I've just tried running menu -> tools -> Ruby Gems again, and it works when I run Netbeans from the command line. Hmm - actually it runs when I run netbeans from the app folder now too. Updating gems comes up with a permission error - I think that's known though - sudo is needed to install some gems or something. Yesterday the RubyGems window was opening, but not showing me anything for the native Ruby gems. Seems fine now though. Odd. Would it require "Developer Tools" to show the gem list? Tim. On Fri, Jun 27, 2008 at 1:36 AM, Martin Krauskopf <Martin.Krauskopf@...> wrote:
|
|
|
Re: Windows to OSXTim Haines wrote:
> Hi Martin, > > Thanks for your offer of help here. I've emailed you log files as > requested in previous email. Thanks. There is strange line at the end (simplified): FINEST [org.rubyforge.debugcommons.Util]: Cannot connect to localhost:49753. Trying again...(2) FINEST [org.rubyforge.debugcommons.Util]: Cannot connect to localhost:49753. Trying again...(1) SEVERE [org.rubyforge.debugcommons.Util]: Error Output: Waiting for connection on 'localhost:49753' Fast Debugger (ruby-debug-ide 0.2.0) listens on localhost:49753 FINE [o.n.m.ruby.railsprojects.server.RailsServerManager]: Server starup failed, server type is: o.n.m.ruby.railsprojects.server.Mongrel@9f36116 FINE [o.n.m.ruby.railsprojects.server.RailsServerManager]: Could not start org.netbeans.modules.ruby.railsprojects.server.Mongrel@9f36116 in 36 seconds, current server status is NOT_STARTED 36 seconds? Erno can you comment? Seems that underlaying Mongrel process did not make it in 30s. Tim could you increase timeout to e.g. 1 minute (>36s). Just a wild guess. I've never seen this problem. > I've just tried running menu -> tools -> Ruby Gems again, and it > works when I run Netbeans from the command line. Hmm - actually it > runs when I run netbeans from the app folder now too. Updating gems > comes up with a permission error - I think that's known though - > sudo is needed to install some gems or something. Sudo support for Mac is the last think needed in issue: http://www.netbeans.org/issues/show_bug.cgi?id=128575 I've already put in support for gksu and kdesu. From what I've googled gksu is available as a package for Mac as well. So installing it might help. But again guess, I do not own a Mac. I'll ask in separate thread for help. > Yesterday the RubyGems window was opening, but not showing me > anything for the native Ruby gems. Seems fine now though. Odd. > Would it require "Developer Tools" to show the gem list? As I understand it "Developer Tools" are needed to e.g. compile native code, like is ruby-debug-base gem. But since you've successfully installed ruby-debug-base gem, you already can compile native C binaries. Hopefully someone with Mac or Google can say what does it really contain. m. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: Windows to OSXMartin Krauskopf wrote:
> Tim Haines wrote: > > Hi Martin, > > > > Thanks for your offer of help here. I've emailed you log files as > > requested in previous email. > > Thanks. There is strange line at the end (simplified): > > FINEST [org.rubyforge.debugcommons.Util]: > Cannot connect to localhost:49753. Trying again...(2) > FINEST [org.rubyforge.debugcommons.Util]: > Cannot connect to localhost:49753. Trying again...(1) > SEVERE [org.rubyforge.debugcommons.Util]: Error Output: > Waiting for connection on 'localhost:49753' > Fast Debugger (ruby-debug-ide 0.2.0) listens on localhost:49753 > FINE [o.n.m.ruby.railsprojects.server.RailsServerManager]: Server starup > failed, server type is: o.n.m.ruby.railsprojects.server.Mongrel@9f36116 > FINE [o.n.m.ruby.railsprojects.server.RailsServerManager]: Could not > start org.netbeans.modules.ruby.railsprojects.server.Mongrel@9f36116 in > 36 seconds, current server status is NOT_STARTED > > 36 seconds? Erno can you comment? Seems that underlaying Mongrel process > did not make it in 30s. seconds. Can't tell from that snippet though what causes the startup to fail. Martin, can you send me the whole log? Erno --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: Windows to OSXErno Mononen wrote:
>> 36 seconds? Erno can you comment? Seems that underlaying Mongrel process >> did not make it in 30s. > Actually the process just fails to start, the timeout for waiting is 120 > seconds. Can't tell from that snippet though what causes the startup to > fail. Martin, can you send me the whole log? I've did. Tim, could you try to debug simple Ruby script, to be sure that debugger works and it is problem with Mongrel starting. m. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: Windows to OSXMartin Krauskopf wrote:
> Tim Haines wrote: > > Hi there, > > Hi Tim, > > --%<-- > > 1) ImageMagick - when I run my app from terminal, it works fine, > > and I can upload and have images processed. When I run the app > > from within netbeans, it complains "sh: identify: command not > > found". I'm wondering if this is because the shell I use in the > > terminal is different to the env netbeans runs the project in. Can > > anyone point me at some guidance on how I'd fix this? > > You can see the environment used when you turn on the detailed logging. Thanks for the logs. It shows the problem (I believe). When you are running the NetBeans from command line, you have PATH set to: PATH=/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin But when you run it from GUI, the PATH is: PATH=/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin Likely identify command is in /usr/local/bin or /usr/X11/bin. You can find with running 'which identify'. So you need to force you Mac to consider those PATH elements also from apps run from UI. I do not have a Mac so I can't help here. But if you have anybody with Mac around, ask him how to set PATH for apps started from withing Mac OS GUI evn. Will be likely similar to setting PATH on Windows. m. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: Windows to OSXHi Martin,
I tried it on a simple Ruby script - 3 puts. Set a break on the middle one. Runs fine without debug. In debug mode it gives the same timeout after 15 seconds. Looks like it's not a mongrel problem.. Tim. On Fri, Jun 27, 2008 at 9:26 PM, Martin Krauskopf <Martin.Krauskopf@...> wrote:
|
|
|
Re: Windows to OSXTim Haines wrote:
> Hi Martin, > > I tried it on a simple Ruby script - 3 puts. Set a break on the middle > one. Runs fine without debug. In debug mode it gives the same timeout > after 15 seconds. Looks like it's not a mongrel problem.. So could you resend me the log as you did before, but reproduced with the simple script. So far seems to me that the debugger successfully starts up but IDE cannot connect to it for some reason. Does the debugger, after you start it up, print the line: Waiting for connection on 'localhost:49753' into the output window? If yes, could you try to do: telnet localhost 49753 from other terminal during that timout time. I'm not sure why IDE could not connect, might be some strong firewall rules? m. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: Windows to OSXHi Martin,
Thanks very much. With your guidance I've now got the path issue sorted and imagemagick is working when the app is run from netbeans. For the benefits of others, what you need to do is create a folder called .MacOSX in your home directory (~) - and then within that create a file called environment.plist. This is an xml file that gets loaded each time you login. So, set it up, then logout and login to bring it into effect. The content I put in mine to set the path is: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple. com/DTDs/PropertyList-1.0.dtd";> <plist version="1.0"> <dict> <key>PATH</key> <string>/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/usr/bin:/bin:/usr/s bin:/sbin:/usr/local/bin:/usr/X11/bin</string> </dict> </plist> Which reminds me why I don't like xml. Cheers, Tim. On Fri, Jun 27, 2008 at 9:55 PM, Martin Krauskopf <Martin.Krauskopf@...> wrote:
|
|
|
Re: Windows to OSXHi Martin,
I've tried telneting and the connection is refused. I tried telneting to port 3000, and that was successful. I guess a firewall of some kind could be blocking the debug port. The debug port changes each time though right? I'll send you that log offlist in a couple of minutes. Tim. On Fri, Jun 27, 2008 at 11:15 PM, Martin Krauskopf <Martin.Krauskopf@...> wrote:
|
|
|
Re: Windows to OSXTim Haines wrote:
> Hi Martin, > > I've tried telneting and the connection is refused. I tried telneting > to port 3000, and that was successful. Could you try running rdebug-ide directly from terminal like this: /usr/bin/ruby /usr/bin/rdebug-ide _0.2.0_ -p 41234 -- /path/to/your/simple/script.rb replacing path to script.rb with appropriate path, waiting after server starts up (you will see the message: Fast Debugger (ruby-debug-ide 0.2.0) listens on localhost:41234 and then: telnet localhost 41234 Did it connect? If no could you try to repeat sanity check with port 3000, but that would be strange if it would work. Hopefully we are getting closer. m. PS: last log was generated without: -J-Dorg.rubyforge.debugcommons.level=300 but likely does not matter since rdebug-ide appear to start successfully. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: Windows to OSXHi Martin,
Yes, telneting to that worked. I ran /usr/bin/rdebug-ide as I don't have anything at _0.2.0_ I'm glad you feel we're getting closer. ;-) Cheers, Tim.
On Sat, Jun 28, 2008 at 12:25 AM, Martin Krauskopf <Martin.Krauskopf@...> wrote: Tim Haines wrote: |
|
|
Re: Windows to OSXTim Haines wrote:
> Hi Martin, > > Yes, telneting to that worked. I ran /usr/bin/rdebug-ide as I don't > have anything at _0.2.0_ [...] > I've tried telneting and the connection is refused. I tried > telneting to port 3000, and that was successful. That's strange. Are you sure that when you run the debugger from IDE, you try to telnet to it *before* it timeouted? Otherwise the situation would be that if you run rdebug-ide from: 1) command line, you can telnet to it 2) rdebug-ide from NetBeans, you can't telnet to it. So either in second case the rdebug-ide has timeouted and killed before you tried to telnet it and that's why the connection was refused or NetBeans cannot for some reason. If you confirm that the former is not the case, probably the next step would be that I'll send you a simple Java program which simulates what NetBeans does. When you run the NetBeans with logging turned on: http://wiki.netbeans.org/RubyDebugging#section-RubyDebugging-HowToFileABug and search in the log for lines containing "Running", you will see what exactly NetBeans run. You can run that from command-line (might be little tweaked) and then try to play with it, connect to it. So we are not that close as I hoped for :) m. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: Windows to OSXHi Martin, Finally found some headspace to have another look at this problem. Here's a snippet from the output when I try and run in debug mode. I can confirm that I can successfully telnet to the port from the OSX terminal while NB is trying and filing. Also, I can run the command NB is running* from the terminal, and then telnet to it successfully then also. Is this hinting towards being some issue with NB on osx? I'm happy to try your simple Java program - would love to get to the bottom of this. * /usr/bin/ruby -r /private/tmp/io-synchronizer13280.rb /usr/bin/rdebug-ide _0.2.0_ -p 53805 -d -- script/server --port 3000 Tim. FINE [org.rubyforge.debugcommons.Util]: Running [basedir: /clients/myproject]: "/usr/bin/ruby -r /private/tmp/io-synchronizer13280.rb /usr/bin/rdebug-ide _0.2.0_ -p 53805 -d -- script/server --port 3000" FINE [org.rubyforge.debugcommons.Util]: Environment: {SSH_AUTH_SOCK=/tmp/launch-SWteCj/Listeners, LANG=en_NZ.UTF-8, DISPLAY=/tmp/launch-dnHwh1/:0, APP_NAME_6812=NetBeans, PWD=/Applications/NetBeans/NetBeans Dev 200807080009.app/Contents/MacOS, TERM_PROGRAM_VERSION=240, _=/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home/bin/java, SHLVL=2, J2D_PIXMAPS=shared, TMPDIR=/var/folders/NF/NFEbaXIQE3KXDtj8hbPxrk+++TI/-Tmp-/, __CF_USER_TEXT_ENCODING=0x1F5:0:0, SECURITYSESSIONID=b14640, USER=timhaines, MANPATH=/usr/share/man:/usr/local/share/man:/usr/X11/man:/usr/local/git/man/, COMMAND_MODE=unix2003, Apple_PubSub_Socket_Render=/tmp/launch-ldmJ8H/Render, HOME=/Users/timhaines, JAVA_MAIN_CLASS_6812=org.netbeans.Main, APP_ICON_6812=./../Resources/NetBeans/bin/../nb6.1/netbeans.icns, TERM_PROGRAM=Apple_Terminal, TERM=xterm-color, LOGNAME=timhaines, PATH=/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/git/bin:/usr/local/git/bin/, SHELL=/bin/bash} FINEST [org.rubyforge.debugcommons.Util]: Cannot connect to localhost:53805. Trying again...(29) FINEST [org.rubyforge.debugcommons.Util]: Cannot connect to localhost:53805. Trying again...(28) FINEST [org.rubyforge.debugcommons.Util]: Cannot connect to localhost:53805. Trying again...(27) FINEST [org.rubyforge.debugcommons.Util]: Cannot connect to localhost:53805. Trying again...(26) FINEST [org.rubyforge.debugcommons.Util]: Cannot connect to localhost:53805. Trying again...(25) FINEST [org.rubyforge.debugcommons.Util]: Cannot connect to localhost:53805. Trying again...(24) FINEST [org.rubyforge.debugcommons.Util]: Cannot connect to localhost:53805. Trying again...(23) FINEST [org.rubyforge.debugcommons.Util]: Cannot connect to localhost:53805. Trying again...(22) FINEST [org.rubyforge.debugcommons.Util]: Cannot connect to localhost:53805. Trying again...(21) FINEST [org.rubyforge.debugcommons.Util]: Cannot connect to localhost:53805. Trying again...(20) FINEST [org.rubyforge.debugcommons.Util]: Cannot connect to localhost:53805. Trying again...(19) FINEST [org.rubyforge.debugcommons.Util]: Cannot connect to localhost:53805. Trying again...(18) FINEST [org.rubyforge.debugcommons.Util]: Cannot connect to localhost:53805. Trying again...(17) FINEST [org.rubyforge.debugcommons.Util]: Cannot connect to localhost:53805. Trying again...(16) FINEST [org.rubyforge.debugcommons.Util]: Cannot connect to localhost:53805. Trying again...(15) FINEST [org.rubyforge.debugcommons.Util]: Cannot connect to localhost:53805. Trying again...(14) FINEST [org.rubyforge.debugcommons.Util]: Cannot connect to localhost:53805. Trying again...(13) FINEST [org.rubyforge.debugcommons.Util]: Cannot connect to localhost:53805. Trying again...(12) FINEST [org.rubyforge.debugcommons.Util]: Cannot connect to localhost:53805. Trying again...(11) FINEST [org.rubyforge.debugcommons.Util]: Cannot connect to localhost:53805. Trying again...(10) FINEST [org.rubyforge.debugcommons.Util]: Cannot connect to localhost:53805. Trying again...(9) FINEST [org.rubyforge.debugcommons.Util]: Cannot connect to localhost:53805. Trying again...(8) FINEST [org.rubyforge.debugcommons.Util]: Cannot connect to localhost:53805. Trying again...(7) FINEST [org.rubyforge.debugcommons.Util]: Cannot connect to localhost:53805. Trying again...(6) FINEST [org.rubyforge.debugcommons.Util]: Cannot connect to localhost:53805. Trying again...(5) FINEST [org.rubyforge.debugcommons.Util]: Cannot connect to localhost:53805. Trying again...(4) FINEST [org.rubyforge.debugcommons.Util]: Cannot connect to localhost:53805. Trying again...(3) FINEST [org.rubyforge.debugcommons.Util]: Cannot connect to localhost:53805. Trying again...(2) FINEST [org.rubyforge.debugcommons.Util]: Cannot connect to localhost:53805. Trying again...(1) SEVERE [org.rubyforge.debugcommons.Util]: Error Output: Waiting for connection on 'localhost:53805' Fast Debugger (ruby-debug-ide 0.2.0) listens on localhost:53805 Starting command read loop FINE [org.netbeans.modules.ruby.railsprojects.server.RailsServerManager]: Server starup failed, server type is: org.netbeans.modules.ruby.railsprojects.server.Mongrel@9f36116 FINE [org.netbeans.modules.ruby.railsprojects.server.RailsServerManager]: Could not start org.netbeans.modules.ruby.railsprojects.server.Mongrel@9f36116 in 23 seconds, current server status is NOT_STARTED
On Tue, Jul 1, 2008 at 8:30 PM, Martin Krauskopf <Martin.Krauskopf@...> wrote: Tim Haines wrote: |