Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Accessing ARGV[n] under SciTE fails; no problem under Command Window

Reply
Thread Tools

Accessing ARGV[n] under SciTE fails; no problem under Command Window

 
 
Richard
Guest
Posts: n/a
 
      01-24-2007
Hi,

I've got the statements:

sAppDir = ARGV[0]
puts "Application Directory = '#{sAppDir}'"
sFileName= ARGV[1]
puts "YAML filename = '#{sFileName}'"

Under SciTE with parameters 1/2 set to xxx/yyy respectively, execution
yields:

Application Directory = ''
YAML filename = ''

Under Command window, I get:

K:\>GenDB_CreationSQL_FromYML.rb XXX YYY
Application Directory = 'XXX'
YAML filename = 'YYY'

I'm running under WinXP/SP2 with SciTE ver. 1.72 (which I just upgraded
from ver. 1.59, hoping to solve this problem)

Any ideas?

Thanks in Advance,
Richard

P.S. I didn't post on the Scintilla-interest list. I was getting
killed with Spam when I was subscribed to that list, which ended when I
unsubscribed.

 
Reply With Quote
 
 
 
 
mitchell
Guest
Posts: n/a
 
      01-24-2007
Hi,

>
> Under SciTE with parameters 1/2 set to xxx/yyy respectively, execution
> yields:
>
> Application Directory = ''
> YAML filename = ''
>
> Under Command window, I get:
>
> K:\>GenDB_CreationSQL_FromYML.rb XXX YYY
> Application Directory = 'XXX'
> YAML filename = 'YYY'
>
> I'm running under WinXP/SP2 with SciTE ver. 1.72 (which I just upgraded
> from ver. 1.59, hoping to solve this problem)
>
> Any ideas?


In your ruby.properties, make sure you have something like:
command.go.$(file.patterns.rb)=ruby $(FileNameExt) $(1) $(2) $(3) $(4)

The $(1), $(2), etc. is the parameters you input into the params dialog.

-Mitchell;

>
> Thanks in Advance,
> Richard
>
> P.S. I didn't post on the Scintilla-interest list. I was getting
> killed with Spam when I was subscribed to that list, which ended when I
> unsubscribed.
>
>
>



 
Reply With Quote
 
 
 
 
Richard
Guest
Posts: n/a
 
      01-24-2007
Hi Mitchel,

Thank you very much. I'm sure I did that in my 1.59 version, which
I'll double check (I only changed the path to get to the 1.72 ver.).
If by some quirk I'm unable to do that successfully, I'll post again
to announce my stupidity

Best wishes,
Richard

On Jan 24, 8:05 am, mitchell <(E-Mail Removed)> wrote:
> Hi,
>
>
>
>
>
> > Under SciTE with parameters 1/2 set to xxx/yyy respectively, execution
> > yields:

>
> > Application Directory = ''
> > YAML filename = ''

>
> > Under Command window, I get:

>
> > K:\>GenDB_CreationSQL_FromYML.rb XXX YYY
> > Application Directory = 'XXX'
> > YAML filename = 'YYY'

>
> > I'm running under WinXP/SP2 with SciTE ver. 1.72 (which I just upgraded
> > from ver. 1.59, hoping to solve this problem)

>
> > Any ideas?In your ruby.properties, make sure you have something like:

> command.go.$(file.patterns.rb)=ruby $(FileNameExt) $(1) $(2) $(3) $(4)
>
> The $(1), $(2), etc. is the parameters you input into the params dialog.
>
> -Mitchell;
>
>
>
> > Thanks in Advance,
> > Richard

>
> > P.S. I didn't post on the Scintilla-interest list. I was getting
> > killed with Spam when I was subscribed to that list, which ended when I
> > unsubscribed.


 
Reply With Quote
 
Richard
Guest
Posts: n/a
 
      01-25-2007
Hi Mitchell,

For the benefit of other users who may view this thread, here's what I
came up to customize SciTE for my purposes:

