proton

https://github.com/dvcrn/proton
dvcrn 2016-01-26T01:24:30.000018Z

@geksilla: it’s not linter. Even with disabled linter I am getting the lagg

dvcrn 2016-01-26T08:40:05.000019Z

hmm what do you think should we focus on next?

dvcrn 2016-01-26T08:40:17.000020Z

should we tackle the automated readmes or are there other more important features?

geksilla 2016-01-26T09:42:01.000021Z

readme would be great

geksilla 2016-01-26T09:44:21.000022Z

what do you think about option to choose input provider?

geksilla 2016-01-26T09:45:12.000024Z

select between vim, emacs or none

2016-01-26T15:29:53.000025Z

Did you see the updates to Proto REPL? That package seems to be coming along really nicely

2016-01-26T15:29:53.000026Z

https://atom.io/packages/proto-repl

geksilla 2016-01-26T15:41:34.000028Z

proto-repl integrated with proton check out Readme for more info about key bindings https://github.com/dvcrn/proton/blob/master/src/cljs/proton/layers/lang/clojure/README.md#proto-repl

2016-01-26T15:43:14.000030Z

would be nice if Proto REPL could connect to existing repl instance, like vim-fireplace does

2016-01-26T15:43:33.000031Z

just saying

geksilla 2016-01-26T15:56:43.000032Z

proto-repl + ink looks very exciting!

2016-01-26T15:57:12.000033Z

That’d be cool :simple_smile: (I’m quite familar with ink from my Julia work)

2016-01-26T15:58:30.000034Z

Is someone working on that ?

geksilla 2016-01-26T16:00:17.000035Z

you mean using ink in proto-repl?

2016-01-26T16:00:26.000036Z

Right.

2016-01-26T16:00:28.000037Z

I see that here: https://github.com/jasongilman/proto-repl/issues/22

geksilla 2016-01-26T16:01:19.000039Z

yes, initial work is done

2016-01-26T16:01:49.000040Z

Cool. Do you know if they want to use the ink console to house the REPL, or just use ink for inline stuff?

geksilla 2016-01-26T16:01:51.000041Z

you can activate it by switching config proto-repl.showInlineResults to true

geksilla 2016-01-26T16:02:33.000044Z

