Questions tagged [deprecation-warning]

A deprecation warning indicates that a method is obsolete. Using a newer method (which has been provided in the meanwhile) is preferred.

A deprecation warning indicates that a method, property or other software feature is obsolete. Using a newer feature (which has been provided in the meanwhile) is preferred.

547 questions
48
votes
8 answers

Preprocessing in scikit learn - single sample - Depreciation warning

On a fresh installation of Anaconda under Ubuntu... I am preprocessing my data in various ways prior to a classification task using Scikit-Learn. from sklearn import preprocessing scaler = preprocessing.MinMaxScaler().fit(train) train =…
Chris Arthur
  • 1,139
  • 2
  • 10
  • 11
46
votes
23 answers

DeprecationWarning: Mongoose: the `strictQuery` option will be switched back to `false` by default in Mongoose 7

I am just making a database called Fruits from my app.js and connecting the database to MongoDB using Mongoose. const mongoose = require("mongoose"); mongoose.connect("mongodb://localhost:27017/fruitsDB", {useNewUrlParser:…
Rahul Saran
  • 467
  • 1
  • 3
  • 8
45
votes
5 answers

buildToolsVersion and compileSdkVersion had been deprecated

I've just noticed in a library module, that compileSdkVersion and buildToolsVersion had recently been deprecated. These are the two configurations, which it complains about (strikethrough text). This currently only affects com.android.library, not…
Martin Zeitler
  • 1
  • 19
  • 155
  • 216
44
votes
9 answers

getSerializableExtra and getParcelableExtra are deprecated. What is the alternative?

I have upgraded targetSdkVersion and compileSdkVersion to 33. I am now getting warnings telling me that the getSerializableExtra(name:) and getParcelableExtra(name:) methods are deprecated. I checked and confirmed from the documentation in the…
40
votes
4 answers

Gradle warning: variant.getOutputFile() and variant.setOutputFile() are deprecated

I am using the following simplified configuration in an Android application project. android { compileSdkVersion 20 buildToolsVersion "20.0.0" defaultConfig { minSdkVersion 8 targetSdkVersion 20 versionCode 1 …
JJD
  • 50,076
  • 60
  • 203
  • 339
34
votes
4 answers

Swift 3 warning for dispatch async

I have this code: DispatchQueue.global(priority: DispatchQueue.GlobalQueuePriority.default).async { let url = URL(string: itemImageURL ) let data = try? Data(contentsOf: url!) if data != nil { …
asheyla
  • 3,175
  • 5
  • 18
  • 34
33
votes
10 answers

variantOutput.getPackageApplication() is obsolete

with Gradle 4.10.1 and the Android Gradle plugin updated to 3.3.0, I get the following warning: WARNING: API 'variantOutput.getPackageApplication()' is obsolete and has been replaced with 'variant.getPackageApplicationProvider()'. the line, with…
32
votes
3 answers

DEPRECATION WARNING: Dangerous query method: Random Record in ActiveRecord >= 5.2

So far, the "common" way to get a random record from the Database has been: # Postgress Model.order("RANDOM()").first # MySQL Model.order("RAND()").first But, when doing this in Rails 5.2, it shows the following Deprecation Warning: DEPRECATION…
29
votes
2 answers

MobileAds.initialize(Context, String) is deprecated

Before it looked like this (passing R.string.admob_application_id): MobileAds.initialize(this, getString(R.string.admob_application_id)); MobileAds method .initialize(Context context, String applicationCode) now reads: This method is deprecated.…
Martin Zeitler
  • 1
  • 19
  • 155
  • 216
29
votes
8 answers

How to suppress specific Lint warning for deprecated Android function?

I use a version switch to support older Android versions. int sdk = Build.VERSION.SDK_INT; if (sdk < Build.VERSION_CODES.HONEYCOMB) { ColorDrawable colorDrawable = new ColorDrawable(shapeColor); //noinspection deprecation …
JJD
  • 50,076
  • 60
  • 203
  • 339
28
votes
1 answer

Gradle 6.0 deprecation warning for JacocoReport configuration

The following Gradle task, which configures JacocoReportBase: task jacocoRootReport(type: JacocoReport) { ... sourceDirectories = files(subprojects.sourceSets.main.allSource.srcDirs) additionalSourceDirs =…
Martin Zeitler
  • 1
  • 19
  • 155
  • 216
26
votes
4 answers

Gradle: List deprecated features

I am getting a warning about the usage of deprecated features in my build. Is there a way to list all the deprecated features so that I may go through and update my code? *clarification I know I can go to the Gradle documentation and see what is now…
Ed Dunn
  • 1,152
  • 3
  • 11
  • 27
23
votes
3 answers

DeprecationWarning: firefox_profile has been deprecated, please pass in an Options object

First, I want to use some addons while selenium controlling my firefox. So, i tried load default profile of firefox in selenium code. My code: from selenium.webdriver.firefox.firefox_profile import FirefoxProfile profile_path =…
cmy2019
  • 239
  • 1
  • 2
  • 4
23
votes
1 answer

Why was datetime removed from Pandas 1.0?

I deal with a lot of data analysis in pandas and use pandas.datetime everyday. Lately I get the warning: "FutureWarning: The pandas.datetime class is deprecated and will be removed from pandas in a future version. Import from datetime module…
tariksalay
  • 367
  • 1
  • 2
  • 9
23
votes
1 answer

How can I deprecate whole message in Protocol Buffers?

According to documentation: deprecated (field option): If set to true, indicates that the field is deprecated and should not be used by new code. Example of use: message Foo { string old_field = 1 [deprecated=true]; } How we can deprecate the…
1
2
3
36 37