New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve the MicroPython simulator #1320
Comments
This comment has been minimized.
This comment has been minimized.
@embeddedt have a look at this example from here: What I like about Monaco is
So it's not a big difference, but even without a language server I think Monaco is nicer. |
There are other alternatives:
|
We already discussed those other alternatives, but they had a number of downsides (mainly spam concerns and size limitations). We concluded that SnippetBin was the best choice. |
Micropython SDL driver now accepts parameters for screen width and height. See: |
I think we need a hook for adjusting the window size after initialization as well. |
To simplify things, what if you let the user adjust it by interactively dragging the window edges? |
It'd be great, but I don't know if @embeddedt has time and interest to do it. |
I'm definitely interested in making it work, but finding the time is an issue. I definitely won't be able to start on this before February. |
No problem. We can add @amirgon's updates and improve it further when you can find time for it. |
I've started working on replacing the existing editor with Monaco. Hopefully I can get it done this weekend. |
The changes are pushed and live on https://sim.littlevgl.com. Let me know if you think anything needs adjusting. |
Look nice! |
Very nice!
I'm currently traveling, I'll have a look after I'm back next week.
…On Mon, Feb 10, 2020, 08:02 Gabor Kiss-Vamosi ***@***.***> wrote:
Look nice!
What were the "Á" characters in the screenshot?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1320>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACZS3LVS45VHFCD63P3NFUTRCDUVZANCNFSM4J6L4D3A>
.
|
At the time, the page was set to use ISO-8859-1 for the character encoding (not UTF-8), so I think it was interpreting
No rush; have a safe trip! |
@embeddedt it's not working for me.
I'm using latest Chrome (Version 78.0.3904.70 (Official Build) (64-bit)) on Linux. |
Hmm. It seemed to be working for me on Firefox when I wrote that message, but I've just tried it now in Chrome and it is in fact not working. I'll take a look when I get a chance. In the meantime, my latest commit to https://github.com/littlevgl/sim should be reverted (I'll try and do that today). |
Fixed... it should start working once GitHub Pages deploys my latest commit. |
I've just tried the new version and it works well in Firefox but the "Restart" button remains inactive in Chrome. |
@kisvegabor GitHub had issues with the new version for some reason (I got an error about one of the symlinks in the repository), so I think you're still seeing the old version. I'll fix it today. |
The new version is pushed and appears to work fine in Chrome now. Note that you may need to press Ctrl+F5 if it doesn't work the first time, as Chrome may still be caching the old, broken version. |
It does not work when passing
Also, could you list the parameters that the simulator accepts? ( EDITOne more thing I noticed - it seems like you are using an older micropython version:
Recent lv_micropython version is 1.12. |
I also got a question: In the latest master the API of It seems the simulator based on the last release and not master. Is that correct? |
Apparently, they were disabled in the JavaScript port's
The simulator is based on The logic for the JavaScript simulator uses the version number in I suppose, once there are breaking changes, |
Thanks for the explanation. |
Strange, I still get this problem even after "Clear Site Data" which clears the cache.
That's right.
I'm tracking LVGL releases so I'll get notified when v8.2 is released and will bump the Micropython bindings shortly afterwards. |
I know. Something went wrong this time, as the build date is still December 10th. It's not serving what I built on Saturday for some reason. I just haven't had a chance to fix it yet. I tried pushing a non-code-related change; maybe it'll work this time. |
@embeddedt I've update lv_micropython, fixed conflicts on the javascript branch, all GitHub action completed, cleared browser's cache... but I still see the older version of the simulator (v1.17 instead of v1.18). |
I've finally discovered that GitHub Pages has been failing to rebuild the sim repository since mid-December due to some submodule-related issue with the v6 version of MicroPython. I should have it working again in a couple of minutes. |
Simulator shows v1.18 now! Thanks. |
@embeddedt I suspect there is still some deployment problem. I'm seeing some errors on Chrome Devtools, I'm not sure if they are related:
|
It was a simulator-specific issue (not related to the 1.18 update). I've fixed it now. |
It works now! Thanks. |
I'm cleaning up the old pinned issues. This one is already quite long so I suggest opening a new more targeted issue for the remaining ideas. |
I still think it's best to host SnippetBin backend on LVGL server instead of Heroku (although this wasn't a blocker so far). |
As I mentioned earlier, it'd be possible to build a service around the "online editor" concept but our (business) focus is now on SquareLine. Ok, so I close it now. Please open a new issue(s), if something related comes up. |
@amirgon I am doing some refactoring/rewriting of the simulator frontend to make it cleaner and easier to maintain. Currently I have all features implemented again except the revision history slider, since the logic for it is a bit complicated. Do you use it often/do you think it's necessary? If you think it's worth keeping, I will add it back. |
I'm using it from time to time. I'm not sure if others do. The snippetbin backend supports it by maintaining everything in a git repository. Can't you simply keep the slider we have today? It doesn't have to look pretty as long as it's functional. |
@embeddedt The javascript merge workflow fails, but I'm not sure why. |
I'm not sure. I know there were recently efforts to change the merge algorithm in Git, so it's possible that your local version does merges slightly differently. I'd just push a manual merge this time. I can do it if you'd prefer. |
@embeddedt Could you add a link to v9 in https://sim.lvgl.io/ ? |
FYI, GitHub announced that they also updated their merge algorithm, so the inconsistency between a local machine and GitHub when merging is hopefully a thing of the past. |
Interesting! |
@embeddedt any idea why the javascript port build failed here?
|
I have no idea; that is a new error. I have just committed a typo fix to make the CI run; let's see if it occurs again. EDIT: Seems to be benc-uk/workflow-dispatch#50; I've applied the workaround described in that issue. EDIT 2: The error this time was a permission error because the bot is not allowed to modify workflow files (which it would do by merging the commit which added the workaround 😆). That error should not occur again. |
Looks ok now. Thanks! |
@embeddedt Another problem, looks like some permissions issue? https://github.com/lvgl/lv_micropython/actions/runs/3734837215/jobs/6337366663 |
Like last time it's because commits that touch the workflow files need to be merged by one of us. I have just done the merge manually. |
The MicroPython simulator is online and ready to use, but needs to be polished further.
Here is a list of improvements compiled by @amirgon:
The text was updated successfully, but these errors were encountered: