mjesteve / Royale-ECharts

Apache ECharts in Apache Royale
Apache License 2.0
1 stars 0 forks source link

ECharts - Undefined drop-down list items in VSCode release build #2

Open yourcto opened 3 years ago

yourcto commented 3 years ago

Hello, I like your work and would like to use in an upcoming project. I'm getting an 'undefined' for the items in the drop-down list when I try to do a release build in VSCode - details below. Everything works fine in the debug build. Do you have any ideas on what might be causing the issue?

EChart-undefined-issue

Version: 1.56.2 (system setup) Commit: 054a9295330880ed74ceaedda236253b4f39a335 Date: 2021-05-12T17:13:13.157Z Electron: 12.0.4 Chrome: 89.0.4389.114 Node.js: 14.16.0 V8: 8.9.255.24-electron.0 OS: Windows_NT x64 10.0.19042

Much appreciated John

mjesteve commented 3 years ago

Hi yourco, I'm glad you found the project interesting. It's half done, I'd like to find some time to resume it. The next step will be to create a compilable library in Royale to have echarts natively integrated.

I have a doubt... What branch are you on, you can compile the project right? Have you compiled the library and then the project?

yourcto commented 3 years ago

maven.txt

asconfig.txt pom.txt

Thanks for getting back to me....I had some issues trying to compile with Maven and have attached the error chain in a ext files as well as my config for pom and asconfig. I'm able to compile the examples project but not the main project src. So, I used the example but just copied the 'js' folder to the project root and was able to work in debug through my asconfig settings.

I've used Flex/Sparks before and just getting up and running with Jewel. I also use Moonshine, but that is not working for me at the moment..so, started using VSCode over the past couple of months.

I would appreciate your help in getting the first part to compile...seems that might be part of my problem....

..[ERROR] Failed to execute goal org.apache.royale.compiler:royale-maven-plugin:0.9.8-SNAPSHOT:compile-as (default-compile-as) on project royale-echarts: Could not resolve dependencies for project com.proj.example:royale-echarts:swc:1.0-SNAPSHOT: The following artifacts could not be resolved: org.apache.royale.framework:Core:swc:0.9.8-SNAPSHOT, org.apache.royale.framework:HTML:swc:0.9.8-SNAPSHOT: Could not find artifact org.apache.royale.framework:Core:swc:0.9.8-SNAPSHOT in apache-snapshots (https://repository.apache.org/content/repositories/snapshots) -> [Help 1] [ERROR]

Thanks

mjesteve commented 3 years ago

Let's go "slowly" and in parts because I am not a "guru" with Jewel :P In which branch are you "master" "develop"?

..[ERROR] Failed to execute goal org.apache.royale.compiler:royale-maven-plugin:0.9.8-SNAPSHOT:compile-as (default-compile-as) on project royale-echarts: Could not resolve dependencies for project com.proj.example:royale-echarts:swc:1.0-SNAPSHOT: The following artifacts could not be resolved: org.apache.royale.framework:Core:swc:0.9.8-SNAPSHOT, org.apache.royale.framework:HTML:swc:0.9.8-SNAPSHOT: Could not find artifact org.apache.royale.framework:Core:swc:0.9.8-SNAPSHOT in apache-snapshots (https://repository.apache.org/content/repositories/snapshots) -> [Help 1] [ERROR]

Are you using the pom's.xml that exist in the two projects? In this error it is telling you that it does not find the CORE and HTML artifacts. I'll zip you my configuration files and we'll go from there, is that ok?

[1] royale-echarts_config.zip (royale-echarts, folder .vscode and pom and asconfig.json) royale-echarts_config.zip image

[2] royale-echarts-examples_config.zip (royale-echarts-examples, folder .vscode and pom and asconfig.json) royale-echarts-examples_config.zip

I don't use asconfig.json, I always compile with maven: the pom's are the ones I can check. I look forward to hearing from you. Ivy.

mjesteve commented 3 years ago

do you compile the sdk or do you download the nightly version?

yourcto commented 3 years ago

Thanks for the files and will try things out over the weekend. I also found your previous discussion that lead me to this link that will definitely help. Will let you know how it goes... https://github.com/apache/royale-asjs/wiki/Create-Royale-project-with-Maven

I have an old version of apache-royale-0.9.8-bin-js from last year that works but tried a newer version and it broke a few things, so just went back to the previous version. It's been a year since the last big release and hoping something more stable in the works...I noticed that you have a crux config file and planning to move to that framework over the next couple months. Will let you know how the weekend testing goes and thanks again.

mjesteve commented 3 years ago

You definitely need to upgrade to a newer version. In one year there have been a lot of changes in the SDK. Don't worry about the bugs, I'll help you fix them, the important thing is that you have the most recent build you can. Right now they are preparing a new SDK release, but you can download it https://ci-builds.apache.org/job/Royale/job/Royale-asjs/

yourcto commented 3 years ago

Awesome, so that's where it is - I've been looking for 99...Just got my copy and will test it out. Thanks!!

mjesteve commented 3 years ago

yourcto, that address only has the asjs, you would need also the compiler and the typedefs and I can't find the downloads... I'm sorry. I compile the sdk from source and never go into the repos. In theory the main download server is the one indicated on the website (https://royale.apache.org/get-involved/) but I just tried and the server is not responding. :( If you want I'll share you a distribution, maybe it's the best. Let me know if you want me to compile it for you.

yourcto commented 3 years ago

I did have look but could not find as well. I think server not being available was the issue in the error message, if I'm not mistaken. If you can compile would be a great help. Much appreciated

yourcto commented 3 years ago

Your config files are working in VSCode and now gives me the right options but getting an error which I think might be related to your server comments. Attached the full error message.

maven2.txt Maven2

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.8:unpack (copy-resources) on project royale-echarts-examples: Unable to find artifact.: Failure to find com.iest.royale.echarts:royale-echarts:swc:js:1.0-SNAPSHOT in https://repository.apache.org/content/repositories/snapshots was cached in the local repository, resolution will not be reattempted until the update interval of apache-snapshots has elapsed or updates are forced [ERROR] [ERROR] Try downloading the file manually from the project website. [ERROR] [ERROR] Then, install it using the command: [ERROR] mvn install:install-file -DgroupId=com.iest.royale.echarts -DartifactId=royale-echarts -Dversion=1.0-SNAPSHOT -Dclassifier=js -Dpackaging=swc -Dfile=/path/to/file [ERROR]

mjesteve commented 3 years ago

You do not have the library compiled. You have to compile it at least once. 🥴

yourcto commented 3 years ago

Here's the latest. I was able to compile and attached the results of my build. Looks like everything compiled OK. I hope to start testing later this week. I'm guessing this is what is needed to do...I think I'm starting see what you mean.

Royale maven build.txt