Xoma
(Kumaraswamy)
April 27, 2021, 1:18pm
#257
Okay, let me explain as clearly and with much info as possible
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:
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:
Unfortunately, I am getting similar error:
user@DESKTOP-BD6HS68 MINGW64 ~/Desktop/SymbolTest/special-chars
$ rush build
__
_______ _______/ /_
/ ___/ / / / ___/ __ \
/ / / /_/ (__ / / / /
/_/ \__,_/____/_/ /_/
• Build initialized
┌ Checking project files
│
│ OK Metadata file (rush.yml) found
│
│ OK AndroidManifest.xml file found
└ Done
Unhandled exception:
type 'Null' is not a subtype of type 'DateTime'
#0 BuildCommand.run (package:rush_cli/com…
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:
Unfortunately, I am getting similar error:
user@DESKTOP-BD6HS68 MINGW64 ~/Desktop/SymbolTest/special-chars
$ rush build
__
_______ _______/ /_
/ ___/ / / / ___/ __ \
/ / / /_/ (__ / / / /
/_/ \__,_/____/_/ /_/
• Build initialized
┌ Checking project files
│
│ OK Metadata file (rush.yml) found
│
│ OK AndroidManifest.xml file found
└ Done
Unhandled exception:
type 'Null' is not a subtype of type 'DateTime'
#0 BuildCommand.run (package:rush_cli/com…
Is it the fault of DateTime on my computer someway…?
PS: Maybe split the posts to new topic @Shreyash
1 Like
Xoma
(Kumaraswamy)
April 27, 2021, 1:39pm
#260
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:
opened 01:39PM - 27 Apr 21 UTC
When I try to build the extension created with Rush, this error occurs:
user@DESKTOP-BD6HS68 MINGW64 ~/Desktop/SymbolTest/special-chars
$ rush build
__
_______ _______/ /_
...
1 Like
Xoma
(Kumaraswamy)
April 27, 2021, 2:08pm
#261
Finally got my issue fixed, thank you Shreyash
Enderman
(Shreyansh)
April 27, 2021, 3:41pm
#262
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
Java Version
Rush Version
1.10
Pradevel
(Pratyush Roy)
April 27, 2021, 4:27pm
#263
Enderman:
Java Compiler Version
Java Version
I think its the same thing happing… Did you install two JDKs ?
Enderman
(Shreyansh)
April 27, 2021, 5:36pm
#264
The problem Solved By
Step 1
Copy the Path Of .exe Downloaded File Change the name Because It can be copied (Optional)
Step 2
Paste The Text On Command Prompt or PWSH
Step 3
It Will Ask Yes Or No To Update Dialog
Enter
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?
Shreyash
(Shreyash Saitwal)
April 28, 2021, 6:55am
#266
Please refresh to this post:
The problem Solved By
Step 1
Copy the Path Of .exe Downloaded File
Step 2
Paste The Text On Command Prompt
Step 3
It Will Ask Yes Or No To Update
Enter Y
It will Start Updating Then Follow the Steps provided by @Shreyash
Enderman
(Shreyansh)
April 28, 2021, 7:00am
#267
I had Same Issue but It was Solved
Enderman:
The problem Solved By
1 Like
does not for me it shows same thing jdk not found
Enderman
(Shreyansh)
April 28, 2021, 7:04am
#269
Can you Show me me a screenshot
Shreyash
(Shreyash Saitwal)
April 28, 2021, 9:51am
#272
I’ve removed the JDK installation check. Please re-download the installer and try again.
1 Like
Enderman
(Shreyansh)
April 28, 2021, 9:51am
#273
May I Know Your Windows Version
And which bit like 32 bit or 64 bit
luv.ak.tech
(Aarush Kumar)
April 28, 2021, 10:39am
#275
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)
TimAi2
(metricrat)
April 28, 2021, 10:41am
#276
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
luv.ak.tech
(Aarush Kumar)
April 28, 2021, 10:44am
#277
hey @TimAi2 so do i need to reinstall rush and try again?