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

Cannot read property then of undefined #6739

Closed
bpasero opened this issue May 24, 2016 · 4 comments
Closed

Cannot read property then of undefined #6739

bpasero opened this issue May 24, 2016 · 4 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug important Issue identified as high-priority verified Verification succeeded
Milestone

Comments

@bpasero
Copy link
Member

bpasero commented May 24, 2016

Refs: #6655

I am right clicking on greeting and "Find All References" and I get: Cannot read property then of undefined.

<!-- Single statement block -->
@{ var myMessage =  "Hello World"; }

<!-- Inline expression or variable -->
<p>The value of myMessage is: @myMessage</p> 

<!--    Multi-statement block -->
@{
var greeting = "Welcome to our site!";
var weekDay = DateTime.Now.DayOfWeek;
var greetingMessage = greeting + " Here in Huston it is: " + weekDay;
}
<p>The greeting is: @greetingMessage</p>
@bpasero bpasero added the bug Issue identified by VS Code Team member as probable bug label May 24, 2016
@bpasero
Copy link
Member Author

bpasero commented May 24, 2016

Same for handlebars btw.

@alexdima
Copy link
Member

also happens in html

@alexdima
Copy link
Member

alexdima commented May 24, 2016

It is a problem in the UI code.

ReferenceWidget.setModel returns undefined in some cases.

TypeError: Cannot read property 'then' of undefined
    at file:///C:/Alex/src/vscode/out/vs/editor/contrib/referenceSearch/browser/referencesController.js:120:60
    at Object.notifySuccess [as _notify] (file:///C:/Alex/src/vscode/out/vs/base/common/winjs.base.raw.js:1440:59)
    at Object.state_success_notify.enter (file:///C:/Alex/src/vscode/out/vs/base/common/winjs.base.raw.js:1127:30)
    at Promise_ctor.WinJS.Class.define._run (file:///C:/Alex/src/vscode/out/vs/base/common/winjs.base.raw.js:1343:29)
    at Promise_ctor.WinJS.Class.define._completed (file:///C:/Alex/src/vscode/out/vs/base/common/winjs.base.raw.js:1311:18)
    at argDone (file:///C:/Alex/src/vscode/out/vs/base/common/winjs.base.raw.js:2072:37)
    at Promise.then.errors.(anonymous function) (file:///C:/Alex/src/vscode/out/vs/base/common/winjs.base.raw.js:2097:78)
    at Object.notifySuccess [as _notify] (file:///C:/Alex/src/vscode/out/vs/base/common/winjs.base.raw.js:1440:59)
    at Object.state_success_notify.enter (file:///C:/Alex/src/vscode/out/vs/base/common/winjs.base.raw.js:1127:30)
    at Promise_ctor.WinJS.Class.define._run (file:///C:/Alex/src/vscode/out/vs/base/common/winjs.base.raw.js:1343:29)

@alexdima alexdima assigned jrieken and unassigned alexdima May 24, 2016
@jrieken jrieken added the important Issue identified as high-priority label May 25, 2016
@jrieken
Copy link
Member

jrieken commented May 25, 2016

verifier: run a reference search that yields in no result.

@jrieken jrieken assigned bpasero and unassigned jrieken May 26, 2016
@bpasero bpasero added the verified Verification succeeded label May 26, 2016
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug important Issue identified as high-priority verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

3 participants