IDEA 8 not finding my AS classes in same Flex module
I am trying to set up a Flex module. I have the following file layout:
App.mxml
+ src
++ com
+++ domain
++++ Thing.as
+ lib
++ OneLib.swc
In App.mxml some things work and some things don't. Symbols from the library worked immediately. But symbols defined in the src directory cannot be found. For example, if I include "import com.domain.Thing" in App.mxml it shows it as an unused import and any reference to Thing is an "Unresolved variable or type."
Does anyone know how to resolve this issue?
Please sign in to leave a comment.
You need to setup module to have all files under source directories (and
swc should be in module dependency)
Jesse Costello-Good wrote:
--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"
I have tried all of the following without success:
* Make just my src/ directory a Source Folder
* Make both / and src/ a Source Folder
* Make only / a Source Folder
* Move App.mxml to src/com/domain/app/App.mxml
Did you mean that I should do something other that one of these?
Make src a Source folder, move App.mxml to src (I assume you are using
IDEA 8.0.1)
Jesse Costello-Good wrote:
--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"
Ok, I've tried that and still no luck. Here's the folder layout:
flex <-- module root (Flex Module)
+ bin-debug
+ html-templage
+ libs
++ lib.swc <-- in dependencies
+ src <-- src folder
++ App.mxml
++ com
+++ domain
++++ Thing.as
App.mxml still complains that there is no com.domain.Thing.
I'm using 8.0.1 and Flex 3.2.0 (also in dependencies). I'm on Mac OS X.
Weird, check you have module jdk to be flex SDK, if it is the case then
let's start from JIRA issue with three files project attached
demonstrating the problem (mine project does not have such problem).
Jesse Costello-Good wrote:
--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"