Enabling Code editor autocomplete and Theme

103 views
Skip to first unread message

Dean D. Babic

unread,
Jul 30, 2025, 4:34:06 AMJul 30
to Jam.py Users Mailing List
Hi all, 

long time ago I tried this and will soon release new v7 with it:
index_ace_theme_autocomplete_jampy.png
ace_theme_autocomplete_jampy.png
This is the only change needed (in builder, not in the app! Builder is in jam/builder  git folder):

        <!--<script src="jam/js/ace/ace.js"></script>-->
        <script src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.43.2/ace.js"></script>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.43.2/theme-tomorrow_night_blue.min.js"></script>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.43.2/ext-language_tools.min.js"></script>
        <script>
        // Load the Ace editor and language tools extension
        ace.require('ace/ext/language_tools');
       
        // Create an Ace editor instance
        var editor = ace.edit("editor");
        editor.setTheme("ace/theme/tomorrow_night_blue");
        // Configure autocompletion settings
        editor.setOptions({
            enableBasicAutocompletion: true,
            enableSnippets: true,
            enableLiveAutocompletion: true
        });

So, git pull the repository, cd into builder folder, and add above to builder.html
Then open the app and try it.
It is really easy.

The hard part is to make editor extension to use jam functions in full!
Something AI can help with.
D.

Fabio Lenzarini

unread,
Jul 30, 2025, 6:27:17 AMJul 30
to Dean D. Babic, Jam.py Users Mailing List
many thanks

Fabio

--
You received this message because you are subscribed to the Google Groups "Jam.py Users Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jam-py+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/jam-py/ea161ecc-a6e1-4060-8e6c-24508d6d2d74n%40googlegroups.com.

Moh. Sarip Hidayat

unread,
Aug 1, 2025, 2:10:16 AMAug 1
to Jam.py Users Mailing List
Looking good!

Recently I tested v7 and I'm impressed how good looking it is, and the mobile view is also working out of the box.

Do you have any plan or maybe a workaround so I can work on my code on Visual Studio Code?

Thank you.

Best Regards,
Moh. Sarip Hidayat
Visit my profile website at musahi0128.github.io

Dean D. Babic

unread,
Aug 3, 2025, 12:10:57 AMAug 3
to Jam.py Users Mailing List

Dean D. Babic

unread,
Aug 14, 2025, 2:17:47 AMAug 14
to Jam.py Users Mailing List
Here is what ChatGPT is suggesting about replacing Ace with VSC:


D.

Moh. Sarip Hidayat

unread,
Aug 14, 2025, 8:24:19 PMAug 14
to Jam.py Users Mailing List
Well, what I mean is to not using the built-in IDE and use Visual Studio Code instead. Replacing the editor does not bring the reach feature Visual Studio Code has to offer.

A while ago I was testing (in v5) to uncheck the All JS modules in a single file. They produce one file per client module but I'm still stuck editing it on the built-in IDE, because when I directly edit the files, the changes doesn't apply and the file get overridden again with the content from the built-in editor.

Dean D. Babic

unread,
Aug 14, 2025, 9:49:24 PMAug 14
to Jam.py Users Mailing List
Correct. Jam stores everything in the sqlite database.
This is integral part of Jam, because that is how Jam constructs a "chain of events".
Without having a relational database underneath, there would be no low-code app builder.

Take for example SAP. SAP also provides it's own IDE. For sure companies developed 
plugins for VSC, but SAP is a billion dollars industry.

Or MS Access. People using it do not use VSC. They are using low-code app builder.
One can use VSC to query data, but not to build the Forms, or run Access.

Moh. Sarip Hidayat

unread,
Aug 15, 2025, 1:37:49 AMAug 15
to Jam.py Users Mailing List
When I says built-in IDE, I refer to the editor part for client/server module. I didn't refer to the application builder as a whole. My apologize for the confusion.

Thank you.

Dean D. Babic

unread,
Aug 29, 2025, 3:54:25 AMAug 29
to Jam.py Users Mailing List

Here is the first glimpse of Monaco editor!

monaco_editor_jampy.png

All events valid for Ace will not work witk Monaco. So this will need to be mapped.

I now think that it is possible to replace Ace. But then, it is not really Visual Studio Code, 
but it is close. The question is what VCS does and Monaco or Ace does not with Jam?

As before, the chat is here:
https://chatgpt.com/share/689d7e16-50ec-8012-a839-9e448f42279d
Message has been deleted

