Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 22

Thread: Any luck with STS 2.3 + Flash Builder 4 plugin?

  1. #11
    Join Date
    Jul 2010
    Posts
    4

    Default Cannot compile and run Roo generated Flex projects in STS 2.3.3.M2

    I'm running Flash Builder 4 in STS and the flex projects created by Roo are not recognized by the plug in. There is no code hinting or recognition of actionscript in .as files and the script blocks in MXML files appear in black text.

    I can create and run other standard Flex projects in STS, just the projects created by Roo dont seem to be recognized. Has anyone come across this particular oddity?

  2. #12
    Join Date
    Jul 2010
    Posts
    6

    Default

    After running roo scripts don't import as "Existing Maven project". Run "mvn eclipse:eclipse" this will generate eclipse project files. After this do import as "General -> Existing project in workspace".

    This way we are able to see syntax highlighting and autocomplete for mxml , a script

  3. #13
    Join Date
    Jul 2010
    Posts
    4

    Default

    Ok I'll give that a shot.

    In the Introducing the Flex add on for Spring Roo screen cast that Jeremy posted, I see that when he runs flex setup there are quite a few more project files created that are not created when I run that command. It looks like all the template files after the rootunes_scaffold.html file. Actually everything flex related(swfs) that would go into the webapp folder.

    I do have some build errors calling out aspectj 1.6.10.M1 as missing but this is in my local repository and the project otherwise fuctions as expected.

    It seems to me that there is something else specific to the flex setup command that is causing this particular issue.

  4. #14
    Join Date
    Aug 2005
    Location
    Milton Keynes, UK
    Posts
    39

    Default Getting STS to work with FB4 Install hiccups.

    I've tried doing the Eclipse Galileo 3.5 J2EE (Mac Carbon) install and follow the install from the update manager approach in order to try and get everything to work together.

    The first snag I hit was the bookmarks file didn't do a download, but I found the code to manually create the XML file here
    http://forum.springsource.org/archiv...p/t-91708.html

    Now when I get to the stage where I get to the point 4 d) I get problems with a missing Groovy dependency.
    (After it's calculated the requirements & dependencies - you get to the Install Details
    I get:

    Cannot complete the install because one or more required items could not be found.
    Software being installed: SpringSource Tool Suite Grails Support 2.3.2.201003230009-RELEASE (com.springsource.sts.grails.feature.group 2.3.2.201003230009-RELEASE)
    Missing requirement: SpringSource Tool Suite Grails Support 2.3.2.201003230009-RELEASE (com.springsource.sts.grails.feature.group 2.3.2.201003230009-RELEASE) requires 'org.codehaus.groovy.eclipse.feature.feature.group 2.0.0' but it could not be found

    PS: I do Grails development too. So I need that...

    I'm going to try downloading the Groovy Eclipse plug-in first before doing the STS stuff... Wondering if this will fix the glitch. The PDF needed to include that step maybe.
    I Googled in on this:
    http://groovy.codehaus.org/Eclipse+Plugin
    So added this and will give that a whirl first...
    http://dist.springsource.org/release/GRECLIPSE/e3.5/

    My goodness this is fragile stuff..
    The install of the Groovy Eclipse Plug-in fails...

    An error occurred while collecting items to be installed

    Artifact org.eclipse.update.feature,org.eclipse.jdt,3.5.1.r 351_v20090810-0600-7r88FEoFI0WTo6Az-1qFRHm37ChJ is a folder but the repository is an archive or remote location.
    Artifact osgi.bundle,org.junit4,4.5.0.v20090824 is a folder but the repository is an archive or remote location.
    session context wasprofile=epp.package.jee, phase=org.eclipse.equinox.internal.provisional.p2. engine.phases.Collect, operand=, action=).

    I'm also a bit perplexed at the indication of a 3.5.1 artifact in there too, as I installed the base 3.5 release of Eclipse
    Last edited by JGF; Oct 8th, 2010 at 02:13 PM.

  5. #15
    Join Date
    Apr 2005
    Location
    San Francisco, CA
    Posts
    1,224

    Default

    Why not just use the STS installer executable? Makes this process much easier. Once you've got a working installation, adding the Flash Builder plugin is done by just copying the proper link into the dropins folder.

    I've never tried to install STS from the update manager, so wouldn't know where to begin to help you on that front. The more appropriate place for general STS questions like that is the Spring Development Tools forum:
    http://forum.springsource.org/forumdisplay.php?f=32
    Jeremy Grelle

    Staff Engineer, Web Products Team
    SpringSource

  6. #16
    Join Date
    Aug 2005
    Location
    Milton Keynes, UK
    Posts
    39

    Default

    Quote Originally Posted by jeremyg484 View Post
    Why not just use the STS installer executable? Makes this process much easier.
    Because the downloadable versions of STS are for newer releases of Eclipse and Flash Builder 4 is too far behind the curve.
    According to FB4 download site, I need Eclipse 3.4.2 or 3.5 as a base. (Mac Carbon Plugin)
    https://www.adobe.com/cfusion/tdrc/i...=flash_builder
    Ganymede SR2 = 3.4.2
    Galileo = 3.5

    STS site doesn't provide link to go back into archives for appropriate release.

    PS: This was the content of that unreachable Bookmark.XML file posted in the other forum

    <bookmarks>
    <site url="http://dist.springsource.com/release/TOOLS/update/e3.5" selected="true" name="SpringSource Update Site for Eclipse 3.5"/>
    <site url="http://dist.springsource.com/release/TOOLS/composite/e3.5" selected="true" name="SpringSource Update Site for Eclipse 3.5 (Dependencies)"/>
    <site url="http://download.eclipse.org/releases/galileo" selected="true" name="Galileo"/>
    </bookmarks>

    I think the second site, the (Dependencies) 'composite' link is bogus... Was wondering what the proper links were. As I did spot springsource.com/update/e3.5 in the screenshot for the PDF earlier and wonder if this was a red herring...

    I did try the milestone Groovy Eclipse plugin link instead and got past that but then had some Mylyn dependency issue. :-(
    Last edited by JGF; Oct 8th, 2010 at 02:17 PM.

  7. #17
    Join Date
    Apr 2005
    Location
    San Francisco, CA
    Posts
    1,224

    Default

    Quote Originally Posted by JGF View Post
    Because the downloadable versions of STS are for newer releases of Eclipse and Flash Builder 4 is too far behind the curve.
    According to FB4 download site, I need Eclipse 3.4.2 or 3.5 as a base. (Mac Carbon Plugin)
    https://www.adobe.com/cfusion/tdrc/i...=flash_builder
    Ganymede SR2 = 3.4.2
    Galileo = 3.5
    I believe those are just meant to be minimum requirements. I've got the Flash Builder plugin installed in the Eclipse 3.6 Carbon version of STS 2.5.0.M3 with no issues.
    Jeremy Grelle

    Staff Engineer, Web Products Team
    SpringSource

  8. #18
    Join Date
    Aug 2005
    Location
    Milton Keynes, UK
    Posts
    39

    Default

    Ah that's a load off then... I'm was at my wits end.. Will give that a Whirl. Wish the Adobe guys had been clearer on this point :-)

  9. #19
    Join Date
    Apr 2008
    Posts
    24

    Default any luck with flexmojos?

    I'm using STS 2.5.0 + m2eclipse + FB4. I'm trying to use flexmojos to compile/package all this with maven.

    After using the flexmojos-archetypes-modular-webapp archetype I tweak the flex compiler/framework, remove the swc component and dependencies created by the archetype and run 'mvn flexmojos:flashbuilder'. I can then import my parent and two modules (war and swf) into STS/FB without issue.

    But three things happen when I try and develop:

    1) Content assist does not work for mxml. I definitely have the file opened in the MXML editor.
    2) If I switch to design view for the same file it says "an unknown item is declared as the root of your MXML document."
    3) if I try and create a new MXML Component, no matter what base component I choose, it says "The base component class does not exist."

    I suspect all these things are related, but for the life of me I can't figure out what. In beta versions of FB4 people complained of similar issues with respect to no content assist.

    I have even created a new Flex project via File -> New -> Flex Project, and copied the project files (.project, .actionScript...) to my maven module, closed and reopened the project and nothing.

    Has anyone gotten this to work?

  10. #20
    Join Date
    Apr 2005
    Location
    San Francisco, CA
    Posts
    1,224

    Default

    No, I've never been able to get the flexmojos:flashbuilder command to work cleanly either. (That's why we essentially just create the metadata ourselves in the Roo addon as part of the 'flex setup' command.)

    What I've found to work well is to just do File -> New -> Flex Project and point to the location of your existing project, then tweak the settings as necessary after it's created to get the paths set up to match the conventions of the Flex Mojos.
    Jeremy Grelle

    Staff Engineer, Web Products Team
    SpringSource

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •