Eclipse: External Tools to run mysql blanks console area...
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Jim_Wilson
Posted On:   Sunday, April 24, 2005 11:00 AM

I've added my own External Tool to Eclipse 3.1 M6. It runs the mysql command line tool. I use it to debug SQL scripts I am developing. The definition is below. However, it has one very annoying problem. When I run it the first time, it runs successfully, very briefly displays output in the console window, then blanks out the Console window. If I run it a second time, it works as expected. The behaviour is actually a bit more erratic than that. Sometimes it will work the first time, other times it takes a double run. For the most part, I have to run it twice to see results. I would guess it is some kind of timing problem, or issue with running External Tool that redirects stdin.    More>>

I've added my own External Tool to Eclipse 3.1 M6.

It runs the mysql command line tool. I use it to debug SQL scripts I am developing. The definition is below.

However, it has one very annoying problem. When I run it the first time, it runs successfully, very briefly displays output in the console window, then blanks out the Console window. If I run it a second time, it works as expected.

The behaviour is actually a bit more erratic than that. Sometimes it will work the first time, other times it takes a double run. For the most part, I have to run it twice to see results.

I would guess it is some kind of timing problem, or issue with running External Tool that redirects stdin.

The net is that I have to run the command twice every time


Location:

/usr/bin/bash



Arguments:

-c "mysql -t --batch -u user -ppassword db <${resource_loc}"

   <<Less

Re: Eclipse: External Tools to run mysql blanks console area...

Posted By:   Jim_Wilson  
Posted On:   Sunday, April 24, 2005 11:02 AM

More precisely, my Eclipse version is:

Version: 3.1.0
Build id: I20050401-1645


Also, sorry about the double posting. Not sure I know what I did to cause this...
About | Sitemap | Contact