idk (

geksilla 2016-01-26T16:02:47.000045Z

just saw few words about ink in changelog

2016-01-26T16:02:53.000046Z

Ahh ok cool.

2016-01-26T16:02:54.000047Z

no problem, I was just curious

2016-01-26T16:44:19.000051Z

Welcome @one-more-minute

2016-01-26T16:45:08.000052Z

hello @sglyon

meow 2016-01-26T16:49:05.000053Z

I did a fresh install of Atom on Windows 10, then installed proton-mode and it appears to be hung. 😞

geksilla 2016-01-26T16:52:52.000054Z

looks like cannot create .proton file

geksilla 2016-01-26T16:53:33.000055Z

I thought that I fixed that(

geksilla 2016-01-26T16:55:08.000056Z

can you check USERPROFILE variable in your env?

meow 2016-01-26T16:55:32.000057Z

I just shut it down.

meow 2016-01-26T16:56:23.000058Z

How do I check that on Windows 10? I'm on a borrowed laptop.

geksilla 2016-01-26T16:58:50.000059Z

not a windows user but may be in this way? http://superuser.com/questions/949560/how-do-i-set-system-environment-variables-in-windows-10

geksilla 2016-01-26T17:00:30.000061Z

or you can run atom in safe mode, open dev tools and check for process.env value from develepor tools console

geksilla 2016-01-26T17:04:55.000062Z

also since atom uses node 4.x we can use os.homedir()

meow 2016-01-26T17:06:12.000063Z

Windows PowerShell
Copyright (C) 2015 Microsoft Corporation. All rights reserved.

PS C:\Users\patri> $env:USERPROFILE
C:\Users\patri
PS C:\Users\patri>

meow 2016-01-26T17:08:55.000064Z

PS C:\Users\patri> cd .atom
PS C:\Users\patri\.atom> dir


    Directory: C:\Users\patri\.atom


Mode                LastWriteTime         Length Name
----                -------------         ------ ----
d-----        1/26/2016  10:41 AM                .apm
d-----        1/26/2016  10:41 AM                .node-gyp
d-----        1/26/2016  10:56 AM                blob-store
d-----        1/26/2016  10:41 AM                compile-cache
d-----        1/26/2016  10:41 AM                packages
d-----        1/26/2016  10:39 AM                storage
-a----        1/26/2016  10:39 AM             46 .gitignore
-a----        1/26/2016  10:39 AM            117 config.cson
-a----        1/26/2016  10:39 AM            397 init.coffee
-a----        1/26/2016  10:39 AM           1031 keymap.cson
-a----        1/26/2016  10:39 AM            719 snippets.cson
-a----        1/26/2016  10:39 AM            794 styles.less

geksilla 2016-01-26T17:15:45.000065Z

ok, can you launch atom run dev tools and execute following snippet in console:

require('path').normalize(process.env.USERPROFILE);

geksilla 2016-01-26T17:16:17.000066Z

you can open dev tools by hitting Ctrl-shift-p and type dev tools

geksilla 2016-01-26T17:16:27.000067Z

even when proton hangs

meow 2016-01-26T17:17:58.000068Z

I'm brand new to atom. Don't know how to launch atom run dev tools

geksilla 2016-01-26T17:18:12.000069Z

launch atom

meow 2016-01-26T17:18:16.000070Z

ok

geksilla 2016-01-26T17:18:26.000071Z

hit Ctrl-shift-p to start Command Palete

geksilla 2016-01-26T17:18:50.000072Z

and type dev tools

meow 2016-01-26T17:19:19.000073Z

ok

geksilla 2016-01-26T17:19:27.000074Z

you will see command named Window: Toggle Dev Tools select it by enter

meow 2016-01-26T17:19:32.000075Z

done

geksilla 2016-01-26T17:19:52.000076Z

now in dev tools select console tab

geksilla 2016-01-26T17:20:27.000078Z

click on >>

geksilla 2016-01-26T17:20:34.000079Z

>>

geksilla 2016-01-26T17:20:36.000080Z

(

geksilla 2016-01-26T17:20:44.000081Z

click on arrows

meow 2016-01-26T17:20:53.000082Z

gotcha

geksilla 2016-01-26T17:21:18.000083Z

you'll see prompt

meow 2016-01-26T17:21:49.000084Z

require('path').normalize(process.env.USERPROFILE);
"C:\Users\patri"

geksilla 2016-01-26T17:22:01.000085Z

ok

geksilla 2016-01-26T17:23:01.000086Z

also can you try to execute

require('os').homedir()

meow 2016-01-26T17:23:32.000088Z

require('os').homedir()
"C:\Users\patri"

geksilla 2016-01-26T17:25:16.000089Z

the last one please

require('path').join(require('os').homedir(), '.proton')

meow 2016-01-26T17:25:46.000090Z

require('path').join(require('os').homedir(), '.proton')
"C:\Users\patri\.proton"

geksilla 2016-01-26T17:25:50.000091Z

cool

geksilla 2016-01-26T17:26:40.000092Z

do you use proton from source or installed by package manager?

meow 2016-01-26T17:31:13.000093Z

installed by package manager from within atom

meow 2016-01-26T17:31:38.000094Z

see first screenshot

geksilla 2016-01-26T17:32:14.000095Z

ok

geksilla 2016-01-26T17:32:29.000096Z

thanks a lot for debugging!

meow 2016-01-26T17:32:39.000097Z

np

geksilla 2016-01-26T17:32:50.000098Z

if you want I can share probably fixed compiled js

geksilla 2016-01-26T17:33:33.000099Z

so you can try to change it in ~/.atom/packages/proton-mode/lib/proton.js

geksilla 2016-01-26T17:33:42.000100Z

and it should work

meow 2016-01-26T17:33:57.000101Z

would rather wait for official release

meow 2016-01-26T17:34:19.000102Z

unless you need me to do it for debugging purposes

geksilla 2016-01-26T17:34:37.000103Z

yes, it would be cool to check that this fix is working

meow 2016-01-26T17:34:49.000104Z

then tell me what to do

geksilla 2016-01-26T17:38:38.000105Z

download this file https://www.dropbox.com/s/wh6lqto4auwxifs/proton.js?dl=0

geksilla 2016-01-26T17:39:17.000106Z

go to C:\Users\patri\.atom\proton-mode\lib\

geksilla 2016-01-26T17:39:45.000107Z

and replace original proton.js with downloaded

geksilla 2016-01-26T17:40:00.000108Z

and restart atom

meow 2016-01-26T17:42:54.000109Z

same error

geksilla 2016-01-26T17:43:21.000110Z

(

meow 2016-01-26T17:43:53.000111Z

PS C:\Users\patri\.atom\packages\proton-mode\lib> dir


    Directory: C:\Users\patri\.atom\packages\proton-mode\lib


Mode                LastWriteTime         Length Name
----                -------------         ------ ----
-a----        1/26/2016  11:41 AM        1258925 proton.js

geksilla 2016-01-26T17:46:41.000112Z

ok, I'll get windows vm and try to fix this issue.

geksilla 2016-01-26T17:47:09.000113Z

thanks for help!

geksilla 2016-01-26T17:48:03.000114Z

.proton detection should works fine in that proton.js, probably now issue with copying proton template file

meow 2016-01-26T17:49:28.000115Z

np - ping me when you think you've got it fixed and I'll try again - no hurry on my part - just want to try it

geksilla 2016-01-26T17:50:24.000116Z

ok

geksilla 2016-01-26T17:53:12.000117Z

you can also try to create .proton file C:\Users\patri\.proton with content from https://github.com/dvcrn/proton/blob/master/plugin/templates/proton.edn

geksilla 2016-01-26T17:54:16.000119Z

and restart atom

geksilla 2016-01-26T18:30:22.000120Z

just checked on windows 7 patched version works well when you create .proton in your home dir

geksilla 2016-01-26T18:30:44.000121Z

need to fix copy call

geksilla 2016-01-26T18:35:50.000122Z

another issue during package installation, looks like on windows apm is not available on path, need to check out how it works with BufferedProcess

geksilla 2016-01-26T19:02:30.000123Z

install packages works fine, just was very slow on vm

geksilla 2016-01-26T19:03:37.000124Z

@meow to run proton all what you need is just to create .proton and fill it with default template

geksilla 2016-01-26T19:16:34.000125Z

@meow new patched version https://www.dropbox.com/s/wh6lqto4auwxifs/proton.js?dl=0 manual create of .proton not required

meow 2016-01-26T19:17:43.000126Z

I manually created it and it is now installing 23 packages

geksilla 2016-01-26T19:18:14.000127Z

cool

geksilla 2016-01-26T19:18:39.000128Z

I'll send PR with fix

meow 2016-01-26T20:05:12.000129Z

how do I get to a repl

dvcrn 2016-01-26T23:07:54.000130Z

@geksilla we are using atoms API though to retrieve apm which I think is the absolute path

dvcrn 2016-01-26T23:08:08.000131Z

so it should work in windows

dvcrn 2016-01-26T23:09:06.000132Z

@meow: check out the proto repl readme and the keybindings setup here :simple_smile: https://github.com/dvcrn/proton/tree/master/src/cljs/proton/layers/lang/clojure

dvcrn 2016-01-26T23:10:01.000134Z

in general - when you are in a clojure file, everything under the SPC m s or , s menu is repl related