WARNING: Compat.UTF8String is deprecated, use String instead - julia

I get the following error message while reading strings. How could I overcome it or set it quient? Julia 0.6.
WARNING: Compat.UTF8String is deprecated, use String instead.
Thanks!

You can disable deprecation warnings by launching julia with the --depwarn=no option.

Related

How to silence linux kernel checkpatch.pl ERROR: Missing Signed-off-by: line(s)

I use the Linux kernel style in my C code, even though it's not related to the kernel. Running checkpatch.pl produces ERROR: Missing Signed-off-by: line(s). How to ignore it?
To intentionally silence the ERROR: Missing Signed-off-by: line(s) one can pass the --no-signoff parameter, e.g.:
git show | checkpatch.pl --no-tree --no-signoff
This can also be added on a new line to the .checkpatch.conf file to avoid having to type it.

SinonJS is failing to resolve "resolve" as a function

I have the following code.
getCallStub.returns(new Promise((resolve)=>{
resolve([item]);
}));
But there has to be an easier way so I look at the Sinon docs and see something like getCallStub.resolve([item]); should work but I get...
TypeError: getCallStub.resolve is not a function
I also tried getCallStub.usingPromise(Promise).resolve([item]); and got the same...
TypeError: getCallStub.usingPromise(...).resolve is not a function
I double checked the node_modules and I am at a version greater than 2 (6.3.5) so why can't I use the resolve function?
From the docs:
stub.resolves(value);
Seems you just forgot an s and your code should be
getCallStub.resolves([item]);

Xpath Error: Failed to execute 'evaluate' on 'Document':

Iam using below xpath:
//label[text()='First Name']/Parent::div/following-sibling::div/div/input[#disabled='disabled']
But showing an error as:
SyntaxError: Failed to execute 'evaluate' on 'Document': The string
'//label[text()='First
Name']/Parent::div/following-sibling::div/div/input[#disabled='disabled']'
is not a valid XPath expression.
The error says it all - the expression is invalid. The issue is in the parent axis - it has to be in small caps, not capitalized as you've set it.
Maybe you can try to make a shorter Xpath, because seems long Xpath are hard to read, so as an example you can try with:
//button[contains(text(),'Yes')]
or
//button[contains(.,'Yes')]
Make a shorter Xpath worked for me.

Openmdao 1.7.3 error with unicode variables in python2

In the file openmdao/core/problem.py on lines such as 1619 and 1638, it checks if a variable is a string by using:
isinstance(inp, str)
however, this will return false if inp is unicode in python2, and eventually cause the program to raise an exception. In python2, the correct syntax is:
isinstance(inp, basestring)
I understand that basestring is not available in python 3, but there are several ways to write python 2/3 compatible code. Can this be fixed?
feel free to submit a pull request, but please add a test that checks the new functionality

ignoring jshint Unnecessary semicolon error

I am using jshint which gives me the error "Unnecessary semicolon".
I do not control the file in question and I would like to ignore this error.
I am not able to find any such option on the jshint doc page
Turns out you can ignore any error message by setting an option for specific error numbers:
"-W032": true

Resources