deprecation-warning

Method sort_by is deprecated - Possible solutions?

你说的曾经没有我的故事 提交于 2020-07-22 07:52:05
问题 my current rails project is giving a warning of - DEPRECATION WARNING: Method sort_by is deprecated and will be removed in Rails 5.1, as ActionController::Parameters no longer inherits from hash. I've searched for this warning as well as potential fixes but can't find anything at all regarding it. I'm wondering if anybody here would have any suggestions, fixes or replacements for sort_by ? If this is an easy solution I apologies as I'm still learning rails. Thanks for taking the time to read

How do I detect and invoke a function when a python enum member is accessed

£可爱£侵袭症+ 提交于 2020-06-12 07:18:55
问题 I have an enum for which some of the members are deprecated: from enum import Enum class Foo(Enum): BAR = "bar" BAZ = "baz" # deprecated How do it get the following behavior: When somebody writes Foo.BAR , everything behaves normally When somebody writes Foo.BAZ , a DeprecationWarning is issued using warnings.warn("BAZ is deprecated", DeprecationWarning) . Afterwards everything behaves normally. The same behavior should apply when members are accessed in other ways, e.g. Foo("baz") and Foo[

Gradle 6.0 deprecation warning for JacocoReport configuration

会有一股神秘感。 提交于 2020-06-10 07:28:12
问题 The following Gradle task, which configures JacocoReportBase: task jacocoRootReport(type: JacocoReport) { ... sourceDirectories = files(subprojects.sourceSets.main.allSource.srcDirs) additionalSourceDirs = files(subprojects.sourceSets.main.allSource.srcDirs) classDirectories = files(subprojects.sourceSets.main.output) executionData = files(subprojects.jacocoTestReport.executionData) ... } produces these warnings, when building with ./gradlew assembleDebug --warning-mode all : The

Replaced UIWebView with WKWebView, but still same error from Apple

余生颓废 提交于 2020-06-01 07:38:26
问题 I have removed the UIWebView from my app. But when I uploaded the iOS app on iTunes I still got the same message "Re: ITMS-90809: Deprecated API Usage - Apple will stop accepting submissions of apps that use UIWebView APIs" I have searched for UIWebView globally in the project and there are no search results. That simply means UIWebView is removed. I have updated the pods too. I have verified the presence of UIWebView in the app archive using below code: grep -r "UIWebView" . The response is

How should I mark a method as “obsolete” in JS?

China☆狼群 提交于 2020-05-25 03:26:49
问题 I am refactoring a rather large JS file that contains many unrelated methods into something that will regroup the methods together according to their usage, and renaming some of them as needed (to prevent misleading names). However, most of the web pages that actually use this code are spread across different code branches, preventing me from doing a simple find&replace. I could do it in all the different branches, but that requires doing maintenance in 30+ branches at the same time, or

How should I mark a method as “obsolete” in JS?

痴心易碎 提交于 2020-05-25 03:26:46
问题 I am refactoring a rather large JS file that contains many unrelated methods into something that will regroup the methods together according to their usage, and renaming some of them as needed (to prevent misleading names). However, most of the web pages that actually use this code are spread across different code branches, preventing me from doing a simple find&replace. I could do it in all the different branches, but that requires doing maintenance in 30+ branches at the same time, or

How should I mark a method as “obsolete” in JS?

女生的网名这么多〃 提交于 2020-05-25 03:26:10
问题 I am refactoring a rather large JS file that contains many unrelated methods into something that will regroup the methods together according to their usage, and renaming some of them as needed (to prevent misleading names). However, most of the web pages that actually use this code are spread across different code branches, preventing me from doing a simple find&replace. I could do it in all the different branches, but that requires doing maintenance in 30+ branches at the same time, or

How should I mark a method as “obsolete” in JS?

ⅰ亾dé卋堺 提交于 2020-05-25 03:25:21
问题 I am refactoring a rather large JS file that contains many unrelated methods into something that will regroup the methods together according to their usage, and renaming some of them as needed (to prevent misleading names). However, most of the web pages that actually use this code are spread across different code branches, preventing me from doing a simple find&replace. I could do it in all the different branches, but that requires doing maintenance in 30+ branches at the same time, or

setRangeNotifier(RangeNotifier) has been deprecated?

北战南征 提交于 2020-04-13 06:59:27
问题 I am using the alt.beacon library and now I get this warning: warning: [deprecation] setRangeNotifier(RangeNotifier) in BeaconManager has been deprecated. But what is the replacement? I need to range the beacons from a region and the callback RangeNotifier it crucial to implement this feature. public interface RangeNotifier { void didRangeBeaconsInRegion(Collection<Beacon> var1, Region var2); } Anyone has a sample of how the new library is supposed to work? thx! 回答1: Starting with version 2.9