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

ST3 NameError global name 'view' is not defined #169

Open
Maxtermax opened this issue Aug 31, 2017 · 2 comments
Open

ST3 NameError global name 'view' is not defined #169

Maxtermax opened this issue Aug 31, 2017 · 2 comments

Comments

@Maxtermax
Copy link

I just install tern for sublime by download the repo inside the packages folder of sublime text 3 then run
npm install then i try the demo located at: /Packages/tern_for_sublime/test/demo/simple/test.js it looks like this:

// Use ctrl-space to complete something
co
document.body.a 

// Put the cursor in or after an expression, press alt-o to
// find its type

var foo = ["array", "of", "strings"]
var bar = foo.slice(0, 2).join("").split("a")[0]

// Works for locally defined types too.

function CTor() { this.size = 10 }
CTor.prototype.hallo = "hallo"

var baz = new CTor
baz.

// You can press alt-space when the cursor is on a variable
// name to rename it. Try it with CTor...

// When the cursor is in an argument list, the arguments
// are shown below the editor.

[1].reduce(  )

When a try to use the intellisense dont work, so look the logs in the sublime text console and notice that in: /Packages/tern_for_sublime/tern.py crash in the line 598 because NameError: global name 'view' is not defined.

I am using:

  • node 8.2.1
  • npm 5.3.0
  • linux Ubuntu 14
  • python 2.7.12

I am not sure but a think that the problem maybe is for the python version.

marijnh added a commit that referenced this issue Aug 31, 2017
@marijnh
Copy link
Member

marijnh commented Aug 31, 2017

Does attached patch help?

@Maxtermax
Copy link
Author

@marijnh i just download the fix and it doesn't work, this time dont throw any error but the intellisense still not work and in the sublime text console dont appear any logs of tern :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants