Announcement Announcement Module
Collapse
No announcement yet.
Completion and Syntax Errors with STS 2.8.0 RELEASE Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Completion and Syntax Errors with STS 2.8.0 RELEASE

    Hi,

    after the automatic update to 2.8.0 I got tons of maven errors, so I reinstalled springsource-tool-suite-2.8.0.RELEASE-e3.7.1-macosx-cocoa-x86_64-installer.dmg (OS X Lion).

    I then created a new Roo project with all defaults and typed the following command inside the roo shell:

    Code:
    project --topLevelPackage com.example.ls20 --projectName Ls20 --java 6
    pgp trust --keyId 0xBF0451C0
    download accept terms of use
    addon install bundle --bundleSymbolicName com.vaadin.spring.roo.addon
    addon search vaadin
    osgi obr url add --url http://vaadin.com/springroo/repository.xml
    osgi obr start --bundleSymbolicName com.vaadin.spring.roo.addon
    osgi obr url remove --url http://vaadin.com/springroo/repository.xml
    addon install id --searchResultId 01
    persistence setup --database H2_IN_MEMORY --provider HIBERNATE
    entity --class ~.model.Customer
    field string customerName
    From what I can see, the aj files are being created correctly and there are no errors or warnings.
    But when I try to use the accessor methods, I have only completion on the RHS of an expression.

    Without a LHS I not only have no completion, but I even get syntax errors:
    "Syntax error on token "getCustomerName", Identifier expected after this token"

    Code:
    	Customer customer = new Customer();
    
    	// That works
    	String debug = customer.getCustomerName();
    
    	// That fails and doesn't complete
    	customer.getCustomerName();
    
    	// That fails and doesn't complete
    	customer.setCustomerName("Foo");
    I attached two images to show you what I see in STS:
    Attachment
    Attachment
    Attached Files
    Last edited by lilalinux; Nov 4th, 2011, 09:11 AM.
Working...
X