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 crashes when opening/saving a file #160

Closed
AwokeKnowing opened this issue May 14, 2015 · 6 comments
Closed

Slap crashes when opening/saving a file #160

AwokeKnowing opened this issue May 14, 2015 · 6 comments

Comments

@AwokeKnowing
Copy link

image

I can open up slap, but when I try to save a file, it crashes. also when I just type slap file.txt on the command line (Putty) it gives the error attached in the screenshot.

I suspect it's an install issue, but I can't figure how to fix it. The install script failed why installing node-gyp or something, and I found that if I added --unsafe-perm then it installed.

I'm running a mostly fresh install of ubuntu14.04 on amazon cloud

@dbkaplun
Copy link
Member

Hmm, for some reason my Ubuntu 14.04 VM hasn't been installing slap@latest... Can you try installing sudo npm install -g slap@0.1.27?

@AwokeKnowing
Copy link
Author

I did as you said, and it seemed to install ok, but the problem is still there. Let me know if there's anything else I can do to help resolve it.

james@clinux14:~$ sudo npm install -g slap@0.1.27

> execSync@1.0.2 install /usr/lib/node_modules/slap/node_modules/slap-clipboard-plugin/node_modules/copy-paste/node_modules/execSync
> node install.js

[execsync v1.0.2] Attempting to compile native extensions.
[execSync v1.0.2] Native extension compilation successful!
npm WARN engine hawk@0.10.2: wanted: {"node":"0.8.x"} (current: {"node":"0.10.38","npm":"1.4.28"})

> runas@2.0.0 install /usr/lib/node_modules/slap/node_modules/text-buffer/node_modules/pathwatcher/node_modules/runas
> node-gyp rebuild

make: Entering directory `/usr/lib/node_modules/slap/node_modules/text-buffer/node_modules/pathwatcher/node_modules/runas/build'
  CXX(target) Release/obj.target/runas/src/main.o
  CXX(target) Release/obj.target/runas/src/runas_posix.o
  CXX(target) Release/obj.target/runas/src/fork.o
  SOLINK_MODULE(target) Release/obj.target/runas.node
  SOLINK_MODULE(target) Release/obj.target/runas.node: Finished
  COPY Release/runas.node
make: Leaving directory `/usr/lib/node_modules/slap/node_modules/text-buffer/node_modules/pathwatcher/node_modules/runas/build'
npm WARN engine hoek@0.7.6: wanted: {"node":"0.8.x"} (current: {"node":"0.10.38","npm":"1.4.28"})
npm WARN engine boom@0.3.8: wanted: {"node":"0.8.x"} (current: {"node":"0.10.38","npm":"1.4.28"})
npm WARN engine cryptiles@0.1.3: wanted: {"node":"0.8.x"} (current: {"node":"0.10.38","npm":"1.4.28"})
npm WARN engine sntp@0.1.4: wanted: {"node":"0.8.x"} (current: {"node":"0.10.38","npm":"1.4.28"})

> pathwatcher@3.3.3 install /usr/lib/node_modules/slap/node_modules/text-buffer/node_modules/pathwatcher
> node-gyp rebuild

make: Entering directory `/usr/lib/node_modules/slap/node_modules/text-buffer/node_modules/pathwatcher/build'
  CXX(target) Release/obj.target/pathwatcher/src/main.o
  CXX(target) Release/obj.target/pathwatcher/src/common.o
  CXX(target) Release/obj.target/pathwatcher/src/handle_map.o
  CXX(target) Release/obj.target/pathwatcher/src/pathwatcher_linux.o
  SOLINK_MODULE(target) Release/obj.target/pathwatcher.node
  SOLINK_MODULE(target) Release/obj.target/pathwatcher.node: Finished
  COPY Release/pathwatcher.node
make: Leaving directory `/usr/lib/node_modules/slap/node_modules/text-buffer/node_modules/pathwatcher/build'
/usr/bin/slap -> /usr/lib/node_modules/slap/index.js
slap@0.1.27 /usr/lib/node_modules/slap
├── xtend@3.0.0
├── longjohn@0.2.4
├── traverse@0.6.6
├── rc@1.0.1 (strip-json-comments@0.1.3, deep-extend@0.2.11, ini@1.3.3, minimist@0.0.10)
├── mkdirp@0.5.1 (minimist@0.0.8)
├── iconv-lite@0.4.8
├── bluebird@2.9.25
├── slap-clipboard-plugin@0.0.10 (lazy.js@0.4.0, copy-paste@1.1.0)
├── lazy.js@0.3.2
├── lodash@2.4.2
├── blessed@0.1.56
├── highlight.js@8.5.0
├── winston@0.7.3 (cycle@1.0.3, stack-trace@0.0.9, eyes@0.1.8, colors@0.6.2, pkginfo@0.3.0, async@0.2.10, request@2.16.6)
├── update-notifier@0.3.2 (is-npm@1.0.0, string-length@1.0.0, chalk@1.0.0, semver-diff@2.0.0, latest-version@1.0.0, configstore@0.3.2)
├── cheerio@0.15.0 (entities@1.0.0, CSSselect@0.4.1, htmlparser2@3.7.3)
├── text-buffer@4.1.5 (atom-diff@2.0.0, interval-skip-list@2.0.1, event-kit@1.1.1, delegato@1.0.0, q@1.4.0, underscore-plus@1.6.6, fs-plus@2.8.0, span-skip-list@0.2.0, serializable@1.0.0, grim@1.4.1, emissary@1.3.3, pathwatcher@3.3.3)
└── node-clap@0.0.4 (npm@2.10.0)

The the error I get when opening a file is

image

@prashnts
Copy link

"Me too". Same error in OSX.
screen shot 2015-05-15 at 1 08 00 pm

@giorrrgio
Copy link

+1

@dbkaplun
Copy link
Member

8 days ago, a dependency was updated to use ES6 features, which NodeJS does not currently support. (See atom/text-buffer#61.) I've pinned atom/text-buffer's version so that it doesn't rely on ES6 anymore, and released a new version 0.1.28 of slap. Does that fix the issue?

@prashnts
Copy link

Yes, this version fixes the problem.

dbkaplun added a commit to dbkaplun/slap that referenced this issue Oct 31, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants