r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[!Cheyenne] Discussions about the Cheyenne Web Server

Kaj
10-May-2011
[10523]
Does the encapper modify the file scheme? Couldn't that be extended?
Dockimbel
10-May-2011
[10524x2]
No, the encapper has no effect on file scheme.
File scheme is native, so no, it can't be extended.
Kaj
10-May-2011
[10526]
Is the VFS in the binary your own, then?
Dockimbel
10-May-2011
[10527]
Yes, but it is a very basic one and you need to use custom function 
calls, like: do-cache, load-cache, read-cache....
Kaj
10-May-2011
[10528x4]
Ah, that explains the differences between the binary and source versions. 
It would be good to neutralise those
It would also have been good if the file scheme in REBOL were hackable. 
Per-app namespaces are always useful
You'd basically get the framework Tamas wants
Any problem in computer science can be solved by adding another indirection.
Dockimbel
10-May-2011
[10532]
Kaj: I have pushed a fix for the verbose mode making Cheyenne crash 
when running as none-root. It works well here on my Linux box. Let 
me know if you have other issues (locally generated files issue aside).
onetom
10-May-2011
[10533]
btw, http://equi4.com/starkit/index.htmlis an encapping solution 
for tcl.

i just accidentally saw it mentioned in a rebol blog entry: http://www.rebol.com/cgi-bin/blog.r?view=0375#comments
 :)
Kaj
10-May-2011
[10534x2]
TCL has a capable VFS, similar to REBOL
Doc, it works, with -vvvvvv and even when I've run it as root first. 
It can't create all its logs then, but at least it doesn't crash. 
Thanks again!
Maxim
11-May-2011
[10536]
Doc, trying to start cheyenne   on win7 with UAC enabled, I get this 
error message: 

You need administrator rights to switch to Windows Services mode 
!
   

thing is I've never tried to switch to windows Service mode!!!


a part from the warning popping up the rebol console, the app seems 
to work ok.

this is with all releases I've tried, including the v142 release.
Dockimbel
11-May-2011
[10537]
the warning popping up the rebol console
 Are you running it from sources?
Maxim
11-May-2011
[10538]
yes
Dockimbel
11-May-2011
[10539]
Looking at the sources, I've found a code path leading to this error 
msg where the internal /quiet refinement is not honored. Fixing that.
Maxim
11-May-2011
[10540]
stupid question, can the source version run as a service, or only 
the binary one?
Dockimbel
11-May-2011
[10541x3]
IIRC, you can run it from sources too. Instead of putting cheyenne.exe 
as the service target, it will put rebol.exe.
But you might have issues with paths.
Max: fix released.
Maxim
11-May-2011
[10544]
thks.
onetom
11-May-2011
[10545x2]
11/5-23:48:50.843304-[HTTPd] Trying phase url-to-filename ( mod-static 
)

11/5-23:48:50.843599-## Error in [uniserve] : On-received call failed 
with error: make object! [
    code: 312
    type: 'script
    id: 'cannot-use
    arg1: 'path
    arg2: 'none!
    arg3: none
    near: [cfg/root-dir req/in/path req/in/target]
    where: 'rejoin
] !

any idea what can this be?
im not sure how to interpret the error message
(and why can't we see a line number for the error, btw?)
Kaj
11-May-2011
[10547]
Is your configuration complete? Seems like it may be missing the 
root dir
onetom
11-May-2011
[10548x3]
hm... i thought i wrote a message before the previous one or rather 
together with it... :/  or i just imagined... possible. i was tired.
ah, i wrote it to my collegue then forgot to write here too
so the issue was:

i had no default vhost defined and i was accessing a non-defined 
vhost.


but kaj, how can u read what u've just said from this error message?

those args are completely fucked up too. there is a lit-word of a 
datatype's name but without an exclamation mark, then comes none! 
as lit-word, then comes none as ... i don't know for sure, as a value?
Kaj
11-May-2011
[10551]
It says cannot use path near cfg/root-dir, so that seems to me to 
mean that the configuration lacks a root-dir :-)
onetom
11-May-2011
[10552]
>> cfg: none
== none
>> cfg/root-dir
** Script Error: Cannot use path on none! value
** Near: cfg/root-dir

like this?
Kaj
11-May-2011
[10553]
Almost. cfg is probably defined, but not the root-dir in it
onetom
11-May-2011
[10554x2]
>> cfg: []                
== []
>> cfg/root-dir           
** Script Error: Invalid path value: root-dir
** Near: cfg/root-dir
it would be like this, wouldn't it?
Kaj
11-May-2011
[10556]
Ah, maybe cfg is completely lacking, then
onetom
11-May-2011
[10557]
but why am i not getting such a nice and descriptive error?
btw, i was trying to catch this error, but no luck:
>> e: catch [cfg/root-dir]
** Script Error: Invalid path value: root-dir
** Near: cfg/root-dir
>> e: try [cfg/root-dir]  
** Script Error: Invalid path value: root-dir
** Near: cfg/root-dir

how can i get this as an error object, do i can explore?
Kaj
11-May-2011
[10558x2]
I think you're focusing too much on the details. I never noticed 
all those ' and ! :-)
If you would FORM that error, it may be a bit more like English. 
Or at least in R3
onetom
11-May-2011
[10560]
:) i've been told im too meticulous or what
Kaj
11-May-2011
[10561]
I notice that most programmers have a tendency to loose sight of 
the wood for the trees
onetom
11-May-2011
[10562]
btw, the thing above worked. 'e got its value. i was just confused 
by the output.
didn't know that an error! is displayed like that in the console
Kaj
11-May-2011
[10563]
It's a good skill to be able to sort out details. Most people can't. 
But you need to start with the overview to see the meaning and decide 
where to focus your efforts
onetom
11-May-2011
[10564]
i think i have a better understanding of most of the things compared 
to my collegues, so i usually excel in debugging and i think i thank 
this ability of mine being curious about such details, so i can understand 
things a lot deeper than the average fellows
Kaj
11-May-2011
[10565]
Probably
onetom
11-May-2011
[10566x2]
im just fucking curious, nah. can't help w that :)
and thx for putting me on track :)
Kaj
11-May-2011
[10568x3]
Me too, but it's times like these that differences with other people's 
brains pop up that I can't really put my finger on, either :-)
I always considered myself detail oriented, but there's still a difference 
with my peers
By the way, I also removed my default host, but I don't get errors 
when I go to localhost
Dockimbel
12-May-2011
[10571x2]
but why am i not getting such a nice and descriptive error?

 Because I am so used to read disarmed errors, that I don't require 
 pretty printing them. I guess I should change that.
I get an error when accessing a not defined vhost, but not the same 
as yours (it stops on missing 'default section here).