Giter Site home page Giter Site logo

mit-dig / punya Goto Github PK

View Code? Open in Web Editor NEW
12.0 15.0 38.0 1.07 GB

Punya Framework powered by MIT App Inventor Technology

Home Page: http://punya.mit.edu/

License: Apache License 2.0

Java 68.02% Scheme 1.81% CSS 1.17% HTML 10.91% JavaScript 4.71% Python 1.35% Shell 0.11% C 0.06% Ruby 0.02% SCSS 0.08% Dockerfile 0.01% Batchfile 0.03% Objective-C 4.23% Swift 7.49% Makefile 0.01% Lex 0.01% Yacc 0.01%

punya's Issues

Issue while importing Extension.

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

AddDataToWeb method does not follow SPARQL 1.1 Update semantics

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.

Error in LocationProbeSensor (seems like conflicting dependencies)

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

  • Designer
  • Blocks editor
  • Companion
  • Compiled apps
  • Buildserver
  • Debugging
  • Other... (please describe)

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.

Error compiling Punya app

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

  • Designer
  • Blocks editor
  • Companion
  • Compiled apps
  • Buildserver
  • Debugging
  • Other... (please describe)

For an app to be compiled without errors

Steps to reproduce

Import the .aia file into Punya and select Build > Android App.

LinkedData component not robust to connectivity issues

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

  • Designer
  • Blocks editor
  • Companion
  • Compiled apps
  • Buildserver
  • Debugging
  • Other... (please describe)

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.

Copy Paste error in Punya Instance.

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

  • Designer
  • Blocks editor
  • Companion
  • Compiled apps
  • Buildserver
  • Debugging
  • Other... (please describe)

Pressing Hot Keys like Ctrl+C or Ctrl+X before selecting components, then clicking or selecting on Visible Components it produces bugs.

I need an up-to-date access to a Punya instance please. Any advice?

  1. I have tried building from https://github.com/mit-dig/punya sources but I keep getting errors on the compiling step. I have given up on that now cause I am not an expert and I can't get to eliminate these errors.
  2. I tried accessing the instance from http://punya.appinventor.mit.edu but the page has a bug so it displays funny. (see below)
    mit
  3. I also tried https://drive.google.com/open?id=0B3sPmoNzzT_obmNYUnFFYTh5S1U which is a link that was provided over 2 years ago via a user that had created PunyaAI2(stand alone). But this link seems to have expired.
    Anyway I am out of options and I was really looking forward to build an app with this. Is there any help, advice I can get on how to go about this issue? I really do wish I get an instance I can aceess, it will make things really easier for me. Thanks in advance.

Punya Internationalization issues

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 -
screen shot 2015-02-27 at 5 47 48 pm

Now, each property is invisible and displayed as "hole" -
screen shot 2015-02-27 at 5 47 14 pm

This should be fixed asap. @MIT-Punya

AppInventor not being updated with build progress (IOException during progress report)

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_output_ubuntu.txt

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

  • Designer
  • Blocks editor
  • Companion
  • Compiled apps
  • Buildserver
  • Debugging
  • Other... (please describe)

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.

Cannot build AppInventor on Ubuntu with Oracle JDK 8

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

  • Designer
  • Blocks editor
  • Companion
  • Compiled apps
  • Buildserver
  • Debugging
  • Other... (please describe)
    Building AppInventor

Expected behavior
For the build to complete successfully.

Steps to reproduce
With the described setup, running ant in the appinventor subfolder.

Textbox in LinkedDataForm with URI value does not yield URI resource

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

  • Designer
  • Blocks editor
  • Companion
  • Compiled apps
  • Buildserver
  • Debugging
  • [X ] Other... (please describe)

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

Add "HAVING" to SPARQL Component

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)
``

App title is not renamed after copying project

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

  • Designer
  • Blocks editor
  • Companion
  • Compiled apps
  • Buildserver
  • Debugging
  • Other... (please describe)

Expected behavior

For apps built from project copies to have the same title as the copied project.

Steps to reproduce

  • Create a new project "Test_test_test"
  • Save project as .. with new name "Test"
  • Build an APK from the "Test" project
  • The built app will have title "Test"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.