profile
viewpoint
Júlio Cesar Bueno Cotta BugsBunnyBR São Paulo, São Paulo - Brazil

FirebaseExtended/flutterfire 3265

🔥 A collection of Firebase plugins for Flutter apps.

BugsBunnyBR/plugin_gen.flutter 9

A library to generate the flutter code for your plugin

BugsBunnyBR/sealed_unions_generator.dart 8

A project to help generate sealed unions without boiler plate.

BugsBunnyBR/bit-chain 1

blockchain client.

BugsBunnyBR/Fortunes 1

Android app version of Linux fortunes

BugsBunnyBR/form 0

Repository for kotlin form validation

BugsBunnyBR/OcadoApp 0

Android project with focus in splitting production and test code in different modules.

BugsBunnyBR/Quadrant 0

A Gradle plugin for Android that makes navigation easy in multi-module projects.

BugsBunnyBR/spectrum_plugin 0

Flutter plugin for spectrum

Pull request review commentcodeigniter4/CodeIgniter4

fix: add dot_array_search to required_with and required_without

 public function required_without($str = null, string $fields, array $data): bool  		// Still here? Then we fail this test if 		// any of the fields are not present in $data-		foreach ($fields as $field)-		{-			if (! array_key_exists($field, $data))-			{+		foreach ($fields as $field) {+			if (+				(strpos($field, '.') !== false &&+					empty(dot_array_search($field, $data))) ||+				(strpos($field, '.') === false &&+					(!array_key_exists($field, $data) || empty($data[$field])))+			) {
		foreach ($fields as $field)
		{
			if (
				(strpos($field, '.') !== false && empty(dot_array_search($field, $data))) ||
				(strpos($field, '.') === false && (! array_key_exists($field, $data) || empty($data[$field])))
			)
			{
benjaminbellamy

comment created time in 41 minutes

Pull request review commentcodeigniter4/CodeIgniter4

fix: add dot_array_search to required_with and required_without

 public function required_with($str = null, string $fields, array $data): bool 		// as $fields is the lis 		$requiredFields = []; -		foreach ($fields as $field)-		{-			if (array_key_exists($field, $data))-			{+		foreach ($fields as $field) {+			if (+				(strpos($field, '.') !== false &&+					!empty(dot_array_search($field, $data))) ||+				(array_key_exists($field, $data) && !empty($data[$field]))+			) {
		foreach ($fields as $field)
		{
			if (
				(strpos($field, '.') !== false && ! empty(dot_array_search($field, $data))) ||
				(array_key_exists($field, $data) && ! empty($data[$field]))
			)
			{
benjaminbellamy

comment created time in 42 minutes

PR opened codeigniter4/CodeIgniter4

fix: add dot_array_search to required_with and required_without

Closes #3965

Description Added dot_array_search to required_with and required_without so that they work when using array as key in a form.

+13 -14

0 comment

1 changed file

pr created time in an hour

issue commentflutter/flutter-intellij

The devices selector is stuck on "Loading Devices" and it stays like that.

Email : Abdulsamad5sam@gmail.com

AbdulSamadgithub

comment created time in 2 hours

issue openedflutter/flutter-intellij

The devices selector is stuck on "Loading Devices" and it stays like that.

<----Problem-----> I've just started learning flutter and im setting up my device to run my app. Ive setup the emulator and the device as my instructor says. but it do not detect it. It detects the emulator and my mobile device on android project, but not on flutter.

Flutter doctor says "unable to locate android sdk" ive set the correct path to android sdk, ive double checked it. Ive installed both plugins dart and flutter.

I tried this solution : Link : https://github.com/flutter/flutter-intellij/issues/4761 and updated the plugin. restarted the adb, restarted my computer. unplugged my device several times. restarted android studio and than adb several times. used 1.17.3 version of flutter to check, and nothing works.

I tried this too: Link : https://stackoverflow.com/questions/51101178/android-studio-device-list-stuck-on-loading started android studio as admin, and ive my sdk in my D: directory.

Please help. I'll be grateful.

<-----FLUTTER DOCTOR------>

D:\Flutter SDK\flutter_windows_1.22.4-stable\flutter>flutter doctor Doctor summary (to see all details, run flutter doctor -v): [√] Flutter (Channel stable, 1.22.4, on Microsoft Windows [Version 10.0.19041.630], locale en-GB) [X] Android toolchain - develop for Android devices X Unable to locate Android SDK. Install Android Studio from: https://developer.android.com/studio/index.html On first launch it will assist you in installing the Android SDK components. (or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions). If the Android SDK has been installed to a custom location, set ANDROID_SDK_ROOT to that location. You may also want to add it to your PATH environment variable.

[!] Android Studio (version 4.1.0) X Flutter plugin not installed; this adds Flutter specific functionality. X Dart plugin not installed; this adds Dart specific functionality. [!] Connected device ! No devices available

! Doctor found issues in 3 categories.

<------ SS of android studio ------>

Screenshot (14)

created time in 2 hours

created tagJetBrains/kotlin

tagbuild-1.5.0-dev-156

The Kotlin Programming Language

created time in 3 hours

push eventJetBrains/kotlin

Nikolay Krasko

commit sha 5f91f79382ed41369e1541221348adc92c97bbe9

Remove usage of idea file systems for checking js libraries The removed code is probably an outdated code from the age when Kotlin compiler was using VirtualFiles for operating. Previously the links were stored and passed further, but now it is only some additional check (files are unused after the check) with an implicit dependency to IDEA internals. The deleted check could probably be responsible for handling references to JS libraries because of the working compiler daemon. The code was spotted during an investigation for the 2bf22caeb7c687cd6b54b05b11e5c0f1a3caa07c commit (there's a detailed description in the commit message).

view details

push time in 3 hours

issue commentflutter/flutter-intellij

Flutter "method not available: ext.flutter.inspector.getSelectedWidget"

I have the same issue and I can't use Flutter inspector.

Flutter version 1.22.4

isaackrementsov

comment created time in 7 hours

created tagJetBrains/kotlin

tagbuild-1.5.0-dev-155

The Kotlin Programming Language

created time in 9 hours

PR closed JetBrains/kotlin

FIR checker: make unused checker path-sensitive FIR

This, as another follow-up for #3813, makes UnusedChecker path-sensitive. Together with #3889, all existing checkers have been migrated, and thus, the old variant---path-insensitive data collection---is deprecated as well.

+139 -132

6 comments

5 changed files

jsjeon

pr closed time in 9 hours

pull request commentJetBrains/kotlin

FIR checker: make unused checker path-sensitive

Merged manually 👍

jsjeon

comment created time in 9 hours

PR closed JetBrains/kotlin

FIR: keep nullability of lambda return type FIR

The motivation is bb test inference/noCoercionToUnitWithEqualityConstraintForNullableReturnType where the expected return type of the lambda is supposed to be Unit?, according to the parameter type, () -> R?. When a postponed lambda is analyzed, from the accumulated type constraints, we compute the expected type of lambda return type. There, when the raw return type has a constraint where it's upper or equal to Unit, we simply assume the expected type is Unit, but the nullability of the raw return type should have been considered as well.

+3 -4

1 comment

2 changed files

jsjeon

pr closed time in 9 hours

pull request commentJetBrains/kotlin

FIR: keep nullability of lambda return type

Merged manually 👍

jsjeon

comment created time in 9 hours

push eventJetBrains/kotlin

Jinseong Jeon

commit sha 3d7d87ace5e87dec8a7b76afd0523ca7e30b572d

FIR: keep nullability of lambda return type

view details

Jinseong Jeon

commit sha 168503573abc7bd6db17076c1cab1de38ee98f47

FIR checker: make unused checker path-sensitive

view details

Jinseong Jeon

commit sha 762e315ce393e41ee7ee7672c19f2eb8716ec8fe

FIR checker: deprecate path-insensitive data collection

view details

Jinseong Jeon

commit sha c959ad7911f243835f20b412780256413ad313fd

FIR checker: revisit per-label iterations to avoid !!

view details

push time in 9 hours

PR opened JetBrains/kotlin

fixed few grammer mistakes :)
+8 -8

0 comment

1 changed file

pr created time in 9 hours

issue openedflutter/flutter-intellij

Exception: Cannot run program "C:\Android\flutter\bin\flutter.bat" (in directory "F:\Flutterprograms"): CreateProcess error=2, The system cannot find the file specified" is showing during creating a new project Android studio. #2986

Thanks for the feedback! If your issue is related to the Flutter framework itself, please open an issue at github.com/flutter/flutter.

Steps to Reproduce

Please tell us what you were doing and what went wrong

Version info

Please paste the output of running flutter doctor -v here (available from the command line or from Tools > Flutter > Flutter Doctor). It will provide the version of the Flutter framework as well as of the IntelliJ plugin.

created time in 9 hours

issue commentcodeigniter4/CodeIgniter4

Bug: required_with validation rule does not work with arrays

required_without() would need the same kind of correction.
Also, required_without() currently tests if a field is present but not if it’s empty.

I suggest the following:

	/**
	 * The field is required when all of the other fields are present
	 * in the data but not required.
	 *
	 * Example (field is required when the id or email field is missing):
	 *
	 *     required_without[id,email]
	 *
	 * @param string|null $str
	 * @param string      $fields
	 * @param array       $data
	 *
	 * @return boolean
	 */
	public function required_without(
		$str = null,
		string $fields,
		array $data
	): bool {
		$fields = explode(',', $fields);

		// If the field is present we can safely assume that
		// the field is here, no matter whether the corresponding
		// search field is present or not.
		$present = $this->required($str ?? '');

		if ($present) {
			return true;
		}

		foreach ($fields as $field) {
			if (
				strpos($field, '.') !== false &&
				empty(dot_array_search($field, $data))
			) {
				return false;
			} elseif (
				strpos($field, '.') === false &&
				(!array_key_exists($field, $data) || empty($data[$field]))
			) {
				return false;
			}
		}

		return true;
	}
benjaminbellamy

comment created time in 10 hours

push eventktorio/ktor

Leonid Stashevsky

commit sha f43d4309d5ef72a6300ca62dfa2b5fac9a61c4d5

KTOR-1184 Introduce development mode

view details

push time in 11 hours

pull request commentJetBrains/kotlin

Ant: Add support for fork-mode

Can we add a test for this behavior? There are some existing integration tests in compiler/tests-gen/org/jetbrains/kotlin/integration/AntTaskTestGenerated.java with test data at compiler/testData/integration/ant/

Thanks for let me know this. A new test testFork has been added to AntTaskTestGenerated.java, it will print parameters of the forked JVM in build.log.expected

scaventz

comment created time in 13 hours

create barnchJetBrains/kotlin

branch : push/mg-google-prs

created branch time in 13 hours

PR opened JetBrains/kotlin

FIR: keep nullability of lambda return type

The motivation is bb test inference/noCoercionToUnitWithEqualityConstraintForNullableReturnType where the expected return type of the lambda is supposed to be Unit?, according to the parameter type, () -> R?. When a postponed lambda is analyzed, from the accumulated type constraints, we compute the expected type of lambda return type. There, when the raw return type has a constraint where it's upper or equal to Unit, we simply assume the expected type is Unit, but the nullability of the raw return type should have been considered as well.

+3 -4

0 comment

2 changed files

pr created time in 15 hours

create barnchJetBrains/kotlin

branch : rr/mb/pr3959

created branch time in 16 hours

created tagJetBrains/kotlin

tagbuild-1.5.0-dev-152

The Kotlin Programming Language

created time in 16 hours

pull request commentJetBrains/kotlin

Fix KAPT cli tests on windows

@udalov Please take a look into kotlinc.bat

gavra0

comment created time in 16 hours

push eventJetBrains/kotlin

Mikhael Bogdanov

commit sha 28a1d1ceac7592d510c3a1013ce5bb1c0cdfd880

Disable test on Windows #KTI-405

view details

push time in 16 hours

issue closedflutter/flutter-intellij

Unused methods aren't getting darkened if they are not referenced.

The method is local to the library, if it's not used, it should have been darkened (not sure what the actual term should be) as it used to do. I tried restarting the IntelliJ Idea but nothing changed.

image

Flutter doctor:

[✓] Flutter (Channel dev, 1.24.0-10.2.pre, on Mac OS X 10.15.7 19H2 darwin-x64, locale en-GB)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
[!] Xcode - develop for iOS and macOS (Xcode 12.0.1)
    ! CocoaPods 1.8.4 out of date (1.9.0 is recommended).
        CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side.
        Without CocoaPods, plugins will not work on iOS or macOS.
        For more info, see https://flutter.dev/platform-plugins
      To upgrade see https://guides.cocoapods.org/using/getting-started.html#installation for instructions.
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.1)
[✓] IntelliJ IDEA Community Edition (version 2020.2.3)
[✓] VS Code (version 1.49.0)

closed time in 17 hours

dark-chocolate

issue commentflutter/flutter-intellij

Unused methods aren't getting darkened if they are not referenced.

@stevemessick Sincere apologies. I just found that I was using:

// ignore_for_file: unused_element
dark-chocolate

comment created time in 17 hours

PR opened JetBrains/kotlin

Added String.replaceAfter() sample

Added a sample for String.replaceAfter() method https://youtrack.jetbrains.com/issue/KT-20357

+10 -0

0 comment

1 changed file

pr created time in 20 hours

Pull request review commentcodeigniter4/CodeIgniter4

Optimize Autoloader

 public function removeNamespace(string $namespace) 	//--------------------------------------------------------------------  	/**-	 * Loads the class file for a given class name.+	 * Loads the class file for the given class name. 	 * 	 * @param string $class The fully qualified class name. 	 *-	 * @return string|false The mapped file on success, or boolean false-	 *                          on failure.+	 * @return string|false The mapped file on success, or false on failure. 	 */ 	public function loadClass(string $class) 	{-		$class = trim($class, '\\');-		$class = str_ireplace('.php', '', $class);+		$class = str_ireplace('.php', '', trim($class, '\\')); -		$mapped_file = $this->loadInNamespace($class);+		$mappedFile = $this->loadInNamespace($class);

use underscore on purpose as removed in 4.1, not worth updated for conflict, see rector.php config to skip this file for check underscore to camelcase check

mostafakhudair

comment created time in 21 hours

more