Rush • A new and improved way of building extensions

Okay, let me explain as clearly and with much info as possible :sweat:

sorry it’s long


Shreyash had given me the Rush Installer to test. Before updating or opening the installer, I had created a project just simply which was named “test”. Then I had updated the Rush using the installer and it was successful. While building the “test”, it had errors because I had not changed the PATH variables. Which was no more after updating the variables. I had compiled it over 2 - 3 times and it was successful without any errors.

Later on, after some time, I created another project using the Latest Rush. After a while, I completed the test code and was ready to build everything okay.

For some reason, the author name contained a special/unknown character which threw error:

SharedScreenshot

user@DESKTOP-BD6HS68 MINGW64 ~/Desktop/Codes/parmesh/background-tasks
$ rush build
                      __
     _______  _______/ /_
    / ___/ / / / ___/ __ \
   / /  / /_/ (__  / / / /
  /_/   \__,_/____/_/ /_/

• Build initialized

┌ Checking project files
│ ERR Metadata file (rush.yml) is invalid
│
│ Error on line 17, column 19: Unexpected character.
   ╷
17 │   - Kumaraswamy B.G
   │                   ^
   ╵
└ Failed

• Build failed

So I just corrected it. Which caused the same error below and I am stuck here:



It’s weird to say but, the “test” project which was created before updating the Rush compiles fine without any errors:

Microsoft Windows [Version 10.0.18363.1440]
(c) 2019 Microsoft Corporation. All rights reserved.

C:\Users\user>cd C:\Users\user\Desktop\RushNew\test

C:\Users\user\Desktop\RushNew\test>rush build
                      __
     _______  _______/ /_
    / ___/ / / / ___/ __ \
   / /  / /_/ (__  / / / /
  /_/   \__,_/____/_/ /_/

• Build initialized

┌ Checking project files
│
│  OK Metadata file (rush.yml) found
│
│  OK AndroidManifest.xml file found
└ Done
┌ Compiling Java files
└ Done
┌ Processing the extension
└ Done
┌ Converting Java bytecode to DEX bytecode
└ Done
┌ Finalizing the build
└ Done

• Build successful

C:\Users\user\Desktop\RushNew\test>

I tried with some of my other old created projects and I still get the same error:

Is it the fault of DateTime on my computer someway…?

PS: Maybe split the posts to new topic @Shreyash

1 Like

@Xoma,

  • You are getting the “Unexpected character” error because the YAML parser in Rush was unable to recognize the mentioned character. This isn’t related to Rush, it’s just how YAML works.

  • Talking about the second issue, can you try deleting the “data.hive” and “data.lock” files in the .rush directory and then building again. If that doesn’t solve it, create a new issue on GitHub for the same.

1 Like

Deleting those files did not have any effect on the build. I wonder why, that the rush is able to build just one project excluding others…?

Yes, I have created issue on GitHub:

1 Like

Finally got my issue fixed, thank you Shreyash :relaxed:

It shows Me Error While Installation of Rush CLI 1.10 in New version old Version Works fine @Shreyash

Error

Error Code

                      __
     _______  _______/ /_
    / ___/ / / / ___/ __ \
   / /  / /_/ (__  / / / /
  /_/   \__,_/____/_/ /_/



JDK not found...
Rush needs JDK to compile your extensions.
Please download and install JDK version 1.8 or above before installing Rush.

Press any key to continue...

Windows Version

Windows 10 (dev channel)

Java Compiler Version

image

Java Version

Rush Version

1.10

I think its the same thing happing… Did you install two JDKs ?

The problem Solved By

Step 1

Copy the Path Of .exe Downloaded File Change the name Because It can be copied (Optional)
image

Step 2

Paste The Text On Command Prompt or PWSH
image

Step 3

It Will Ask Yes Or No To Update Dialog
image

Enter image

It starts Downloading file like this

After Downloading it will Show Something like this

Step 4

Works

Step 5

Follow the Steps provided by @Shreyash

so last time antivirus software was blocking it so i blacklisted rush from antivirus software so i installed the exe file when i open it , it shows -


but when i run java -version or javac -version it shows that i have correct jdk -

do i need to add something in environment variables first?

Please refresh to this post:

I had Same Issue but It was Solved

1 Like

does not for me it shows same thing jdk not found

Can you Show me me a screenshot

powershell -


windows cmd -

gitbash -

any help??? @Shreyash @Enderman ?

I’ve removed the JDK installation check. Please re-download the installer and try again.

1 Like

May I Know Your Windows Version
And which bit like 32 bit or 64 bit

10 and 64 bit

thanks @Shreyash it worked but when i executed rush build it showed -

 rush build
                      __
     _______  _______/ /_
    / ___/ / / / ___/ __ \
   / /  / /_/ (__  / / / /
  /_/   \__,_/____/_/ /_/

• Build initialized

┌ Checking project files
│
│  OK Metadata file (rush.yml) found
│
│  OK AndroidManifest.xml file found
└ Done
┌ Compiling Java files
└ Done
Unhandled exception:
NoSuchMethodError: The getter 'stderr' was called on null.
Receiver: null
Tried calling: stderr
#0      Object.noSuchMethod (dart:core-patch/object_patch.dart:54)
#1      Javac.compile.<anonymous closure> (package:rush_cli/java/javac.dart:59)
#2      _RootZone.runUnaryGuarded (dart:async/zone.dart:1546)
#3      _BufferingStreamSubscription._sendError.sendError (dart:async/stream_impl.dart:362)
#4      _BufferingStreamSubscription._sendError (dart:async/stream_impl.dart:378)
#5      _BufferingStreamSubscription._addError (dart:async/stream_impl.dart:280)
#6      _SyncBroadcastStreamController._sendError.<anonymous closure> (dart:async/broadcast_stream_controller.dart:393)
#7      _BroadcastStreamController._forEachListener (dart:async/broadcast_stream_controller.dart:323)
#8      _SyncBroadcastStreamController._sendError (dart:async/broadcast_stream_controller.dart:392)
#9      _AsBroadcastStreamController.addError (dart:async/broadcast_stream_controller.dart:487)
#10     _RootZone.runBinaryGuarded (dart:async/zone.dart:1558)
#11     _BufferingStreamSubscription._sendError.sendError (dart:async/stream_impl.dart:360)
#12     _BufferingStreamSubscription._sendError (dart:async/stream_impl.dart:378)
#13     _BufferingStreamSubscription._addError (dart:async/stream_impl.dart:280)
#14     _SyncStreamControllerDispatch._sendError (dart:async/stream_controller.dart:737)
#15     _StreamController._addError (dart:async/stream_controller.dart:615)
#16     new Stream.fromFuture.<anonymous closure> (dart:async/stream.dart:166)
#17     _RootZone.runBinary (dart:async/zone.dart:1617)
#18     _FutureListener.handleError (dart:async/future_impl.dart:166)
#19     Future._propagateToListeners.handleError (dart:async/future_impl.dart:716)
#20     Future._propagateToListeners (dart:async/future_impl.dart:737)
#21     Future._completeError (dart:async/future_impl.dart:547)
#22     Future._asyncCompleteError.<anonymous closure> (dart:async/future_impl.dart:603)
#23     _microtaskLoop (dart:async/schedule_microtask.dart:40)
#24     _startMicrotaskLoop (dart:async/schedule_microtask.dart:49)
#25     _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:120)
#26     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:185)

Installed on Linux, I am getting a similar output error as @luv.ak.tech when running build for the first time (I have tried reinstalling rush):

• Build initialized

┌ Checking project files
│ 
│  OK Metadata file (rush.yml) found
│ 
│  OK AndroidManifest.xml file found
└ Done
┌ Compiling Java files
└ Done
Unhandled exception:
NoSuchMethodError: The getter 'stderr' was called on null.
Receiver: null
Tried calling: stderr
#0      Object.noSuchMethod (dart:core-patch/object_patch.dart:54)
#1      Javac.compile.<anonymous closure> (package:rush_cli/java/javac.dart:59)
#2      _RootZone.runUnaryGuarded (dart:async/zone.dart:1546)
#3      _BufferingStreamSubscription._sendError.sendError (dart:async/stream_impl.dart:362)
#4      _BufferingStreamSubscription._sendError (dart:async/stream_impl.dart:378)
#5      _BufferingStreamSubscription._addError (dart:async/stream_impl.dart:280)
#6      _SyncBroadcastStreamController._sendError.<anonymous closure> (dart:async/broadcast_stream_controller.dart:393)
#7      _BroadcastStreamController._forEachListener (dart:async/broadcast_stream_controller.dart:323)
#8      _SyncBroadcastStreamController._sendError (dart:async/broadcast_stream_controller.dart:392)
#9      _AsBroadcastStreamController.addError (dart:async/broadcast_stream_controller.dart:487)
#10     _RootZone.runBinaryGuarded (dart:async/zone.dart:1558)
#11     _BufferingStreamSubscription._sendError.sendError (dart:async/stream_impl.dart:360)
#12     _BufferingStreamSubscription._sendError (dart:async/stream_impl.dart:378)
#13     _BufferingStreamSubscription._addError (dart:async/stream_impl.dart:280)
#14     _SyncStreamControllerDispatch._sendError (dart:async/stream_controller.dart:737)
#15     _StreamController._addError (dart:async/stream_controller.dart:615)
#16     new Stream.fromFuture.<anonymous closure> (dart:async/stream.dart:166)
#17     _RootZone.runBinary (dart:async/zone.dart:1617)
#18     _FutureListener.handleError (dart:async/future_impl.dart:166)
#19     Future._propagateToListeners.handleError (dart:async/future_impl.dart:716)
#20     Future._propagateToListeners (dart:async/future_impl.dart:737)
#21     Future._completeError (dart:async/future_impl.dart:547)
#22     Future._chainForeignFuture.<anonymous closure> (dart:async/future_impl.dart:492)
#23     _microtaskLoop (dart:async/schedule_microtask.dart:40)
#24     _startMicrotaskLoop (dart:async/schedule_microtask.dart:49)
#25     _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:120)
#26     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:185)
1 Like

hey @TimAi2 so do i need to reinstall rush and try again?