radian-software / riju

⚑ Extremely fast online playground for every programming language.

Home Page:https://riju.codes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Difficulties in setting up local environment on Windows 11

phamduylong opened this issue Β· comments

Hi πŸ˜„ Been having a hard time to get the project to run on my local machine. Some issues I found:

  1. Running bash scripts on Windows
    Running install.sh give out error on carriage return/line feed issues. Can be fixed easily but it would be nice to have a way to run it universally on all OS.

  2. Server spawn at server.js: 117

util.run(privilegedTeardown(), console.error).catch((err) => {
  console.error(err);
});

This gave an output of:

Error: spawn system/out/riju-system-privileged ENOENT
    at ChildProcess._handle.onexit (node:internal/child_process:284:19)
    at onErrorNT (node:internal/child_process:477:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'spawn system/out/riju-system-privileged',
  path: 'system/out/riju-system-privileged',
  spawnargs: [ 'teardown' ]
}
  1. Dep if I understood correctly is a deprecated project in Go for quite sometimes already, I cannot find a way to install it properly on Windows anymore.

Is there a possibilities to update instructions on how to get the project running? I would love to contribute on this project but it's impossible if I cannot get the project to run and test it. Thanks.

The main branch as it currently stands isn't buildable - see #168. I'm in the middle of moving to Kubernetes orchestration which will (among other things) involve removing the pty wrapper binary, which is probably why the riju-system-privileged error comes up in particular.

You'd probably be best off starting from an older revision of the project (though those have other issues).

Welp. I think the 1st and 3rd issues can still be resolved, especially with dep. Shouldn't have prematurely closed this issue.

Dep if I understood correctly is a deprecated project in Go for quite sometimes already

Well, I will say that the dep command in Riju is another name for Depgraph, the Riju build tool, and it has nothing to do with the Go tool by the same name:

riju/doc/build.md

Lines 88 to 99 in 553d552

$ dep --help
Usage: dep <target>...
Options:
--list list available artifacts; ignore other arguments
--manual operate explicitly on manual artifacts
--hold-manual prefer local versions of manual artifacts
--all do not skip unneeded intermediate artifacts
--registry interface with remote registry for caching
--publish publish artifacts to remote registries
--yes execute plan without confirmation
-h, --help display help for command

Running install.sh give out error on carriage return/line feed issues

I don't think there are any whitespace issues with the shell scripts in the repo, if there are problems cropping up, they are probably the fault of Windows. Maybe the Git settings need to be adjusted so Windows does not mangle line endings - https://stackoverflow.com/q/10418975