primordic/IssueDupesLite huggingface dataset:
Repository: Intervention/image

Issue #737: Trim problem
Created: 2017-06-08T10:10:25Z
Hi
I am trying to use the trim() (with imagick driver), in order to remove the unnecessary transparent space in the image below :

Here's the code that comes with it :
use Intervention\Image\ImageManagerStatic as Image;

Image::configure(['driver' => 'imagick']);

$image = Image::make('public/trim.png')->trim()
            ->save('public/trimmed.png');

The result of that code, is that I am getting a 1x1 transparent image.
I tried another approch with the trim method, like ->trim('transparent') or ->trim('transparent', null, 10) . Solution that I found here : Issue #156
I tried to use other features, like greyscale(), and that works perfectly.
Other informations :
PHP version : 7.1.5
PHP imagick : 3.4.3_2
Imagemagick : 7.0.5-10

Duplicate issue #1058: trim() using ImageMagick 7
Created: 2020-11-16T15:39:46Z
intervention/image v2.5.1
intervention/imagecache v2.5
laravel/framework v8.14.0
php v7.4.12
ImageMagick 7.0.10-38 Q16 x86_64
I have added ImageMagick to a new Laravel install and am using code that has worked under Laravel and ImageMagick 6 (I cannot remember the actual version).
Image::make($pathToImage)
//    ->trim()
     ->sharpen(0)
    ->blur(0)
    ->brightness(0)
    ->contrast(0)
    ->resize(
        3000,
        3000,
        static function ($constraint) {
            $constraint->aspectRatio();
        }
     )
    ->resizeCanvas(3000, 3000, 'bottom')
    ->save($newFilename . '.jpg')
    ->encode('jpg', 85);


Using the new versions ->trim() creates a blank image whereas before it trimmed as expect.
Removing ->trim(), and all the other commands work perfectly.
Has anyone seen this before or could offer some suggestions?

Closing comment (2021-03-18T17:36:45Z): This may be a duplicate of #737.
Repository: Intervention/image

Issue #939: Option to add utf-8 characters on image 
Created: 2019-05-01T09:03:23Z
Can we have an option for utf-8 characters
May be something like $font->encode('utf-8');.
$img->text('foo', 0, 0, function($font) {
    $font->encode('utf-8');
});

Currently, it is not supporting these characters.
I have tested it with following fonts

Arial unicode ms
Devanagari
Noto_Sans

All the above fonts supports hindi language
This is the expected result In Indian (Hindi) language.

इण्टरनेट पर हिन्दी के साधन

This is how it getting rendered

Duplicate issue #702: Hose intervention support with Khmer Unicode?
Created: 2017-03-17T17:43:53Z
I'm testing to create watermark by using Intervention images
But it is not work properly please check the images below
The text which i used to create watermark " ប្រទេសកម្ពុជា " and the result is not better so I'm try to used any PHP method to decode or can create this job better.

Closing comment (2024-01-02T13:50:49Z): I think this is a duplicate of #939
Repository: Intervention/image

Issue #143: Text wrapping
Created: 2014-05-27T20:04:14Z
I have an image and I would like to have a paragraph of text appearing within a certain bounded box on the image. Is there any way with the current implementation to define a bounding box and have the text wrap/resize within it to fit inside?
If not, I think this would be a useful feature to have.
Thanks

Duplicate issue #878: How can I set the width of the text?
Created: 2018-08-12T20:48:05Z
Is it possible to be able to set the width of the text()? If I set this to lets say 300, the text will not overflow out of that 300px and instead start a new line. How can I Achieve this?
From this example (straight from docs), is it possible to set the bounding box? How will I do so?
$img->text('foo', 0, 0, function($font) {
    $font->file('foo/bar.ttf');
    $font->size(24);
    $font->color('#fdf6e3');
    $font->align('center');
    $font->valign('top');
    $font->angle(45);
});

Closing comment (2023-12-08T19:04:13Z): Duplicate of #143
Repository: IronLanguages/ironpython3

Issue #659: The special method float.__round(self, ndigits) returns an int
Created: 2019-10-22T18:36:34Z
Description
float defines two overloads of __round__: __round__(self) and __round__(self, ndigits)
Where ndigits determines the decimal places to round to.
The overload __round__(self) always returns an int.
The overload __round__(self, ndigits) always returns a float
Somewhat confusingly this means that __round__(self) != __round__(self, 0) when self is moderately large.
Steps to Reproduce
In Python 3.4
>>> type(round(2.3, 0))
<class 'float'>
>>> type(round(2.0))
<class 'int'>

In IronPython
>>> type(round(2.3, 0))
<class 'float'>
>>> type(round(2.0))
<class 'float'>

Versions
Found in commit 11ecefa
Fix Notes
Something like the following in FloatOps
public static object __round__(double self) {
   var result = new BigInteger(__round__(self, 0));
   return result.AsInt32(out var intResult) ? intResult : result;
}

But this would need to be tested against the CPython.

Duplicate issue #505: round of an integer should return an integer
Created: 2018-12-02T16:28:54Z
x = 111111111111111111111111111111
assert round(x) == x
assert round(x, 2) == x
See https://github.com/IronLanguages/ironpython3/blob/master/WhatsNewInPython31.md
Also round with no ndigits argument always returns an int:
x = 1e16
assert type(round(x)) == type(int(x)) # using type(int(x)) since we haven't unified int/long yet

Closing comment (2019-10-22T21:40:22Z): Round of int returns an int is fixed in, #656.
The second part of the initial issue is the same as #659 and we can use that to track it.
Repository: IronLanguages/ironpython3

