Open techlabz opened 6 years ago
Hi, to see all of the buck-related features requires having a .buckconfig setup in the project folder. I suggest starting from the ios buck sample: https://github.com/fbsamples/bucksamples/
@pelmers I've tried that still didn't work, do you happen to have a working sample that you have configured, I would like to try that.
Sorry I don't have a working example ready to link you at the moment. However the autocomplete features are only tested/supported internally on Xcode 9.3+.
Issue
I generally have to program in Mac/(Xcode/AppCode) when developing iOS apps since they have the autocomplete feature that I need, and others etc. But they have gotten painstakingly slow over upgrades, and it has become a nightmare at least to me, coming from Windows/(Eclipse,Visual Studio,Netbeans,etc) I was looking to see if there was other ide out there and I found none, but I did stumble on the atom editor and stumbled on this link https://nuclide.io/docs/languages/objective-c/. I'm new to the atom ide/nuclide package platform, but spent two-three days now trying to get autocomplete feature working with no avail. I'm also under the assumption that there prolly not a whole lot of developers using atom for objective-c, cause I couldn't find others having this issue.
Couple of issues I'm having, first clang doesn't seem to be autocompleting even when I tried the autocomplete-clang package, I don't know if it is because I'm compiling objective-c code rather than C/C++, and there hasn't been much work on that according to the documentation.
This picture right above is from this tutorial: https://nuclide.io/docs/languages/objective-c/, and was wondering whether it is suppose to let you know of this clang error during typing or during compiling, because I was able to get clang and buck feedback during buck building from the nuclide toolbar
This is what the tutorial said was possible to see, but I do not see this feedback at all when I start typing objective-c object types, also wasn't sure whether I would get completion for methods since I didn't see it in the tutorial. I'm also not able to see type hints, or jump to definitions, etc..
Just a side note: Facebook deprecated xctool, and it no longer works for xcode ide 8 and above so this is no longer feasible and this quote below, should probably be removed from the tutorial.
"You can also generate a compile_commands.json file with the json-compilation-databse reporter of xctool to get these features."
Another note is that following this tutorial on this link https://nuclide.io/docs/features/task-runner/
I couldn't see iphone 5 (10.1), I only saw iOS simulator: 64 bit, giving that and given that xctool was in the previous tutorial, I thought to myself maybe it worked with a previous version of xcode, so I completely recmoved(system, plists,etc.) xcode 10 and installed xcode 7 but I still couldn't get autocompletion working. Another note in nuclide toolbar only the tools icon (wrench/screwdriver) was the only option enabled for me the rest where greyed out. Even though I had the required headers in the buck and buck config file.
Other inconsistencies in the tutorial: I do not see this at all when I click on buck,I only see the option open nearest buck config file
This is also not possible for me to do as well.
Primary Links I referred to. https://nuclide.io/docs/languages/objective-c/ https://nuclide.io/docs/platforms/ios/ https://nuclide.io/docs/features/buck/ https://nuclide.io/docs/features/task-runner/ https://buckbuild.com/
Versions
Additional Details