Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build issue on Fedora v31 #954

Open
ralphkw1 opened this issue Mar 22, 2020 · 1 comment
Open

Build issue on Fedora v31 #954

ralphkw1 opened this issue Mar 22, 2020 · 1 comment

Comments

@ralphkw1
Copy link

I know this project is not being maintained. But in case someone is searching for a solution for the following problem:

-- Android was not found: APK will not be built.
uild/webodf/webodf/webodf/tools/updateJS.js
TypeError [ERR_INVALID_CALLBACK]: Callback must be a function. Received undefined
    at maybeCallback (fs.js:143:9)
    at Object.writeFile (fs.js:1251:14)
    at ReadFileContext.eval [as callback] (eval at inner_run (/home/rwilliamson/build/webodf/webodf/webodf/lib/runtime.js:1840:50), <anonymous>:546:20)
    at FSReqCallback.readFileAfterOpen [as oncomplete] (fs.js:256:13) {
  code: 'ERR_INVALID_CALLBACK'
}
undefined:674
        throw err;
        ^

Go to tool/updateJS.js and replace line 546 with the following to add the missing callback:

                fs.writeFile(lpath, contents,
					function(err, result) {
     					if(err) console.log( "runJSLint(), error:", err );
   					});

@zhivko
Copy link

zhivko commented Jun 11, 2020

Would you mind fixing this in source file? Or what is the reason not doing it this way and leave it to user to change code?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants