Comments (8)
Heh, I had set autochdir
for... some reason. Removing that makes :Mix test
behave as expected.
from alchemist.vim.
If you open a test file with vim test/foo_test.exs
that behaviour is expected. You can use for example vim-rooter if you want to alter the default vim behaviour regarding cwd handling. My 2 cents is this should not be alchemist.vim
's concern.
from alchemist.vim.
@killtheliterate it works for me, I'm not sure why it doesn't work in your box, can you do something like this with your project and past the response here:
milad@laptop-2 ~/d/ex_guard (master)> ls -l
total 88
...
-rw-r--r-- 1 milad staff 1163 May 3 22:35 mix.exs
-rw-r--r-- 1 milad staff 179 Mar 20 02:26 mix.lock
...
milad@laptop-2 ~/d/ex_guard (master)> vim -c ":Mix test"
...................
error connecting to VAL (No such file or directory)
..
error connecting to VAL (No such file or directory)
.
Finished in 0.1 seconds (0.1s on load, 0.06s on tests)
22 tests, 0 failures
One extra note, Mix
command only defined if you don't have any other Mix
plugin
from alchemist.vim.
@slashmili I think this may be a problem with netrw
or something. If I have a file open that lives in the project root, like mix.exs
, then :Mix test
runs, no problem. If I then open a file that lives in lib
, thats when alchemist mentions that it cannot find a mix file.
If I have mix.exs
open, and then use either netrw
or :e lib/foo.ex
to open another file, :Mix test
breaks in that scenario as well.
I'll examine my neovim config to see if there is something thats changing directory on file open.
from alchemist.vim.
Could you record the cases that you mention with asciinema.org
from alchemist.vim.
from alchemist.vim.
I see.
Looks like there is something wrong with your vim settings, I did the same thing here : https://asciinema.org/a/40ob1mhx8dcgwb404xf6k5xkj
from alchemist.vim.
I'll try fiddling around to see if I can get it working as expected. For reference, here is my .vimrc
from alchemist.vim.
Related Issues (20)
- socket is not available HOT 17
- K / ExDoc loses last line of documentation HOT 1
- Suggestions dont show up for deoplete HOT 2
- Feature Request: Let alchemist.vim call elixir_sense's "Referrers" code HOT 6
- failed to load deoplete source HOT 2
- something wrong editing the elixir code with spacevim HOT 1
- error on looking up for a function that is imported
- Error when work with YouCompleteMe HOT 1
- Problems installing with vim-plug for VimR (Neovim) on macOS? HOT 1
- Change short keys bindings for ExDoc? HOT 7
- ExDoc and ExDef for functions (or modules) in Embedded Elixir files HOT 1
- ExDoc shortcut fails when non-ascii characters present in source file HOT 7
- ExDoc is wrong arity for function called in 'pipeline' HOT 3
- Python error HOT 2
- When trying to jump to a function definition: Error: "E484: Can't open file: b' ..." HOT 3
- Autocomplete imports already written module HOT 7
- definition_not_found% for local definition in small project (wrong working directory?) HOT 5
- Autocomplete not works on Windows HOT 3
- Doesn't work on Ubuntu 20.04 HOT 6
- Can we change this to '<C-[>'?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alchemist.vim.