bingo
bingo copied to clipboard
Conditional compilation not working
Here is the sample bingo-bug.zip
How to reproduce:
- open b_linux.go
- open b_windows.go
- edit b_windows.go and save (just trigger bingo server)
Will show error other declaration of test2

I created an example that uses conditional complication which seems to work https://github.com/banaio/golanguageservertests/tree/conditional_compilation_issue_139. The branch name is conditional_compilation_issue_139. This package uses conditional compilation https://github.com/banaio/golanguageservertests/tree/conditional_compilation_issue_139/conditional_compilation_issue_139/fastwalk.
However, bingo itself seems to error on these files when I use VSCode:
-
langserver/internal/cache/fsnotify_darwin.go:-
other declaration of fsSubject -
other declaration of notify.
-
-
langserver/internal/cache/fsnotify.go:-
fsSubject redeclared in this block -
method notify already declared for type fsSubject struct{observer Observer} -
s.watched undefined (type *fsSubject has no field or method watched) -
s.watched undefined (type *fsSubject has no field or method watched)
-
Can you create a repository can you can clone, please. Not a zip file.