Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
20 views

Why am I getting "no matching literal operator" when trying to use sv literals?

I want to use the literal operators introduced in C++17 to create string views. But if I write: #include <string_view> // ... auto name = "John Smith"sv; in my code, compilation ...
einpoklum's user avatar
  • 128k
0 votes
0 answers
13 views

Remove SPEI message in a loop

An example of SPEI calculation: library(SPEI) library(lmomco) library(zoo) library(ggplot2) library(lubridate) years <- 1961:1965 months <- 1:12 time <- seq(as.Date("1961/1/1"), as....
idontreallyknowhehe's user avatar
0 votes
0 answers
46 views

Is there a way to suppress warnings but only for a given directory in Sphinx?

I am generating API documentation using autoapi.extension in Sphinx. It is a large repo, and not all of the doc strings are well formatted and this generates a lot of sphinx docutils warnings. However ...
Menelik Weatherspoon's user avatar
0 votes
0 answers
94 views

Proper way to append paths to PATH-like variables in Dockerfile

What is the correct way to append a path to a variable in a Dockerfile without triggering any warnings, even if the variable is undefined? Suppose I want to append a path to a PATH-like environment ...
tueda's user avatar
  • 962
0 votes
0 answers
22 views

Need Help Understanding Google Error Prone in Maven for Tracking Errors and Warnings

I’m a new developer, and I’m currently working on a project where Google Error Prone is being used in our Maven build process. However, I’m quite confused about how it works and how I should be using ...
Thilak Sparrow's user avatar
1 vote
1 answer
46 views

Casted override and overloading, will the java compiler create the necessary bytecode?

Assume the next scenario: interface FloatObject<V> extends Function<Float, V> { V apply(Float floatObject); default FloatObject<Float, V> x_5() { return aFloatObject -&...
Delark's user avatar
  • 1,273
0 votes
0 answers
20 views
+150

Can I suppress a specific linker warning about a specific location?

My project code links against some libraries whose source I don't have. During linking I get: /usr/x86_64-suse-linux/bin/ld:libfoo.a(foo.o): in function `flush': source/readcfg.c:1234:(.text+0xabc): ...
einpoklum's user avatar
  • 128k
1 vote
1 answer
69 views

How to suppress warning W7041 in BCC64?

In a Borland C++Builder non-modern 64bit codebase (bcc64) that I'm working on, a number of class definitions emit the following warning: warning W7041: Interface 'XXX' does not derive from IUnknown. (...
Hendrik's user avatar
  • 577
0 votes
0 answers
18 views

Is there a way to suppress all warnings in an Matlab MLS script?

I have an MLX script in which I am analyzing code written by someone else. I am using this so that I have access to LaTeX snippets as well as the MatLab environment. But, I am also including ...
Algebraic Optimal's user avatar
0 votes
1 answer
48 views

How to suppress warning for all derived types?

I have an ITemplate interface in my project. All interfaces derived from it have names that do not start with I. This causes the InconsistentNaming warning to appear. I want to suppress this warning ...
C6OI's user avatar
  • 3
0 votes
1 answer
39 views

Suppressing warnings for all files in a specific folder in Visual Studio

How to suppress a single warning e.g. CS1591 for all files in a single folder? e.g I only wont suppress all warnings in folder Areas not in the full project. I have tried: <ItemGroup> <...
Christopher E's user avatar
0 votes
1 answer
344 views

PyTest fixture : how resolve warning FastAPI 'app' shortcut deprecated?

I am trying to solve one for all, this Warning while executing pytests: /usr/local/lib/python3.11/site-packages/httpx/_client.py:680: DeprecationWarning: The 'app' shortcut is now deprecated. Use ...
RobyB's user avatar
  • 1,210
0 votes
0 answers
22 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
1 vote
1 answer
62 views

Equals method with casting of generic parmeterized class

I am using Java 21. I am trying to write an equals method for MyClass<T>, which defines a nested class MyNested<T> extends Comparable and a getNested() method which returns the instance of ...
Amateur Linguist's user avatar
1 vote
1 answer
172 views

How to disable s1309 (Disable warning when suppressing warnings) in Sonarcloud?

My company uses Sonarcloud analysis within our Azure DevOps projects and pipelines. We are allowed to use the SuppressMessage attribute to suppress certain types of errors. Sadly, we need to suppress ...
TedOnTheNet's user avatar
  • 1,102
0 votes
0 answers
26 views

USG0001 warnings. Why are these warning appearing in my Visual Studio Editor? [duplicate]

I am creating a project in Unity version 2022.3.71F using Visual Studio version 17.9.6. I am receiving multiple warning in the editor as indicated in the attached image. I can find no information on ...
Calvin De Beverly's user avatar
0 votes
0 answers
32 views

Stopping the pop-up message "Value Path exists, overwrite(Yes/No)?

We have a script copying a file and this message is appearing= Value Path exists, overwirte(Yes/No)? We want to suppressed the pop-up, the /y is to do it but fails, thank you for any ideas? copy /Y \\...
user24471638's user avatar
2 votes
1 answer
112 views

VSCode Pylance false-positive (?) reaction on ImportError

I am trying to write cross-platform app in python. I want to use uvloop (only if possible), using this code: import asyncio try: import uvloop asyncio.set_event_loop_policy(uvloop....
nick's user avatar
  • 31
1 vote
1 answer
134 views

Getting IDE0079 ("Remove unnecessary suppression") to play well with NDepend suppressions?

Sometimes I'll have an NDepend rule that I want to keep enabled in general, but want to disable for a specific case. So, I'll suppress it as in the following example: [SuppressMessage( &...
Bob Vesterman's user avatar
0 votes
0 answers
118 views

Which module to specify in Python's filterwarnings()?

Which module should I specify in the call to warnings.filterwarnings()? It does not seem to be the module where the warn() was issued, certainly not with imported third-party modules. My concrete case:...
Jan Frederik's user avatar
0 votes
1 answer
73 views

Appropriate use of `void **` for garbage-collected structs in C?

I need some help with void ** pointers. In implementing a garbage collector in C (automatic reference counting), I've found I need a special assignment operator (similar to what C++ does with std::...
rshadr's user avatar
  • 11
0 votes
0 answers
69 views

How to suppress specific Warnings in Java with Gradle in build.gradle file?

I have a number of "Type safety" warnings in Java and I don't want to suppress them all since its across a number of files and packages. To suppress those warnings I need to suppress "...
user3822558's user avatar
2 votes
1 answer
810 views

How to suppress "Line too long" warning (pyright-extended) in Replit Python?

When coding in Python using Replit, I get the annoying warning "Line too long" (pyright-extended). How can I get Replit to always ignore displaying this type of warnings?
Snostorp's user avatar
  • 780
0 votes
1 answer
100 views

How to suppress MSBuild warning when external EXE project defined in sln file cannot be found

I have a Visual Studio solution file for a plugin DLL that works just fine when I build locally via VS. It contains a "project" that is a reference to the executable I need to use as my VS ...
Tom Bogle's user avatar
  • 489
0 votes
0 answers
171 views

Can you enable -Werror=format in Clang, but still allow non-literal format strings? (without using -Wno-format-security)

I just added -Werror=format to our makefiles, and I started getting some errors where we were passing non-literal format strings to printf-like functions. (Yeah, not the best idea, but it was mostly ...
Bwmat's user avatar
  • 4,514
0 votes
0 answers
343 views

Suppressing pyspark warnings before creating session

I am having trouble suppressing pyspark warnings when working locally on my computer. I am getting the following warnings, and I would like to "suppress" them: WARN Utils: Your hostname, [...
ThePortakal's user avatar
1 vote
1 answer
1k views

How to suppress warning "Be aware, overflowing tokens are not returned"

I am using NewsSentiment, a targeted sentiment analysis library for Python. It is (too) occasionally throwing the warning: Be aware, overflowing tokens are not returned for the setting you have ...
Steve's user avatar
  • 1,009
1 vote
1 answer
212 views

xcodebuild swift package: supress all warnings from dependent Swift packages but not the main target

How to suppress all of the warnings from third-party dependencies but not from the main target? A lot of third-party dependencies installed via SPM pollute the build log with warnings, those are not ...
Richard Topchii's user avatar
0 votes
1 answer
62 views

JAVA MAVEN BUILD fails. Unable to SUPRESS WARNINGS

I’m using maven version 3.6.3 mvn package command fails with the below error message: [INFO] Scanning for projects... [INFO] [INFO] ---------------------< mypdf:mypdf >-----...
Ashar's user avatar
  • 3,245
0 votes
0 answers
58 views

Lib.Harmony resharper Name '__instance' does not match rule 'Parameters'. Suggested name is 'instance'

Any ideas on how I can not just suppress/ignore but instead say to resharper that this is expected and okay for me? I'm using JetBrains Rider 2023 Adding the attribute of inconsistent naming [...
sunnamed's user avatar
  • 213
1 vote
2 answers
2k views

Suppress warning in Rider for a specific project

I am working on a project that only contains Models and I have a lot of properties like this one: public string FromReversed { get { return From.ReverseString(); } #if ...
Tono Nam's user avatar
  • 35.7k
0 votes
0 answers
269 views

Flutter building Windows app warning when objectbox added in pubspec.yaml

When I start debug or run Flutter app (VS Code) have warning : CMake Warning (dev) at C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/...
Vadym Pokhyliuk's user avatar
1 vote
1 answer
45 views

How to ignore compiler warnings in Eclipse for generated code when using Gradle's Eclipse plugin?

I have a Java library that includes a large amount of generated code in the src/gen/java directory. The code generator isn't very mature, so the generated code triggers tons of Eclipse warnings. ...
jstricker's user avatar
  • 2,180
0 votes
1 answer
193 views

Gnuplot: How to disable "WARNING: Plotting with an 'unknown' terminal."?

In a Gnuplot file, I am using the following "subroutine" file to compute dimensions of some table: # Sets: # size_x ,min_x, max_x, # size_y, min_y, max_y. # Dummy plot to get statistical ...
emacs drives me nuts's user avatar
1 vote
1 answer
81 views

Annotate that a class method used in the constructor instantiates some class members

I have a class with constructors that share part of the initialization procedure. The IDE does not detect that initSomeExampleMembers() instantiates Map, and it therefore notifies me with "after ...
Andrea Bardelli's user avatar
2 votes
2 answers
256 views

Create a list of all messages, warnings, and errors returned by a function

I have a function in R that calls other functions. Occasionally, those functions can return the same message. I only want the message to print once. What is the best way to handle that? In the example ...
missgwolf's user avatar
  • 388
0 votes
1 answer
115 views

How can I mute warnings and errors in SVN?

When I run command like svn ls *.py, it throws warnings since some of *.py files in the working dir are not under track. I wonder if I can somehow mute warnings and errors from an svn command? I know ...
cat's user avatar
  • 95
0 votes
0 answers
63 views

Suppress "value stored to during its initialization is never read"

I'm using Xcode as my IDE on macOS for some simple pure-C code. The code uses stdlib's rand. A former thread here suggested calling rand twice near the start of main to better randomize it. So I added ...
Maury Markowitz's user avatar
1 vote
0 answers
41 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
1 answer
198 views

What is the Warning ID of the "No XML encryptor configured." warning

I am trying to suppress the warning: No XML encryptor configured. Key {xxx} may be persisted to storage in unencrypted form. and am having the hardest time finding the warning ID for it. The warning ...
Serj Sagan's user avatar
  • 29.9k
0 votes
0 answers
95 views

How can I eliminate non fatal PHP warnings from my error log file

This is in regard to a shared web hosting plan, so I only have limited control over the server. I do occasionally write PHP modules to assist various tasks, and so I have edited my PHP.INI file to ...
Randy's user avatar
  • 311
0 votes
0 answers
80 views

Is there a way to suppress deprecation warnings about a specific final class in Java?

My project depends on a library that deprecated a final class. It's hard to migrate to a substitute class and we don't have time to do it now. At the same time, I don't like it when there are a lot of ...
Denis Stafichuk's user avatar
0 votes
1 answer
408 views

Disable Kafka Warnings for Spark Streaming Application

I use Spark Structured Streaming (pyspark) to read data from Kafka topic. It works well but when I open executors stderr my whole log page is WARN from Kafka saying that kafkadataconsumer is not ...
Huvi's user avatar
  • 73
0 votes
0 answers
41 views

How to prevent php script from returning a return code on warnings?

php 7.4.14 on Windows I'm modifying a script that is launched from a batch file. After the script I test for errorlevel 1 and jump over code that deletes files, since I want to process those files ...
Mushu's user avatar
  • 99
2 votes
1 answer
225 views

swig ignoring unknown base class

I am developing a c++ -> python wrapper using swig. I am trying to suppress Warning 401: Nothing known about base class 'xxx'. Ignored. base.h: #ifndef _BASE_H_INCLUDED_ #define _BASE_H_INCLUDED_ ...
uuu777's user avatar
  • 880
4 votes
1 answer
1k views

Deserializing with generics using Micronaut Serialization without using @SuppressWarnings("unchecked")

I try to deserialize a generic Object W<T> from JSON with Micronaut Serialization , it works, but the compiler produces an "unchecked assignment" warning. I would like to achieve the ...
jonas's user avatar
  • 609
0 votes
0 answers
474 views

How to use suppress warnings without knowing the specific error type?

I recently ran into a compilation error that was red flagging files as well. @Suppress("DSL_SCOPE_VIOLATION") plugins { alias(libs.plugins.spring.framework.boot) apply false } I know ...
SageJustus's user avatar
  • 1,030
-1 votes
1 answer
75 views

Supress warning on recursive integer_sequence expansion?

I originally asked a question on how place holder generators work using integer_sequence expansion: How does this placeholder generator work? Using this I wrote the following header-only library: /// ...
FatalSleep's user avatar
1 vote
3 answers
3k views

node internal error MODULE_NOT_FOUND by global install but not by local install

My goal is to get a cli I can execute every where. Seem the better way is global install. But when I try, it raise an error like if a required module was missing. Can't resolve this even after an npm ...
B Jam's user avatar
  • 145
5 votes
1 answer
773 views

Suppress Python warnings in multiple threads

While using OneHotEncoder and GridSearchCV, I received a series of warnings, which stated the following: /anaconda3/lib/python3.9/site-packages/sklearn/preprocessing/_encoders.py:182: UserWarning: ...
Ars ML's user avatar
  • 147

1
2 3 4 5
17