Yes, you can specify more than one, it has a completely different setup and you can add folders as just library source, not raw source. I did that when I initially setup FlexJS in IJ for "dev". I added all the src/as js/ asjs and it resolves all of them no problem in the same root.
I assume you are saying FB can't do this? Mike On Tue, Jun 2, 2015 at 7:11 PM, Alex Harui <aha...@adobe.com> wrote: > > > On 6/2/15, 2:59 PM, "Frédéric THOMAS" <webdoubl...@hotmail.com> wrote: > > >>Anyway, do you happen to know how IJ associates source with SWCs for > >> debugging? FB would rather we put #1 and #3 in the same source folder, > >> but that makes describing what gets cross-compiled to JS more difficult. > >> We could make COMPJSC smarter and ignore files with some directive in it > >> so folks don’t need to keep adding to a list of files when adding new > >> files. > > > >I would be happy to anwser but I'm not sure I understood the question. > >If you add a SDK, SWC or a folder with SWCs and sources, it will scan and > >detect swc and sources, for example, for the FlexJS folder imported as a > >lib, it detects AS and ASJS for each swc, you can manualy add some source > >folders for any of the SWCs. > > > >When it comes to debug, I guess it asks FDB for the source file, it the > >file is not referenced, it will show a native representation where you > >can still associate sources. > > > >Is that what you want to know ? > > A SWC usually doesn’t contain its source code. But for many 3rd party > SWCs and for FlexJS swcs, the source code is available as part of the > download. > > In Flash Builder, with only the library-path pointing to the SWC and no > other reference to the source files other than the debugfile opcodes in > the library.swf, when I am in the editor, I can command-click or > control-click on, for example: > > <js:TextButton /> > > And FB will try to open an editor with the source for that file. FB is > hard-coded to know how to find the sources for the SWCs in the sdks it > ships with, but for everything else it asks you to supply a > source-attachment for the SWC, which you supply via Project/Properties. > The problem is, for FlexJS, you can only specify the src/as or src/asjs > folders so sometimes click-to-open doesn’t work. > > I would assume IJ also has some click-to-open capability. Can you specify > more than one folder or does it have some smarter lookup algorithm? > > Thanks, > -Alex > >