https://bugzilla.novell.com/show_bug.cgi?id=634945
https://bugzilla.novell.com/show_bug.cgi?id=634945#c0 Summary: Report.ShowMessage() should also exclude the case when CurrentToken is EndOfCode Classification: Mono Product: Mono: Compilers Version: SVN Platform: All OS/Version: All Status: NEW Severity: Normal Priority: P5 - None Component: Basic AssignedTo: [email protected] ReportedBy: [email protected] QAContact: [email protected] Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:2.0b5pre) Gecko/20100825 Firefox/4.0b3pre Report.ShowMessage() should also exclude the case when CurrentToken is EndOfCode, not to let MonoDevelop 2.4 with Mono 2.6.7 vbnc throw Exception that the specified path contains invalid path chars, when I built .vb files that only contain classes without Main Method. ACTUAL RESULT: EXPECTED RESULT: FIX: change http://github.com/mono/mono-basic/blob/master/vbnc/vbnc/source/General/Report.vb#L268 to If Compiler IsNot Nothing AndAlso Compiler.tm IsNot Nothing AndAlso Compiler.tm.IsCurrentTokenValid AndAlso Not Compiler.tm.CurrentToken.IsEndOfCode Then Reproducible: Always Steps to Reproduce: STEPS TO REPRODUCE A. A-1 Create the following file X.vb '================ 'X.vb Class X End Class '=================== A-2. from vbnc command line interface, type as follows. vbnc X.vb B. B-1. start MonoDevelop B-2. create new Solution for vbProject Named "Y". B-3. add the X.vb described in A-1 to the project B-4. build Solution Actual Results: at A-2: /home/EWOTdL/<MyGenerator> (1,1) : Error VBNC30420: Could not find a 'Sub Main' in ''. in B-4: Exception is thrown Expected Results: at A-2 Error : VBNC30420: Could not find a 'Sub Main' in ''. at least in B-4 no Exception thrown. to build current trunk of vbnc, you have to edit vbnc.vbproj 1. Remove NoWarn Element 2. Change Logical Name via text Editor or Property Window <EmbeddedResource Include="Resources\Errors.resx"> <LogicalName>vbnc.Errors.resources</LogicalName> </EmbeddedResource> -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
