@oseamiya Same issue for me, always rush build fails, even blank aix
This shouldn't really happen unless:
- You don't have JDK installed on your system.
- JDK's bin directory isn't on your
PATH
environment variable.
If that's not case, can you try reinstalling JDK 8 like @oseamiya did?
Ok Sir, thanks for support
What kind of Command Prompt are you using?
Because I see in your documentation your Command Prompt is different than mine
And in your documentation what does cd mean?
does that mean "command"
How can I update rush to the latest version if it is available?
The terminal that you're seeing the first post is VS Code's integrated terminal (w/ Git Bash).
cd
is a UNIX command used to change the current working directory in the terminal. You can find enough information about it on the internet.
The current latest version of Rush is v1.2.0. To know how to install it, read the below linked post.
@shreyash This is my first time using rush and I got an error that I don't know how to solve
Look at my command.
P.S: I didn't change anything in my project I just ran the command
PS E:\Rush Aix Builder> rush create SalmanTools
__
_______ _______/ /_
/ ___/ / / / ___/ __ \
/ / / /_/ (__ / / / /
/_/ \__,_/____/_/ /_/
? Organisation (package name) com.SalmanDev.SalmanTools
? Author Salman Developer
? Version name 1
? Language (Use arrow keys to navigate & press enter to select)
› Java
Kotlin
• Getting things ready...
• Success! Generated a new AI2 extension project in: E:\Rush Aix Builder\salman-tools
Next up,
- cd into salman-tools/, and
- run rush build to compile your extension.
PS E:\Rush Aix Builder> cd salman-tools
PS E:\Rush Aix Builder\salman-tools> rush build
__
_______ _______/ /_
/ ___/ / / / ___/ __ \
/ / / /_/ (__ / / / /
/_/ \__,_/____/_/ /_/
• Build initialized
┌ Checking project files
│ info Checking metadata file (rush.yml)
│ info Checking AndroidManifest.xml file
└ done
┌ Compiling source files
│ info Picked 1 source file
└ done
┌ Processing the extension
│ info Desugaring Java 8 language features
│ Error parsing command line: While parsing option --classpath_entry E:\Rush: E:\Rush is not a valid path: it does not exist.
│ Try --help.
└ failed
• Build failed [3s 786ms] []
Remove all the spaces from the directory: E:\Rush Aix Builder
and try again.
Now it works. Thanks sir
how to add lib in rush?
first add in deps folder and then add it in rush.iml or yml whatever
Okay i got it, sir
Would it be possible to add dependencies like in android studio? No jar file?
Yes, it is possible and is already on the roadmap.
You're doing a great job.
I am happiest ! It will resolve my problems to find whole internet for jars
This would be a great problem solver for the Extensions deps!
where, link please
Its not public.
Rush v1.2.1
Improvements
-
Prior to this release, the positioning of extension blocks in the block-editor flyout was uncertain. This is now fixed and blocks should now appear in the same order (in their category) in which they are defined in the source file.
-
The install script for Linux and macOS is now compatible with most of the Unix shells (like, zsh, Bash, fish, etc.). Previously, it was only executable by Bash.
-
Migrated extensions will now be stored in a directory named
{old_name}-rush
to prevent the clashing of old extension files with the new ones.
Bug fixes
-
Fixed the issue where running the upgrade command would result in a crash. [ref]
-
Fixed the issue where desugaring would fail if the project path contained spaces. [ref]
-
Fixed the issue where the extension's icon won't be visible in the component palette if it was a remote URL.
-
Fixed the issue that caused the
exec format error: rush
error when trying to use Rush on macOS. [ref]
Other changes
- Desugaring of Java 8 lang. features is now disabled by default for new extensions. It can be enabled in the metadata file (
rush.yml
).
Installation
I regret to say this but...you won't be able to use the rush upgrade
command to upgrade Rush this time, as well.
Like previous releases, you will need to run the install scripts this time also. Hopefully, this won't happen again.
Using PowerShell (Windows only)
iwr https://raw.githubusercontent.com/shreyashsaitwal/rush-cli/main/scripts/install/install.ps1 -useb | iex
Using Shell
curl https://raw.githubusercontent.com/shreyashsaitwal/rush-cli/main/scripts/install/install.sh -fsSL | sh
Cheers,
Shreyash
My powershell is damaged so can you tell me how I update this