Skip to content
This repository was archived by the owner on Apr 26, 2025. It is now read-only.

Tutorial 'npm install foam-framework' out of sync #5129

Open
mingodad opened this issue Jun 14, 2021 · 20 comments
Open

Tutorial 'npm install foam-framework' out of sync #5129

mingodad opened this issue Jun 14, 2021 · 20 comments

Comments

@mingodad
Copy link

I'm trying to follow the tutorial at http://foam-framework.github.io/foam/tutorial/todo/0-intro/ and did both git clone and npm install foam-framework and started with the npm by making a symlink but then when I tried to load the first model at http://localhost:8000/foam/index.html?model_=foam.browser.u2.BrowserController&model=com.todo.model.Todo&classpath=../js/ I've got this message:

Unable to load model: foam.browser.u2.BrowserController

Doing a diff between the npm package and the git cloned foam I noticed that then npm package uses model_ for property types but the git clone uses type like the tutorial, so I switched to the git clone and now I've got the expected output of the first Todo model.

@mingodad
Copy link
Author

By the way where the http://foam-framework.github.io/foam/ repository is located if it's public ?

@kgrgreer
Copy link
Contributor

kgrgreer commented Jun 14, 2021 via email

@mingodad
Copy link
Author

I'm asking for the content for http://foam-framework.github.io/foam/ it doesn't seem to come straight from the doc folder.

@mingodad
Copy link
Author

Also when trying the gmail demo I'm getting this:

http://foam-framework.github.io/foam/apps/gmail/main.html

https://accounts.google.com/signin/oauth/error?authError=Cg5kZWxldGVkX2NsaWVudBIdVGhlIE9BdXRoIGNsaWVudCB3YXMgZGVsZXRlZC4gkQM%3D&client_id=945476427475-oaso9hq95r8lnbp2rruo888rl3hmfuf8.apps.googleusercontent.com

Authorization Error
Error 401: deleted_client
The OAuth client was deleted.

@mingodad
Copy link
Author

Also when trying http://foam-framework.github.io/foam/pcalc/AppCalc.html I'm getting a blank screen and on devtools console:

Error with Permissions-Policy header: Unrecognized feature: 'interest-cohort'.
AppCalc.js:11707 Uncaught TypeError: document.registerElement is not a function
    at AppCalc.js:11707
    at AppCalc.js:11709

@kgrgreer
Copy link
Contributor

kgrgreer commented Jun 14, 2021 via email

@kgrgreer
Copy link
Contributor

kgrgreer commented Jun 14, 2021 via email

@mingodad
Copy link
Author

mingodad commented Jun 14, 2021

Could you add this to the README so other people will have it easy to find it ?

It comes from the foam(1) gh-pages site:

https://github.com/foam-framework/foam/tree/gh-pages

@kgrgreer
Copy link
Contributor

kgrgreer commented Jun 14, 2021 via email

@mingodad
Copy link
Author

That version relies on an old version of polymer that no longer works. This is the native FOAM version that is included in ChromeOS: http://foam-framework.github.io/foam/foam/apps/acalc/Calc.html

On Mon, 14 Jun 2021 at 13:02, Domingo Alvarez Duarte < @.***> wrote: Also when trying http://foam-framework.github.io/foam/pcalc/AppCalc.html I'm getting a blank screen and on devtools console: Error with Permissions-Policy header: Unrecognized feature: 'interest-cohort'. AppCalc.js:11707 Uncaught TypeError: document.registerElement is not a function at AppCalc.js:11707 at AppCalc.js:11709 — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#5129 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABY5PM3ET6Z3LKTZVFGYV2TTSYY2HANCNFSM46U2YDCA .

Also can that be fixed on the http://foam-framework.github.io/foam/ page because it do not give a good impression for people evaluating FOAM it appears to be abandoneware.

@kgrgreer
Copy link
Contributor

kgrgreer commented Jun 14, 2021 via email

@mingodad
Copy link
Author

I'm using:

Chromium
Version 91.0.4472.77 (Official Build) Built on Ubuntu , running on Ubuntu 18.04 (64-bit)

@kgrgreer
Copy link
Contributor

kgrgreer commented Jun 14, 2021 via email

@mingodad
Copy link
Author

Yes that link also works for me. This is what I mean by it seems that FOAM is abandoneware.

@kgrgreer
Copy link
Contributor

kgrgreer commented Jun 14, 2021 via email

@mingodad
Copy link
Author

At Google, external useability of FOAM was explicitly a non-goal.

Can that also be part of the README so no new user will bore to try FOAM ?

@kgrgreer
Copy link
Contributor

kgrgreer commented Jun 14, 2021 via email

@kgrgreer
Copy link
Contributor

Related to your suggestions:

We've merged some fixes for one tutorial, and are working on the other:
kgrgreer/foam3#491

I've updated foamdev.com to point to the new foam3 repository docs, instead of the old foam1 gh-pages.
I've also updated the cheat sheets to FOAM3 syntax.
I will continue to move over documentation from the older, out of date foam1 repository, to the new foam3 repository as I correct and update the docs.

At Google, the management mandate was to focus on functionality, not documentation or tooling, and that we would address those issues once we had proven out the concept and features. But now, FOAM is ten years old, and it's long past due that we shift our focus from new features to creating more support material and external tooling for the features that we already have, which is what we have been doing, but we have a huge backlog of functionality to catch up on.

Thanks

@mingodad
Copy link
Author

Thank you !
I hope more people will be able to know FOAM and do not go away due to a not so great first impression (that you seem to be fixing).

@mingodad
Copy link
Author

The issues is not active for https://github.com/kgrgreer/foam3 I'm trying it and it has the same problem reported here #5128

Downloading jetty-infinispan-9.4.30.v20200611.jar
wget -O lib/jetty-infinispan-9.4.30.v20200611.jar.sha1 https://repo.maven.apache.org/maven2/org/eclipse/jetty/jetty-infinispan/9.4.30.v20200611/jetty-infinispan-9.4.30.v20200611.jar.sha1
--2021-06-16 14:00:20--  https://repo.maven.apache.org/maven2/org/eclipse/jetty/jetty-infinispan/9.4.30.v20200611/jetty-infinispan-9.4.30.v20200611.jar.sha1
Resolving repo.maven.apache.org (repo.maven.apache.org)... 151.101.132.215
Connecting to repo.maven.apache.org (repo.maven.apache.org)|151.101.132.215|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2021-06-16 14:00:21 ERROR 404: Not Found.

build-aux/java.mk:117: recipe for target 'lib/jetty-infinispan-9.4.30.v20200611.jar' failed
make: *** [lib/jetty-infinispan-9.4.30.v20200611.jar] Error 8

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

No branches or pull requests

2 participants