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

1.12 beta5 broken #4

Closed
skull-squadron opened this issue Oct 30, 2016 · 16 comments
Closed

1.12 beta5 broken #4

skull-squadron opened this issue Oct 30, 2016 · 16 comments
Labels
beta ✨ Something in this issue is beta

Comments

@skull-squadron
Copy link

/Applications/Atom-Beta.app/Contents/Resources/app.asar/src/task.js:52 Cannot find module '{{~}}/.atom/packages/terminal-plus/lib/fork.coffee' Error: Cannot find module '{{~}}/.atom/packages/terminal-plus/lib/fork.coffee'
    at Function.Module._resolveFilename (module.js:440:15)
    at Function.Module._load (module.js:388:25)
    at Module.require (module.js:468:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/Applications/Atom-Beta.app/Contents/Resources/app.asar/src/task-bootstrap.js:110:13)
    at Object.<anonymous> (/Applications/Atom-Beta.app/Contents/Resources/app.asar/src/task-bootstrap.js:112:4)
    at Module._compile (module.js:541:32)
    at Object.value [as .js] (/Applications/Atom-Beta.app/Contents/Resources/app.asar/src/compile-cache.js:201:21)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)
    at Module.require (module.js:468:17)
    at require (internal/module.js:20:19)
    at [eval]:2:1
    at ContextifyScript.Script.runInThisContext (vm.js:25:33)
    at Object.exports.runInThisContext (vm.js:77:17)
    at Object.<anonymous> ([eval]-wrapper:6:22)
    at Module._compile (module.js:541:32)
    at bootstrap_node.js:323:29
    at _combinedTickCallback (internal/process/next_tick.js:67:7)
    at process._tickCallback (internal/process/next_tick.js:98:9)(anonymous function) @ /Applications/Atom-Beta.app/Contents/Resources/app.asar/src/task.js:52
/Applications/Atom-Beta.app/Contents/Resources/app.asar/src/task.js:52 Cannot read property 'bind' of null TypeError: Cannot read property 'bind' of null
    at process.<anonymous> (/Applications/Atom-Beta.app/Contents/Resources/app.asar/src/task-bootstrap.js:82:23)
    at emitTwo (events.js:106:13)
    at process.emit (events.js:191:7)
    at process.nextTick (internal/child_process.js:719:12)
    at _combinedTickCallback (internal/process/next_tick.js:67:7)
    at process._tickCallback (internal/process/next_tick.js:98:9)(anonymous function) @ /Applications/Atom-Beta.app/Contents/Resources/app.asar/src/task.js:52
@Fred-Barclay
Copy link
Collaborator

I was afraid of that. I'll take a look but my javascript probably isn't good enough to fix this so we'll likely wait and see what the platformio devs do and act accordingly. 😄

Thanks for the report!

@skull-squadron
Copy link
Author

skull-squadron commented Oct 30, 2016

No worries, I hope we have more terminal options and you seem to have the most modern fork.

@skull-squadron
Copy link
Author

skull-squadron commented Oct 30, 2016

You're probably on the right track, one error maybe related to outdated pty.js but I could be wrong. It's the same errors as in other forks.

@skull-squadron
Copy link
Author

See also jeremyramin/terminal-plus#364 might help.

@Fred-Barclay
Copy link
Collaborator

Thanks mate. I'll take a look at it. 😄

@Fred-Barclay
Copy link
Collaborator

I've got a potential fix in. Could you install faketerm2 in Atom Beta (disable/uninstall termination first and restart Atom or you'll get a cosmetic warning) and see if it works? If so I'll work on getting the code merged here. If not... we'll probably have to wait and see what PlatformIO does.

Cheers!
Fred

@skull-squadron
Copy link
Author

skull-squadron commented Nov 1, 2016

faketerm2 and jeremyramin/terminal-plus work

@Fred-Barclay
Copy link
Collaborator

Does it really? I can't get faketerm2 to work (I installed Atom Beta to test) - I get a compile error. Can you walk me through what you do, your environment, etc?

This looks promising: jeremyramin/terminal-plus#362 (comment)

@skull-squadron
Copy link
Author

skull-squadron commented Nov 1, 2016

  1. close atom 1.12.0-beta5
    2.
$ mv ~/.atom ~/.atom.save # moves your real environment out of the way
$ apm-beta install faketerm2
Installing faketerm2 to {{~}}/.atom/packages ✓
$ atom-beta
  1. Ctrl+`
  2. Terminal appears
    (Be sure to rm -rf ~/.atom; mv ~/.atom.save ~/.atom)

@Fred-Barclay
Copy link
Collaborator

Thanks - will look into it. Since you can install faketerm2, I suspect that my trouble might be because I have both Atom and Atom Beta installed on my system (so two versions of electron?). The error messages would support this interpretation.

What OS are you using?

@Fred-Barclay Fred-Barclay added the beta ✨ Something in this issue is beta label Nov 1, 2016
@skull-squadron
Copy link
Author

skull-squadron commented Nov 1, 2016

macOS. I removed atom stable because they do step on each other (not fully isolated, share ~/.atom) Plus, you MUST rename Atom Beta (.app or .exe) to Atom-Beta (or something with full path to the executable without spaces) and patch atom.sh to support finding itself in a non-standard location, otherwise many, many packages will break strangely.

@Fred-Barclay
Copy link
Collaborator

Yup - that was the trouble. Removed Atom and reinstalled Atom Beta and faketerm2 works.

I do my dev and testing work with faketerm2 so I'll probably break it in a few days. I could merge the current faketerm2 code into a new package (maybe termination-beta or something) if you want so you could use that until Atom 1.12 is stable and I apply the changes to termination. Is that something that could help you?

@Fred-Barclay
Copy link
Collaborator

Update: working code pushed to the termination-beta branch. I'll merge it into master once Atom 1.12 becomes stable.

@Fred-Barclay Fred-Barclay reopened this Nov 1, 2016
@Fred-Barclay
Copy link
Collaborator

Fred-Barclay commented Nov 6, 2016

I believe that we're now fully compatible with Atom 1.11 and Atom 1.12-beta. 33ca4b1 @steakknife can you verify?

@skull-squadron
Copy link
Author

skull-squadron commented Nov 9, 2016

Works!

img

@Fred-Barclay
Copy link
Collaborator

Yahoo - thanks for opening the original bug and for testing! 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beta ✨ Something in this issue is beta
Development

No branches or pull requests

2 participants