Issue #961: Changes to the Shared IO are not picked up
Created: 2020-10-06T16:18:09Z
The following program does not write to memoryStream as expected (regression from IronPython 2):
var memoryStream = new MemoryStream();
var engine = Python.CreateEngine();
engine.Runtime.IO.SetOutput(memoryStream, System.Text.Encoding.Default);
engine.Execute("print('Hello world')");
It appears that the SharedIO streams are read when the PythonContext is created (which occurs on Python.CreateEngine). Because of this any changes after the fact are not picked up. In IronPython 2 there is a check for changes in PythonFile.GetWriter. A simple solution might be to use SharedIO.GetStreamProxy in PythonIOModule.CreateConsole instead of using the streams directly.
Workaround is to call SetOutput before creating of the engine:
var runtime = Python.CreateRuntime();
runtime.IO.SetOutput(memoryStream, System.Text.Encoding.Default);
var engine = Python.GetEngine(runtime);
Note: we should probably have a test for the redirected IO.

Duplicate issue #1625: input() returning "LookupError: unknown encoding: codepage___0" in IronPython 3.4 on Windows 11
Created: 2022-12-21T20:25:04Z
Description
The input() function returns "LookupError: unknown encoding: codepage___0" in IronPython 3.4 on Windows 11.
Steps to Reproduce
We initialize our engine simply:
pyEngine = CreatePythonEngine(options);
pyEngine.Runtime.IO.SetInput(stream, Encoding.UTF8);
pyEngine.Runtime.IO.SetOutput(stream, Encoding.UTF8);
pyEngine.Runtime.IO.SetErrorOutput(stream, Encoding.UTF8);
And we run like:
compiledCode.Execute(Scopes[0]);
Expected behavior:
This is how our "raw_input" version looks in 2.7.12.1000
>>> a = raw_input("Input Text: ")
﻿Input Text: Hello, world
>>> print(a)
Hello, world
>>> 

Actual behavior:
This is how the "input" version looks in 3.4.0.1000:
>>> a = input("Input Text: ")
Input Text: Traceback (most recent call last):
LookupError: unknown encoding: codepage___0
>>> 

Versions
Running Windows 11 and IronPython 3.4.0.1000

Closing comment (2022-12-21T21:22:08Z): Hmm, I'm guessing it's something similar to #961. Although that issue is "resolved" it looks like the encoding on stdin's TextIOWrapper is not updated so that could be causing issues...
You could try something like this as a workaround:
var runtime = Python.CreateRuntime(options);
runtime .IO.SetInput(stream, Encoding.UTF8);
runtime .IO.SetOutput(stream, Encoding.UTF8);
runtime .IO.SetErrorOutput(stream, Encoding.UTF8);
pyEngine = Python.GetEngine(runtime);
Repository: IronLanguages/ironpython3

Issue #78: Loading pyd python modules
Created: 2016-07-22T13:16:25Z
Many essential python packages (pycrypto, lxml, etc...) come with prebuilt binaries as modules. Usually these packages are written in C and compiled as native windows images as pyd files.
I understand that IronPython can't load native dll-s, so there is no way to use such libraries.
Unfortunately this seems to be a show-blocker for me in my effort to use Cisco YDK Api from IronPython.
But perhaps there is a light at the end of the tunnel....
I found IronClad, that is targeting this issue but seems a bit abandoned. I wanted to ask if someone heard about IronClad, used it, and whether it can effectively solve this problem. Or are there any other possibilities to use these python packages from IronPython ?

Duplicate issue #1207: How to use .pyd file in latest version(3.4.0)?
Created: 2021-05-06T07:06:08Z
Prerequisites
The issue tracker is used to report bugs and request new features, NOT to ask questions.
Questions should be posted to the users mailing list which can be accessed at
https://ironpython.groups.io/g/users.

[ *] Are you running the latest version?
 Are you reporting to the correct repository?
 Did you perform a cursory search?

Description
I am not sure the pyd lib file can be used in 3.4.0, If so, so much the better

Closing comment (2021-05-06T13:25:17Z): Duplicate of #78. Unfortunately pyd files are DLLs that require the CPython API so they won't work with IronPython.
Repository: IronLanguages/ironpython3

Issue #961: Changes to the Shared IO are not picked up
Created: 2020-10-06T16:18:09Z
The following program does not write to memoryStream as expected (regression from IronPython 2):
var memoryStream = new MemoryStream();
var engine = Python.CreateEngine();
engine.Runtime.IO.SetOutput(memoryStream, System.Text.Encoding.Default);
engine.Execute("print('Hello world')");
It appears that the SharedIO streams are read when the PythonContext is created (which occurs on Python.CreateEngine). Because of this any changes after the fact are not picked up. In IronPython 2 there is a check for changes in PythonFile.GetWriter. A simple solution might be to use SharedIO.GetStreamProxy in PythonIOModule.CreateConsole instead of using the streams directly.
Workaround is to call SetOutput before creating of the engine:
var runtime = Python.CreateRuntime();
runtime.IO.SetOutput(memoryStream, System.Text.Encoding.Default);
var engine = Python.GetEngine(runtime);
Note: we should probably have a test for the redirected IO.

Duplicate issue #1204: Console.SetOut does not output print statement output
Created: 2021-05-04T18:58:02Z
Prerequisites
The issue tracker is used to report bugs and request new features, NOT to ask questions.
Questions should be posted to the users mailing list which can be accessed at
https://ironpython.groups.io/g/users.

[ X ] Are you running the latest version?
 Are you reporting to the correct repository?
 Did you perform a cursory search?

Description
Am using IronPython 3.4.0-alpha on c# Visual Studio project.  Was previously using 2.7.9 and using RedirectToConsole() to and then setting Console.SetOut to a text writer.  This used to print the output of a print statment.  That now print nothing at all but no errors are generated.
Steps to Reproduce

