dhruvasagar / vim-prosession

Handle vim sessions like a pro
254 stars 22 forks source link

In windows this does not work #35

Closed alex-shamshurin closed 7 years ago

alex-shamshurin commented 7 years ago

This error is still exists https://github.com/dhruvasagar/vim-prosession/issues/31. When I make new session it saves session file without path, just the session name. When I try open it - "Directory not found".

dhruvasagar commented 7 years ago

How do you make the new session ?

alex-shamshurin commented 7 years ago

:Prosession <full path to project>

dhruvasagar commented 7 years ago

I just tried it and it seems to be working as expected. Here are the steps I used to try to reproduce the issue :

What are you doing different ?

alex-shamshurin commented 7 years ago

For what all these steps are? Just one step :Prosession c:\User\alex\workspace\myproject and project is created but path is wrong. The same is on Mac and Linux but it works as expected

dhruvasagar commented 7 years ago

I'll have to test on a windows box. Generally speaking it should work as long as the path itself exists and is correct.

alex-shamshurin commented 7 years ago

Path exists and correct, it has been autocompleted, so it's ok, and plugin creates a session file but when it's linux or mac the path contains full path with % symbols instead of slashes. On windows it creates a file which name is equal to last folder name, i.e. myproject with no path.

dhruvasagar commented 7 years ago

Try with the latest changes, it should work, if not, i'll have to debug on a windows machine. Will take a look later tonight.

alex-shamshurin commented 7 years ago

Ok, thanks.

alex-shamshurin commented 7 years ago

I does not work now at all. I updated plugin sources and what I get on startup: vim-prosession

And in command mode :Prosession <path to new project> I get this: vim-prosession2

dhruvasagar commented 7 years ago

My bad, there was a typo in there, kindly try now.

alex-shamshurin commented 7 years ago

Oh, now it's OK, thanks a lot. Much obliged. But I'll make another ticket for new options.

dhruvasagar commented 7 years ago

Good to know, thanks!