Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slap flashes on screen for a split second and closes #229

Closed
kenmorechalfant opened this issue Nov 18, 2015 · 6 comments
Closed

Slap flashes on screen for a split second and closes #229

kenmorechalfant opened this issue Nov 18, 2015 · 6 comments
Labels

Comments

@kenmorechalfant
Copy link

No errors. It just closes immediately.

I'm on Ubuntu 14.04 using standard terminal.

@dbkaplun
Copy link
Member

@kenmorechalfant there should be more information in ~/.slap/slap.log. Can you paste it please?

@kenmorechalfant
Copy link
Author

2015-11-18T21:08:16.178Z - ^[[32minfo^[[39m: loading...
2015-11-18T21:08:35.228Z - ^[[32minfo^[[39m: loading...
2015-11-18T21:12:16.019Z - ^[[32minfo^[[39m: loading...
2015-11-18T21:12:33.739Z - ^[[32minfo^[[39m: loading...
2015-11-18T21:14:49.139Z - ^[[32minfo^[[39m: loading...
2015-11-18T21:14:55.528Z - ^[[32minfo^[[39m: loading...
2015-11-18T21:19:20.180Z - ^[[32minfo^[[39m: loading...
2015-11-18T21:19:42.142Z - ^[[32minfo^[[39m: loading...
2015-11-20T00:59:40.633Z - ^[[32minfo^[[39m: loading...

@kenmorechalfant
Copy link
Author

I also found out that if I create a new file by doing like:

slap nonexistantfile.txt

It works and I can edit the file and save it... But once I quit and try to edit the file again with the same command the program opens for a split second and closes itself.

@dbkaplun
Copy link
Member

Try running the same command with --logger.level silly at the end:

slap nonexistantfile.txt --logger.level silly

If you don't find anything in the logs, try adding util.logger.info('L61', err) at lib/ui/Slap.js line 61. (You can probably find it in /usr/lib/node_modules/slap/lib/ui/Slap.js depending on your installation.)

There is another (likely related) problem where errors during the loading process are thrown outside the current call stack, so there's no meaningful way to handle them: atom/text-buffer#110

@dbkaplun dbkaplun added the bug label Nov 20, 2015
@kenmorechalfant
Copy link
Author

Here's the output with --logger.level silly

https://gist.github.com/kenmorechalfant/a827dd95b95aaf314b01

Edit: I think my install of Node may be pretty out of date. I'm updating now.

@kenmorechalfant
Copy link
Author

So I updated Node and NPM which actually turned out to be a huge headache. I thought it would take 2 minutes but it took 2 hours. Problem after problem. But now I'm on Node 5.x and Slap seems to be working so far.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants