Error in WebView library

64 views
Skip to first unread message

Mansour Ayouni

unread,
Jan 15, 2026, 4:09:07 PMJan 15
to Youssef Saeed, The Ring Programming Language
Hello Youssef,

While testing the samples of the webview library, the samples from 1 to 4 worked fine, but starting from sample 5 and 6 (I stopped there), i get an error:

Line 55 Error (R19) : Calling function with less number of parameters

In function _ring_anonymous_func_1261() in file D:/Ring125/samples/UsingWebView/06_digital_clock.ring


Called from line 55 In webview_run() In method run() in file D:\Ring125\tools\ringpm\packages\webview\src/webview.ring


This function in the webview.ring file seems to be the root of the error:

image.png


All the best,

Mansour

Youssef Saeed

unread,
Jan 15, 2026, 5:15:43 PMJan 15
to The Ring Programming Language
Hello Mansour,

Thank you so much for the report!

Could you please update the package and try again by running:

ringpm update webview 

Best regards,
Youssef

Mansour Ayouni

unread,
Jan 15, 2026, 5:45:57 PMJan 15
to Youssef Saeed, The Ring Programming Language
Hello Youssef,

Great! The fix solved all the samples upto number 23 : they all work as expected.
Now, I'm testing sample 24 which requires the dialog library which I just installed. Now it raises this error:

Line 15 Error (R3) : Calling Function without definition: get_dialog_info
in file D:\Ring125\tools\ringpm\packages\dialog\src/dialog.rh


Although the dialog.rh file contains:

image.png

Best,

Mansour


--

---
You received this message because you are subscribed to the Google Groups "The Ring Programming Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ring-lang+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/ring-lang/ddd7e816-e1b4-4f33-832a-2ce55f42b472n%40googlegroups.com.

Youssef Saeed

unread,
Jan 15, 2026, 6:59:36 PMJan 15
to The Ring Programming Language
Hello Mansour,

Thank you again for the report.

The Ring Dialog package has been updated for Ring 1.25.

Please remove WebView by running:
ringpm remove webview

Then, install it again using:
ringpm install webview

Best regards,
Youssef

Mansour Ayouni

unread,
Jan 16, 2026, 3:29:58 AMJan 16
to Youssef Saeed, The Ring Programming Language
Hello Youssef,

The dialog issue is resolved!

Now test 25 raises an error related to the SysInfo extension:

