ID:2113469
 
BYOND Version:510
Operating System:Windows 10 Pro 64-bit
Web Browser:Chrome 51.0.2704.103
Applies to:Dream Maker
Status: Open

Issue hasn't been assigned a status value.
Descriptive Problem Summary:
During compilation I receive the following error:

BUG: Unexpected condition in IsForwardReference(.632.6/=.0)

What?

Expected Results:
My code compiles.

Actual Results:
What?

Does the problem occur:
Every time? Or how often?
Every time in my project (SS13). I can provide the relevant code if needed. Currently diagnosing myself.
In other games?
No.
In other user accounts?
Untested.
On other computers?
Untested.

When does the problem NOT occur?
The problem did not occur before I tried to merge with upstream, so it may have to do with character encoding, newlines etc.

Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)
Unknown.

Workarounds:
Still determining the cause.
Yep, turns out to be a newline problem.

A file contained the following:

/datum/tgui/New(mob/user, datum/src_object, ui_key, interface, title, width = 0, height = 0, datum/tgui/master_ui = null, datum/ui_state/state = default_state, browser_id = null)    src.user = user
src.src_object = src_object


(Note the "src.user = user" at the end of the constructor definition which had a UNIX newline (\n) instead of a Windows newline (\r\n).)

I don't know if this is something that can/should be fixed, but the error message could be suppressed or be made more descriptive.

Note: I have the original file & the exact conditions to reproduce if this isn't enough to go on.
Unix newlines should work, parts of BS12 are LF-only. Could be a weird case where one LF in the file breaks the compiler, I guess?