question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"(a=b).value" => "unresolved symbol"

See original GitHub issue

screen shot 2014-10-12 at 1 25 03

I don’t know how it’s happening. Idea says “unresolved symbol” only 😃.

next for copy-paste:

using StringTools;
class Demo{
    function demo(){
        var lines = "--+--+--".split("+");
        for(i in 0...lines.length)
            if((lines[i] = lines[i].rtrim()).length > 0)
                trace(lines[i]);
    }
}

TIR: STB-7290

Issue Analytics

  • State:open
  • Created 9 years ago
  • Comments:15 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
EricBishtoncommented, May 25, 2017

Oh, you’re right. That one should resolve. I fixed it in the comment above.

0reactions
EricBishtoncommented, Sep 9, 2020

Here’s the state with 1.3.1. Usings have been fixed (e.g. StringTools.rtrim() is found), and expressions inside of parenthesis now work.

package ;
using StringTools;

class TestIssue29 {
    public function new() {
    }
}

class Demo{
    function demo(){
        var lines = "--+--+--".split("+");
        for(i in 0...lines.length)
            if((lines[i] = lines[i].rtrim()).length > 0) {  // <-- rtrim and length were unresolved -- Fixed!!
                trace(lines[i]);
                lines[i].rtrim();
                StringTools.rtrim(lines[i]);  // <--rtrim is unresolved  -- Fixed!!
            }
    }
    function demo2() {
        var a = {v:1};
        var b = 1;

        var c = a.v; // <- unresolved

        var d = (a = (a.v + b)).v; // <- unresolved -- And should remain so!!       // characters 17-30 : Int should be { v : Int }
        var e = (a.v = (a.v + b)).v; // <- unresolved -- And should remain so!!     // characters 16-35 : Int has no field v
        var f = a;
        f.v = (a.v = (a.v + b));  // <- unresolved -- and should be -- both at f and internally.
    }
    function demo3() {   // From mayakwd
        var a:{v:Int} = {v:1};
        var c = a.v; // <- unresolved
    }
    function demo4() {  // From Srikanth
        (new haxe.Timer(1000)).run();  // <- unresolved -- Fixed!!

        var m:Array<Int> = new Array<Int>(0);                                       // characters 42-43 : Too many arguments
        (m[i]).length; // m is Array  // <- unresolved -- Correct.                  // characters 11-12 : Unknown identifier : i
        (m).length;  // Works!!
    }
}

Still have to fix resolving fields in anonymous structs (but that is not what this bug was primarily about).

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is an undefined reference/unresolved external symbol ...
Now, b.cpp declared that symbol and used it. Before linking, it simply assumes that that symbol was defined somewhere, but it doesn't yet...
Read more >
Unresolved external symbol error when declaring global ...
This happens because they are global variables and they are initialized before entering the main function, so before the user can give a...
Read more >
Why am I getting LNK2019 unresolved external for my inline ...
I have implemented a few inline functions in one of my cpp files, and I want to use it from other cpp files,...
Read more >
__imp___std_init_once_complete unresolved ...
It appears that msvcprt(d).lib have /alternatename entries already for this symbol, but it isn't being picked up. If I manually add the /alternatename ......
Read more >
GLM library, unresolved symbol - OpenGL: Basic Coding
The if statement causes the unresolved external symbol error. unresolved external symbol “bool __cdecl glm::gtx::comparison::operator!=…” But ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found