WebStorm error message - use esversion 6 - webstorm

WebStorm is showing the following error message:
JSHint: 'let' is available in ES6 (use 'esversion': 6) ...
In the Preferences -> Languages & Framework -> JavaScript menu I've selected the ECMAScript 6 option and my .jshintrc file does contain the "esversion": 6, line.
I've tried the two most recent versions of the app (which are now 2016.3.6 and 2017.1.2) but to no avail.
I've also deleted the files in ~/Library/Application Support/WebStormXX and
~/Library/Preferences/WebStormXX but nothing seems to have changed.
I'm using OS X 10.10.5.

Thanks to #lena's comment I was able to figure out what was wrong. The Use config file checkbox of the Preferences | Languages & Frameworks | JavaScript | Code Quality Tools | JSHint was not checked so my .jshintrc was just being ignored.

If you don't have your own config file, you can enable EcmaScript.next in Relaxing options in in
Settings | Languages & Frameworks | JavaScript | Code Quality Tools |
JSHint
See this question How-do-I-resolve-these-JSHint-ES6-errors

I'd probably recommend a more feature rich editor like vim

Related

Sublime Text 3 Command+B on macOS

I had cmd+B running Build on multiple languages (PHP, Python, etc.) under:
Tools > Build
Most recently, I have added:
quite: "true"
and it was working just fine. After a recent restart, it does not display the window underneath, that use to show the result of running.
Looked into some posts such as this one, yet could not figure it out.
Which settings should I be checking for that?
Under,
Sublime Text > Preferences > Settings
in Preferences.sublime-settings-User file, changing,
show_panel_on_build: false,
to:
show_panel_on_build: true,
solved the problem.

oh-my-fish `omf: command not found` in WebStorm terminal emulator

I am using WebStorm 2017.1.3 on Fedora 25.
I have fish set up as my default shell and installed oh-my-fish so in
Terminal I see my git branch and other information by default. omf update runs as expected.
In the WebStorm terminal emulator I still get fish, but not omf:
user#host ~> omf
fish: omf: command not found...
I'm a noob fish and omf user, can anyone help?
Thanks.
I have fish set up as my default shell and installed oh-my-fish so in Terminal I see my git branch and other information by default.
Note that you don't need omf for this. Fish ships a number of prompts that include vcs information. You can pick one with fish_config or add the __fish_vcs_prompt function to your fish_prompt.
In the WebStorm terminal emulator I still get fish, but not omf:
user#host ~> omf
fish: omf: command not found...
The "omf" function is stored in a file named "omf.fish" in a directory in $fish_function_path. This means that directory isn't included there.
The way omf works in a reasonably current (> 2.3.0) fish is that it has a bootstrap file (~/.config/fish/conf.d/omf.fish) that then sources the rest. It seems this isn't run.
I'd suggest you compare the values of $fish_function_path, $OMF_PATH and possibly $XDG_DATA_HOME in webstorm and outside of it.
An answer was given here: IntelliJ's embedded terminal does not load fish functions. I.e, add some lines of code to the app for the time being (until Jetbrains makes a fix).
I fixed this by going to Settings | Terminal then turning off Shell integration.
This allowed me to run omf and also have the bobthefish theme work with powerline/nerd fonts (after updating the terminal font at Settings | Editor | Color Scheme | Font Console)
I was using phpStorm 2017.3.4 but I assume this will also work in any IntelliJ embedded terminal.

WebStorm does not play well with gulp watch

When I use WebStorm with gulp watch, watchify, tsc ... not all save commands trigger the watch.
I am sure that WebStorm has it for performance reasons but this drives me crazy.
Is there a flag which I can set, which saves the file immediately?
Webstorm support helped me with a quick response.
Turning 'Safe write' option ( Settings | Appearance & Behavior | System Settings) off fixed the issue.

Visual Studio error D8016: '/ZI' and '/O2' command-line options are incompatible

Visual Studio error D8016: '/ZI' and '/O2' command-line options are incompatible
I'm using optimization for the first time with C++.
When I 'build solution' I keep getting this error.
In the property pages, I have configuration set to Release
Under project/properties/c++/optimization I tried all the options except for disable.
Under project/properties/c++/General I also tried all the options under 'Debug Information Format' (assume 'None' is a good choice?).
I think it might have something to do with the linker settings, but still don't know what to do.
Go to the project's property page and change the value for:
C/C++ | General | Debug Information Format
To something other than "Program Database for Edit and Continue (/ZI)"
For example, "Program Database (/Zi)" should work.
After changing
C/C++ | General | Debug Information Format
to Program Database (/Zi)
You might need to set the solution configurations to Release.
Verify that under Linker -> Debugging says Generate Debug Info -> No.
I had this problem as well.

How to process Boost.Test output with Eclipse

I'm using Eclipse CDT and Boost.Test(with Boost.Build).
I would like Eclipse to parse output of Boost.Test generated during by run of test suites during build.
Does anybody know how to achieve this?
Thanks in advance
Go to Window > Preferences. In the preferences dialog, choose C/C++ > Build from the options tree. Under error parsers, click "Add..." In the new dialog, replace "Regex Error Parser" with something like "Boost Unit Test Error Parser".
In the Error Parser Options pane, add the following lines. I can't guarantee that these rules catch all possible output from boost unit tests, but so far they work for me, and we can always add more later:
Severity | Pattern | File | Line | Description
Error | (.*)\((\d*)\): ((fatal )?error in ".*":.*) | $1 | $2 | $3
Error | \*\*\* (\d* failures detected in test suite ".*")| | | $1
Info | (.*)\((\d*)\): (last checkpoint) | $1 | $2 | $3
Note that the new parser will not automatically be used in existing projects. To enable the parser for an existing project, go to Project > Properties, C/C++ Make Project, Error Parsers tab. If the newly added parser is not in the list, click "Restore Defaults", and it should now be available.
There is also a nice plugin called cdt c/c++ tests runner, which supports Google test, boost test, and qt test.
You can find instructions at the following link:
https://github.com/xgsa/cdt-tests-runner/wiki/Tutorial
I have been using it for a while, and found it efficient and nice. It has features like a JUnit plugin for Java.
I had the same problem of my IDE (gedit) not recognizing the output format of Boost.Test (which is not compatible with gnu and clang output for some reason).
You can change the output format programmatically by sticking this in your test(s):
#include<boost/test/output/compiler_log_formatter.hpp>
struct gedit_config{
struct formatter : boost::unit_test::output::compiler_log_formatter{
void print_prefix(std::ostream& out, boost::unit_test::const_string file, std::size_t line){
out<< file <<':'<< line <<": ";
}
};
gedit_config(){boost::unit_test::unit_test_log.set_formatter(new formatter);}
};
BOOST_GLOBAL_FIXTURE(gedit_config);
(original answer here: https://stackoverflow.com/a/64619245/225186)