Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
35 views

How to suppress an error message I got using curve_fit function?

How can I suppress the error message: Intel MKL ERROR: Parameter 4/5 was incorrect on entry to DLASCL. I get the error while using curve_fit() function in Spider 5.x (Python 3.11). I know that the ...
Hamed Shakouri's user avatar
2 votes
0 answers
307 views

How to suppress mypy error: "some/path/to/module" shadows library module "module"

I'm well aware that normally you wouldn't want to suppress this error, but my case is special. I'm "poly-filling" skulpt with some modules that it lacks in stdlib ("typing" and &...
oBrstisf8o's user avatar
0 votes
1 answer
106 views

Suppress API 404 error from appearing in BizTalk console

I have a BizTalk app that calls an API from one of our suppliers. The orchestration receives a list of users and a list of subscriptions for that user. It then goes on to check whether the user exists,...
krabople's user avatar
1 vote
0 answers
48 views

Suppressor Class only working in notebook block and not in command line

This is the class I am using as my supressor import sys import traceback import warnings from rdkit import RDLogger from rdkit import Chem class Suppressor: def __init__(self, log_file): ...
user17230397's user avatar
0 votes
0 answers
58 views

Java vanishing Exception message... surpressed exception maybe?

Writing in Java. This is a problem that is befuddling me, and it also feels right out of my grasp. Here is a little pseudo-code in a try block and real code in the catch block. try { // 83 ...
mstabosz's user avatar
0 votes
1 answer
590 views

Using contextlib.suppress in place of nested try/else with return statement inside function

I am attempting to abide by flake8 guidelines by using contextlib.suppress in place of a nested try/else within a function that returns a variable. Below is my original function: def ...
Jake Niederer's user avatar
5 votes
0 answers
339 views

How to use `pylint` on code supporting multiple Python versions?

Since hashlib.file_digest was introduced only in Python 3.11, I use a fallback to the previous code: if sys.version_info < (3, 11): digest = hashlib.sha256() digest.update(file.read()) else:...
bers's user avatar
  • 5,724
0 votes
0 answers
84 views

SQL Server errors out prematurely when starting a batch, for an error that will not actually occur

The code below results in error when a table [mytable] exists and has a columnstore index, even though the table will have been dropped and recreated without columnstore index before page compression ...
shortski's user avatar
1 vote
1 answer
113 views

Suppressing doctest in abstract or Protocol classes

I am looking to use doctest formatted examples for an abstract (ABC) or Protocol class without having doctest fail because the methods of the class are not implemented. The docstring and example is ...
AlexLoss's user avatar
  • 571
0 votes
1 answer
139 views

How to save results but don't show output in the terminal

I am trying to write a script that extracts wifi passwords. The problem is, I don't want it to show output before it's fully done. from subprocess import check_output raw = check_output('security find-...
user16965639's user avatar
0 votes
0 answers
90 views

eclipse java; red warnings in package explorer for ALL projects disappeared; why?

Have been using eclipse for java several years; suddenly I cannot find where errors are in projects because the red warnings do not show in package explorer. Please advise. Project file seems in order....
joe jacobs's user avatar
0 votes
2 answers
107 views

Supress Java exeption if I know an exeption won't be thrown

Is it possible to supress an exeption in a Java code? Suppose I'm trying to do something as basic as this: Date date = new SimpleDateFormat("yyyy-MM-dd").parse("2021-01-01") The ....
Juan Cruz Carrau's user avatar
0 votes
0 answers
1k views

How to suppress specific cases of syntaxError with CppCheck

I'm running CppCheck over some files containing CLI code. As the CLI portions of the file make use of '^)' characters, I'm trying to suppress the "false positive" syntaxError generated by ...
HeinzGuderian's user avatar
0 votes
1 answer
92 views

Bigrquery - no errors

I've been working with R and the library Bigrquery for a year. But since a few months, I'm not receiving any errors or warnings anymore from the function bq_perform_upload(). For exemple, when a data....
Peter Van Gorp's user avatar
0 votes
1 answer
282 views

Suppress error in xaml using .editorconfig

I have following XAML. It's valid (and code compiles and runs just fine), but VS gives me the error: "XLS0505 Type 'FontImageSource' is used like a markup extension but does not derive from ...
maxc137's user avatar
  • 2,731
0 votes
0 answers
100 views

How to avoid undefined index errors on a function to detect undefined indexes in PHP?

Okay, so I wrote a function to test if an array key has a value and return it, or else, return a value from the POST array, the problem is, since some of the are undefined, I get "Undefined Index ...
Miguel Vieira's user avatar
1 vote
1 answer
1k views

GraphQL disable input validation, add custom error

Trying to disable explicit message on input validation errors. When I request a field that does not exist (i.e age) i get: { "data": null, "errors": [{ "path": null, "locations": [ ...
Asaf Maoz's user avatar
  • 675
3 votes
2 answers
471 views

Can't suppress warnings or messages while using nls2::nls2 in R

I'm attempting to fit ~100 data sets to a triexponential decay formula, and the data often don't fit well. That's fine, but I can't seem to suppress the gazillion warnings that this produces. Since ...
shirewoman2's user avatar
  • 1,928
3 votes
2 answers
234 views

Why don't I see errors from readline.set_completion_display_matches_hook?

Consider this code: #!/usr/bin/env python3 from cmd import Cmd import readline class mycmd(Cmd): def match_display_hook(self, substitution, matches, longest_match_length): ...
Joseph Sible-Reinstate Monica's user avatar
0 votes
2 answers
631 views

Suppress the error messages generated from the package

I am using a Go function which roughly works as follows: It traverses the given URL and searches for a string For traversing the websites I have used Chrome DevTools package. My problem is while it'...
Benk I's user avatar
  • 199
1 vote
2 answers
512 views

How do I disable error suppression "@" operator in PHP? [duplicate]

I have a code which was written recklessly (by previous devs ofc) and the error suppression operator "@" was used generously all over the place. And now that I have to debug an error, it is proving a ...
Mohd Abdul Mujib's user avatar
0 votes
1 answer
107 views

Proper way to handle errors suppressed by @?

As stated in the manual, calling error_reporting() will return 0 if the error came from an @ suppression. But since my production server is always set to error_reporting(0) (on top of the script), ...
IMB's user avatar
  • 15.8k
0 votes
1 answer
227 views

How to tell if an error was suppressed by the @ error control operator?

A 3rd party library I'm using uses the @ error suppression operator in its codes which causes suppressed errors via @ still cause an error output because I am using a custom error handler (...
IMB's user avatar
  • 15.8k
2 votes
3 answers
3k views

How to compare Inputs and JSON data

I'm working on a school project and I need to validate some users without making a real Database. My problem is that when I compare the information entered in the inputs with the information storaged ...
Santiago's user avatar
3 votes
2 answers
463 views

How to suppress the error message: "Error in `./hubbard.exc': corrupted size vs. prev_size"? [duplicate]

I have a very old program (from the late 80s) written in C++ and I somehow managed to get it running on Ubuntu 16.04 64Bit. Even if it produces an error at the end, the results are okay. Since it ...
TMueller83's user avatar
2 votes
1 answer
1k views

Suppress error message when using fitdist() from the fitdistrplus package

I am using certain functions from the fitdistrplus package as a part of a package I am creating. I am attempting to prevent any error messages from displaying in the console when the functions are ...
Rage's user avatar
  • 323
0 votes
1 answer
1k views

PC lint error 19 "useless declaration "

I want to understand the solution for the PC lint error 19 "useless declaration". i am using a interrupt vector table, and calling the interrupts with required parameters. when i run for PC lint I am ...
Laxmikant Indur's user avatar
24 votes
6 answers
32k views

Displaying PHP Errors from admin-ajax.php in Wordpress 4.9+

We've got some custom endpoints set up that do various things, which we access via /wp/wp-admin/admin-ajax.php?action=some_action However whenever there is an error as we're developing, such as ...
owenmelbz's user avatar
  • 6,496
0 votes
1 answer
181 views

Find out what local variable requires this suppression

The c# project I am working with has "Warnings as Errors" turned on and they have lots of suppressions in the code. Among them the following: [System.Diagnostics.CodeAnalysis.SuppressMessage( "...
ajeh's user avatar
  • 2,788
1 vote
1 answer
874 views

suppressing php imagecreatefromjpeg errors

I have a script that processes uploaded jpgs, and for whatever reason, some jpgs don't seem to be compliant with whatever expectations imagecreatefromjpeg has. I suspect it is related to panorama ...
Shmeerm's user avatar
  • 13
3 votes
2 answers
2k views

R tryCatch handling one kind of error

I wondering it is the way to check in tryCatch function kind of errors or warnings like in Java for example. try { driver.findElement(By.xpath(locator)).click(); result= true; ...
Bartosz Gurgul's user avatar
3 votes
0 answers
8k views

How can I suppress a "-fpermissive" error using modern GCC?

I am trying to compile some nonconforming code in C++17, but I am stuck with the following issue. #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-fpermissive" Some code that ...
Andreas's user avatar
  • 177
-5 votes
3 answers
91 views

Compiling these lines in Java - possible in any way?

its about compiling this method, where T is generic. Is there a way to compile this with the javac Compiler (Java 1.8) without getting any error? public class MyGenericClass<T>{ public ...
Marvin Krüger's user avatar
0 votes
2 answers
149 views

When to use the @ symbol in PHP?

I was wondering what the use cases are to use the @ symbol in PHP to suppress errors for an expression. It is discouraged by a lot of people for good reasons but I was wondering when it actually can ...
Daan's user avatar
  • 7,915
0 votes
1 answer
7k views

How to suppress Pe070 error in IAR EW 8.1?

I have to upgrade an IAR EW project from V 7.80.2 to V 8.10.1. My project worked without any warnings or errors in version 7.8. When I try to build exact the same project in version 8.1 I get the ...
user avatar
8 votes
1 answer
12k views

Suppress JQ parse error messages in linux

I am looking to parse the json file using JQ utility in bash script , though i am able to parse it correctly , whenever there's invalid json content we get parse error message on the cmd line . So ...
Vaibhav Heddurshetti's user avatar
1 vote
1 answer
5k views

how to test if curl is available in PHP without errors

I am trying to detect if curl is installed using PHP in a script run from the command line. I tried the following: if(@function_exists('curl_version')){ ... } and error_reporting(E_ERROR); ini_set(...
raphael75's user avatar
  • 3,198
0 votes
1 answer
1k views

How to suppress errors during AutoCAD script execution

I am running an autocad script against a library of 40,000 DWG files. All the script does is open each drawing and verify that the correct drawing number is on the drawing. This is for quality ...
Josh's user avatar
  • 189
1 vote
0 answers
364 views

PHP showing errors, although display_errors is set to 0

I'm struggling for an hour, trying to figure out why is PHP showing errors although I suppressed them at the very begginging of my code like this: error_reporting(E_ALL); ini_set('log_errors', 1); ...
Bero_zg's user avatar
  • 303
30 votes
2 answers
5k views

Check Android Permissions in a Method

here is my code and it works perfectly fine. if (ActivityCompat.checkSelfPermission(activity, Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED || ActivityCompat....
Ioane Sharvadze's user avatar
0 votes
0 answers
57 views

I have another TypeError in Python3.5

I'm making a module to implement the basics of a computer and emulate so stuff, but in a specific part of the code handling the memory - Python Gives me an error i can't seem to fix... Here's the ...
Hazim Sager's user avatar
0 votes
0 answers
82 views

How do I find out what is forcing php errors to show on page

I have a few small scripts installed on my server and was trying to debug yesterday. To show errors on page I set Display_errors= on in the phpsettings of my cloudlinux cpanel. this didn't show errors ...
cam's user avatar
  • 13
0 votes
0 answers
253 views

PHP Notices in WordPress

Hope someone can help with this. I'm getting tons of Notice errors on the frontend of the site I'm busy developing and I want them just put into debug.log. The following is in the correct spot of wp-...
RestlessWeb's user avatar
16 votes
1 answer
7k views

Suppress "WebSocket connection to 'xyz' failed"

I've written a web application that uses web-sockets. The idea is that my app tries to auto-connect to recently connected to hosts when it starts up. If it can't establish a connection to any of them, ...
Kevin Johnson's user avatar
1 vote
2 answers
5k views

How to ignore a specific command-line error output from batch script?

I have made a batch script that, among other things, merges our DEV branch to our TEST branch using the following command: tf merge $/Proj/Dev $/Proj/Test /recursive >nul This command always ...
nycfdtd's user avatar
  • 404
1 vote
1 answer
3k views

Using @ (at sign) in PHP Laravel strings

I have the below code in my app. The problem is the @ (at sign). When it's there, I get syntax highlighting and errors as if the string doesn't end. When remove it, the page works fine (minus the ...
Merlin -they-them-'s user avatar
2 votes
2 answers
282 views

Store those filenames in a variable that were not copied to the destination using batch

I have created a batch file that is copying filese and sub folders from source to destination. I have suppressed all sorts of errors. Following is the code which I am using currently: Echo ****...
user3368855's user avatar
1 vote
0 answers
94 views

Watir: Suppressing object timeout to favor my own error

I am working with an automation framework that deals with hundreds of test cases, and once all the scripts are written - thousands. The application under test has an error page that displays when ...
C Scordias's user avatar
2 votes
1 answer
448 views

How to make valgrind report only errors matching a rule

I know how to filter out errors based on suppression rules, but is it possible to make valgrind only show errors that match some criteria? Reverse suppression or kind of whitelisting if you will.
SnowFatal's user avatar
  • 2,431
1 vote
1 answer
73 views

Why do I have to suppress errors for my function to work

Hi I have a script to log people into my site and within the script is this method (I have changed the values) $con=mysql_connect("mydbdomain", "mydbusername", "mypassword"); Now I downloaded a ...
Banned_User's user avatar
  • 1,023