mit-dig / punya Goto Github PK
View Code? Open in Web Editor NEWPunya Framework powered by MIT App Inventor Technology
Home Page: http://punya.mit.edu/
License: Apache License 2.0
Punya Framework powered by MIT App Inventor Technology
Home Page: http://punya.mit.edu/
License: Apache License 2.0
I saw that the google drive component is not updated since 2013, probably since 8-9 years, @ewpatton Pls have a look at it
We need more user-friendly names for "ObjectType," "PropertyURI," "RelationToObject" and "SubjectIdentifier."
Describe the bug
Getting the following error when dragging a LocationProbeSensor onto the screen:
java.lang.NoSuchMethodError: No direct method (Lcom/google/gson/internal/ConstructorConstructor;Lcom/google/gson/FieldNamingStrategy;Lcom/google/gson/internal/Excluder;)V in class Lcom/google/gson/internal/bind/ReflectiveTypeAdapterFactory; or its super classes (declaration of 'com.google.gson.internal.bind.ReflectiveTypeAdapterFactory' appears in /data/app/~~cF5gEuahOyoqw4HVEvaB_w==/edu.mit.appinventor.punya.aicompanion3-V4hOJ9dUWuUw_fDdj9WEFg==/base.apk!classes2.dex)
05-28 09:21:23.969 19223 19223 E AndroidRuntime: at edu.mit.media.funf.config.ConfigurableTypeAdapterFactory.(ConfigurableTypeAdapterFactory.java:48)
05-28 09:21:23.969 19223 19223 E AndroidRuntime: at edu.mit.media.funf.FunfManager.getProbeFactory(FunfManager.java:410)
05-28 09:21:23.969 19223 19223 E AndroidRuntime: at edu.mit.media.funf.FunfManager.getGsonBuilder(FunfManager.java:361)
05-28 09:21:23.969 19223 19223 E AndroidRuntime: at edu.mit.media.funf.FunfManager.getGsonBuilder(FunfManager.java:352)
05-28 09:21:23.969 19223 19223 E AndroidRuntime: at edu.mit.media.funf.FunfManager.getGson(FunfManager.java:381)
05-28 09:21:23.969 19223 19223 E AndroidRuntime: at edu.mit.media.funf.FunfManager.onCreate(FunfManager.java:129)
05-28 09:21:23.969 19223 19223 E AndroidRuntime: at android.app.ActivityThread.handleCreateService(ActivityThread.java:4192)
05-28 09:21:23.969 19223 19223 E AndroidRuntime: at android.app.ActivityThread.access$1500(ActivityThread.java:237)
05-28 09:21:23.969 19223 19223 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1932)
05-28 09:21:23.969 19223 19223 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:106)
05-28 09:21:23.969 19223 19223 E AndroidRuntime: at android.os.Looper.loop(Looper.java:223)
05-28 09:21:23.969 19223 19223 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7656)
05-28 09:21:23.969 19223 19223 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
05-28 09:21:23.969 19223 19223 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
05-28 09:21:23.969 19223 19223 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
It seems that there are conflicting dependencies - in particular keyczar includes com.google.json classes that lack the registerTypeAdapterFactory.
Affects
LocationProbeSensor
Expected behavior
To not get an error message, I suppose.
Steps to reproduce
Drag and drop a LocationProbeSensor onto the screen in the public Punya instance, and connect to the MIT Punya Companion.
Add "HAVING" to SPARQL Component
We require the "HAVING" clause in SPARQL to implement the following query on the following endpoint [https://punya-sparql.csail.mit.edu/foodkg/namespace/kb/sparql]
``prefix sio: http://semanticscience.org/resource/
prefix dbr: http://dbpedia.org/resource/
SELECT ?s (COUNT(?ing) as ?count) WHERE {
?s http://idea.rpi.edu/heals/kb/tagged http://idea.rpi.edu/heals/kb/tag/vegetarian ;
http://idea.rpi.edu/heals/kb/uses ?ing.
}
GROUP BY ?s
HAVING (?count < 5)
``
When the extension is imported in Punya App Inventor, it gives a bug. This is issues is not in http://punya.appinventor.mit.edu/, but in masters.
When the extension is selected and click to import it gives issues.
foundIn = v183c-punya1-dirty
faultData = com.google.gwt.core.client.JavaScriptException: (TypeError) : Cannot read property 'Prb' of undefined
If affects Designer.
Regards,
Kunal Mishra
Starting 1/30/24 Google will no longer allow new deployments using Java 8. App Inventor has updated to Java 11 and Punya will need to be brought up-to-date in order to publish any new changes.
You should not have API Keys embedded in your public source. You are just asking for abuse...
App Inventor Test "project Service" is failing.
Google Cloud Messagging blocks in block editor launch an Exception but are accessible trough typing blocks names
Google Cloud Messaging properties don´t appear in the list of possible blocks
I'm trying to build AppInventor on Ubuntu 18.04 using Oracle JDK 8. The docs say that I should use Oracle Java 7 but that one is no longer available (only to Oracle customers). When running appinventor\ant
, I get the following error:
YaClientApp:
[java] Compiling module com.google.appinventor.YaClient
[java] Validating units:
[java] Ignored 7 units with compilation errors in first pass.
[java] Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.
[java] Finding entry point classes
[java] [ERROR] Errors in 'file:/home/william/punya/ewpatton/appinventor/appengine/src/com/google/appinventor/shared/rpc/project/ChecksumedLoadFile.java'
[java] [ERROR] Line 11: The import java.io.ObjectStreamClass cannot be resolved
[java] [ERROR] Unable to find type 'com.google.appinventor.client.Ode'
[java] [ERROR] Hint: Previous compiler errors may have made this type unavailable
[java] [ERROR] Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly
BUILD FAILED
/home/william/punya/ewpatton/appinventor/build.xml:16: The following error occurred while executing this line:
/home/william/punya/ewpatton/appinventor/appengine/build.xml:371: Java returned: 1
The full log: build_error_ubuntu.txt
Affects
Expected behavior
For the build to complete successfully.
Steps to reproduce
With the described setup, running ant
in the appinventor
subfolder.
Describe the bug
When entering a URI for a textbox in a LinkedDataForm, populating a LinkedData model with the form, and printing the RDF, a string literal is created instead of a URI.
Entering this as a bug since the ObjectType doc states "[..] If left blank, the system will attempt to intelligently identify the type based on features such as whether the text is a sequence of numbers or begins with "http://".".
Affects
LinkedData components
Expected behavior
For a URI resource to be generated, instead of a string literal
Steps to reproduce
Should be clear from the description
See here for an example project
When trying to compile a toy project in Punya I get the error below. Compiling it using App Inventor isn’t a problem (although it complains about the project version being too new). Maybe the build error logs from yesterday can shed some light ..
(The linked project is the latest version from App Inventor, which doesn’t compile in Punya either – but the original project in Punya had the exact same problem.)
Punya Framework is unable to compile this project.
The compiler error output was
________Preparing application icon
________Creating animation xml
________Creating fragment xml
________Creating style xml
________Creating provider_path xml
________Creating network_security_config xml
________Generating adaptive icon file
________Generating round adaptive icon file
________Generating adaptive icon background file
________Generating manifest file
________Attaching native libraries
________Attaching Android Archive (AAR) libraries
________Attaching component assets
________Invoking AAPT
AAPT time: 2.093 seconds
________Compiling source files
gnu.text.SyntaxException:
at kawa.Shell.run(Shell.java:257)
at kawa.Shell.runFile(Shell.java:490)
at kawa.Shell.runFileOrClass(Shell.java:428)
at kawa.repl.processArgs(repl.java:216)
at kawa.repl.main(repl.java:827)
Kawa compile time: 2.487 seconds
Affects
App compilation
For an app to be compiled without errors
Steps to reproduce
Import the .aia file into Punya and select Build > Android App.
If you go to the following site -
http://punya.appinventor.mit.edu/
The logo said MIT App Inventor and whatever branding we had before is gone. @MIT-Punya
Add UsesLibraries... annotations to all FunF components and test
My setup:
Java version 1.8.0_201
Ant version 1.10.8
Windows 10 Home (version 1909)
See attached for the error. I will try with an updated JDK (I had a relatively old one due to some old software dependencies, but I think 1.8 should work according to the docs?)
The handler at line 123 that handles the data message that is received and set's the Telephony Manager's properties depends on all properties being present in the data message and doesn't accept null values. Can have null values present if phone isn't connected to a cellular network.
Next round of App Inventor updates should be merged into Punya. (This would bring Punya to current version of AI 140b)
I deployed the buildserver on a separate machine, and configured AppInventor (appengine-web.xml
) to use the remote build server (both servers are on a local network). When building an app, the build server is called and the APK is successfully built. However, the AppInventor page is not being updated with the build progress ; it is stuck on 50%. I see a bunch of these errors in the build output:
IOException during progress report
Build server: Ubuntu 18.04 (java-8-openjdk-amd64/)
AppInventor server: Windows 10 (java oracle 1.8.0_201)
Which makes me believe that the build server is not able to contact AppInventor. As mentioned, I'm running the AppInventor and build servers on a local network - I know the documentation says that "The buildserver machine must be reachable from the public internet" (Section 6.2) - but that's currently not an option for me.
Affects
Expected behavior
For the build progress in AppInventor to proceed normally.
Steps to reproduce
Run the AppInventor and build servers on a local network, and update appengine-web.xml
to point towards the buildserver's local IP address.
Describe the bug
If you are not connected to the internet, the linked data component will cause a NPE when attempting to read data from the web. This kills the app.
Affects
Expected behavior
The component should gracefully handle lack of connectivity rather than causing an app crash.
Steps to reproduce
Create an app to read a TTL file from the web. Compile and install the app. Disconnect from the network. Run the app and attempt to load the file. Observe crash message.
When Hot Keys for Copy or Paste is pressed without clicking or selecting visible components, after pressing that moving the cursor to Visible Component and click on that Component show bugs.
This is the issues:
notes = Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36
foundIn = nb185a-punya3
faultData = java.lang.NullPointerException
projectId = 5720261504532480
Also, we can't drag and drop components after these issues and also we can't select component again.
This is the issues:
notes = Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36
foundIn = nb185a-punya3
faultData = com.google.gwt.event.shared.UmbrellaException: Exception caught: undefined
projectId = 5720261504532480
Pressing Hot Keys like Ctrl+C or Ctrl+X before selecting components, then clicking or selecting on Visible Components it produces bugs.
AddDataToWeb sends a SPARQL query using Content-Type application/sparql-query rather than as a URL-encoded query parameter with the Content-Type application/x-www-form-urlencoded. This causes it to fail to update triple stores such as Virtuoso, Fuseki, etc. that are following the spec.
Create translation templates for Punya Internationalization, create plan and integration for use with AI poodle server. (translation crowd sourcing server).
Describe the bug
When creating a new project, and then saving a copy of it, apps built from the copy will have the original project title.
This may look like a detail, but it's annoying to deal with - often these (intermediate) copies have different functionality that should be reflected by their title.
Affects
Expected behavior
For apps built from project copies to have the same title as the copied project.
Steps to reproduce
In the current repo (November merge with the App Inventor updates), the internationalization is not done/handled correctly - the Punya components are not internationalized. In the current App Inventor internationalization framework, each component method and property need to have the label in the message files. I don't see any Punya component labels in the message file. Because of this, all the Punya components are affected, or worse, they are not usable. Here are the screenshots for what they looked before the merge and what they look now -
Before, each property is visible and display property -
Now, each property is invisible and displayed as "hole" -
This should be fixed asap. @MIT-Punya
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.