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
14
votes
3 answers

Resize PyTorch Tensor

I am currently using the tensor.resize() function to resize a tensor to a new shape t = t.resize(1, 2, 3). This gives me a deprecation warning: non-inplace resize is deprecated Hence, I wanted to switch over to the tensor.resize_() function, which…
LL_
  • 173
  • 1
  • 1
  • 7
13
votes
3 answers

getSize() deprecated in API level 30

I used the getSize() method to get the screen sizes: override fun onCreateDialog(savedInstanceState: Bundle?): Dialog { val fragmentActivity = requireActivity() ... val wm = fragmentActivity.getSystemService(Context.WINDOW_SERVICE) as…
alexrnov
  • 2,346
  • 3
  • 18
  • 34
13
votes
1 answer

Relying on service auto-registration error on ORM entity

I am developing a Symfony 3 application. Symfony profiler logs tell me: Relying on service auto-registration for type "App\Entity\SubDir\Category" is deprecated since version 3.4 and won't be supported in 4.0. Create a service named…
Jérôme Verstrynge
  • 57,710
  • 92
  • 283
  • 453
13
votes
3 answers

Dealing with deprecated methods in android

I'm currently building an app targeting API 23, with a minimum API of 19. In API 23 some of the methods of the android.widget.TimePicker component was replaced. For example: TimePicker.getCurrentHour(); was replaced by: TimePicker.getHour(); Now,…
Moshik L
  • 410
  • 1
  • 5
  • 14
12
votes
2 answers

ActivityTestRule is deprecated on android test

This is a scope of my instrumented test: ... import androidx.test.rule.ActivityTestRule @RunWith(AndroidJUnit4::class) @LargeTest class InstrumentDialogFragmentTest { @get:Rule val activityRule =…
12
votes
4 answers

I'm trying to call event but my Visual Code say ("event is deprecated ts(6385)")

I'm studying Javascript using Visual Code and every time a similar exercise that uses 'event' (the event shows in the code with the strikethrough like e̶v̶e̶n̶t̶) appears I can't complete it because of this annoying issue. In the description pop up…
12
votes
5 answers

How to exclude deprecation messages from logs in Symfony 4?

I have migrated an application from Symfony 3.4 to Symfony 4.4. Now I have a lot of deprecations for each request/ Sf command (I can't fix that deprecations). How can I exclude deprecations from the log for this Symfony App?
acantepie
  • 329
  • 1
  • 3
  • 9
12
votes
3 answers

Mark as deprecated function parameters in C++14

Reading this blog post and its comments, I have noticed that it gives as an example the possibility of marking specific function parameters as deprecated, as in (exaple taken from the post): // Deprecate a function parameter int…
bracco23
  • 2,181
  • 10
  • 28
11
votes
1 answer

pkg_resources is deprecated as an API

When I try to install from a .tar.gz package, while making warnings into errors: python -W error -m pip install /some/path/nspace.pkga-0.1.0.tar.gz I get this error: ERROR: Exception: Traceback (most recent call last): File…
Anthon
  • 69,918
  • 32
  • 186
  • 246
11
votes
3 answers

How to mark a *standard library* function/method as deprecated (or disabled altogether) in my project?

I'm trying to somehow disable/mark as deprecated the hideous std::string::operator=(char) overload (which in my experience is used only when mistakingly assigning an integer to a string, and causes subtle and difficult to track bugs). I tried…
Matteo Italia
  • 123,740
  • 17
  • 206
  • 299
11
votes
1 answer

Rails 4.2 DEPRECATION WARNING: `serialized_attributes` is deprecated without replacement,

This warning shows up for me (for everyone) in the majority of controller tests. I know its just a warning...for now...until 5 is released. I am unsure what I need to change to comply with this deprecation. What has changed with…
hellion
  • 4,602
  • 6
  • 38
  • 77
10
votes
5 answers

Geocoder - getFromLocation() deprecated

I've received a message that this function (or it's constructor) has been deprecated. There's a new constructor of that function that accepts an additional parameter 'Geocoder.GeocodeListener listener' but that new constructor requires an API Level…
Stefan
  • 2,829
  • 5
  • 20
  • 44
10
votes
3 answers

Tracing back deprecated warning in pytorch

I am training yolov3 on my data using this code here : https://github.com/cfotache/pytorch_custom_yolo_training/ But I am getting this annoying deprecation warnings Warning: indexing with dtype torch.uint8 is now deprecated, please use a dtype…
10
votes
0 answers

Gulp4, gulp-imacss and Deprecation Warning

I study work with Gulp 4 and use plugin 'gulp-imacss' and other var imacss = require('gulp-imacss') farther var imguri = { in: source + 'images/inline/*', out: source + 'scss/images/', filename: '_datauri.scss', …
Evgeny Palguev
  • 599
  • 3
  • 18
10
votes
2 answers

RemovedInDjango19Warning: Model doesn't declare an explicit app_label

Have gone through Django 1.9 deprecation warnings app_label but answers couldn't fix my problem, so asking again. I have an app that is added to INSTALLED_APPS in settings. when ever I run manage.py runserver, I get this warning, [trimmed path to…