Software avalanche – switch language level to JSX Harmony

I was playing around with some JavaScript in PHPStorm and got this message in yellow at the top of the IDE:

Switch language level to JSX Harmony

The options were Switch Dismiss Cog icon (which has Fix all Annotator Problems in File). After doing a search to see what would happen if I did switch I found very little. So, I decided to go down the rabbit hole and click Switch to see what changed.

Note: to set the language level back after Switching go to Preferences and search for “javascript language” and set it to ECMAScript 5.

screen-shot-2016-10-05-at-10-26-08-amhttp://www.snowcrash.eu/wp-content/uploads/2016/10/Screen-Shot-2016-10-05-at-10.26.08-AM-300x99.png 300w, http://www.snowcrash.eu/wp-content/uploads/2016/10/Screen-Shot-2016-10-05-at-10.26.08-AM-588x194.png 588w" sizes="(max-width: 730px) 100vw, 730px" />

When you select Switch, then you get the option (in Green now, just to confuse things further):

screen-shot-2016-10-05-at-10-19-25-amhttp://www.snowcrash.eu/wp-content/uploads/2016/10/Screen-Shot-2016-10-05-at-10.19.25-AM-300x7.png 300w, http://www.snowcrash.eu/wp-content/uploads/2016/10/Screen-Shot-2016-10-05-at-10.19.25-AM-768x19.png 768w, http://www.snowcrash.eu/wp-content/uploads/2016/10/Screen-Shot-2016-10-05-at-10.19.25-AM-588x15.png 588w, http://www.snowcrash.eu/wp-content/uploads/2016/10/Screen-Shot-2016-10-05-at-10.19.25-AM.png 1163w" sizes="(max-width: 474px) 100vw, 474px" />

File watcher ‘Babel’ is available for this file. Description: ‘Transpiles ECMAScript 6 code to ECMAScript 5’

Add watcher    Dismiss    Cog icon

with

screen-shot-2016-10-05-at-10-22-40-amhttp://www.snowcrash.eu/wp-content/uploads/2016/10/Screen-Shot-2016-10-05-at-10.22.40-AM-300x78.png 300w" sizes="(max-width: 340px) 100vw, 340px" />

  • Edit inspection profile setting
  • Fix all ‘File watcher available’ problems in file
  • Run inspection on …
  • Disable inspection

Given that I was actually in the middle of doing some Symfony programming, I decided to let sleeping dogs lie and set the language level back to ECMAScript 5.

Leave a Reply

Your email address will not be published. Required fields are marked *