Re: [Github-comments] [geany/geany-plugins] Geanyctags: Re-generating ctags file fails (#1042)

2020-12-01 Thread nomadbyte
Thanks for suggesting the alternative. Perhaps, we should consider fixing Geanyctags to work with "vanilla" `ctags`, as this one is likely more commonly installed by default. I don't mind submitting the patch to restrict the `find` to `-type f`. This should not cause any issues, so far as I

Re: [Github-comments] [geany/geany-plugins] Geanyctags: Re-generating ctags file fails (#1042)

2020-12-01 Thread elextr
Exuberant ctags is very old and unmaintained, maybe try [Universal ctags](https://github.com/universal-ctags/ctags) which is maintained and is the source of most of Geany's real time parsers. It should be in Ubuntu's repository. -- You are receiving this because you are subscribed to this

Re: [Github-comments] [geany/geany-plugins] Geanyctags: Re-generating ctags file fails (#1042)

2020-12-01 Thread nomadbyte
Digging more into this... Obviously, this appears to be a known issue in [geanyctags.c](../blob/bc4dc07e4deb694b647977791a23af6776db4644/geanyctags/src/geanyctags.c#L234-L250) (albeit conditionally handled for Windows only). Looks like the issue is tied to the output from the `find` command

Re: [Github-comments] [geany/geany-plugins] Geanyctags: Re-generating ctags file fails (#1042)

2020-12-01 Thread elextr
That looks like a problem with ctags, not Geany. Geany-ctags is just running ctags. Whats your version of ctags? -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

[Github-comments] [geany/geany-plugins] Geanyctags: Re-generating ctags file fails (#1042)

2020-12-01 Thread nomadbyte
Using Geanyctags 1.38 on Ubuntu 20.04. On first use the 'Project > Generate tags' menu command completes correctly and generates a new .tags file for the project. After that, trying to re-generate the tags (repeat 'Generate tags') fails with the following error in the Messages pane: ``` find

Re: [Github-comments] [geany/geany] ctags unable to find variables that contain hyphen (#2679)

2020-12-01 Thread Saibal
thanks but I'm not a C developer, so I will wait if someone can solve this (in my opinion) bug. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/2679#issuecomment-736367044

Re: [Github-comments] [geany/geany] ctags unable to find variables that contain hyphen (#2679)

2020-12-01 Thread elextr
Not without somebody changing the code to pass the wordchars value from the filetype file. Pull requests are welcome. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Github-comments] [geany/geany] ctags unable to find variables that contain hyphen (#2679)

2020-12-01 Thread Saibal
ok, I'm sorry for mistake. so, no solution for that, right? -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/2679#issuecomment-736362201

Re: [Github-comments] [geany/geany] "make check" unittests fail on Windows (#2677)

2020-12-01 Thread elextr
I think they mean `newline` ie the LF character, thats what the C standard says and MS claims compatibility. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/2677#issuecomment-736362217

Re: [Github-comments] [geany/geany] "make check" unittests fail on Windows (#2677)

2020-12-01 Thread Jiří Techet
Yeah, but the curious thing is that they explicitly mention the first newline character and don't say something like until newline like in the unix documentation of the function. But yeah, we'll know more when we get the output from Enrico. -- You are receiving this because you are subscribed

Re: [Github-comments] [geany/geany] ctags unable to find variables that contain hyphen (#2679)

2020-12-01 Thread elextr
Thats a calltip, not autocompletion. Calltips require searching backward from the `(` to find a name to lookup, and thats one of the places I alluded to where only looking for C names is hard coded see the NULL at the end

Re: [Github-comments] [geany/geany] "make check" unittests fail on Windows (#2677)

2020-12-01 Thread Colomban Wendling
I really can't imagine Microsoft would have done that, as not only it's not conformant (newline character is `LF`) but it would also be super annoying on users (reading 2 "lines" for each one ending in `CRLF`). But well, who knows, maybe in binary mode they do just that…? Again, looking at

Re: [Github-comments] [geany/geany] "make check" unittests fail on Windows (#2677)

2020-12-01 Thread Jiří Techet
I have a suspect. I haven't checked exactly how we read the files for unit tests but it could be that we use MIO_FILE so the underlying OS implementation is taken. Microsoft documentation for fgets() https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/fgets-fgetws?view=msvc-160

Re: [Github-comments] [geany/geany] ctags unable to find variables that contain hyphen (#2679)

2020-12-01 Thread Saibal
autocomplete works for me too but not for possible values. take a look on screenshots ![Schermata a 2020-12-01 10-19-04](https://user-images.githubusercontent.com/3473910/100720902-f6a8ea00-33be-11eb-92c1-b7cacd3cc325.png) ![Schermata a 2020-12-01

Re: [Github-comments] [geany/geany] ctags unable to find variables that contain hyphen (#2679)

2020-12-01 Thread elextr
@saiballo your file works for me for both hyphenated and unhyphenated tags. While editing `geany.css` and with your tags manually loaded as `foo.css.tags` it appears to be working to me. If I type "curs" autocomplete offers "cursor", if I type "bord" autocomplete offers "border-bottom-style"

Re: [Github-comments] [geany/geany] ctags unable to find variables that contain hyphen (#2679)

2020-12-01 Thread Saibal
geany 1.38? last version is 1.37.1 this is an example of my ctags... it only works for tags without hyphen: cursor -> OK border-bottom-style -> KO # format=pipe #CSS properties pretend to be methods to provide code hint align-content||: | border-bottom-style||: none / hidden / dotted / dashed