Skip to content

No Definition found for in VS Code (Project attached) #29984

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

Closed
sergiybuch opened this issue Feb 19, 2019 · 2 comments
Closed

No Definition found for in VS Code (Project attached) #29984

sergiybuch opened this issue Feb 19, 2019 · 2 comments
Assignees
Labels
Duplicate An existing issue was already created

Comments

@sergiybuch
Copy link

VSCode Version: Version: 1.31.1 (system setup)
Commit: 1b8e8302e405050205e69b59abb3559592bb9e60
Date: 2019-02-12T02:20:54.427Z
Electron: 3.1.2
Chrome: 66.0.3359.181
Node.js: 10.2.0
V8: 6.6.346.32
OS: Windows_NT x64 10.0.17134

Steps to Reproduce:

  1. Download this project https://github.com/hiptest/hps-protractor
  2. Open ../e2e-tests/display_errors/beans_test.js
  3. Use Ctrl+Click/F12/Go to definition on any actionword and it will show No definition found for...
    Definitions are in ../e2e-tests/actionwords.js

image

Other JS IDE can see all definitions in this project.

@microsoft microsoft deleted a comment from vscodebot bot Feb 20, 2019
@mjbvz mjbvz transferred this issue from microsoft/vscode Feb 20, 2019
@mjbvz
Copy link
Contributor

mjbvz commented Feb 20, 2019

Caused by this line:

    this.actionwords = Object.create(require('../actionwords.js').Actionwords);

with the root cause being that Object.create(x) returns any instead of typeof x (possibly #26541)

@RyanCavanaugh RyanCavanaugh added the Duplicate An existing issue was already created label Feb 27, 2019
@typescript-bot
Copy link
Collaborator

This issue has been marked as a 'Duplicate' and has seen no recent activity. It has been automatically closed for house-keeping purposes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

4 participants