apache / apache/royale-compiler

Invalid Syntax Succeeds in Compilation, but Doesn't Load at Runtime

Open
#186 8 comments 0 reactions 1 assignee Claimed by @greg-dove View on GitHub
Dominant language
Java
Stars
113
Forks
54
PR merge metrics
No merged PRs in 30d

Description

I've been finding random compilation issues that should be invalid, but seem to succeed.

**Steps to Reproduce**

Accidentally added two dots in a binding within MXML. In my case, I performed a refactor that mistakenly left two dots; an easy mistake to make.

```
"{someObject..someValue}"
```

**Expected Results**

Compilation should fail, or at least throw a warning.

**Actual Results**

Compiles successfully, but the resulting debug JS file is not usable at runtime without any warning or error. I'm not sure if it's failing to load, or some other issue.

**Workaround**

None that I know of at this time.

**Comments**

A mistake like this is likely an edge case, but is an easy mistake to make. The cost of running into it was rather large as it was hard to track down and took significant time to find/fix as there are no errors.

FYI, I am using `vscode-as3mxml`. I'm not sure if that is relevant or not with issue.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.