Moh. Sarip Hidayat

unread,
Sep 13, 2025, 3:39:52 AMSep 13
to Dean D. Babic, Jam.py Users Mailing List
Hi Dean,

The question is what VCS does and Monaco or Ace does not with Jam?

For example, access to Github Copilot, or any AI tools that can help provide coding support in general, which the integration is provided through extension in VS Code.

I can imagine how cool it is if I can code the module in VS Code!

Thank you.

Best Regards,
Moh. Sarip Hidayat
Visit my profile website at musahi0128.github.io

--
You received this message because you are subscribed to a topic in the Google Groups "Jam.py Users Mailing List" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jam-py/psm1OLPFQJc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jam-py+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/jam-py/b740ac52-3cc5-4284-8316-c306b6782fadn%40googlegroups.com.

Dean D. Babic

unread,
Sep 14, 2025, 7:07:44 AMSep 14
to Jam.py Users Mailing List
Well, 
you CAN add the Ai from CDN to Monaco editor:
https://monacopilot.dev/

The online Jam.py App is needed for the endpoint:
https://monacopilot.dev/#register-the-ai-completion-to-your-editor

We can't provide the endpoint to you, it is your app :) 
Message has been deleted

Moh. Sarip Hidayat

unread,
Sep 14, 2025, 10:39:01 PMSep 14
to Dean D. Babic, Jam.py Users Mailing List
Hi Dean,

I appreciate your effort, but I feel my main point may not be coming across clearly.

Rather than zeroing in on the specific example I mentioned, I’d encourage a broader perspective—one that considers how leveraging the wider extension ecosystem of VS Code could enhance functionality and flexibility. That’s really the direction I’m aiming for, and I believe it could help us align better.

Thank you.

Best Regards,
Moh. Sarip Hidayat
Visit my profile website at musahi0128.github.io

Dean D. Babic

unread,
Sep 14, 2025, 11:04:27 PMSep 14
to Jam.py Users Mailing List
Hi

thanks for comment.

If you have a look at https://groups.google.com/g/py4web
you'll not find VSC. Or Monaco.

Infact, the web2py:
does not have it either:
Screenshot from 2025-09-15 10-55-07.png

Both of this products are mature with thousands of users, and more 
importantly many many contributors.
You are asking a wrong question:
- it is not what Jam can do for you, but what you can do for Jam.

That is how I see it. Open Source is not about taking a product and requesting for 
infinite help without any contribution.
That is not sustainable.  It is a social contract:
- you get the product as is, but no free service forever.

ChatGPT says:

So the point of Open Source is freedom, collaboration, and shared progress — not indefinite free labor. The imbalance happens when lots of users request help but only a few contribute back, which is why many projects burn out or move to paid support models.

That IS going to happen. It already did by Andrew leaving.




Moh. Sarip Hidayat

unread,
Sep 15, 2025, 1:36:28 AMSep 15
to Dean D. Babic, Jam.py Users Mailing List
Hi Dean,

Thank you for your response. I think there’s been a misunderstanding of my original question. I wasn’t asking for hand-holding or free labor—I simply want to use Visual Studio Code as my editor while building on Jam.py..

Jam.py is an incredible tool for non-technical users like me. I deeply appreciate how it lowers the bar for creating relational web apps. At the same time, my strengths lie outside of core development, so I struggle to contribute code directly.

Could you please suggest where non-technical volunteers can add the most value? I’m committed to giving back in a sustainable way.

Thank you for your patience and guidance.

Best Regards,
Moh. Sarip Hidayat
Visit my profile website at musahi0128.github.io

--
You received this message because you are subscribed to a topic in the Google Groups "Jam.py Users Mailing List" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jam-py/psm1OLPFQJc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jam-py+un...@googlegroups.com.

Dean D. Babic

unread,
Sep 15, 2025, 2:36:16 AMSep 15
to Jam.py Users Mailing List
I'm confused man...

The new Jam from v7.0.70 has impressive JavaScript coding support, 
the help is started  with right click in the editor. 

So right now, the complete Monaco installed is MUCH bigger than Jam.
VSC is mostly for building Node.js and Electron stuff.
No one builds CPP with VSC. It is not built for that. For sure it's possible, 
but...
As I wrote many times, compare oranges and apples, VSC has Microsoft support. 

Reply all
Reply to author
Forward
0 new messages