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?

0
5 comments
Avatar
Permanently deleted user

You need to setup module to have all files under source directories (and
swc should be in module dependency)

Jesse Costello-Good wrote:

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 vari
able or type."

Does anyone know how to resolve this issue?

---
Original message URL: http://www.jetbrains.net/devnet/message/5227990#5227990



--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0
Avatar
Permanently deleted user

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?

0
Avatar
Permanently deleted user

Make src a Source folder, move App.mxml to src (I assume you are using
IDEA 8.0.1)

Jesse Costello-Good wrote:

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?

---
Original message URL: http://www.jetbrains.net/devnet/message/5227998#5227998



--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0
Avatar
Permanently deleted user

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.

0
Avatar
Permanently deleted user

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:

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.

---
Original message URL: http://www.jetbrains.net/devnet/message/5228206#5228206



--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0

Please sign in to leave a comment.