deadlyjack / Acode

Acode - powerful text/code editor for android
https://acode.app
MIT License
2.55k stars 364 forks source link

Unable to build #741

Open stepanzak opened 1 year ago

stepanzak commented 1 year ago

Hi, I'm trying to build Acode, but getting strange errors.

❯ cordova platform add android
Using cordova-fetch for cordova-android@^10.1.1
Adding android project...
Creating Cordova project for the Android platform:
        Path: platforms/android
        Package: com.foxdebug.acode
        Name: Acode
        Activity: MainActivity
        Android target: android-31
Subproject Path: CordovaLib
Subproject Path: app
Android project created with cordova-android@10.1.2
TypeError [ERR_INVALID_ARG_TYPE]: The "code" argument must be of type number. Received type string ('ENOENT')
    at process.set [as exitCode] (node:internal/bootstrap/node:124:9)
    at /usr/lib/node_modules/cordova/bin/cordova:32:22
❯ yarn build android paid dev
yarn run v1.22.19
warning ../package.json: No license field
$ sh utils/scripts/build.sh android paid dev
node ./utils/config.js dev paid
webpack --progress --mode development
[webpack-cli] Error: EACCES: permission denied, unlink '/home/stepka/acode/www/css/build/about.css'
    at unlinkSync (node:fs:1889:3)
    at _unlinkSync (node:internal/fs/rimraf:214:14)
    at rimrafSync (node:internal/fs/rimraf:195:7)
    at node:internal/fs/rimraf:253:9
    at Array.forEach (<anonymous>)
    at _rmdirSync (node:internal/fs/rimraf:250:7)
    at rimrafSync (node:internal/fs/rimraf:193:7)
    at Object.rmSync (node:fs:1284:10)
    at clearOutputDir (/home/stepka/acode/webpack.config.js:93:6)
    at module.exports (/home/stepka/acode/webpack.config.js:54:3) {
  errno: -13,
  syscall: 'unlink',
  code: 'EACCES',
  path: '/home/stepka/acode/www/css/build/about.css'
}
Styles loaded
cordova build android
TypeError [ERR_INVALID_ARG_TYPE]: The "code" argument must be of type number. Received type string ('ENOENT')
    at process.set [as exitCode] (node:internal/bootstrap/node:124:9)
    at /home/stepka/acode/node_modules/cordova/bin/cordova:32:22
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
❯ sudo yarn build android paid dev
yarn run v1.22.19
warning ../package.json: No license field
$ sh utils/scripts/build.sh android paid dev
node ./utils/config.js dev paid
webpack --progress --mode development
assets by path *.js 6.04 MiB
  asset main.build.js 2.68 MiB [emitted] (name: main)
  asset console.build.js 1.28 MiB [emitted] (name: console)
  asset searchInFilesWorker.build.js 1.06 MiB [emitted] (name: searchInFilesWorker)
  asset vendors-node_modules_jszip_dist_jszip_min_js.build.js 153 KiB [emitted] (id hint: vendors)
  asset plugins.build.js 99.6 KiB [emitted] (name: plugins)
  + 38 assets
