proton 2016-01-26

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

hmm what do you think should we focus on next?

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

readme would be great

what do you think about option to choose input provider?

select between vim, emacs or none

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

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

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

proto-repl + ink looks very exciting!

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

Is someone working on that ?

you mean using ink in proto-repl?

yes, initial work is done

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

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

just saw few words about ink in changelog

no problem, I was just curious

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

looks like cannot create .proton file

I thought that I fixed that(

can you check USERPROFILE variable in your env?

I just shut it down.

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

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

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

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

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

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

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

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

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

even when proton hangs

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

launch atom

hit Ctrl-shift-p to start Command Palete

and type dev tools

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

now in dev tools select console tab

click on >>

click on arrows

you'll see prompt

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

also can you try to execute

require('os').homedir()

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

the last one please

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

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

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

installed by package manager from within atom

see first screenshot

thanks a lot for debugging!

if you want I can share probably fixed compiled js

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

and it should work

would rather wait for official release

unless you need me to do it for debugging purposes

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

then tell me what to do

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

and replace original proton.js with downloaded

and restart atom

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

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

thanks for help!

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

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

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

and restart atom

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

need to fix copy call

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

install packages works fine, just was very slow on vm

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

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

I manually created it and it is now installing 23 packages

I'll send PR with fix

how do I get to a repl

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

so it should work in windows

@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

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