helpListings package for LaTeX - Support: sr #290, Problem with Listings

 
 
Show feedback again

You are not allowed to post comments on this tracker with your current authentification level.

sr #290: Problem with Listings

Submitted by:  Brooks Moses <brooks>
Submitted on:  Tue Apr 12 20:11:08 2011  
 
Category: NonePriority: 5 - Normal
Severity: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Open/Closed: OpenOperating System: None

Tue Apr 12 20:11:08 2011, original submission:

Jan wrote, on Thu, 01 Jul 2010 09:54:23 +0200:


Hi Brooks,
I have a big problem with a listing. The problem is that I can't do a
minimal example because the problem doesn't occur. I have a big latex
document. And in the following listing I get strange errors:

\begin{lstlisting}[language=Java,caption={Eine Caption}, label=lst:label]
public interface IRoleMappingRegistry {

public static final IRoleMappingRegistry INSTANCE = new
BasicRoleMappingRegistry();

public Map<String, RoleMapping> getRoleMappingsForUri(String nsUri);

public List<RoleMapping> registerRoleMapping(RoleMappingModel roleMapping);

public void updateMappings(List<RoleMapping> mappingsToUpdate);

public Map<String, Map<String, RoleMapping>> getRoleMappingsMap();

public void registerPostProcessor(RoleMapping mapping,
IRefactoringPostProcessor postProcessor);

public IRefactoringPostProcessor getPostProcessor(RoleMapping mapping);

public ImageDescriptor getImageForMapping(RoleMapping mapping);
}
\end{lstlisting}

! Incomplete \iffalse; all text was ignored after line 503
! Forbidden control sequence found while scanning text of \write

For testing this is the same listing as in another place in my document
before. But here it fails on the second line. If I put only one line
into this listing all compiles. So I started to comment out the text
between the both identical listings to find out more. First I commented
out all the text and all compiled. Then I activated the direct paragraph
before the second listing and I got the following errors:

! Argument of \lst@DelimOpen has an extra }
! Paragraph ended before \lst@DelimOpen was complete.
! Incomplete \iffalse; all text was ignored after line 503
! Forbidden control sequence found while scanning text of \write

I'm very frustrated because I wasn't able to determine how to solve this
problem. That's why I'm writing you because I hope you can help me. It
is a little bit urgent because this is my diploma thesis which I have to
deliver in two weeks. Do you have an idea?

best regards,
Jan

Brooks Moses <brooks>
Project Administrator

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by brooks (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    No Changes Have Been Made to This Item
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup+gray