Redirect output to console with Engine.Runtime.IO.RedirectToConsole
Set console output to text writer with Console.SetOut(TextWriter.Synchronized(writer [writer is a TextWriter instance])
Send the python string print("Hello").
Nothing appears in the TextWriter object.

Expected behavior:
Hello should have been printed in the TextWriter.
Actual behavior:
Nothing appeared in the TextWriter.  This exact same code works correctly in 2.7.9.
Versions
3.4.0-alpha

Closing comment (2021-05-04T19:06:00Z): Thanks for the report! Might be related to #961
Sample to reproduce:
using System;
using System.Diagnostics;
using System.IO;
using IronPython.Hosting;

var engine = Python.CreateEngine();
engine.Runtime.IO.RedirectToConsole();

var writer = new StringWriter();
Console.SetOut(TextWriter.Synchronized(writer));

engine.Execute("print('hello world')");
Debug.Assert(writer.ToString().TrimEnd() == "hello world");
Repository: JakeWharton/Telecine

Issue #91: Disable "show pointer touches" even when recording crashes.
Created: 2016-03-08T16:43:18Z
Otherwise people are stuck in this mode and they potentially don't even have developer options enabled.

Duplicate issue #124: Show touches persists when recording process is killed by OS
Created: 2016-07-18T08:04:45Z
I have experienced this couple of times, not sure 100% of the times
Trying to document a crash in our app and Telecine works great up to the moment the app crashes. It then goes into a "ghost" state - Telecine missing from notification area, can't find a way to stop it, I still see the touch highlights on the screen, don't see the video recording in the pictures folder.
Android N on Nexus 5X (build NPD56N)

Closing comment (2016-07-18T08:09:17Z): I see that show touches remained enabled so I assume that Telecine crashed and that it just haven't disabled the show touches setting. Probably related to #91
Repository: JakeWharton/Telecine

Issue #149: Update for O
Created: 2017-03-21T22:23:55Z
Now that O is out, a little birdy told me a few weeks ago Telecine is broken. This is presumably due to the overlay changes and I think we just need a new flag on O to make it work again.

Duplicate issue #163: Unable to start video on Android Oreo
Created: 2017-08-28T03:16:00Z
I just installed Android Oreo, and when I went to use the app to record something, I couldn't click the start button as it appears the actually be behind the status bar. When I tap on it, all it does is start to show the notification controller. See attached screenshot.

Closing comment (2017-08-28T03:59:04Z): Dupe of #149. Haven't had time to get to this yet, sorry.
Repository: JakeWharton/Telecine

Issue #149: Update for O
Created: 2017-03-21T22:23:55Z
Now that O is out, a little birdy told me a few weeks ago Telecine is broken. This is presumably due to the overlay changes and I think we just need a new flag on O to make it work again.

Duplicate issue #181: Can't stop recording (and save) on Android 8
Created: 2018-05-23T05:47:36Z
On Android 8, it is impossible to click on the red button to stop recording and save.
The Android drop down menu takes the focus, somehow disabling the button.
The application is otherwise a wonder, nice job!

Closing comment (2018-05-23T15:03:04Z): Duplicate of #149.
Repository: JakeWharton/Telecine

Issue #174: Telecine refuse to stop recording when lunched
Created: 2018-02-27T12:34:55Z
Expected behavior
App should record screen activities, store the recorded activity, and user should be able to stop the recording when they are done.
Actual behavior
When the application is lunched to start recording the app only stops when it want to stop recording, It sometimes freezes the screen and makes it difficult to navigate the screen.
How to reproduce
Download Telecine from play store here, launch it the app, try to stop the recording.
•	Operating system: Android Version 7.0
•	Device used: Tecno Boom J8
•	App Version: 1.6.2
Recording Of The Bug
https://youtu.be/D1ibwCpvRtg
Posted on Utopian.io -  Rewarding Open Source Contributors

Duplicate issue #176: App does not record anything on Android 6.0.1
Created: 2018-02-27T18:48:25Z
Expected behavior
Clicking on the record button should allow us to record everything that is displayed on screen.
Actual behavior
When I clicked on record option, a pop up was displayed saying that the app will record everything that us displayed on screen but it did not record anything.
I tried multiple times but it didn't record anything.
How to reproduce

Open Telecine
Click on record (I enabled three second countdown and recording notification).
The app will not record anything.


Browser:  Telecine v 1.6.2
Operating system: Android 6.0.1

Recording Of The Bug
https://youtu.be/QZGOx4nrzuQ
Posted on Utopian.io -  Rewarding Open Source Contributors

Closing comment (2018-02-27T18:51:05Z): Looks like a dupe of #174. The overlay never launches because something is already using MediaProjection. I suppose we should toast or something.
Repository: JakeWharton/Telecine

Issue #149: Update for O
Created: 2017-03-21T22:23:55Z
Now that O is out, a little birdy told me a few weeks ago Telecine is broken. This is presumably due to the overlay changes and I think we just need a new flag on O to make it work again.

Duplicate issue #175: Bug found while close the tab on telecine.
Created: 2018-02-27T12:36:07Z
Expected behavior
In this application the tab should be closed while I starting video as it closes like in the other apps during video.
Actual behavior
We are not able to close this tab during video as it shows some unknown error occurred.
How to reproduce
Download the app.
Open the app.
Click on red video bar right corner below option.
Click on start now.
See in the right top there is an x and red colour video bar.
Then I click on  'x' close bar, unknown error occurred.

App: Telecine- version 1.6.2
Operating system: mi A1 8.0 "Oreo"

Recording Of The Bug
https://youtu.be/urFORUKj5QA
Posted on Utopian.io -  Rewarding Open Source Contributors

Closing comment (2018-02-27T13:43:26Z): Dupe of #149.
Repository: JakeWharton/Telecine

Issue #2: First-Run Wizard
Created: 2015-01-09T06:32:30Z
Because otherwise how the hell do you know how to stop recording?

Duplicate issue #81: “Touch the clock area to stop recording.” is misleading,actually u should click battery icon to stop recording
Created: 2015-11-04T03:46:27Z
In my Nexus 6 and another test phone which I dont know its type ,Touch the clock area will not stop recording,but click the red area will work
@JakeWharton ,maybe edit the illustration?

Closing comment (2016-08-26T22:52:20Z): Closing as a duplicate of #2 and a user education problem.
Repository: JakeWharton/Telecine

Issue #42: Support Record Region
Created: 2015-03-09T16:02:52Z
Via interactive crop overlay

Duplicate issue #183: Can i Record Video Specific View or part
Created: 2018-10-01T13:11:26Z
This library is good but i have one query is can i record a video any specific view or half of screen ?
if yes can please let me know.

Closing comment (2018-10-01T13:12:05Z): This is not supported yet, no. Dupe of #42.
Repository: JakeWharton/timber

Issue #29: Depend on slf4j-api instead of Android Log
Created: 2014-06-19T23:34:14Z
You could depend on slf4j-api instead of android Log, then timber could be used in Java only sub modules/projects.
Or maybe depend on whichever one is present at runtime, so slf4j-api and android are both optional dependencies.
Just a thought... ( might be beyond your vision for this lib )

Duplicate issue #62: Remove android.Log dependency from Timber
Created: 2015-05-14T05:31:17Z
Hi Jake!
My team is working on some core libraries to share on our Android apps and we are thinking about using Timber for logging. The thing is that some of those libraries are pure Java and we don't want to force them to take a dependency on Android. So we are wondering, what is your opinion about removing the android.Log dependency from Timber?
Thanks in advance!

Closing comment (2015-05-14T13:45:15Z): Dupe #29
Repository: JakeWharton/timber

Issue #230: Add Kotlin artifact.
Created: 2017-06-15T21:30:09Z
Logging seems a good use for Kotlin APIs.
With inline functions, users wouldn't have to allocate strings when logging is disabled, and the formatting arguments could perhaps be eliminated.
Would that be useful to this project?

Duplicate issue #251: Lazy Logging with lambdas
Created: 2017-09-29T10:46:33Z
Given we have the need to write something like:
Timber.d("Something was done: " + foo + " and " + that + "with " + expensiveOperation());

It would be nice to avoid calls to expensiveOperation() when no logging is happening (e.g. when "forest" is empty, etc.).
Since now lambda expressions are supported in default toolchain, the syntax could be like this:
Timber.d(() -> "Something was done: " + foo + " and " + that + "with " + expensiveOperation());

For example, it's implemented in Log4j 2.4.

Closing comment (2017-10-05T03:51:52Z): The argument I've made against this in the past is that you're always going to be logging to at least one place. In production it's a ring buffer of events that get included in crash reports and in development it's that plus the actual Android log (if not more places).
Also your first example should be:
Timber.d("Something was done: %s and %s with %s", foo, that, expensiveOperation())
It doesn't change the behavior, but it at least doesn't waste time doing string formatting when there are no loggers.
This is related to #230 somewhat.
Repository: JakeWharton/timber

Issue #338: Kotlin MPP
Created: 2018-10-15T15:06:23Z
Since we're only publishing SNAPSHOT this should be fine. And you can always fall back to the individual artifacts if your Gradle metadata version significantly skews.
Tracking MPP version of Kotlin library.

Duplicate issue #508: The instability of the Sonatype maven central repository
Created: 2024-08-13T05:45:07Z
Our team is using timber-jdk & timber-android, and their version is 5.0.0-SNAPSHOT on Sonatype maven central repository.
See timber-android.
I believe they worked well on Android & Kotlin/Java projects/modules.
But recently we encountered the issue of the instability of Sonatyype maven central repository. And it just gave us 503 sometimes.
So since both snapshot libraries were released Jan, 2019, and I thought both worked well, here I'm asking: do you have plan to have a public release and when?
We've been talking about replacing the 2 snapshot libraries because of the instability of Sonatype maven central repo. But if we had a the public release of timber-jdk & timber-android, that would save us!
Thanks!

Closing comment (2024-08-13T14:44:16Z): A stable version of multiplatform support is tracked by #338. At this time I am not working on this library, and have no plans to resume work any time soon. If you need those specific artifacts, I would download them into local file or a local Artifactory with a stable version. Alternatively, consider looking for an alternative library for logging that has multiplatform support.
Repository: JakeWharton/timber

Issue #273: NullPointerException in WrongTimberUsageDetector when String.format is passed as argument to Kotlin UCallExpression
Created: 2017-11-17T09:01:48Z
This is the minimum example I've been able to create to reproduce the issue:
class MyJavaClass {
    void doFail() {
        new MyKotlinClass(String.format("something"));
    }
}
data class MyKotlinClass(val string: String)
Stacktrace:
NullPointerException:WrongTimberUsageDetector.checkNestedStringFormat(WrongTimberUsageDetector.java:105)
WrongTimberUsageDetector.visitMethod(WrongTimberUsageDetector.java:68)
UElementVisitor$DelegatingPsiVisitor.visitMethodCallExpression(UElementVisitor.java:1065)
UElementVisitor$DelegatingPsiVisitor.visitCallExpression(UElementVisitor.java:1046)
UCallExpression$DefaultImpls.accept(UCallExpression.kt:99)
JavaUCallExpression.accept(javaUCallExpressions.kt:23)
UQualifiedReferenceExpression$DefaultImpls.accept(UQualifiedReferenceExpression.kt:48)
JavaUCompositeQualifiedExpression.accept(JavaUCompositeQualifiedExpression.kt:22)

Duplicate issue #274: NullPointerException in WrongTimberUsageDetector.checkNestedStringFormat()
Created: 2017-11-23T15:32:26Z
Timber: 4.6.0
NullPointerException:WrongTimberUsageDetector.checkNestedStringFormat(WrongTimberUsageDetector.java:105)←WrongTimberUsageDetector.visitMethod(WrongTimberUsageDetector.java:68)←UElementVisitor$DelegatingPsiVisitor.visitMethodCallExpression(UElementVisitor.java:1065)←UElementVisitor$DelegatingPsiVisitor.visitCallExpression(UElementVisitor.java:1046)←UCallExpression$DefaultImpls.accept(UCallExpression.kt:99)←JavaUCallExpression.accept(javaUCallExpressions.kt:23)←UQualifiedReferenceExpression$DefaultImpls.accept(UQualifiedReferenceExpression.kt:48)←JavaUCompositeQualifiedExpression.accept(JavaUCompositeQualifiedExpression.kt:22)

Closing comment (2017-11-27T18:59:18Z): Dupe of #273
Repository: JakeWharton/timber

Issue #116: Timber lint check warns on compile time constants
Created: 2015-12-22T17:42:50Z
Given this code:
Timber.e("this is a really not multiline string"
              + "broken up for clarity")

Actual
Lint warns about using Timber's built in formatting.

Desired
Lint should not warn on compile time constants.

Duplicate issue #320: Turning off warning on Breaking long log messages to multiline text
Created: 2018-06-06T19:06:50Z
Whenever I write too long Timber logs, it warns me with BinaryOperationInTimber, how can I turn it off globally not for a single method invocation?

Closing comment (2018-06-28T20:14:14Z): Dupe of #116, at least the request is. I'm not so sure your example is a bug because you are using Kotlin string templating, but I bet we don't detect that and you're seeing #116.
Repository: JakeWharton/timber

Issue #329:  "Lint fails with 'Obsolete custom lint check' " resurfacing
Created: 2018-08-07T20:02:55Z
Is it possible that latest AGP is triggering #284 again? On  com.android.tools.build:gradle:3.3.0-alpha04:

timber-4.7.1.aar/.../lint.jar: Lint found an issue registry (timber.lint.TimberIssueRegistry) which is older than the current API level; these checks may not work correctly.

Duplicate issue #406: Obsolete custom lint check warnings
Created: 2020-12-20T04:55:50Z
I've switched to Gradle 7.0 and I've been getting warnings from this library about obsolete lint checks. Seems like we just need to recompile against a newer Lint version.
Obsolete custom lint check: Lint found an issue registry (`timber.lint.TimberIssueRegistry`) which is older than the current API level; these checks may not work correctly. Recompile the checks against the latest version. Custom check API version is 1 (3.1), current lint API level is 8 (4.1)

Closing comment (2021-02-26T15:30:44Z): Dupe of #329.
Repository: JakeWharton/timber

Issue #284: Lint fails with "Obsolete custom lint check"
Created: 2018-01-17T07:43:17Z
Executing Lint with the latest Android Gradle Plugin com.android.tools.build:gradle:3.1.0-alpha08 I'll get a warning in the Lint report namely:
Lint found an issue registry (timber.lint.IssueRegistry) which did not specify the Lint API version it was compiled with.
This means that the lint checks are likely not compatible.
To fix this, make your lint IssueRegistry class contain
override val api: Int = com.android.tools.lint.detector.api.CURRENT_API
or from Java,
@Override public int getApi() { return com.android.tools.lint.detector.api.ApiKt.CURRENT_API; }
Applies to variants: debug
Does not apply to variants: release
Lint can be extended with "custom checks": additional checks implemented by developers and libraries to for example enforce specific API usages required by a library or a company coding style guideline.

The Lint APIs are not yet stable, so these checks may either cause a performance, degradation, or stop working, or provide wrong results.

This warning flags custom lint checks that are found to be using obsolete APIs and will need to be updated to run in the current lint environment.
It may also flag issues found to be using a newer version of the API, meaning that you need to use a newer version of lint (or Android Studio or Gradle plugin etc) to work with these checks.
To suppress this error, use the issue id "ObsoleteLintCustomCheck" as explained in the Suppressing Warnings and Errors section.

Duplicate issue #323: Lint saying "Obsolete custom lint check" about the ones here
Created: 2018-06-24T16:27:02Z

Closing comment (2018-06-24T16:30:29Z): Duplicate of #284.
Was already fixed in 56cee66.
Repository: JedWatson/react-select

Issue #25: Allow any type in value
Created: 2014-12-09T12:18:14Z
HTML options tag doesn't allow value to be any other type than string. But this component should allow this because it is usually more convenient to make values as integer ids. Developers shouldn't always make conversion from string to int and vice versa themselves.

Duplicate issue #61: Value is assumed to be string
Created: 2015-02-11T02:06:45Z
https://github.com/JedWatson/react-select/blob/master/lib/Select.js#L367 this code might break if values is number instead of string.
Thanks for the component.

Closing comment (2015-02-14T08:57:49Z): This is a dupe of #25.
Repository: JedWatson/react-select

Issue #4456: findDOMNode deprecated
Created: 2021-02-23T16:36:11Z
The warning is generated from the animated components.

Duplicate issue #4094: Warnings: componentWillReceiveProps in strict mode, Legacy context API, findDOMNode is deprecated
Created: 2020-06-18T06:17:58Z
This issue is a round-up of multiple past issues documenting the same bug. Feel free to check out the linked issues below for more information. This issue is the source of truth going forward to investigate the issue, report findings, and implement a bug fix.
Issue:

Warning: Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://fb.me/react-unsafe-component-lifecycles for details.

Warning: Legacy context API has been detected within a strict-mode tree.

The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.

Warning: findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of NodeResolver which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://fb.me/react-strict-mode-find-node

Issues:
#3751
#3720
#3915
#3745
#4068
#3703
If anyone would like to share any further information, please do so.

Closing comment (2021-02-25T18:38:40Z): @Ochaun this is being tracked in #4456
Repository: JedWatson/react-select

Issue #664: Select.Async replaces german letters
Created: 2015-12-12T06:18:16Z
When I type german letters like ä, ö, ü and ß they are replaced by a, o, u and s. This behavoir leads to wrong search results.

Duplicate issue #1214: Doesn't recognize some special characters like ö,ä
Created: 2016-09-13T12:38:48Z
I have Select.Async component with some options (e.g. loadOptions={this._loadOptions}). But it doesn't work well with special characters (ö,ä). It doesn't find an option which contains "ä", no matter what you type "ä" or "a". Any solutions ?

Closing comment (2016-09-28T12:07:47Z): I just encountered the same issue. Yes, setting ignoreAccents to false works.
It seems that this concerns only Async component as I'm using basic Select component and special characters are working with it just fine. I'm also using custom filterOptions-function with Select.Async so maybe it's combination of those things.
This is duplicate of #664
Repository: JedWatson/react-select

Issue #273: Add optional title attribute to options?
Created: 2015-06-25T19:17:39Z
For my use case it would be nice to add an optional title attribute to select options. Theoretical example use:
<Select
  value="one"
  options={[
    {
      value: 'one',
      label: 'One',
      // Adds a title attribute to the option DOM element.
      title: 'The first element in this example list.'
    }
  ]}
/>
Is this something you folk would be open to? If so I'd be happy to work on a PR.

Duplicate issue #819: option should support title property when needed
Created: 2016-03-07T06:05:10Z
such as
<option tile="example">example</option>

Closing comment (2017-08-07T08:49:03Z): Duplicates #273
Repository: JedWatson/react-select

Issue #2682: [v2] Backspace on single select results in [] rather than {}
Created: 2018-06-06T03:20:32Z
Are you reporting a bug or runtime error?
Bug. To reproduce, you can use the link below. Note: This is NOT in isMulti mode. [] makes sense for isMulti.
Code Sandbox

Select a value.
Click on the select to expand the options menu.
While the menu is still open, hit backspace.
Actual: onChange is called with []
Expected: onChange is called with {}

This seems to be an issue that has happened in the past.
Let me know if I can provide any other details. The code sandbox above is simply one of your examples, but with an added console.log call from onChange, nothing else.

Duplicate issue #1344: I have multi=false but react-select emits a change event with an array for the value.
Created: 2016-11-02T20:27:56Z
I have multi={false}. But sometimes, react-select emits a change event with an empty array for the value.
I am using:
AsyncCreatable
react-select v1.0.0-rc.2
Chrome Version 54.0.2840.71 (64-bit)
Mac OS X
Here is the stack trace from the Chrome console:
Jed emitted an array []
Uncaught Error: IllegalState(…)
CompanyPicker._this.onChange			@	CompanyPicker.jsx?9896:64
setValue								@	Select.js?407b:654
popValue								@	Select.js?407b:689
handleKeyDown							@	Select.js?407b:509
ReactErrorUtils.invokeGuardedCallback	@	ReactErrorUtils.js?6b31:70
executeDispatch							@	EventPluginUtils.js?0958:89
executeDispatchesInOrder				@	EventPluginUtils.js?0958:112
executeDispatchesAndRelease				@	EventPluginHub.js?c6b1:44
executeDispatchesAndReleaseTopLevel		@	EventPluginHub.js?c6b1:55
forEachAccumulated						@	forEachAccumulated.js?b898:25
processEventQueue						@	EventPluginHub.js?c6b1:231
runEventQueueInBatch					@	ReactEventEmitterMixin.js?8a20:18
handleTopLevel							@	ReactEventEmitterMixin.js?8a20:29
handleTopLevelImpl						@	ReactEventListener.js?2365:73
perform									@	Transaction.js?6dff:138
batchedUpdates							@	ReactDefaultBatchingStrategy.js?ef70:63
batchedUpdates							@	ReactUpdates.js?ce09:98
dispatchEvent							@	ReactEventListener.js?2365:150

Closing comment (2018-11-20T19:20:00Z): I think this is a duplicate of #2682
Repository: JedWatson/react-select

Issue #1063: minWidth on <input> tag is invalid
Created: 2016-07-02T06:17:54Z
Hi,
There is a breaking change in your ReactInputAutosize library in React 15.2.0 that reports the above error.
For now, I have just downgraded back to 15.1, but this may be something you wish to fix (correcting it in react-input-autosize and bumping the version in this one).
To repro, just upgrade react and view a Select.

Duplicate issue #1080: AutoSize Input throwing warning for minWidth prop
Created: 2016-07-11T10:58:21Z
Warning: Unknown prop minWidth on  tag. Remove this prop from the element.
in input (created by AutosizeInput)
in div (created by AutosizeInput)
in AutosizeInput (created by Select)

Closing comment (2016-07-11T11:58:59Z): Anyway the issue is a duplicate of #1063
Repository: JedWatson/react-select

Issue #2661: Feature Request: async cache-busting
Created: 2018-05-30T15:29:44Z
Request
The ability to empty <Select.Async/>'s cache.
Use Case
We have a fairly search endpoint with parent-child data, where we only want to reveal the child data when the parent value is already "enabled" somewhere.
Example: there is a location 'New York' in USA and 'York' in the UK. When supplying 'York' to our search API, it will return nothing if neither USA or UK are enabled, [New York] when USA is enabled, and [New York, York] when both USA and UK are enabled.
The problem is that because the search string is the same, the smart cache prevents the new request from being made.
Proposed Interface(s)
1. Second argument to loadOptions()
Something like invalidateCache: boolean. Pretty straightforward. For future proofing, maybe an options object would be good as well.
2. Allow refs to provide access to an instance method invalidateCache()
Would instantly empty the cache. This method provides the most flexibility but is also a bit messy and imperative. A similar approach is used in react-virtualized forceUpdateGrid().
<Select.Async ref={node => this.Async = node}/>

// when desired
this.Async.invalidateCache();

It's a pretty trivial feature to implement, so depending on how acceptable the proposed interfaces are, I can send a PR asap. Thanks! :)
(Question re: v2 -- are releases for v1 still planned / PRs for v1 still accepted?)

Duplicate issue #2582: how to clear cache result with ASYNC
Created: 2018-05-02T14:51:30Z
i have the following
<Async 
  autoload={false}
  multi={false} 
  value={this.state.selectValue} 
  onChange={this.updateValue} 
  valueKey="value" 
  labelKey="label" 
  loadOptions={this.getCommsmatrices} 
  onValueClick={this.gotoCommsmatrix}
  cache={false}
/>

getCommsmatrices (input, callback) {
  input = input.toLowerCase(); 
  let options = this.state.options.filter(i => {
  	return i.label.toLowerCase().includes(input) == true;
  });

  let data = {
  	options: options,
  	complete: true 
  };

  setTimeout(function() {
  	callback(null, data);
  }, ASYNC_DELAY);
}
once my results are loaded it stays cached. i want to trigger this cache clean externally. how can this be done?
i want to clear the cache in the following function. I have tried setting isLoading but it does not work.
updateCommsMatrix(service_id){
  this.setState({ isLoading: true });
  this.updateValue(null);

  if(service_id > 0){
    let self = this;
  	this.props.fetchCommsmatricesByService(service_id)
      .then( response => {
        let data = response.payload.data.body.recordset.record;
        let options = self.populateOptionsObject(data, 'id', 'filename');
        options.unshift({ value: '0', label: 'All' });
        return options;
      })
      .then( options => self.setState({options:options,isLoading: false}));
  } else {
    this.setState({ options:{ value: '0', label: 'All'},isLoading: false });
  }

  this.props.dispatch(change('SecurityExemptionsNewForm', 'service_id', service_id));
}

Closing comment (2018-07-05T04:37:32Z): Possibly related to #2661
Repository: JedWatson/react-select

Issue #3982: "input" object of the styles object should receive the same state as the other components
Created: 2020-03-22T20:10:17Z
Feature request/consistency request

What's your use case? Passing a theme object to the <Select /> component and would like to access it
What interface do you have in mind? state.selectProps should exist in the context of this code:

const reactSelectStyles = {
    control: (
        provided, { selectProps: { myTheme: theme } }
    ) => {
        color: theme.color, // Works great
    },
    input: (
        provided, { selectProps: { myTheme: theme } } // <<< Error: Cannot read property of undefined
    ) => {
        color: theme.color,
    }
}
This method of accessing also works fine for dropdownIndicator, menu, singleValue, indicatorContainer, singleValue and every other piece of React-Select that I've tried this with, except for input.

Duplicate issue #4040: Input component does not have selectProps as a prop
Created: 2020-05-07T09:35:22Z
All the react-select components (like control, menu, ...) have selectProps included among their props (as it is described in the documentation) while this is not happening for the Input component.
I`m using version 3.1.0. This is my code:
const customStyles = {
	input: (provided, state) => {
		console.log(state.selectProps) // this outputs: undefined
		return {
			...provided,
			color: state.selectProps.theme.color
		}
	},
}

Closing comment (2020-12-12T05:26:11Z): Duplicate of #3982
Closing this and getting more information. Will update in linked issue when I have more context and info.
Repository: JedWatson/react-select

Issue #59: optgroups
Created: 2015-02-06T14:50:05Z
Is there a way of having option groups, like the standard optgroup element in html select?

Duplicate issue #1004: Is it supported optgroup?
Created: 2016-06-02T16:30:33Z
Hi may I ask you if is supported optgroup, jist like here: http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_optgroup
Thanks

Closing comment (2016-06-09T16:35:03Z): This is a duplicate of #59 and #191
Check out the fork at https://github.com/HubSpot/react-select-plus/ with support for optgroups, although I too would love to see this natively supported.
Repository: JedWatson/react-select

Issue #1971: Uncaught SyntaxError: Unexpected token import
Created: 2017-09-09T15:53:17Z
1.0.0-rc.6 get Unexpected token import error

Duplicate issue #1974: Bug, npm fails to minify with create-react-app
Created: 2017-09-10T13:21:48Z
https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#npm-run-build-fails-to-minify
You may occasionally find a package you depend on needs compiled or ships code for a non-browser environment.
This is considered poor practice in the ecosystem and does not have an escape hatch in Create React App.

To resolve this:

Open an issue on the dependency's issue tracker and ask that the package be published pre-compiled (retaining ES6 Modules).

Closing comment (2017-09-11T02:54:01Z): Closing as a duplicate of #1971
Repository: JetBrains/compose-multiplatform

Issue #2874: iOS. specify GenericFontFamiliesMapping
Created: 2023-03-14T01:46:35Z
We need to specify iOS fonts in NativeFont.native.kt:

Duplicate issue #3173: iOS: Font should default to SF Pro
Created: 2023-05-16T12:40:49Z
https://developer.apple.com/design/human-interface-guidelines/typography#Using-system-fonts

Closing comment (2023-05-16T15:41:41Z): Duplicate of #2874
Repository: JetBrains/compose-multiplatform

Issue #1257: Support Compose foundation module for JS
Created: 2021-10-14T21:13:08Z
Lack of support compose foundation for JS stops the extensions-compose-jetbrains module from Decompose being usable on compose web. It'd be great to get support for this.

Duplicate issue #1369: Support Compose.material on JS target
Created: 2021-11-07T17:04:57Z
Currently I can't use compose.foundation and compose.material on JS target. Do you have any plans for adoption ui components from android compose to js target?

Closing comment (2021-11-07T17:58:39Z): Partially duplicate of #1257
Repository: JetBrains/compose-multiplatform

Issue #668: WebView support for desktop
Created: 2021-05-15T03:36:54Z
How to use webview in compose-jb?

Duplicate issue #1622: Is there a good webview solution for jb?
Created: 2021-12-20T10:17:53Z
Based on the implementation of chrome or Firefox, although currently swing has jcef and javafx has webview, can jb provide a webview component similar to electron? The main reason is that the compatibility of the two is not very optimistic.

Closing comment (2021-12-20T11:03:29Z): Duplicate of #668
Repository: JetBrains/compose-multiplatform

Issue #142: Cannot find declaration of: remember { ... } 
Created: 2020-11-25T14:27:03Z
Workaround:
add to imports
import androidx.compose.runtime.getValue
import androidx.compose.runtime.setValue

Duplicate issue #849: IntelliJ IDEA fails to suggest imports for `remember` delegate
Created: 2021-07-04T14:13:52Z
None of the suggestions provided allow us to import the following imports automatically, which are required for the snippet in the screenshot to work. Only the following error message is present:
Type 'TypeVariable(T)' has no method 'getValue(Nothing?, KProperty<*>)' and thus it cannot serve as a delegate


import androidx.compose.runtime.getValue
import androidx.compose.runtime.setValue

(As seen in the CFW template example)

Closing comment (2021-08-17T11:56:48Z): This is a duplicate of #142
Repository: JetBrains/compose-multiplatform

Issue #4229: Resources: multimodule projects support
Created: 2024-02-04T05:06:31Z
Describe the bug
Two modules has values/strings.xml cause compile error
Affected platforms
Select one of the platforms below:

Android

If the bug is Android-only, report it in the Jetpack Compose tracker
Versions

Kotlin version*: 1.9.22
Compose Multiplatform version*:  1.6.0-dev1397

To Reproduce
Steps and/or the code snippet to reproduce the behavior:

Go to 'compose-multiplatform/components/resources'
Duplicated demo/shared directory to demo/shared2 and only leave demo/shared2/src/commonMain/composeResources/values/strings.xml
Add shared2 to deps of settings.gradle.kts and demo/androidApp
:resources:demo:androidApp:assembleDebug

Expected behavior
Compile succeed
Screenshots

Duplicate issue #4418: Resource usage from multiple modules - org.jetbrains.compose.resources.MissingResourceException
Created: 2024-03-03T21:48:26Z
Describe the bug
I've tried to use a new stable version of compose multiplatform resources and found one problem with iOS build.
When my application module includes internal submodules with resource usage - I always receive runtime crash on iOS app version.
To solve this problem, I have to copy-paste resources from ALL submodules into the APP module. Looks like an iOS bug.

here is the commit with solution: IlyaPavlovskii/YouTubePlayer@9e26611#diff-1b4fc3f655cfb0189c13c5849ed6e536963e18bd502fb3ff8af5a0975180e939
Affected platforms


 Desktop (Windows, Linux, macOS)
 iOS
 Web (K/Wasm) - Canvas based API
 Web (K/JS) - Canvas based API
 Web (K/JS) - HTML library

Versions

Kotlin version*: 1.9.22
Compose Multiplatform version*: 1.6.0
OS version(s)* (required for Desktop and iOS issues): N/A
OS architecture (x86 or arm64): all
Device (model or simulator for iOS issues):  simulator - iOS 17.2
JDK (for desktop issues): -

Expected behavior
Build without copy-paste resources from submodules for iOS build.

Closing comment (2024-03-04T08:19:51Z): Currently using resources from multiple modules is not supported. Documented here: https://www.jetbrains.com/help/kotlin-multiplatform-dev/compose-images-resources.html
Duplicate of #4229
Repository: JetBrains/compose-multiplatform

Issue #1071: error occured when i add external lib like mysql connector java
Created: 2021-08-17T18:37:18Z
dear team as per report this issue to twitter about adding external library like mysql connector java
things perfect working in compiler but after packaging the app . after installation when i open the app app going to backgroud cant show any window .  but in compiler all worked perfectly so now what can  i do

Duplicate issue #1108: App didn't start after packaging exe
Created: 2021-08-25T08:31:54Z
When i add mysql connector jar lib to my project all things worked perfectly but after packaging app didn't open

Closing comment (2021-08-25T11:31:53Z): Duplicate of #1071
Repository: JetBrains/compose-multiplatform

Issue #2305: mingwX64 support
Created: 2022-09-11T20:52:01Z
Any plans to add support for mingwX64?

Duplicate issue #3130: Using Kotlin's C-Interop together with Compose Multiplatform
Created: 2023-05-06T13:34:18Z
Is there an example of how to use the C-interop with Compose Multiplatform?
I can't seem to get it working - adding the import and the plugin from the default-generated build.gradle.kts for Compose Multiplatform gets my IDE screaming at me.
This is the (non-Compose) build.gradle.kts I'm using at the moment:
plugins {
    kotlin("multiplatform") version "1.8.20"
}

group = "me.jay"
version = "1.0-SNAPSHOT"

repositories {
    mavenCentral()
}

kotlin {
    val hostOs = System.getProperty("os.name")
    val isMingwX64 = hostOs.startsWith("Windows")
    val nativeTarget = when {
        hostOs == "Mac OS X" -> macosX64("native")
        hostOs == "Linux" -> linuxX64("native")
        isMingwX64 -> mingwX64("native")
        else -> throw GradleException("Host OS is not supported in Kotlin/Native.")
    }

    nativeTarget.apply {
        compilations.getByName("main") {
            cinterops {
                val libnative by creating
            }
        }
        binaries {
            executable {
                entryPoint = "main"
            }
        }
    }
    sourceSets {
        val nativeMain by getting
        val nativeTest by getting
    }
}

How do I add Compose Multiplatform to this app?

Closing comment (2023-08-19T13:22:59Z): Kinda related to #2305