atom-archive / xray

An experimental next-generation Electron-based text editor
MIT License
8.48k stars 235 forks source link

Missing XRAY_SERVER_PATH environment variable #179

Closed borabaloglu closed 5 years ago

borabaloglu commented 5 years ago

I cannot start the app on macos. When I run the command "yarn start" on the directory xray_electron, it gives me "Missing XRAY_SERVER_PATH environment variable" this error.

fdionisi commented 5 years ago

Hey @borabaloglu. Have you tried to follow the steps described in CONTRIBUTING file?

borabaloglu commented 5 years ago

I figured it out, however still I cannot run the program. When I run the command "yarn start" I got this message:

(node:1101) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error: spawn EACCES (node:1101) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

fdionisi commented 5 years ago

Those are only Node deprecation warnings, but there's to say that to run Xray once you built it you should not run yarn start.

Instead, try to run XRAY_SRC_PATH=. script/xray . or XRAY_SRC_PATH=. script/xray_debug . (depending if you build the editor for development or release). This command should open an Electron app w/ a blank window. From there you can press cmd+T and open the file finder, type a file name (eg. readme) and press enter – mouse click is not supported yet.

borabaloglu commented 5 years ago

Thanks for help! I run it :)