Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error message: wrong path in unsaved file #1953

Closed
telephon opened this issue Apr 5, 2016 · 2 comments
Closed

error message: wrong path in unsaved file #1953

telephon opened this issue Apr 5, 2016 · 2 comments
Milestone

Comments

@telephon
Copy link
Member

telephon commented Apr 5, 2016

Reproducer:

  1. execute any script
  2. execute code that causes an error from an unsaved file (e.g nil + 1).

The error message path has the path of (1).

Related: #864

@telephon
Copy link
Member Author

telephon commented Apr 5, 2016

ERROR: Message '+' not understood.
RECEIVER:
   nil
ARGS:
   Integer 1
PATH: .../numbers.scd <edited>
CALL STACK:
    DoesNotUnderstandError:reportError   0x114aee978
        arg this = <instance of DoesNotUnderstandError>
    Nil:handleError   0x115030b28
        arg this = nil
        arg error = <instance of DoesNotUnderstandError>
    Thread:handleError   0x114dcf2a8
        arg this = <instance of Thread>
        arg error = <instance of DoesNotUnderstandError>
    Object:throw   0x165c4cc58
        arg this = <instance of DoesNotUnderstandError>
    Object:doesNotUnderstand   0x114e6dc58
        arg this = nil
        arg selector = '+'
        arg args = [*1]
    < closed FunctionDef >  (no arguments or variables)
    Interpreter:interpretPrintCmdLine   0x1154b9e38
        arg this = <instance of Interpreter>
        var res = nil
        var func = <instance of Function>
        var code = "p + 1"
        var doc = nil
        var ideClass = <instance of Meta_ScIDE>
    Process:interpretPrintCmdLine   0x1145986c8
        arg this = <instance of Main>
^^ The preceding error dump is for ERROR: Message '+' not understood.
RECEIVER: nil

@jamshark70
Copy link
Contributor

interpretPrintCmdLine is getting the path from the ideClass. So, ScIDE must not be clearing the current path when the user switches to a path-less document.

telephon added a commit to telephon/supercollider that referenced this issue May 18, 2016
@telephon telephon added this to the 3.8 milestone May 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants