Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion warning: already initialized constant

Received: by 10.52.95.108 with SMTP id dj12mr9823670vdb.2.1338392932555;
        Wed, 30 May 2012 08:48:52 -0700 (PDT)
X-BeenThere: rubyonrails-talk@googlegroups.com
Received: by 10.220.227.74 with SMTP id iz10ls111291vcb.8.gmail; Wed, 30 May
 2012 08:48:16 -0700 (PDT)
Received: by 10.52.23.226 with SMTP id p2mr896806vdf.2.1338392896831;
        Wed, 30 May 2012 08:48:16 -0700 (PDT)
Date: Wed, 30 May 2012 08:48:16 -0700 (PDT)
From: Lenart <lenart.ru...@gmail.com>
To: rubyonrails-talk@googlegroups.com
Message-Id: <51e8278a-ac0f-416c-87b1-35abbf334d74@googlegroups.com>
In-Reply-To: <9d4450e7-93bb-4a6c-81c3-4538c6f3dfb8@googlegroups.com>
References: <9d4450e7-93bb-4a6c-81c3-4538c6f3dfb8@googlegroups.com>
Subject: Re: warning: already initialized constant
MIME-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_373_8578273.1338392896276"

------=_Part_373_8578273.1338392896276
Content-Type: multipart/alternative; 
	boundary="----=_Part_374_25200808.1338392896276"

------=_Part_374_25200808.1338392896276
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit

It might be that this file is somewhere in autoload path (/lib, etc.) and 
you're also manually requiring it by hand somewhere.

On Wednesday, May 30, 2012 10:44:16 AM UTC+1, Gurdipe wrote:
>
> Hi All,
>
> The Linux box I was using to do my rails development had the hard disk 
> upgraded and restarted.  Now I am getting the following warnings when I use 
> script/console or script/server
>
> Loading development environment (Rails 2.1.0)
> /denorm_brag_report.rb:423: warning: already initialized constant 
> MAIN_CATEGORIES
> denorm_brag_report.rb:425: warning: already initialized constant 
> SUB_CATEGORIES
> /denorm_brag_report.rb:432: warning: already initialized constant 
> TABLE_STD_DESCRIPTIONS
> /denorm_brag_report.rb:447: warning: already initialized constant 
> SUMMARY_NAMES
> /denorm_brag_report.rb:455: warning: already initialized constant 
> REPORT_TYPES
> /denorm_brag_report.rb:469: warning: already initialized constant 
> BRAG_SUMMARY_COLS
>
> I have checked the code and these constants are only used in one place
>
> I have cleared the cache, checked the gems, and anything else I can think 
> of
>
> Is there anything else I could check
>
> Gurdipe
>

------=_Part_374_25200808.1338392896276
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

It might be that this file is somewhere in autoload path (/lib, etc.) and y=
ou're also manually requiring it by hand somewhere.<br><br>On Wednesday, Ma=
y 30, 2012 10:44:16 AM UTC+1, Gurdipe wrote:<blockquote class=3D"gmail_quot=
e" style=3D"margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;paddin=
g-left: 1ex;"><span style=3D"color:rgb(0,0,0);font-family:arial;font-size:s=
mall">Hi All,</span><div style=3D"color:rgb(0,0,0);font-family:arial;font-s=
ize:small"><br></div><div style=3D"color:rgb(0,0,0);font-family:arial;font-=
size:small">The Linux box I was using to do my rails development had the ha=
rd disk upgraded and restarted. &nbsp;Now I am getting the following warnin=
gs when I use script/console or script/server</div><div style=3D"color:rgb(=
0,0,0);font-family:arial;font-size:small"><br></div><div style=3D"color:rgb=
(0,0,0);font-family:arial;font-size:small"><font face=3D"Arial" size=3D"2">=
Loading development environment (Rails 2.1.0)<br>/denorm_brag_report.rb:423=
: warning: already initialized constant MAIN_CATEGORIES<br>denorm_brag_repo=
rt.rb:425: warning: already initialized constant SUB_CATEGORIES<br>/denorm_=
brag_report.rb:432: warning: already initialized constant TABLE_STD_DESCRIP=
TIONS<br>/denorm_brag_report.rb:447: warning: already initialized constant =
SUMMARY_NAMES<br>/denorm_brag_report.rb:455: warning: already initialized c=
onstant REPORT_TYPES<br>/denorm_brag_report.rb:469: warning: already initia=
lized constant BRAG_SUMMARY_COLS<br></font></div><div style=3D"color:rgb(0,=
0,0);font-family:arial;font-size:small"><br></div><div style=3D"color:rgb(0=
,0,0);font-family:arial;font-size:small">I have checked the code and these =
constants are only used in one place</div><div style=3D"color:rgb(0,0,0);fo=
nt-family:arial;font-size:small"><br></div><div style=3D"color:rgb(0,0,0);f=
ont-family:arial;font-size:small">I have cleared the cache, checked the gem=
s, and anything else I can think of</div><div style=3D"color:rgb(0,0,0);fon=
t-family:arial;font-size:small"><br></div><div style=3D"color:rgb(0,0,0);fo=
nt-family:arial;font-size:small">Is there anything else I could check</div>=
<div style=3D"color:rgb(0,0,0);font-family:arial;font-size:small"><br></div=
><div style=3D"color:rgb(0,0,0);font-family:arial;font-size:small">Gurdipe<=
/div></blockquote>
------=_Part_374_25200808.1338392896276--

------=_Part_373_8578273.1338392896276--