assets by path ../../css/build/*.css 149 KiB
  asset ../../css/build/main.css 117 KiB [emitted] (name: main)
  asset ../../css/build/plugins.css 14.2 KiB [emitted] (name: plugins)
  asset ../../css/build/src_sidebarApps_searchInFiles_index_js.css 4.2 KiB [emitted]
  asset ../../css/build/fileBrowser.css 2.75 KiB [emitted] (name: fileBrowser)
  asset ../../css/build/donate.css 2.33 KiB [emitted] (name: donate)
  asset ../../css/build/src_sidebarApps_extensions_index_js.css 1.94 KiB [emitted]
  + 5 assets
Entrypoint main 2.8 MiB = ../../css/build/main.css 117 KiB main.build.js 2.68 MiB
Entrypoint console 1.28 MiB = console.build.js
Entrypoint searchInFilesWorker 1.06 MiB = searchInFilesWorker.build.js
runtime modules 40.6 KiB 138 modules
orphan modules 152 KiB [orphan] 30 modules
modules by path ./node_modules/ 1.48 MiB 600 modules
modules by path ./src/ 1.44 MiB (javascript) 133 KiB (css/mini-extract)
  javascript modules 1.05 MiB 172 modules
  json modules 404 KiB
    ./src/lang/en-us.json 13.8 KiB [built] [code generated]
    ./src/lang/es-sv.json 14.8 KiB [built] [code generated]
    + 27 modules
  css modules 133 KiB 28 modules
webpack 5.84.1 compiled successfully in 20494 ms
node ./utils/loadStyles.js
Styles loaded
cordova build android
TypeError [ERR_INVALID_ARG_TYPE]: The "code" argument must be of type number. Received type string ('ENOENT')
    at process.set [as exitCode] (node:internal/bootstrap/node:124:9)
    at /home/stepka/acode/node_modules/cordova/bin/cordova:32:22
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
❯ cordova requirements
Requirements check results for android:
Java JDK: installed 20.0.1
Android SDK: installed true
Android target: installed android-33,android-31
Gradle: installed /usr/share/java/gradle/bin/gradle

As you can see, I fulfill all of the cordova requirements.

sebastianjnuwu commented 11 months ago

@deadlyjack I also tried to compile and I couldn't in Ubuntu before before it gave error in ADV commands I converted but after that it didn't work

sebastianjnuwu commented 11 months ago

Screenshot_20230815-152544

sebastianjnuwu commented 11 months ago

Screenshot_20230815-155310

deadlyjack commented 11 months ago

That's weird, I'll to build it myself and fix it if has any issues with it.

On Wed, 16 Aug, 2023, 12:24 am SEBASTIAN JN, @.***> wrote:

[image: Screenshot_20230815-155310] https://user-images.githubusercontent.com/101356556/260809519-9cfe9f21-1427-4183-b39a-9a62039762e5.jpg

— Reply to this email directly, view it on GitHub https://github.com/deadlyjack/Acode/issues/741#issuecomment-1679433074, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJHIHI6WGACKX7RRBV7NVHLXVPAWHANCNFSM6AAAAAAZYNQ3LY . You are receiving this because you were mentioned.Message ID: @.***>

sebastianjnuwu commented 11 months ago

That's weird, I'll to build it myself and fix it if has any issues with it. On Wed, 16 Aug, 2023, 12:24 am SEBASTIAN JN, @.> wrote: [image: Screenshot_20230815-155310] https://user-images.githubusercontent.com/101356556/260809519-9cfe9f21-1427-4183-b39a-9a62039762e5.jpg — Reply to this email directly, view it on GitHub <#741 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJHIHI6WGACKX7RRBV7NVHLXVPAWHANCNFSM6AAAAAAZYNQ3LY . You are receiving this because you were mentioned.Message ID: @.>

Thank you, if possible create an action on github to compile so everyone can check how it works I saw that there were some but it didn't work: https://github.com/deadlyjack/Acode/actions

RaSan147 commented 5 months ago

That's weird, I'll to build it myself and fix it if has any issues with it. On Wed, 16 Aug, 2023, 12:24 am SEBASTIAN JN, @._> wrote: [image: Screenshot20230815-155310] https://user-images.githubusercontent.com/101356556/260809519-9cfe9f21-1427-4183-b39a-9a62039762e5.jpg — Reply to this email directly, view it on GitHub <#741 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJHIHI6WGACKX7RRBV7NVHLXVPAWHANCNFSM6AAAAAAZYNQ3LY . You are receiving this because you were mentioned.Message ID: @_._>

Thank you, if possible create an action on github to compile so everyone can check how it works I saw that there were some but it didn't work: https://github.com/deadlyjack/Acode/actions

Well mine worked until the last update unfortunately https://github.com/RaSan147/Acode/actions

RaSan147 commented 5 months ago

@stepanzak and yeah brought the bad boy back to life after lots of trail and error