You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Alex Harui (JIRA)" <ji...@apache.org> on 2017/05/05 23:00:06 UTC

[jira] [Commented] (FLEX-35303) Error: unknown configuration variable 'compiler.targets' when using bin/mxmlc and bin/compc

    [ https://issues.apache.org/jira/browse/FLEX-35303?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15999084#comment-15999084 ] 

Alex Harui commented on FLEX-35303:
-----------------------------------

Maybe for SWF-only projects, we should have a different flex-config.xml as a default, maybe swf-config.xml or something like that.

> Error: unknown configuration variable 'compiler.targets' when using bin/mxmlc and bin/compc
> -------------------------------------------------------------------------------------------
>
>                 Key: FLEX-35303
>                 URL: https://issues.apache.org/jira/browse/FLEX-35303
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Falcon
>    Affects Versions: Apache FalconJX 0.8.0
>            Reporter: Josh Tynjala
>
> flex-config.xml includes defaults for compiler.targets. compiler.targets is defined in org.apache.flex.compiler.clients.JSConfiguration. I suspect that bin/mxmlc and bin/compc use org.apache.flex.compiler.config.Configuration instead, since they're for SWFs.
> I'm guessing that compiler.targets should probably be defined in Configuration instead of JSConfiguration.
> This also affects the VSCode extension. For SWF projects in VSCode, I use Configuration for compiler options. I've (temporarily) switched to JSConfiguration instead because I was getting the same error. However, I'd prefer to continue using Configuration so that VSCode will display proper compiler errors someone tries to use JS-specific options (like source-map, for instance) with a SWF project.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)