0

I have a problem, my PhpStorm is not suggest JavaScript code

enter image description here

This is my trouble: I try to write var and got "no suggestion" error in bottom: "Expression statement is not assignment or call"

Following some solution in Internet, but not working I've uninstalled PhpStorm and reinstall ultimate version but nothing different.

12
  • I can see absolutely nothing in your image. Can you enlarge it or something? Commented Aug 1, 2017 at 10:58
  • What if you write to a .js file, not within a <script> tag? Commented Aug 1, 2017 at 11:03
  • sorry about my fault, i try to write "var" and some simple javascript func (alert, confirm....) but got "no suggestion". i'm very confused Commented Aug 1, 2017 at 11:03
  • Add type="text/javascript" to script tag and check settings of PhpStorm if it has javascript libraries enabled Commented Aug 1, 2017 at 11:07
  • bro, no error when i write in js file, it have suggestion, but in php file i got no suggestion, in my other laptop, no error occured Commented Aug 1, 2017 at 11:07

1 Answer 1

1

WI-36767 is fixed, fix will be included in next minor update of PhpStorm.

You can try the EAP to see if it works for you

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.