Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Codi with python comments #104

Open
stebett opened this issue Feb 12, 2019 · 3 comments
Open

Codi with python comments #104

stebett opened this issue Feb 12, 2019 · 3 comments

Comments

@stebett
Copy link

stebett commented Feb 12, 2019

First of all, thank you for bringing to us this beautiful piece of code, and this is my first bug report on Git, so sorry if I don't behave correctly, please advise me correctly.

I've installed Codi.vim on neovim, and I discovered that if there is a comment after a line of code, and this comment reaches the 65th column, Codi won't work.
This is an example
print(5) #this is gonna work
print(5) #this is not gonna work because it's way toooooooooo long

I resolved the issue with the command
:g/^[^#]/normal f#i^M
which finds every line not starting with '#' and then finds the '#' character in the line and split the line just before it
Sorry if it has already been reported, I looked for it but I didn't find anything

@metakirby5
Copy link
Owner

Thanks for the report!

I can't reproduce this on Vim, but I do have a question about your case.
Does the issue persist if the line is too long, without comments?

For example:

print("incredibly_super_long_string_that_will_be_over_sixty_five_characters")

If the issue persists, then we will have to find a different fix.

@stebett
Copy link
Author

stebett commented Feb 13, 2019

No, it doesn't persist this way!
Anyway I couldn't have a big notebook working, but I don't get if it's for an issue or just for the dimension.
I tried commenting every line off the code but the first ones and it still didn't work.
Do you have any suggestion?

P.S. The code is in Python, I tried to wait like an hour but nothing happened

@metakirby5
Copy link
Owner

Hmm... I'm not really sure. I currently can't dedicate the time to look into this issue, but I will most certainly welcome any pull requests if you find a solution!

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

No branches or pull requests

2 participants