if PLAT_WIN
command.go.*.rb=ruby $(FileNameExt) $(1) $(2) $(3) $(4)
command.go.subsystem.*.rb=1
command.go.*.rbw=rubyw $(FileNameExt) $(1) $(2) $(3) $(4)
clear.before.execute
line.margin.visible
line.margin.width=3+

Again, thanks for getting me restarted.

Regards,
Richard

On Jan 24, 8:05 am, mitchell <(E-Mail Removed)> wrote:
> Hi,
>
>
>
>
>
> > Under SciTE with parameters 1/2 set to xxx/yyy respectively, execution
> > yields:

>
> > Application Directory = ''
> > YAML filename = ''

>
> > Under Command window, I get:

>
> > K:\>GenDB_CreationSQL_FromYML.rb XXX YYY
> > Application Directory = 'XXX'
> > YAML filename = 'YYY'

>
> > I'm running under WinXP/SP2 with SciTE ver. 1.72 (which I just upgraded
> > from ver. 1.59, hoping to solve this problem)

>
> > Any ideas?In your ruby.properties, make sure you have something like:

> command.go.$(file.patterns.rb)=ruby $(FileNameExt) $(1) $(2) $(3) $(4)
>
> The $(1), $(2), etc. is the parameters you input into the params dialog.
>
> -Mitchell;
>
>
>
> > Thanks in Advance,
> > Richard

>
> > P.S. I didn't post on the Scintilla-interest list. I was getting
> > killed with Spam when I was subscribed to that list, which ended when I
> > unsubscribed.


 
Reply With Quote
 
Richard
Guest
Posts: n/a
 
      01-25-2007
Hi Mitchell,

For the benefit of other users who may view this thread, here's what I
came up to customize SciTE for my purposes:

if PLAT_WIN
command.go.*.rb=ruby $(FileNameExt) $(1) $(2) $(3) $(4)
command.go.subsystem.*.rb=1
command.go.*.rbw=rubyw $(FileNameExt) $(1) $(2) $(3) $(4)
command.go.subsystem.*.rbw=1
command.help.*.rb=$(CurrentWord)!c:\apps\ruby\Prog rammingRuby.chm
command.help.subsystem.*.rb=4
clear.before.execute=1
line.margin.visible
line.margin.width=3+

Again, thanks for getting me restarted.

Regards,
Richard

On Jan 24, 8:05 am, mitchell <(E-Mail Removed)> wrote:
> Hi,
>
>
>
>
>
> > Under SciTE with parameters 1/2 set to xxx/yyy respectively, execution
> > yields:

>
> > Application Directory = ''
> > YAML filename = ''

>
> > Under Command window, I get:

>
> > K:\>GenDB_CreationSQL_FromYML.rb XXX YYY
> > Application Directory = 'XXX'
> > YAML filename = 'YYY'

>
> > I'm running under WinXP/SP2 with SciTE ver. 1.72 (which I just upgraded
> > from ver. 1.59, hoping to solve this problem)

>
> > Any ideas?In your ruby.properties, make sure you have something like:

> command.go.$(file.patterns.rb)=ruby $(FileNameExt) $(1) $(2) $(3) $(4)
>
> The $(1), $(2), etc. is the parameters you input into the params dialog.
>
> -Mitchell;
>
>
>
> > Thanks in Advance,
> > Richard

>
> > P.S. I didn't post on the Scintilla-interest list. I was getting
> > killed with Spam when I was subscribed to that list, which ended when I
> > unsubscribed.


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SciTE problem with gets method Hakusa@gmail.com Ruby 2 05-20-2007 01:35 PM
How can I get a non 25x80 command window when I use the "at" command on XP? Please Computer Support 4 02-14-2007 12:01 AM
sciTe editor IRB window getting double characters soxinbox Ruby 8 05-31-2005 11:40 PM
SciTE as editor for Python: No print formatting under LINUX. Konrad Koller Python 2 08-22-2004 09:00 AM
How to pass args to Ruby script under SciTE? Richard Lionheart Ruby 2 04-21-2004 10:05 PM



Advertisments