Csound Csound-dev Csound-tekno Search About

[Cs-dev] Line error number is wrong when there are multiline comments which use /* */

Date2009-01-26 21:37
FromAndres Cabrera
Subject[Cs-dev] Line error number is wrong when there are multiline comments which use /* */
Hi,

Csound is reporting the error line number wrongly when there are /* */
comments. It actually treats all the lines in the comment as a single
line. Can anyone ake a look?

Cheers,
Andrés

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2009-01-27 00:45
FromRory Walsh
SubjectRe: [Cs-dev] Line error number is wrong when there are multiline comments which use /* */
I may be mistaken but I thought that since csd became the standard
that Csound never reports the correct error line number? Didn't it
have something to do with the old parser?

Rory.


2009/1/26 Andres Cabrera :
> Hi,
>
> Csound is reporting the error line number wrongly when there are /* */
> comments. It actually treats all the lines in the comment as a single
> line. Can anyone ake a look?
>
> Cheers,
> Andrés
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by:
> SourcForge Community
> SourceForge wants to tell your story.
> http://p.sf.net/sfu/sf-spreadtheword
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2009-01-27 01:04
FromAnthony Kozar
SubjectRe: [Cs-dev] Line error number is wrong when there are multiline comments which use /* */
I am not surprised.

Is this is in the score or the orchestra?  I fixed a number of issues with
line counting in the score but I did not yet overhaul the orchestra
counting.  I might be able to take a look ...

Anthony

Andres Cabrera wrote on 1/26/09 4:37 PM:

> Hi,
> 
> Csound is reporting the error line number wrongly when there are /* */
> comments. It actually treats all the lines in the comment as a single
> line. Can anyone ake a look?
> 
> Cheers,
> Andrés


------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2009-01-27 01:11
FromAndres Cabrera
SubjectRe: [Cs-dev] Line error number is wrong when there are multiline comments which use /* */
It's in the orchestra. The lines have been correct otherwise, even
though I'm using csds.

Cheers,
Andrés

On Mon, Jan 26, 2009 at 8:04 PM, Anthony Kozar
 wrote:
> I am not surprised.
>
> Is this is in the score or the orchestra?  I fixed a number of issues with
> line counting in the score but I did not yet overhaul the orchestra
> counting.  I might be able to take a look ...
>
> Anthony
>
> Andres Cabrera wrote on 1/26/09 4:37 PM:
>
>> Hi,
>>
>> Csound is reporting the error line number wrongly when there are /* */
>> comments. It actually treats all the lines in the comment as a single
>> line. Can anyone ake a look?
>>
>> Cheers,
>> Andrés
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by:
> SourcForge Community
> SourceForge wants to tell your story.
> http://p.sf.net/sfu/sf-spreadtheword
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>



-- 


Andrés

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2009-01-27 01:18
FromRory Walsh
SubjectRe: [Cs-dev] Line error number is wrong when there are multiline comments which use /* */
That's great. I wasn't aware of any fixes on this. Thanks Anthony.

Rory.


2009/1/27 Andres Cabrera :
> It's in the orchestra. The lines have been correct otherwise, even
> though I'm using csds.
>
> Cheers,
> Andrés
>
> On Mon, Jan 26, 2009 at 8:04 PM, Anthony Kozar
>  wrote:
>> I am not surprised.
>>
>> Is this is in the score or the orchestra?  I fixed a number of issues with
>> line counting in the score but I did not yet overhaul the orchestra
>> counting.  I might be able to take a look ...
>>
>> Anthony
>>
>> Andres Cabrera wrote on 1/26/09 4:37 PM:
>>
>>> Hi,
>>>
>>> Csound is reporting the error line number wrongly when there are /* */
>>> comments. It actually treats all the lines in the comment as a single
>>> line. Can anyone ake a look?
>>>
>>> Cheers,
>>> Andrés
>>
>>
>> ------------------------------------------------------------------------------
>> This SF.net email is sponsored by:
>> SourcForge Community
>> SourceForge wants to tell your story.
>> http://p.sf.net/sfu/sf-spreadtheword
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
>
>
> --
>
>
> Andrés
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by:
> SourcForge Community
> SourceForge wants to tell your story.
> http://p.sf.net/sfu/sf-spreadtheword
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2009-01-27 07:50
Frommatt ingalls
SubjectRe: [Cs-dev] Line error number is wrong when there are multiline comments which use /* */
i've noticed problems recently too.

MacCsound uses csds but does not display the user-unfriendly ,
so i need the error messages to NOT be in csd lines, but on orc lines  
as it used to!
there should be a commandline option or something for this..


On Jan 26, 2009, at 5:18 PM, Rory Walsh wrote:

> That's great. I wasn't aware of any fixes on this. Thanks Anthony.
>
> Rory.
>
>
> 2009/1/27 Andres Cabrera :
>> It's in the orchestra. The lines have been correct otherwise, even
>> though I'm using csds.
>>
>> Cheers,
>> Andrés
>>
>> On Mon, Jan 26, 2009 at 8:04 PM, Anthony Kozar
>>  wrote:
>>> I am not surprised.
>>>
>>> Is this is in the score or the orchestra?  I fixed a number of  
>>> issues with
>>> line counting in the score but I did not yet overhaul the orchestra
>>> counting.  I might be able to take a look ...
>>>
>>> Anthony
>>>
>>> Andres Cabrera wrote on 1/26/09 4:37 PM:
>>>
>>>> Hi,
>>>>
>>>> Csound is reporting the error line number wrongly when there are / 
>>>> * */
>>>> comments. It actually treats all the lines in the comment as a  
>>>> single
>>>> line. Can anyone ake a look?
>>>>
>>>> Cheers,
>>>> Andrés
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> This SF.net email is sponsored by:
>>> SourcForge Community
>>> SourceForge wants to tell your story.
>>> http://p.sf.net/sfu/sf-spreadtheword
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>
>>
>>
>> --
>>
>>
>> Andrés
>>
>> ------------------------------------------------------------------------------
>> This SF.net email is sponsored by:
>> SourcForge Community
>> SourceForge wants to tell your story.
>> http://p.sf.net/sfu/sf-spreadtheword
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by:
> SourcForge Community
> SourceForge wants to tell your story.
> http://p.sf.net/sfu/sf-spreadtheword
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

