Material components and code completion

Hi,
I have a compiling ios app but code completion doesnt seem to work with the referenced material framework files.MaterialTableView.zip (7.0 MB)

If you look at the screenshot, that is me trying to get a list of methods for an object of type MDCFloatingButton

If I do the same with self.view, that works fine.

Thanks,
John

Looking at the solution tree, it seems that the references are not actually resolved correctly, so this would be expected? Note all the fellow triangles. As for why that might be, can you check the Resolve log that shows when you select the References node?

I get this

E: Invalid remote project ‘github.com/mosh/ImportSolution/MotionTransitioning.elements:’ referenced from ‘MaterialTableView’: project at ‘/Users/JohnMoshakis/Library/Application Support/RemObjects Software/EBuild/Packages/EBuild/github.com.mosh.ImportSolution’ does not exist.
E: Invalid remote project 'github.com/mosh/ImportSolution/MDFTextAccessibility.elements:
’ referenced from ‘MaterialTableView’: project at ‘/Users/JohnMoshakis/Library/Application Support/RemObjects Software/EBuild/Packages/EBuild/github.com.mosh.ImportSolution’ does not exist.
E: Invalid remote project ‘github.com/mosh/ImportSolution/MDFInternationalization.elements:’ referenced from ‘MaterialTableView’: project at ‘/Users/JohnMoshakis/Library/Application Support/RemObjects Software/EBuild/Packages/EBuild/github.com.mosh.ImportSolution’ does not exist.
E: Invalid remote project 'github.com/mosh/ImportSolution/MotionInterchange.elements:
’ referenced from ‘MaterialTableView’: project at ‘/Users/JohnMoshakis/Library/Application Support/RemObjects Software/EBuild/Packages/EBuild/github.com.mosh.ImportSolution’ does not exist.
E: Invalid remote project ‘github.com/mosh/ImportSolution/MaterialComponents.elements:’ referenced from ‘MaterialTableView’: project at ‘/Users/JohnMoshakis/Library/Application Support/RemObjects Software/EBuild/Packages/EBuild/github.com.mosh.ImportSolution’ does not exist.
E: Invalid remote project 'github.com/mosh/ImportSolution/MotionAnimator.elements:
’ referenced from ‘MaterialTableView’: project at ‘/Users/JohnMoshakis/Library/Application Support/RemObjects Software/EBuild/Packages/EBuild/github.com.mosh.ImportSolution’ does not exist.
E: Invalid remote project ‘github.com/mosh/ImportSolution/MaterialComponentsBeta.elements:*’ referenced from ‘MaterialTableView’: project at ‘/Users/JohnMoshakis/Library/Application Support/RemObjects Software/EBuild/Packages/EBuild/github.com.mosh.ImportSolution’ does not exist.

Project Reference ‘github.com/mosh/ImportSolution/MDFTextAccessibility.elements:’ could not be resolved for target ‘Toffee-iOS’ (Toffee iOS arm64).
Project for reference 'github.com/mosh/ImportSolution/MDFInternationalization.elements:
’ was not found in the solution.
E: Project Reference ‘github.com/mosh/ImportSolution/MDFInternationalization.elements:’ could not be resolved for target ‘Toffee-iOS’ (Toffee iOS arm64).
Project for reference 'github.com/mosh/ImportSolution/MotionInterchange.elements:
’ was not found in the solution.
E: Project Reference ‘github.com/mosh/ImportSolution/MotionInterchange.elements:’ could not be resolved for target ‘Toffee-iOS’ (Toffee iOS arm64).
Project for reference 'github.com/mosh/ImportSolution/MaterialComponents.elements:
’ was not found in the solution.
E: Project Reference ‘github.com/mosh/ImportSolution/MaterialComponents.elements:’ could not be resolved for target ‘Toffee-iOS’ (Toffee iOS arm64).
Project for reference 'github.com/mosh/ImportSolution/MotionAnimator.elements:
’ was not found in the solution.
E: Project Reference ‘github.com/mosh/ImportSolution/MotionAnimator.elements:’ could not be resolved for target ‘Toffee-iOS’ (Toffee iOS arm64).
Project for reference 'github.com/mosh/ImportSolution/MaterialComponentsBeta.elements:
’ was not found in the solution.
E: Project Reference ‘github.com/mosh/ImportSolution/MaterialComponentsBeta.elements:*’ could not be resolved for target ‘Toffee-iOS’ (Toffee iOS arm64).
<- Task __RemObjects_EBuild_Elements_ElementsResolveToffeeReferencesForTarget finished for MaterialTableView, Toffee-iOS, took 0.0361s (0.0374s)

Curious. have these been built yet? If you build, and Re-resolve (or restart Fire) do the references work? if not, can I get a tetscase? thanx!

My testcase was a zip in the 1st post.

If I build and restart Fire, when it restarts the references work.

ah missed it, sorry.

Ok, then that’s pretty much as designed; before these are built, the IDE can’t see them ;P.

That said, the rep-resolve after the first build should suffice, without a restart; I’ll investigate.

—marc

Definitely something weird here:

E: Invalid remote project 'github.com/mosh/ImportSolution/MotionTransitioning.elements:*' referenced from 'MaterialTableView': project at '/Users/mh/Library/Application Support/RemObjects Software/EBuild/Packages/EBuild/github.com.mosh.ImportSolution' does not exist.

this should have the full project file name, not just the folder. investigating…

That is the full project name isn’t it ?

No, /Users/mh/Library/Application Support/RemObjects Software/EBuild/Packages/EBuild/github.com.mosh.ImportSolution is the folder, its missing the filename. Already found the bug, but fixing it exposed a compiler bug and I can’t build the fix >:(. Will need to wait til tomorrow, sorry.

1 Like

Should be fixed; after the first build, all references that did compile successfully load for me, and CC shows.

that said, your project, for me, fails to import the last reference with

               Parsing (root) file: MaterialComponentsBeta/MDCActionSheetThemer.h
E:             Cannot find include file: MaterialComponentsBeta/MaterialActionSheet.h [/Users/mh/Library/Application Support/RemObjects Software/EBuild/Packages/EBuild/github.com.mosh.ImportSolution/MaterialComponentsBeta/iOS Simulator/MaterialComponentsBeta.framework/Headers/MDCActionSheetThemer.h (32)]
            <- Task RemObjects.EBuild.Elements.ElementsCompile failed for MaterialComponentsBeta, took 6.4729s (6.5613s).

but I’ll assume that’s an error on your side, not a bug,

Thanks. Can I try a build on Firehose ?

I don’t the other issue is a bug, I noticed one project was pointing to another separate folder, when I fixed that it built.

Sure, b ut you really need a new Fire to see the effects. I’ll to to build one for you in a bit.

Thanks its fixed with the latest.

1 Like

Glad to hear!