c-smile / sciter-sdk

Sciter is an embeddable HTML/CSS/scripting engine
http://sciter.com
Other
2.11k stars 224 forks source link

Cannot open file from commandline #225

Open bkauler opened 1 year ago

bkauler commented 1 year ago

Hi, this works with your precompiled x86_64 html-notepad:

# ./html-notepad pupradiohelp.html

However, I have compiled from latest source, and get this:

# ./html-notepad pupradiohelp.html 
Error: View (View([object View])) has no method - argv
    at self.ready

I am compiling with gcc 9.3.0 and glibc 2.33

bkauler commented 1 year ago

Clarification: the pre-compiled x86_64 for linux html-notepad in latest source has the above bug. So the bug is in the source code, it is not because of my compile environment.

Your pre-compiled html-notepad downloaded from html-notepad.com works. This one works:

https://html-notepad.com/dist/html-notepad-dist.tar.gz

bkauler commented 1 year ago

Yeah, I downloaded b881a7a8799d1358d5fa7ab4cc1e82176fc928e1, June 9, 2019, html-notepad works correctly, opens the file from the commandline, without that error message.

bkauler commented 1 year ago

f8003e1ba5e645eeda664b3f406a6576ee9e8e7f, April 17, 2020 works. I jumped ahead to June 4, 2020, html-notepad is broken. So a commit somewhere in between is the culprit.

bkauler commented 1 year ago

Have narrowed it down to the day. This one is OK, May 9, 2020:

9c2da081c6c79034f86a49b008d2fe289086a514

One of the commits on May 11 2020 breaks loading the file from the commandline.