[ 
http://dev.sourcefabric.org/browse/LS-593?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=24877#action_24877
 ] 

David Baelde commented on LS-593:
---------------------------------

I'll do a little something to show the type of the whole expression (not only 
let-definitions) before raising the error. However, this won't apply for inner 
errors, only for the toplevel one. In other words, if you silently ignore a 
value inside a sequence, or a nested let, you'll still get the error without 
all types displayed.

After that, I propose that we close this ticket. If you still feel bad about 
this behavior, another possibility is to mention --errors-as-warnings (and 
--check-lib if --check has been passed) in the error message, trying to keep 
this concise.

> Allow -i on scripts not returning sources
> -----------------------------------------
>
>                 Key: LS-593
>                 URL: http://dev.sourcefabric.org/browse/LS-593
>             Project: Liquidsoap
>          Issue Type: Bug
>            Reporter: Samuel Mimram
>            Assignee: David Baelde
>
> In order to check the type of 5 (or something more complicated...) the 
> natural thing is to do the following
> $ ./liquidsoap -i '5'
> At line 1, char 1: The result of evaluating this term will be dropped, but
>   it does not have type unit or active_source. Use ignore(...) if you meant
>   to drop it, otherwise this is a sign that your script does not do
>   what you intend.
> Could -i modify the behavior so that we can check the type of script whose 
> result is not a source? Of course I can use liquidsoap -i 'x = 5' but it took 
> me 5 minutes with internet to figure this out...

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://dev.sourcefabric.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Savonet-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-devl

Répondre à