matt ingalls
development@gvox.com




------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2009-01-27 13:32
FromAndres Cabrera
SubjectRe: [Cs-dev] Line error number is wrong when there are multiline comments which use /* */
Hi,

On Tue, Jan 27, 2009 at 2:50 AM, matt ingalls  wrote:
> i've noticed problems recently too.
>
> MacCsound uses csds but does not display the user-unfriendly ,
> so i need the error messages to NOT be in csd lines, but on orc lines
> as it used to!
> there should be a commandline option or something for this..
>

Yes a command line option would be great, since for QuteCsound actual
csd line numbers are better.


Cheers,
Andrés

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2009-01-27 21:19
FromAnthony Kozar
SubjectRe: [Cs-dev] Line error number is wrong when there are multiline comments which use /* */
Yes, I fixed the CSD line number bug about a year ago.  At the same time, I
added a command-line flag to optionally show line numbers as offsets from
the beginning of the  and  sections of a CSD.  (Just
for you Matt! ;)  This option is documented in the manual and with the
--help flag:

--csd-line-nums=[01]    controls how error line numbers are printed:
            1=use CSD line #s (default), 0=use ORC/SCO-relative line #s

So, I expect MacCsound will want to add --csd-line-nums=0 to its default
flags.

Anthony


matt ingalls wrote on 1/27/09 2:50 AM:

> i've noticed problems recently too.
> 
> MacCsound uses csds but does not display the user-unfriendly ,
> so i need the error messages to NOT be in csd lines, but on orc lines
> as it used to!
> there should be a commandline option or something for this..
> 
> 
> On Jan 26, 2009, at 5:18 PM, Rory Walsh wrote:
> 
>> That's great. I wasn't aware of any fixes on this. Thanks Anthony.
>> 
>> Rory.
>> 
>> 
>> 2009/1/27 Andres Cabrera :
>>> It's in the orchestra. The lines have been correct otherwise, even
>>> though I'm using csds.
>>> 
>>> Cheers,
>>> Andrés
>>> 
>>> On Mon, Jan 26, 2009 at 8:04 PM, Anthony Kozar
>>>  wrote:
>>>> I am not surprised.
>>>> 
>>>> Is this is in the score or the orchestra?  I fixed a number of
>>>> issues with
>>>> line counting in the score but I did not yet overhaul the orchestra
>>>> counting.  I might be able to take a look ...


------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2009-01-27 22:06
Frommatt ingalls
SubjectRe: [Cs-dev] Line error number is wrong when there are multiline comments which use /* */
ok thanks (although i would have made the default be the old way -- i  
can live with it though)

HOWEVER
the commandline is recognized, but there is still something wrong:
(may be a different bug), but
it looks like it is treating any number of lines inside a /* */ as one  
line.


On Jan 27, 2009, at 1:19 PM, Anthony Kozar wrote:

> Yes, I fixed the CSD line number bug about a year ago.  At the same  
> time, I
> added a command-line flag to optionally show line numbers as offsets  
> from
> the beginning of the  and  sections of a  
> CSD.  (Just
> for you Matt! ;)  This option is documented in the manual and with the
> --help flag:
>
> --csd-line-nums=[01]    controls how error line numbers are printed:
>            1=use CSD line #s (default), 0=use ORC/SCO-relative line #s
>
> So, I expect MacCsound will want to add --csd-line-nums=0 to its  
> default
> flags.
>
> Anthony
>
>
> matt ingalls wrote on 1/27/09 2:50 AM:
>
>> i've noticed problems recently too.
>>
>> MacCsound uses csds but does not display the user-unfriendly ,
>> so i need the error messages to NOT be in csd lines, but on orc lines
>> as it used to!
>> there should be a commandline option or something for this..
>>
>>
>> On Jan 26, 2009, at 5:18 PM, Rory Walsh wrote:
>>
>>> That's great. I wasn't aware of any fixes on this. Thanks Anthony.
>>>
>>> Rory.
>>>
>>>
>>> 2009/1/27 Andres Cabrera :
>>>> It's in the orchestra. The lines have been correct otherwise, even
>>>> though I'm using csds.
>>>>
>>>> Cheers,
>>>> Andrés
>>>>
>>>> On Mon, Jan 26, 2009 at 8:04 PM, Anthony Kozar
>>>>  wrote:
>>>>> I am not surprised.
>>>>>
>>>>> Is this is in the score or the orchestra?  I fixed a number of
>>>>> issues with
>>>>> line counting in the score but I did not yet overhaul the  
>>>>> orchestra
>>>>> counting.  I might be able to take a look ...
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by:
> SourcForge Community
> SourceForge wants to tell your story.
> http://p.sf.net/sfu/sf-spreadtheword
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

matt ingalls
development@gvox.com




------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2009-01-27 22:11
Frommatt ingalls
SubjectRe: [Cs-dev] Line error number is wrong when there are multiline comments which use /* */
sorry about that.
  ignore that last message i sent
as it was just duplicating Andres original post.

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net