3 ms·
I'm not sure, I'd need to try. I'm also curious how this: (SystemWindow windowsIn: World satisfying: [:w | w model canDiscardEdits]) do: [
by klibertp 3y ago
I'm not sure, I'd need to try. I'm also curious how this:
(SystemWindow windowsIn: World
satisfying: [:w | w model canDiscardEdits])
do: [:w | w delete].
works in headless mode. I guess #windowsIn:satisfying: simply returns an empty array?
But, why do you ask?
- igouy 3y agoCurious as to whether Pharo does work with --headless on your Fedora install. (I don't currently have an Ubuntu install to poke.)
- klibertp 3y agoIt seems to work. I found Pharo 10 on disk, running it like this: -▶ ~/portless/pharolauncher/pharo-vm/pharo --headless Pharo10-SNAPSHOT-64bit-0618067.image a.st with a.st: Object subclass: #BenchmarksGame instanceVariableNames: '' classVariableNames: '' poolDictionaries: '' category: ''! Transcript show: BenchmarksGame! First signals an error: primitive #primLoadSymbol:module: in TFFIBackend failed this seems to be related to libgit, as the stacktrace ends with: LGitLibrary(FFILibrary)>>ffiCall: LGitLibrary>>libgit2_init but it continues running and displays: BenchmarksGame and then hangs. I suspect I should tell it to quit, but since I don't have the GUI, I can't easily check what method I should call to do that. Ctrl+C works though. So, yes, without loading the GUI the VM and image seem to work. BTW, Smalltalk/X has a fully functional REPL, including console based Inspector and debugger. Imagine what would happen if you suggested providing such functionality in Pharo... ("only masochists can bear working with terminal", the "incredible" community says)
- igouy 3y agoI wouldn't describe that as "seem to work". What if a.st is Stdio stdout nextPutAll: 'Hello, world'; nextPut: Character lf
- klibertp 3y agoHere: https://gist.github.com/piotrklibert/e953b7bf85821f88f02a3c24eedd62e7 https://gist.github.com/piotrklibert/e953b7bf85821f88f02a3c2... If you have an image with Seaside project (they should work in headless mode) or something similar laying around I can try running it, I suspect it'd work.
- igouy 3y agoFrom the gist that install doesn't work headless. Seems like this: https://github.com/pharo-project/pharo/issues/9729#issuecomment-1200243944 https://github.com/pharo-project/pharo/issues/9729#issuecomm...
- klibertp 3y agoI mean... it executed code that was supposed to print "Hello world\n" and it did print that, so how is it not working? :) I have no idea why is libgit needed to boot a VM (is it even?), but evidently some functionality is still available despite the error. Not that it changes much...
- igouy 3y agohttps://github.com/pharo-project/pharo/issues/9729#issuecomment-1200243944 https://github.com/pharo-project/pharo/issues/9729#issuecomm... When all the required dependencies are being found on your Fedora install we should wonder why "the VM seemed to hang and never started properly" but not before.
- klibertp 3y agoYeah, sure. But why would I put effort into providing the dependencies to Pharo on silver platter? I engaged here just to show that it, indeed, doesn't work for me and I'm not misrepresenting anything. Now, it even looks like a well known (yet still not fixed) problem, so I have no further need to do anything. And no, LD_PRELOAD is not something I should be using, or at least, I didn't need to use it with any other Smalltalk, nor any other program I tried to run in a the past decade. I did have to use it once, with Baldurs Gate 2 (Linux/steam version) and that's about it.
- igouy 3y agoIs it the missing `libpcre.so.3` `libpcreposix.so.3` ? ldd libgit2.1.0.0.so
- xkriva11 3y agoIn Pharo Launcher, go to "VMs" and try to delete the VM. Pharo should work on Windows just fine. If not, please, report it on the issue tracker with more details. > BTW, Smalltalk/X has a fully functional REPL, including console based Inspector and debugger. Imagine what would happen if you suggested providing such functionality in Pharo... ("only masochists can bear working with terminal", the "incredible" community says) You should not generalize in this way. Some people are working on the TUI Spec backend to allow all the tools to run from the console, and I don't know anyone who doesn't realize the importance of keyboard control.
- klibertp 3y ago> Pharo should work on Windows Wait, what? We're talking about Linux. Pharo Launcher also, obviously, doesn't display anything, so how could I do anything there? > report it on the issue tracker with more details. No. > You should not generalize in this way. Sorry, that was too much, you're right. While it is an exact quote from a member of the community, of course it doesn't mean everyone there is that bad. Good to know that some people have a bit of a common sense. Congrats.