Closed facchinm closed 7 years ago
If anyone has any pointers where to start i.e. some details what has changed in the Arduino Editor and subsequently how to make Ardublock compliant that would be appreciated.
Here https://github.com/me-no-dev/EspExceptionDecoder/pull/10 you can find PR I made for another project to fix 1.6.12 compatibility issues.
You need to fix processing.app.Editor.setText
function which is no longer a member of Editor class but it's owned by the running Editor window instance. If you need any help we'll be glad to provide it (also via Developer mailing list)
/root/gitsource/ardublock/src/main
./java/com/ardublock/translator/block/Esplora/TFT_Text.java: "EsploraTFT.setTextSize("+Height+");"+ ./java/com/ardublock/ArduBlockTool.java: ArduBlockTool.editor.setText(source);
... ... public void didGenerate(String source) { ArduBlockTool.editor.setText(source); ArduBlockTool.editor.handleExport(false); } ... ...
Suggestions would be appreciated...
Thank you sir.
Hello, I have a problem. I was making block of Ardublock. but block model error(DefaultArg genus-name="DuinoEDU_A0") for openblocks. why not DuinoEDU A0. Can you tell me please. Thank you.
use stfc/ardublock: % mvn clean package -up -U [WARNING] Command line option -up is deprecated and will be removed in future Maven versions. [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building ArduBlock 2.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ Downloading: http://repo1.maven.org/maven2/edu/mit/openblocks/1.0.2-SNAPSHOT/maven-metadata.xml Downloading: http://repo1.maven.org/maven2/arduino/pde/1.1/pde-1.1.pom [WARNING] The POM for arduino:pde:jar:1.1 is missing, no dependency information available Downloading: http://repo1.maven.org/maven2/arduino/arduino-core/1.6.12/arduino-core-1.6.12.pom [WARNING] The POM for arduino:arduino-core:jar:1.6.12 is missing, no dependency information available Downloading: http://repo1.maven.org/maven2/arduino/pde/1.1/pde-1.1.jar Downloading: http://repo1.maven.org/maven2/arduino/arduino-core/1.6.12/arduino-core-1.6.12.jar [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 9.312 s [INFO] Finished at: 2016-12-11T11:42:37+08:00 [INFO] Final Memory: 12M/309M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal on project ardublock: Could not resolve dependencies for project org.ardublock:ardublock:jar:2.0.1-SNAPSHOT: The following artifacts could not be resolved: arduino:pde:jar:1.1, arduino:arduino-core:jar:1.6.12: Could not find artifact arduino:pde:jar:1.1 in central (http://repo1.maven.org/maven2) -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
"arduino" is not exists in http://repo1.maven.org/maven2/
@HonestQiao: Try running ‘mvn validate’ first and then do ‘mvn clean package’. When I was first investigating your comment I had the same problem. But now it works! And I think the only thing I did was run a validate command in-between.
@gregcorbett Thank your suggest. I use 'mvn install:install-file' to add the lib files by hand.
a problem comes up
here :
Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: genusName: DuinoEDU_A0 does not exist.
at edu.mit.blocks.codeblocks.Block.
@facchinm Will a new binary release be made available that works with Arduino 1.8.x ?
Since there was a huge cleanup of the Editor code during 1.6.11 -> 1.6.12 switch, some extensions do not behave correctly anymore. Ardublock, for example, fails as reported in https://github.com/arduino/Arduino/issues/5454 . Please update the relevant code so the functionality is restored on newer IDEs (reflections may be necessary when "linking" against the newer jars)