<doulos05>
I tried to compile my file using `(asdf:operate :program-op :megastrike)`, which works for the cl-gtk4 examples, I get a error with parse-integer trying to parse nil.
<doulos05>
There's no line number, but this function contains the only calls to parse-integer that run before the menu screen loads.
<doulos05>
It works fine from the repl, unless I forget to IN-PACKAGE into my program, in which case it fails in the same place.
random-nick has quit [Ping timeout: 245 seconds]
<bike>
doulos05: if you need the parser to intern symbols in a particular package, you should bind *package* within your parser function. otherwise it will just use whatever *package* is in place at runtime, which may not be your megastrike package.
random-nick has joined #commonlisp
Gleefre has joined #commonlisp
<doulos05>
So if I have (let* ((*package* :megastrike) (data (loop to collect data))) (parse stuff)) That should work?
<bike>
(find-package :megastrike), but yes, then the read-from-strings will intern in the *package*.
dom2 has quit [Ping timeout: 240 seconds]
<bike>
by the way, if there's any possibility of this file being modified by an attacker, you should be pretty careful about using read-from-string. it can have all kinds of side effects and such. but maybe that's not a concern for this game file.
Pirx has joined #commonlisp
<Pirx>
good afternoon
waleee has joined #commonlisp
<doulos05>
Well, I'm certainly open to a better way to handle it. But it's getting late, so that'll have to wait.
wonko-the-sane has quit [Remote host closed the connection]
random-jellyfish has joined #commonlisp
random-jellyfish has joined #commonlisp
rgherdt_ has joined #commonlisp
rgherdt has quit [Ping timeout: 260 seconds]
X-Scale has joined #commonlisp
azimut has quit [Remote host closed the connection]
yitzi has quit [Remote host closed the connection]
azimut has joined #commonlisp
triffid has quit [Remote host closed the connection]
triffid has joined #commonlisp
msavoritias has quit [Ping timeout: 255 seconds]
tyson2 has quit [Read error: Connection reset by peer]
simendsjo has quit [Ping timeout: 248 seconds]
<NotThatRPG>
Anyone know if there's a CL test library that handles expected failures (i.e., by not treating xfails as failing a test suite, and by treating them as failures if they pass)?
<varjag>
wrap them in handler-case and retrun pass?
<beach>
Can't you handle that by using IGNORE-ERRORS?
sjl has joined #commonlisp
<bike>
it's convenient to be able to have a list of tests you expect to fail, based on system configuration or whatever, and then when you run the tests and the expected-to-fail tests fail you don't get an overall failure of the suite. so i don't think handling errors is the point.
<|3b|>
is failing to fail a failure?
<NotThatRPG>
beach: I could... but it's not really the right thing, and it's something that any modern test framework should have.
<beach>
I see.
<bike>
we have expected failures set up for ansi tests, but i don't think the rt framework it uses is independent enough
<NotThatRPG>
|3b|: Yes, in the sense that it requires attention. If you expect a test to fail, and it succeeds, you should at the very least examine your test suite
<NotThatRPG>
ALEXANDRIA uses RT, which doesn't handle this, which is a big pain for a library that must work across a wide variety of implementations.
* |3b|
supposes it is sort of a problem of things not having multiple levels of "needs attention", would be nice to have something in between
<NotThatRPG>
|3b|: Having to look at an expectation violation like this isn't really such a problem as to merit adding a lot of complication. Also, even if we had a test library that had multiple levels of needs attention, we don't have CI frameworks that do.
<NotThatRPG>
(that's an oversimplification)
<|3b|>
right, "ci frameworks" are included in the "things" that don't support it :/
<NotThatRPG>
At least one of the GitFOOs has actions that are permitted to fail, actually
<NotThatRPG>
I suppose I could add this to FiveAM, but then I would have to get it merged and.... I'd just rather take a solution off the shelf if one exists.
varjag has quit [Quit: ERC (IRC client for Emacs 27.1)]
<NotThatRPG>
I just want to fix Alexandria!
<NotThatRPG>
Is there a software engineering equivalent of the phrase "mission creep"?
<skin>
Yeah, scope creep.
<NotThatRPG>
skin: +1
danse-nr3_ has quit [Read error: Connection reset by peer]
<NotThatRPG>
"Dependency creep" could be a special case of scope creep
danse-nr3_ has joined #commonlisp
<NotThatRPG>
(Also it sounds like a personal insult -- "They're a real dependency creep.")
<NotThatRPG>
Thanks, everyone. TTYL. Please leave me a message if you think of such a test library
NotThatRPG is now known as NotThatRPG_away
<skin>
Sorry, one last one: "Yak Shaving" is the what is used for this type of thing also.
dino_tutter has quit [Ping timeout: 245 seconds]
random-jellyfish has quit [Read error: Connection reset by peer]
NotThatRPG_away has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
random-jellyfish has joined #commonlisp
random-jellyfish has joined #commonlisp
markb1 has joined #commonlisp
jon_atack has joined #commonlisp
jonatack has quit [Ping timeout: 252 seconds]
<bike>
::notify NotThatRPG not sure if you saw what I said, but ansi test RT supports expected failures now. If alexandria already uses RT it might be simple to adapt that code.
<Colleen>
bike: Got it. I'll let NotThatRPG know as soon as possible.
santiagopim has joined #commonlisp
danse-nr3_ has quit [Ping timeout: 258 seconds]
sjl has quit [Quit: leaving]
Gleefre has quit [Remote host closed the connection]
czy has joined #commonlisp
danse-nr3_ has joined #commonlisp
waleee has quit [Ping timeout: 240 seconds]
random-jellyfish has quit [Ping timeout: 252 seconds]
ec has quit [Remote host closed the connection]
ec has joined #commonlisp
Oladon has joined #commonlisp
Gleefre has joined #commonlisp
jeffrey has quit [Ping timeout: 240 seconds]
chomwitt has joined #commonlisp
yitzi has joined #commonlisp
viaken has quit [Ping timeout: 264 seconds]
ec has quit [Remote host closed the connection]
ec has joined #commonlisp
Redbird-ru has quit [Remote host closed the connection]
viaken has joined #commonlisp
JuanDaugherty has joined #commonlisp
cage has joined #commonlisp
bubblegum has joined #commonlisp
igemnace has quit [Remote host closed the connection]
dino_tutter has joined #commonlisp
zxcvz has joined #commonlisp
dcb has joined #commonlisp
Oladon has quit [Quit: Leaving.]
larix1 has joined #commonlisp
zxcvz has quit [Quit: zxcvz]
JuanDaugherty has quit [Quit: JuanDaugherty]
pranavats has joined #commonlisp
simendsjo has joined #commonlisp
alexsotodev has joined #commonlisp
NotThatRPG has joined #commonlisp
tok has joined #commonlisp
<fe[nl]ix>
NotThatRPG: fiveam is due a complete rewrite, similar to bordeaux-threads
makomo has joined #commonlisp
msavoritias has joined #commonlisp
danse-nr3_ has quit [Ping timeout: 255 seconds]
jeffrey has joined #commonlisp
pranavats has left #commonlisp [Error from remote client]
tyson2 has joined #commonlisp
waleee has joined #commonlisp
Inline has quit [Remote host closed the connection]
bendersteed has quit [Quit: bendersteed]
danza has joined #commonlisp
X-Scale78 has joined #commonlisp
X-Scale has quit [Ping timeout: 248 seconds]
X-Scale78 is now known as X-Scale
msavoritias has quit [Read error: Connection reset by peer]
cage has quit [Quit: rcirc on GNU Emacs 29.1]
Pixel_Outlaw has joined #commonlisp
Lycurgus has joined #commonlisp
rgherdt_ is now known as rgherdt
danza has quit [Ping timeout: 258 seconds]
dinomug has joined #commonlisp
Lycurgus has quit [Quit: leaving]
Gleefre has quit [Remote host closed the connection]
ldb has joined #commonlisp
Algernon69 has joined #commonlisp
Algernon69 has quit [Quit: Leaving]
ldb has quit [Ping timeout: 272 seconds]
thollief has quit [Quit: Leaving]
czy has quit [Ping timeout: 272 seconds]
random-jellyfish has joined #commonlisp
random-jellyfish has joined #commonlisp
random-jellyfish has quit [Changing host]
sjl has joined #commonlisp
Gleefre has joined #commonlisp
akoana has joined #commonlisp
tyson2 has quit [Remote host closed the connection]
simendsjo has quit [Ping timeout: 255 seconds]
Pirx has quit [Ping timeout: 255 seconds]
Pirx has joined #commonlisp
tok has quit [Remote host closed the connection]
shka has quit [Ping timeout: 240 seconds]
contrapunctus has left #commonlisp [#commonlisp]
X-Scale has quit [Quit: Client closed]
Gleefre has quit [Remote host closed the connection]
X-Scale has joined #commonlisp
Gleefre has joined #commonlisp
pranavats has joined #commonlisp
wonko-the-sane has joined #commonlisp
green_ has quit [Ping timeout: 258 seconds]
_whitelogger has joined #commonlisp
NotThatRPG has quit [Remote host closed the connection]
tyson2 has joined #commonlisp
jonatack has joined #commonlisp
jon_atack has quit [Read error: Connection reset by peer]
pve has quit [Quit: leaving]
Gleefre has quit [Remote host closed the connection]
X-Scale has quit [Ping timeout: 248 seconds]
azimut has quit [Ping timeout: 256 seconds]
dom2 has joined #commonlisp
random-jellyfish has quit [Ping timeout: 240 seconds]
NotThatRPG has joined #commonlisp
habamax has joined #commonlisp
NotThatRPG has quit [Client Quit]
mgl has joined #commonlisp
random-nick has quit [Ping timeout: 258 seconds]
notzmv has quit [Ping timeout: 240 seconds]
dino_tutter has quit [Ping timeout: 264 seconds]
Lycurgus has joined #commonlisp
<doulos05>
Anybody here using github actions with a Common Lisp project who is willing to look over my Github action and help me figure out what I'm doing wrong?
<doulos05>
I'm trying to use this action to build an executable for people who want to use this project but don't have lisp installed. I'm trying to get the linux build working first, but eventually I need MacOS and Windows.
<doulos05>
Do you have a github action that also works on windows? Could I get a look at it?
Lycurgus has quit [Quit: leaving]
<bike>
i've actually only used mac and linux, sorry.
<mfiano>
pngload has one for pretty much all platforms/impls
<mfiano>
(that matter)
<doulos05>
Ok, I'll read over theirs and try to figure it out
<bike>
can't believe you're not testing gcl on haiku.
glaucon has joined #commonlisp
<doulos05>
I don't necessarily want to use qlot, but it is what 40ants uses and I could not get windows to work at all
<mfiano>
:)
<mfiano>
I will test gcl on foo when gcl is not just g
<doulos05>
Ok, I'm going to go back to not using qlot, since I didn't really want to use it anyway, and see if I can figure something out between your example and pngload
<bike>
also if that is the idea, what lisp accepts an --exec command line argument?
<doulos05>
My first attempt at this didn't use exec, it had a much more traditional look to it.
<mfiano>
Our point is your last attempt didn't either
<doulos05>
Didn't it? This is me picking this particular problem back up after almost 8 weeks, so I'm struggling to remember where I was.
<mfiano>
read the help text it prints after your command, before the exit status. You can see that you passed --exec, but the help text says that it is not an argument, but a command named 'exec'.
<mfiano>
(going by memory, hopefully i didn't mess that up and confuse you even more)
<doulos05>
Ok, I'll read it again closely. But I think my plan is actually going to be to go through and rewrite so it grabs sbcl and then does the usual --load and --eval pattern
Pirx is now known as Pirx_off
<doulos05>
Basically taking the pngload yaml as a template and replacing their testing code with asdf:make
<mfiano>
qlot is for projects. roswell is for implementations (and more).
<mfiano>
if you are happy with no portability testing, sbcl is fine
<mfiano>
(and maybe even some conformance testing)
<doulos05>
Yeah, my test script will look different, but for now I'm trying to build a tar file I can ship to non-technical users with an executable in it for the 3 main platforms.
<doulos05>
But before I do that, I should probably be testing more than ~10% of the codebase.
rgherdt__ has joined #commonlisp
mgl has quit [Ping timeout: 255 seconds]
rgherdt_ has quit [Ping timeout: 258 seconds]
random-jellyfish has joined #commonlisp
random-jellyfish has joined #commonlisp
chomwitt has quit [Quit: Leaving]
random-jellyfish has quit [Ping timeout: 252 seconds]
tyson2 has quit [Remote host closed the connection]