A clinical and research 3T MRI protocol under 30 minutes, presented at CME2019
MRI preprocessing and analysis pipelines and tools for the study of disorders of consciousness
Helping file fixity (long term storage of data) via redundant error correcting codes and hash auditing, using pure Python.
Cross-platform automatic AC-PC realignment/reorientation and coregistration robust to brain damage in SPM
Gripon-Berrou Neural Network (also called Cliques Neural Network) high-performance implementation in Octave/Matlab
fix boxplot confidence interval + fix compatibility with latest pandas
Signed-off-by: Stephen L. lrq3000@gmail.com
port barplotwithsamples.ipynb to Python 3.7 + add violinplots
Signed-off-by: Stephen L. lrq3000@gmail.com
plot mean instead of median in violinplots (to avoid overlap with subjects points)
Signed-off-by: Stephen L. lrq3000@gmail.com
fix atlas labels not displaying using Python 3 (due to filter() becoming a generator function) + add a variable to make it optional
Signed-off-by: Stephen L. lrq3000@gmail.com
Update README.md
add license and credits
fix figsize minor error when set to None + set figsize to None by default
Signed-off-by: Stephen L. lrq3000@gmail.com
Merge branch 'master' of https://github.com/lrq3000/neuro-python-plotting
update CONN preprocessing pipelines for CONN 18b
Signed-off-by: Stephen L. lrq3000@gmail.com
smri pipeline: add automatic centering to origin for unnormalized subject's brain in final results
Signed-off-by: Stephen L. lrq3000@gmail.com
update smri preprocessing to CAT12 r1434
Signed-off-by: Stephen L. lrq3000@gmail.com
add more infos for reproducibility
Signed-off-by: Stephen L. lrq3000@gmail.com
add external packages for reproducibility
Signed-off-by: Stephen L. lrq3000@gmail.com
add: for both smri and fmri preprocessing pipelines: support for different ethnic templates for affine regularization + allow to change the SPM preprocessing accuracy in CAT12 (recovery of the sampling distance variable that was deprecated) + add versions for SPM8 and VBM8 (reproducibility)
Signed-off-by: Stephen L. lrq3000@gmail.com
update comments
Signed-off-by: Stephen L. lrq3000@gmail.com
update: set spm preprocessing accuracy back to average in CAT12 mode, because not much difference for the additional time (and no visible gain)
Signed-off-by: Stephen L. lrq3000@gmail.com
fix: skip buggy files if choking on auto_reorient step in reorientation_registration_helper.py
Signed-off-by: Stephen L. lrq3000@gmail.com
add TODO.txt for pathmatcher
Signed-off-by: Stephen L. lrq3000@gmail.com
fix mistake in reorientation_registration_helper.py
Signed-off-by: Stephen L. lrq3000@gmail.com
add way to call auxiliary helper matlab scripts + add contextual menu (to allow intensity histogram equalization) during structural reorientation in reorientation_registration_helper.py
Signed-off-by: Stephen L. lrq3000@gmail.com
add a message about how to install spm_auto_reorient
Signed-off-by: Stephen L. lrq3000@gmail.com
update doc
Signed-off-by: Stephen L. lrq3000@gmail.com
add automatic functional coregistration in reorientation_registration_helper.py
Signed-off-by: Stephen L. lrq3000@gmail.com
better functional coregistration in functionalcoreg.m
Signed-off-by: Stephen L. lrq3000@gmail.com
fix issue with missing anatomical or functional images in reorientation_registration_helper.py
Signed-off-by: Stephen L. lrq3000@gmail.com
BIG update: pathmatcher.py now supports tree building from regex groups
Signed-off-by: Stephen L. lrq3000@gmail.com
doc
Signed-off-by: Stephen L. lrq3000@gmail.com
add: support for named groups for functional images and thus for multiple functional sessions/folders per subject + show first functional volume by default (instead of random)
Signed-off-by: Stephen L. lrq3000@gmail.com
update dead link + move to relevant section
rework section Weaker forms of bright light therapy for hyperphotosensitivity + add feedbacks on aripiprazole and vyvanse + add more details on agomelatine as an effective treatment for depression + add update on CT1500 adenosinergic agent
Signed-off-by: Stephen L. lrq3000@gmail.com
Ok that's interesting.
It's not an issue with the emulator I think, since Chrome browser inside the emulator works fine, and that I can reproduce the issue on my host computer outside of the emulator, while you can't.
So maybe this is a regression in nodejs v18, or either it's a bug that is specific to my platform (Windows 10), or a combination of both, or it's a very rare bug that has to do with my hardware for some reason (maybe HAXM version has something to do with it). In any case at this point it becomes too costly to debug further, so this workaround will have to do. If others experience a similar issue, they can hopefully find the solution outlined in the current issue.
PS: pyugt was tested on Python 3.7, it is already using configparser, which is only available in Python 3.
Sorry I missed your issue before, I only saw it now.
It seems on the contrary that your issue is because in your PATH it's pointing to a python2 install, not a python3. So I would suggest to try to point to the fullpath to your python binary, eg, /etc/lib/python3/python3 pyugt
to ensure that you are using a Python 3 install, and if it works, you can try to fix your PATH manually.
Oh so you mean this way it would be implemented not only in Android but as a feature for all versions of Super Productivity? That would be awesome yes!
In Android, this is the function that is called:
webView.goBack()
I am not sure what the goBack()
method exactly does, hopefully it will account for DOM manipulated backbutton and so it will work transparently, but if not we can easily fix that later with a callback to force call your event listener.
Thank you for your help in troubleshooting this issue! Yes me too I'd prefer not to have these issues, guess I'm just unlucky, especially given I am NOT a nodejs programmer, it's strange I get these errors on a clean install :-/ But at least I've learnt something!
Strange that you use the AVD Emulator and don't run into the same issue.
I use nodejs v18.13.0.
The errors show up after a couple of minutes (which I think corresponds to the timeout setting somewhere in nodejs), but only in the console. In the SuperProductivity UI, it stays stuck on the loading screen with the "motivational quote of the day".
Did you try to launch the local webapp with:
ng serve
And then access it with a Chrome browser on a computer (not even inside the emulator and not using chrome://inspect, just access via http://localhost:4200
) with settings: Chrome DevTools > Network > enable "Disable Cache" and set Throttling to Slow 3G ?
I previously wrote that the error was reproducible inside the production build but I was wrong, I did not know about the npm run commands, I only manually switched the flags inside the app, that's different. Also, I forgot to write that Throttling needs to be set to Slow 3G, not just 3G.
The above is how I can reproduce the error more or less, it's slightly different (the timeout takes more time than inside the emulator for some reason, maybe because the webagent is different) but it's the same result.
When a dialog is opened, such as the side navigation bar or the task bar or notes bar, pressing the Back button on the Android interface should close the dialog, but instead the dialog is ignored and the app goes to the previous page in history or it closes down.
Android 11 in AVD emulator.
As usual, I can work on the Android side. But here the web app needs to be modified to add required callbacks: one to hide each bar + one to query the state of each bar. But I'm very inexperienced with typescript.
I tried to register a new callback inside android-interface.ts
:
androidInterface.hideNavBarCallBack = () => {
androidInterface.showToast('Received hideNavBarCallBack new');
androidInterface.layoutService.hideSideNav();
androidInterface.layoutService.hideNotes();
androidInterface.layoutService.hideAddTaskBar();
androidInterface.showToast('Received hideNavBarCallBack end');
console.log('Received hideNavBarCallBack end');
};
But the calls fail (the showToast() work fine).
Also I would need access to selectIsShow*.
If somebody can implement these changes or suggest how to do so, I would be happy to fix this issue in the Android app, so that we get a fully functional native behavior with the back button (extending the work of #27).
When running a local angular webserver with ng serve --host 0.0.0.0
, and configuring the Android app to set url = "http://10.0.2.2:4200"
inside the Android Studio emulator, the Android app should in theory request resources from the local webapp.
However, it does not work: the Android app stays in an infinite loading screen (with the "quote of the day"). However, the web app works fine in the emulator's Android Chrome browser at the address http://10.0.2.2:4200
. This suggests that either the webapp behaves differently if it's the Android app, or it's the Android app's WebView component that is failing to properly process the webapp when it's locally served.
I tried to debug, but no luck. I even tried to nullify these constants in the webapp:
export const IS_ANDROID_WEB_VIEW = false;
export const IS_F_DROID_APP = false;
To try to force the behavior to be the same between the Android app and Chrome browser, but it did not change anything.
Because of this issue, it is impossible currently to develop the webapp and Android app locally. The webapp needs to be uploaded on an online server before.
Same branch as #33. This PR implements some bugfixes and updated instructions to launch the webserver locally and access it from inside the emulator, otherwise it would not even display in emulated Chrome browser.
Android 11 (emulated on a Pixel 3a phone). Host computer: Windows 10 x64.
Steps to reproduce the behavior:
http://10.0.2.2:4200
. This should work fine.The Android app should get redirected to "Today" tab after loading.
So I tried a few other commands, here is the one that worked best:
In one terminal, launch:
npm run buildFrontend:prod:watch
In the other one, launch:
http-server ./dist -p 4200 -t0
The -t0
disables timeouts, and the buildFrontend:prod:watch
command essentially does a ng build --configuration production --watch
.
This combination seems to work relatively fine and rebuilds automatically on changes in the webapp, although it's slow to rebuild.
I'll close the issue, I leave it up to you to see if it's pertinent to add this info in the README (I would suggest to do that if you are not using the Android emulator, because I suspect everyone using the AVD emulator will have the same issue).
Thank you for your suggestion @johannesjo , yes these commands work right away! So this confirms the issue: for some reason, the WebView running inside an emulator is too slow to download the angular files before receiving a timeout.
Out of curiosity, are you testing inside an emulator (if so, which? AVD or the other one?) or only on a physical device?
I tested further, and there is an app WebView Browser Tester that is provided inside the emulated Android image, and just like the Super Productivity Android app, it fails. However, the Chrome browser inside the emulator works fine. So this bug appears to affect only WebViews.
My hypothesis is that this only happens to WebViews because they always run in a debugger inside the emulator (whether or not we use the debug command), so this slows down all the requests done by WebViews. This would also explain why the Chrome mobile app is not affected inside the emulator.
Anyway, please leave this issue open for a bit longer, I'm going to try to find adequate commands to dynamically rebuild/watch the minified webapp, so that we will have an OKish setup for other devs running into the same issue as me.
I can confirm this is associated with having a slow internet connection. I can reproduce the error on my host computer using Chrome DevTools > Network > enable "Disable Cache" and set Throttling to 3G, then reload the page, it should fail with the same error on main.js
or vendor.js
after some time (less than 5min).
This happens only for localhost app, despite being run in production mode. It does not happen with https://app.super-productivity.com
.
But note that this suggests that this issue affects not only those running the Android app inside the emulator, but anybody who tries to access the Super Productivity web app from a limited internet connection.
It seems the issue is caused by Angular timeouting the download because the AVD emulator has a too slow internet, and the angular's vendor.js
is too big (the main.js error gets cleared if we enable the production environment with enableProdMode();
in main.ts
in Super Productivity web app.
It seems to be a known issue with Angular: https://github.com/angular/angular-cli/issues/7197
I'm trying to see if there is a way to increase the timeout delay.
Here is the log:
Warnings:
polyfills.js:6438 [webpack-dev-server] Live Reloading enabled.
polyfills.js:6443 [webpack-dev-server] Warnings while compiling.
logger @ polyfills.js:6443
polyfills.js:6443 [webpack-dev-server] WARNING in ./src/styles.scss (./src/styles.scss.webpack[javascript/auto]!=!./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[6].rules[0].oneOf[0].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[6].rules[0].oneOf[0].use[2]!./node_modules/resolve-url-loader/index.js??ruleSet[1].rules[6].rules[1].use[0]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[6].rules[1].use[1]!./src/styles.scss)
Module Warning (from ./node_modules/postcss-loader/dist/cjs.js):
Warning
(6196:3) autoprefixer: end value has mixed support, consider using flex-end instead
logger @ polyfills.js:6443
polyfills.js:6443 [webpack-dev-server] WARNING
C:/git/super-productivity/electron/CONFIG.ts is part of the TypeScript compilation but it's unused.
Add only entry points to the 'files' or 'include' properties in your tsconfig.
logger @ polyfills.js:6443
polyfills.js:6443 [webpack-dev-server] WARNING
C:/git/super-productivity/electron/backup.ts is part of the TypeScript compilation but it's unused.
Add only entry points to the 'files' or 'include' properties in your tsconfig.
logger @ polyfills.js:6443
polyfills.js:6443 [webpack-dev-server] WARNING
C:/git/super-productivity/electron/better-ipc.ts is part of the TypeScript compilation but it's unused.
Add only entry points to the 'files' or 'include' properties in your tsconfig.
logger @ polyfills.js:6443
polyfills.js:6443 [webpack-dev-server] WARNING
C:/git/super-productivity/electron/debug.ts is part of the TypeScript compilation but it's unused.
Add only entry points to the 'files' or 'include' properties in your tsconfig.
logger @ polyfills.js:6443
polyfills.js:6443 [webpack-dev-server] WARNING
C:/git/super-productivity/electron/error-handler-with-frontend-inform.ts is part of the TypeScript compilation but it's unused.
Add only entry points to the 'files' or 'include' properties in your tsconfig.
logger @ polyfills.js:6443
polyfills.js:6443 [webpack-dev-server] WARNING
C:/git/super-productivity/electron/full-screen-blocker.ts is part of the TypeScript compilation but it's unused.
Add only entry points to the 'files' or 'include' properties in your tsconfig.
logger @ polyfills.js:6443
polyfills.js:6443 [webpack-dev-server] WARNING
C:/git/super-productivity/electron/get-settings.ts is part of the TypeScript compilation but it's unused.
Add only entry points to the 'files' or 'include' properties in your tsconfig.
logger @ polyfills.js:6443
polyfills.js:6443 [webpack-dev-server] WARNING
C:/git/super-productivity/electron/indicator.ts is part of the TypeScript compilation but it's unused.
Add only entry points to the 'files' or 'include' properties in your tsconfig.
logger @ polyfills.js:6443
polyfills.js:6443 [webpack-dev-server] WARNING
C:/git/super-productivity/electron/jira.ts is part of the TypeScript compilation but it's unused.
Add only entry points to the 'files' or 'include' properties in your tsconfig.
logger @ polyfills.js:6443
polyfills.js:6443 [webpack-dev-server] WARNING
C:/git/super-productivity/electron/local-file-sync.ts is part of the TypeScript compilation but it's unused.
Add only entry points to the 'files' or 'include' properties in your tsconfig.
logger @ polyfills.js:6443
polyfills.js:6443 [webpack-dev-server] WARNING
C:/git/super-productivity/electron/lockscreen.ts is part of the TypeScript compilation but it's unused.
Add only entry points to the 'files' or 'include' properties in your tsconfig.
logger @ polyfills.js:6443
polyfills.js:6443 [webpack-dev-server] WARNING
C:/git/super-productivity/electron/main-window.ts is part of the TypeScript compilation but it's unused.
Add only entry points to the 'files' or 'include' properties in your tsconfig.
logger @ polyfills.js:6443
polyfills.js:6443 [webpack-dev-server] WARNING
C:/git/super-productivity/electron/main.ts is part of the TypeScript compilation but it's unused.
Add only entry points to the 'files' or 'include' properties in your tsconfig.
logger @ polyfills.js:6443
polyfills.js:6443 [webpack-dev-server] WARNING
C:\git\super-productivity\node_modules\ng2-charts\fesm2015\ng2-charts.js depends on 'chart.js'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
logger @ polyfills.js:6443
polyfills.js:6443 [webpack-dev-server] WARNING
C:\git\super-productivity\node_modules\ng2-dragula\dist\fesm2015\ng2-dragula.js depends on 'dragula'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
logger @ polyfills.js:6443
polyfills.js:6443 [webpack-dev-server] WARNING
C:\git\super-productivity\src\app\core\error-handler\global-error-handler.util.ts depends on 'new-github-issue-url'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
logger @ polyfills.js:6443
polyfills.js:6443 [webpack-dev-server] WARNING
C:\git\super-productivity\src\app\core\error-handler\global-error-handler.util.ts depends on 'p-throttle'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
logger @ polyfills.js:6443
polyfills.js:6443 [webpack-dev-server] WARNING
C:\git\super-productivity\src\app\core\error-handler\global-error-handler.util.ts depends on 'stacktrace-js'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
logger @ polyfills.js:6443
polyfills.js:6443 [webpack-dev-server] WARNING
C:\git\super-productivity\src\app\core\language\language.service.ts depends on 'moment'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
logger @ polyfills.js:6443
polyfills.js:6443 [webpack-dev-server] WARNING
C:\git\super-productivity\src\app\features\issue\providers\caldav\caldav-client.service.ts depends on '@nextcloud/cdav-library'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
logger @ polyfills.js:6443
polyfills.js:6443 [webpack-dev-server] WARNING
C:\git\super-productivity\src\app\features\issue\providers\caldav\caldav-client.service.ts depends on 'ical.js'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
logger @ polyfills.js:6443
polyfills.js:6443 [webpack-dev-server] WARNING
C:\git\super-productivity\src\app\features\issue\providers\jira\jira-api.service.ts depends on 'query-string'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
logger @ polyfills.js:6443
polyfills.js:6443 [webpack-dev-server] WARNING
C:\git\super-productivity\src\app\features\reminder\reminder.module.ts depends on 'helpful-decorators'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
logger @ polyfills.js:6443
polyfills.js:6443 [webpack-dev-server] WARNING
C:\git\super-productivity\src\app\features\worklog\worklog-export\worklog-export.component.ts depends on 'clipboard'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
logger @ polyfills.js:6443
polyfills.js:6443 [webpack-dev-server] WARNING
C:\git\super-productivity\src\app\features\worklog\worklog-export\worklog-export.component.ts depends on 'moment-duration-format'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
logger @ polyfills.js:6443
polyfills.js:6443 [webpack-dev-server] WARNING
C:\git\super-productivity\src\app\imex\sync\web-dav\web-dav-api.service.ts depends on 'webdav/web'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
logger @ polyfills.js:6443
polyfills.js:6443 [webpack-dev-server] WARNING
C:\git\super-productivity\src\app\ui\pipes\jira-to-markdown.pipe.ts depends on 'jira2md'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
logger @ polyfills.js:6443
polyfills.js:6443 [webpack-dev-server] WARNING
C:\git\super-productivity\src\app\util\download.ts depends on 'file-saver'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
logger @ polyfills.js:6443
polyfills.js:6438 [webpack-dev-server] Disconnected!
polyfills.js:6438 [webpack-dev-server] Trying to reconnect...
polyfills.js:6438 [webpack-dev-server] Live Reloading enabled.
polyfills.js:6443 [webpack-dev-server] Warnings while compiling.
logger @ polyfills.js:6443
polyfills.js:6443 [webpack-dev-server] WARNING in ./src/styles.scss (./src/styles.scss.webpack[javascript/auto]!=!./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[6].rules[0].oneOf[0].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[6].rules[0].oneOf[0].use[2]!./node_modules/resolve-url-loader/index.js??ruleSet[1].rules[6].rules[1].use[0]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[6].rules[1].use[1]!./src/styles.scss)
Module Warning (from ./node_modules/postcss-loader/dist/cjs.js):
Warning
(6196:3) autoprefixer: end value has mixed support, consider using flex-end instead
logger @ polyfills.js:6443
polyfills.js:6443 [webpack-dev-server] WARNING
C:/git/super-productivity/electron/CONFIG.ts is part of the TypeScript compilation but it's unused.
Add only entry points to the 'files' or 'include' properties in your tsconfig.
logger @ polyfills.js:6443
polyfills.js:6443 [webpack-dev-server] WARNING
C:/git/super-productivity/electron/backup.ts is part of the TypeScript compilation but it's unused.
Add only entry points to the 'files' or 'include' properties in your tsconfig.
logger @ polyfills.js:6443
polyfills.js:6443 [webpack-dev-server] WARNING
C:/git/super-productivity/electron/better-ipc.ts is part of the TypeScript compilation but it's unused.
Add only entry points to the 'files' or 'include' properties in your tsconfig.
logger @ polyfills.js:6443
polyfills.js:6443 [webpack-dev-server] WARNING
C:/git/super-productivity/electron/debug.ts is part of the TypeScript compilation but it's unused.
Add only entry points to the 'files' or 'include' properties in your tsconfig.
logger @ polyfills.js:6443
polyfills.js:6443 [webpack-dev-server] WARNING
C:/git/super-productivity/electron/error-handler-with-frontend-inform.ts is part of the TypeScript compilation but it's unused.
Add only entry points to the 'files' or 'include' properties in your tsconfig.
logger @ polyfills.js:6443
polyfills.js:6443 [webpack-dev-server] WARNING
C:/git/super-productivity/electron/full-screen-blocker.ts is part of the TypeScript compilation but it's unused.
Add only entry points to the 'files' or 'include' properties in your tsconfig.
logger @ polyfills.js:6443
polyfills.js:6443 [webpack-dev-server] WARNING
C:/git/super-productivity/electron/get-settings.ts is part of the TypeScript compilation but it's unused.
Add only entry points to the 'files' or 'include' properties in your tsconfig.
logger @ polyfills.js:6443
polyfills.js:6443 [webpack-dev-server] WARNING
C:/git/super-productivity/electron/indicator.ts is part of the TypeScript compilation but it's unused.
Add only entry points to the 'files' or 'include' properties in your tsconfig.
logger @ polyfills.js:6443
polyfills.js:6443 [webpack-dev-server] WARNING
C:/git/super-productivity/electron/jira.ts is part of the TypeScript compilation but it's unused.
Add only entry points to the 'files' or 'include' properties in your tsconfig.
logger @ polyfills.js:6443
polyfills.js:6443 [webpack-dev-server] WARNING
C:/git/super-productivity/electron/local-file-sync.ts is part of the TypeScript compilation but it's unused.
Add only entry points to the 'files' or 'include' properties in your tsconfig.
logger @ polyfills.js:6443
polyfills.js:6443 [webpack-dev-server] WARNING
C:/git/super-productivity/electron/lockscreen.ts is part of the TypeScript compilation but it's unused.
Add only entry points to the 'files' or 'include' properties in your tsconfig.
logger @ polyfills.js:6443
polyfills.js:6443 [webpack-dev-server] WARNING
C:/git/super-productivity/electron/main-window.ts is part of the TypeScript compilation but it's unused.
Add only entry points to the 'files' or 'include' properties in your tsconfig.
logger @ polyfills.js:6443
polyfills.js:6443 [webpack-dev-server] WARNING
C:/git/super-productivity/electron/main.ts is part of the TypeScript compilation but it's unused.
Add only entry points to the 'files' or 'include' properties in your tsconfig.
logger @ polyfills.js:6443
polyfills.js:6443 [webpack-dev-server] WARNING
C:\git\super-productivity\node_modules\ng2-charts\fesm2015\ng2-charts.js depends on 'chart.js'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
logger @ polyfills.js:6443
polyfills.js:6443 [webpack-dev-server] WARNING
C:\git\super-productivity\node_modules\ng2-dragula\dist\fesm2015\ng2-dragula.js depends on 'dragula'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
logger @ polyfills.js:6443
polyfills.js:6443 [webpack-dev-server] WARNING
C:\git\super-productivity\src\app\core\error-handler\global-error-handler.util.ts depends on 'new-github-issue-url'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
logger @ polyfills.js:6443
polyfills.js:6443 [webpack-dev-server] WARNING
C:\git\super-productivity\src\app\core\error-handler\global-error-handler.util.ts depends on 'p-throttle'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
logger @ polyfills.js:6443
polyfills.js:6443 [webpack-dev-server] WARNING
C:\git\super-productivity\src\app\core\error-handler\global-error-handler.util.ts depends on 'stacktrace-js'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
logger @ polyfills.js:6443
polyfills.js:6443 [webpack-dev-server] WARNING
C:\git\super-productivity\src\app\core\language\language.service.ts depends on 'moment'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
logger @ polyfills.js:6443
polyfills.js:6443 [webpack-dev-server] WARNING
C:\git\super-productivity\src\app\features\issue\providers\caldav\caldav-client.service.ts depends on '@nextcloud/cdav-library'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
logger @ polyfills.js:6443
polyfills.js:6443 [webpack-dev-server] WARNING
C:\git\super-productivity\src\app\features\issue\providers\caldav\caldav-client.service.ts depends on 'ical.js'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
logger @ polyfills.js:6443
polyfills.js:6443 [webpack-dev-server] WARNING
C:\git\super-productivity\src\app\features\issue\providers\jira\jira-api.service.ts depends on 'query-string'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
logger @ polyfills.js:6443
polyfills.js:6443 [webpack-dev-server] WARNING
C:\git\super-productivity\src\app\features\reminder\reminder.module.ts depends on 'helpful-decorators'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
logger @ polyfills.js:6443
polyfills.js:6443 [webpack-dev-server] WARNING
C:\git\super-productivity\src\app\features\worklog\worklog-export\worklog-export.component.ts depends on 'clipboard'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
logger @ polyfills.js:6443
polyfills.js:6443 [webpack-dev-server] WARNING
C:\git\super-productivity\src\app\features\worklog\worklog-export\worklog-export.component.ts depends on 'moment-duration-format'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
logger @ polyfills.js:6443
polyfills.js:6443 [webpack-dev-server] WARNING
C:\git\super-productivity\src\app\imex\sync\web-dav\web-dav-api.service.ts depends on 'webdav/web'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
logger @ polyfills.js:6443
polyfills.js:6443 [webpack-dev-server] WARNING
C:\git\super-productivity\src\app\ui\pipes\jira-to-markdown.pipe.ts depends on 'jira2md'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
logger @ polyfills.js:6443
polyfills.js:6443 [webpack-dev-server] WARNING
C:\git\super-productivity\src\app\util\download.ts depends on 'file-saver'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
logger @ polyfills.js:6443
DevTools failed to load SourceMap: Could not load content for http://10.0.2.2:4200/runtime.js.map: Unknown error
DevTools failed to load SourceMap: Could not load content for http://10.0.2.2:4200/polyfills.js.map: Unknown error
DevTools failed to load SourceMap: Could not load content for http://10.0.2.2:4200/styles.js.map: Unknown error
DevTools failed to load SourceMap: Could not load content for http://10.0.2.2:4200/styles.css.map: Unknown error
Errors:
:4200/main.js:1 Failed to load resource: net::ERR_CONTENT_LENGTH_MISMATCH
:4200/vendor.js:1 Failed to load resource: net::ERR_CONTENT_LENGTH_MISMATCH
:4200/assets/icons/favicon-192x192.png:1 Failed to load resource: the server responded with a status of 404 (Not Found)
:4200/assets/icons/favicon-32x32.png:1 Failed to load resource: the server responded with a status of 404 (Not Found)
:4200/assets/icons/favicon-16x16.png:1 Failed to load resource: the server responded with a status of 404 (Not Found)
@johannesjo ok sorry I did not know about chrome://inspect, I thought it was just another way to access DevTools, but it actually can help in debugging WebViews remotely. I'm reading some tutorials and I will try to debug further, thank you for the tip.
Ah and it's worth noting the issue only happens with the Super Productivity webapp, probably because of an issue with Angular. I tried to use another local webserver, Xampp, and it gets accessed fine inside the Android webview.
It seems that on some computers, the angular cli gets confused with which adapter to attatch to, even though i disabled all but my real wifi card, so --host 0.0.0.0
fixes this issue by instructing the server to ttach to all adapters, it's a common fix for hosting relted apps in general, a lot of other webtools implement a similar argument.
About your suggestion to inspect with chrome, I'm not sure it will help? The webapp: works with Chrome on host computer (Windows 10), works in Chrome Mobile inside the emulator, does NOT work in the Super Productivity Android app (i also tested using a simple generic webview, so it's not the Super Productivity Android app per se that is failing). So i would need a way to debut the webapp from inside the android webview, I'm not sure how to do that?
It's worth noting that both my nodejs and Android Studio installs are fresh, they were done pretty much to work on Super Productivity Android and another similar Android app.
@ffcruz85 no worries, thank you for your feedback! Yes now the filesync feature has beee merged. I unfortunately still cannot work on file attachments because I'd need to experiment on both the webapp and the android app simultaneously, but I can't make my local webapp work inside the Android Studio emulator (see https://github.com/johannesjo/super-productivity-android/issues/34). So someone else will have to try, hopefully my work on file sync can serve as an inspiration on how to handle file access on Android.