Line 33 Parsing Error (JSONLib) : Can't parse the content
Get-Counter : Specified object can't be found on this computer.
At character C:\Users\ASUS V3607V CORE 5\AppData\Local\Temp\ub0.0.ps1:5 : 15
+ ... PU_USAGE = (Get-Counter '\Processor(_Total)\% Processor Time' -Sample ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidResult : (:) [Get-Counter], Exception
    + FullyQualifiedErrorId : CounterApiError,Microsoft.PowerShell.Commands.GetCounterCommand
 
{
    "disks":  [
                  {
                      "name":  "NVMe SAMSUNG MZVL8512HELU-00BTW",
                      "size":  500103450
                  }
              ],
    "version":  "10.0.26100",
    "isVM":  0,
    "cpu":  {
                "cpus":  [
                             {
                                 "threads":  12,
                                 "number":  1,
                                 "model":  "Intel(R) Core(TM) 5 210H",
                                 "cores":  8
                             }
                         ],
                "cores":  8,
                "threads":  12,
                "model":  "Intel(R) Core(TM) 5 210H",
                "count":  1,
                "usage":  0
            },
    "ram":  {
                "used":  13722752,
                "swap":  5242880,
                "free":  19831680,
                "size":  33554432
            },
    "parts":  [
                  {
                      "used":  143370160,
                      "name":  "C:",
                      "free":  100091980,
                      "size":  243462140
                  },
                  {
                      "used":  62811728,
                      "name":  "D:",
                      "free":  192163244,
                      "size":  254974972
                  }
              ],
    "os":  "Microsoft Windows 11 Professionnel",
    "shell":  {
                  "version":  "5.1.26100.7462",
                  "name":  "PowerShell"
              },
    "model":  "ASUS Vivobook 16 V3607VJ_V3607VJ",
    "network":  [
                    {
                        "status":  "up",
                        "ip":  "10.209.56.40",
                        "name":  "Realtek 8852BE Wireless LAN WiFi 6 PCI-E NIC"
                    }
                ],
    "gpu":  [
                {
                    "name":  "Intel(R) Graphics"
                },
                {
                    "name":  "NVIDIA GeForce RTX 3050 6GB Laptop GPU"
                }
            ],
    "pcount":  78
}
 
In raise() In function json2list() in file D:\Ring125\bin\load//../../libraries/jsonlib/jsonlib.ring

Called from line 25 in file D:/GitHub/stzlib/libraries/stzlib/base/test/temp/tempo.ring

Best,
Mansour 

Youssef Saeed

unread,
Jan 16, 2026, 9:48:22 AMJan 16
to The Ring Programming Language
Hello Mansour,

Thank you again for the report.

Could you please update SysInfo by running:

ringpm update SysInfo

Note:
In the future, I will update SysInfo to be a C extension for better performance and cross-platform compatibility.

Best regards,
Youssef

Mansour Ayouni

unread,
Jan 16, 2026, 1:20:42 PMJan 16
to Youssef Saeed, The Ring Programming Language
Hello Youssef,

Now it works nicely!
image.png

Thank you for the fix!
Waiting for the more performant extension...

Best,
Mansour

Mansour Ayouni

unread,
Jan 16, 2026, 1:34:12 PMJan 16
to Youssef Saeed, The Ring Programming Language
Hello Youssef,

Sample 29_mock_pos raises an error when we try to remove an item. To fix it remove the unnecessary [1] in this line:
image.png

Best,
Mansour

Mansour Ayouni

unread,
Jan 16, 2026, 1:44:45 PMJan 16
to Youssef Saeed, The Ring Programming Language
Hello Youssef,

Sample 21_avatar_quotes displays this window:
image.png

Along with this error on the console:

Ring: JavaScript requested a new Avatar quote.
Error fetching quote: Network Error: JSON error on line 1: '[' or '{' expected near end of file


Best,

Mansour


Youssef Saeed

unread,
Jan 16, 2026, 2:01:26 PMJan 16
to The Ring Programming Language
Hello Mansour,

Thank you again for your reports.

Sample 29_mock_pos raises an error when we try to remove an item.
This is now fixed. It was a leftover that I forgot to update when I switched all examples to use SimpleJSON.

Sample 21_avatar_quotes displays this window
This is also fixed. The original quotes API was down, so I have switched to mine: https://avatar.istan.to (Created with Ring; to be released later).

Please update the package by running:
ringpm update webview

Thank you again for taking the time to test the WebView examples.

Best regards,
Youssef

Mansour Ayouni

unread,
Jan 16, 2026, 2:11:24 PMJan 16
to Youssef Saeed, The Ring Programming Language
Hello Youssef,

Excellent! Everything is working!

I enjoyed all the samples, and found this tool for exploring one of the sites I visit daily (Hacker News) very useful!

image.png

Thanks again.
All the best,
Mansour

Youssef Saeed

unread,
Jan 16, 2026, 2:39:14 PMJan 16
to The Ring Programming Language
Hello Mansour,

Great to hear! I’m glad we got all the samples up and running.

Thank you again for the rigorous testing and for the kind words about the Hacker News tool. It’s been a pleasure working through these reports with you.

Best regards,
Youssef

Mansour Ayouni

unread,
Jan 16, 2026, 3:12:46 PMJan 16
to Youssef Saeed, The Ring Programming Language

Bert Mariani

unread,
Jan 16, 2026, 3:49:44 PMJan 16
to The Ring Programming Language
Hello Youssef, Mansour

As for the JSON Parsing Errors ...
Yahoo  occasionally when its very busy fetching stock quotes 
Will return string data with this Error:   <title>Yahoo! - Error report</title>
when it cannot present the actual stock quotes data

I get this in my programs, have to ignore and skip that particular  Stock Symbol.

//  Line 33 Parsing Error (JSONLib) : Can't parse the content
    //  <!doctype html public "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    //  <html>
    //  <head>
    //  <title>Yahoo! - Error report</title>
    //
    //  In raise() In function json2list()
    //  in//fileC:\ring\bin\load//../../libraries/jsonlib/jsonlib.ring
    //  Called from line 466 In function getquotes() 

Reply all
Reply to author
Forward
0 new messages