Home / GitHub Page

How I can contribute to joplin

Hello Joplin Community
My name is Binayak Behera, I am a pre-final year undergraduate studying Computer Science in Odisha, India. I have been a part of the Fedora Community and have been contributing in writing docs and bug fixes for their website. Most of my projects are in Node, MongoDB, Express, Go, Firebase, Postgresql, Graphql as backend and Frontend I like to work with React, Electron, Typescript, Javascript. Apart from this for problem-solving, I like to use Python or Java. I was very much intrigued by the Joplin Project and like to contribute and spread the word about the project. I would like to start my contribution to the project idea of password-protected notes.

Hello everyone
On my first day, I went through the code base and tried to familiarize with it, I also went through the mailing list (through which I earned trust level 1 :smiley: ) and the bugs in the GitHub repository. I tried to setup my environment but I am getting this error which I am not able to clear. Can anyone help me?

Please post your log as text (not an image).

This is the error log I am getting -

joplin@1.0.0 postinstall /home/binayak/Documents/gsoc/joplin

cd ReactNativeClient && npm i && cd … && cd ElectronClient && npm i && cd … && cd CliClient && npm i && cd … && gulp build

Joplin@0.8.0 postinstall /home/binayak/Documents/gsoc/joplin/ReactNativeClient
jetify && npm run build

Jetifier found 1234 file(s) to forward-jetify. Using 12 workers…

Joplin@0.8.0 build /home/binayak/Documents/gsoc/joplin/ReactNativeClient
gulp build

[17:32:31] Using gulpfile ~/Documents/gsoc/joplin/ReactNativeClient/gulpfile.js
[17:32:31] Starting ‘build’…
[17:32:31] Starting ‘buildReactNativeInjectedJs’…
[17:32:31] Finished ‘buildReactNativeInjectedJs’ after 26 ms
[17:32:31] Starting ‘encodeAssets’…
[17:32:32] Finished ‘encodeAssets’ after 362 ms
[17:32:32] Starting ‘podInstall’…
[17:32:32] Finished ‘podInstall’ after 741 μs
[17:32:32] Finished ‘build’ after 394 ms
npm WARN react-native-webview@5.12.0 requires a peer of react-native@>=0.57 <0.60 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.11 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.11: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“linux”,“arch”:“x64”})

audited 74128 packages in 17.627s
found 4 low severity vulnerabilities
run npm audit fix to fix them, or npm audit for details

Joplin@1.0.185 postinstall /home/binayak/Documents/gsoc/joplin/ElectronClient
npm run build && gulp electronRebuild

Joplin@1.0.185 build /home/binayak/Documents/gsoc/joplin/ElectronClient
patch-package && gulp build

patch-package 6.2.0
Applying patches…
sax@1.2.4 :heavy_check_mark:
[17:32:42] Using gulpfile ~/Documents/gsoc/joplin/ElectronClient/gulpfile.js
[17:32:42] Starting ‘build’…
[17:32:42] Starting ‘copyLib’…
[17:32:42] Finished ‘copyLib’ after 67 ms
[17:32:42] Starting ‘compileScripts’…
Compiling /home/binayak/Documents/gsoc/joplin/ElectronClient/tools/…/gui/ClipperConfigScreen.jsx…

Error: spawnSync /home/binayak/Documents/gsoc/joplin/ElectronClient/tools/…/node_modules/.bin/babel ENOENT
at Object.spawnSync (internal/child_process.js:1041:20)
at spawnSync (child_process.js:607:24)
at /home/binayak/Documents/gsoc/joplin/ElectronClient/tools/compileScripts.js:33:22
at Array.forEach ()
at convertJsx (/home/binayak/Documents/gsoc/joplin/ElectronClient/tools/compileScripts.js:19:24)
at module.exports (/home/binayak/Documents/gsoc/joplin/ElectronClient/tools/compileScripts.js:53:3)
at compileScripts (/home/binayak/.npm-global/lib/node_modules/gulp/node_modules/undertaker/lib/set-task.js:13:15)
at bound (domain.js:419:14)
at runBound (domain.js:432:12)
at asyncRunner (/home/binayak/.npm-global/lib/node_modules/gulp/node_modules/async-done/index.js:55:18) {
errno: ‘ENOENT’,
code: ‘ENOENT’,
syscall: ‘spawnSync /home/binayak/Documents/gsoc/joplin/ElectronClient/tools/…/node_modules/.bin/babel’,
path: ‘/home/binayak/Documents/gsoc/joplin/ElectronClient/tools/…/node_modules/.bin/babel’,
spawnargs: [
‘–presets’,
‘react’,
‘–out-file’,
‘/home/binayak/Documents/gsoc/joplin/ElectronClient/tools/…/gui/ClipperConfigScreen.min.js’,
‘/home/binayak/Documents/gsoc/joplin/ElectronClient/tools/…/gui/ClipperConfigScreen.jsx’
]
}
[17:32:42] The following tasks did not complete: build, compileScripts
[17:32:42] Did you forget to signal async completion?
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! Joplin@1.0.185 build: patch-package && gulp build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the Joplin@1.0.185 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/binayak/.npm/_logs/2020-02-24T12_02_42_378Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! Joplin@1.0.185 postinstall: npm run build && gulp electronRebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the Joplin@1.0.185 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/binayak/.npm/_logs/2020-02-24T12_02_42_422Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! joplin@1.0.0 postinstall: cd ReactNativeClient && npm i && cd .. && cd ElectronClient && npm i && cd .. && cd CliClient && npm i && cd .. && gulp build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the joplin@1.0.0 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/binayak/.npm/_logs/2020-02-24T12_02_42_460Z-debug.log

a suggestion from my side
instead of

use image
that look nicer
[17:32:31] Using gulpfile ~/Documents/gsoc/joplin/ReactNativeClient/gulpfile.js
may you use

Summary

This text will be hidden

if output is long, so the post is easier to read

Alternatively you can use tools like https://www.codebin.co/edit/b9ee271
or tools mentioned in https://www.sitepoint.com/top-5-places-to-share-code-quickly/

Thanks @PackElend for the feedback. Will definitely use your suggestions from next time.

1 Like

Do these files exist?

/home/binayak/Documents/gsoc/joplin/ElectronClient/tools/../gui/ClipperConfigScreen.jsx

/home/binayak/Documents/gsoc/joplin/ElectronClient/tools/../node_modules/.bin/babel

No, the second file one doesn’t exist @laurent

Then it means that for some reason Babel hasn’t been installed, but not sure why. It’s in devDependencies

Hi there,
time is moving forward and the deadline is closing in but we haven’t heard that much from you recently.
You are getting along with the code?
If you have any troubles don’t hesitate to ask around in the forum.

Don’t forget to watch/subscribe to the GSoC Live Blog to stay tuned.

good luck with GSoC