Skip to content

Conversation

@GustavoMF31
Copy link

Using "\"-i\"," + ",\"-i\",".join(vim.vars['agdavim_agda_includepathlist']) to create the command for searching in the extra include paths was causing TypeError: sequence item 0: expected str instance, bytes found, because vim.vars returns a bytes object. This was preventing agda-vim, the python3 one by 1000000000, from working properly for me (I was getting "Goal not loaded" for everything i tried). I fixed it by mapping lambda x : x.decode() over the result of vim.vars, and it seems to work fine now. I've read somewhere that this might raise an Exception in the case the bytes aren't proper utf-8 byte sequences, so maybe some sort of handling should be added. This is my first pull request ever, so, sorry if i made any dumb mistakes.

@GustavoMF31
Copy link
Author

Oh, i've just seen the comment from derekelkins on the pull request for the python 3 version explaining this issue and describing other problems with it. I guess that needs to be fixed before any of this can be merged, so i will close this. I will keep using the python 3 version and report any bugs i find in that pr.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants