# Projects references not loading

**URL:** https://talk.remobjects.com/t/projects-references-not-loading/24177
**Category:** Fire
**Created:** [February 14, 2021, 8:16pm UTC](https://talk.remobjects.com/t/projects-references-not-loading/24177 "2021-02-14T20:16:39Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![JohnMoshakis](https://talk.remobjects.com/user_avatar/talk.remobjects.com/johnmoshakis/32/2286_2.png) [@JohnMoshakis](https://talk.remobjects.com/u/JohnMoshakis)
#### Post date: [February 14, 2021, 8:16pm UTC](https://talk.remobjects.com/t/projects-references-not-loading/24177/1 "2021-02-14T20:16:39Z")

</div>

Hi,

I get this message in one of my projects but I cant work out what the issue is. Is it possible to get more information somewhere why it displays that message ?

I thought it might be because it’s a remote reference but I created another repo with same reference and its fine.

The project builds fine but it displays this message and seems to break code completion for this reference.

 ![Screen Shot 2021-02-14 at 3.13.00 PM](https://talk.remobjects.com/uploads/default/original/2X/5/5d68afa080394b62ff06605e7e296804cfc5538d.jpeg)

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [February 15, 2021, 12:00pm UTC](https://talk.remobjects.com/t/projects-references-not-loading/24177/2 "2021-02-15T12:00:23Z")

</div>

> [@JohnMoshakis](#):
>
> Is it possible to get more information somewhere why it displays that message ?

What does the resolve log say? Select the References node to see it.

But changes are its what to says on the tin ‚ it cant find a .dll for this project reference via Hint Path, or project file path & FinalOutput.xml because the project wasn’t built _or_ hint path/prohect path are bad.

---

<div class="post-metadata">

### Author: ![JohnMoshakis](https://talk.remobjects.com/user_avatar/talk.remobjects.com/johnmoshakis/32/2286_2.png) [@JohnMoshakis](https://talk.remobjects.com/u/JohnMoshakis)
#### Post date: [February 15, 2021, 5:07pm UTC](https://talk.remobjects.com/t/projects-references-not-loading/24177/3 "2021-02-15T17:07:08Z")

</div>

[build.log.zip](https://talk.remobjects.com/uploads/short-url/p0lVn0x9VvrNuYMLI9IElh3PLqM.zip) (48.3 KB) [references.log.zip](https://talk.remobjects.com/uploads/short-url/7xAjuzCp7Zq96ZUJm0Lv6NWWJCK.zip) (2.1 KB)

Do you think it’s because Im using LFS ? It doesnt seem to affect the build, just the references ?

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [February 15, 2021, 5:17pm UTC](https://talk.remobjects.com/t/projects-references-not-loading/24177/4 "2021-02-15T17:17:57Z")

</div>

> [@JohnMoshakis](#):
>
> Do you think it’s because Im using LFS ? It doesnt seem to affect the build, just the references ?

I don’t see show it would…

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [February 15, 2021, 5:19pm UTC](https://talk.remobjects.com/t/projects-references-not-loading/24177/5 "2021-02-15T17:19:27Z")

</div>

Weird; so resolve fails on

> git: This repository is configured for Git LFS but ‘git-lfs’ was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting .git/hooks/post-checkout.

but build can check it out fine; odd thing is, both are just executing `/usr/bin/git`…

---

<div class="post-metadata">

### Author: ![JohnMoshakis](https://talk.remobjects.com/user_avatar/talk.remobjects.com/johnmoshakis/32/2286_2.png) [@JohnMoshakis](https://talk.remobjects.com/u/JohnMoshakis)
#### Post date: [February 20, 2021, 6:19am UTC](https://talk.remobjects.com/t/projects-references-not-loading/24177/6 "2021-02-20T06:19:10Z")

</div>

I’ve removed lfs and I now see messages like below in the references window

Project Reference ‘Realm’ has no matching target (Toffee macOS macOS).  
Project Reference ‘Realm’ has no matching target (Island Darwin watchOS)  
Project Reference ‘Realm’ has no matching target (Island Darwin macOS).  
Project Reference ‘Realm’ has no matching target (Toffee watchOS watchOS).

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [February 20, 2021, 12:46pm UTC](https://talk.remobjects.com/t/projects-references-not-loading/24177/7 "2021-02-20T12:46:53Z")

</div>

Hmm.

---

<div class="post-metadata">

### Author: ![JohnMoshakis](https://talk.remobjects.com/user_avatar/talk.remobjects.com/johnmoshakis/32/2286_2.png) [@JohnMoshakis](https://talk.remobjects.com/u/JohnMoshakis)
#### Post date: [February 21, 2021, 2:13am UTC](https://talk.remobjects.com/t/projects-references-not-loading/24177/8 "2021-02-21T02:13:14Z")

</div>

I think it’s something to do with the elements file. I can switch between remote project references

This doesnt work

> <https://github.com/mosh/ImportSolution/blob/master/Realm.elements>

This one does

> <https://github.com/mosh/RealmImport/blob/master/Realm.elements>

This is the error from the references window

```
         -> Task __RemObjects_EBuild_Elements_ElementsResolveToffeeReferencesForTarget started for RealmRemoteConsoleApplication, Toffee-macOS.
            Project 'Realm' referenced from 'RealmRemoteConsoleApplication' is not in solution, reusing cached output.
E: Project Reference 'Realm' has no matching target (Toffee macOS macOS).
            Reference 'Foundation' was resolved to '/Applications/Fire.app/Contents/Resources/Toffee SDKs/macOS 11.1/Foundation.fx' for target 'Toffee-macOS'.
            Reference 'rtl' was resolved to '/Applications/Fire.app/Contents/Resources/Toffee SDKs/macOS 11.1/rtl-11.0.fx' for target 'Toffee-macOS'.
            Reference 'libToffee' was resolved to '/Applications/Fire.app/Contents/Resources/References/Toffee/macOS/libToffee.fx' via XML for target 'Toffee-macOS'.
            Reference 'libElements' was resolved to '/Applications/Fire.app/Contents/Resources/References/Toffee/macOS/libElements.fx' via XML for target 'Toffee-macOS'.
```

---

<div class="post-metadata">

### Author: ![JohnMoshakis](https://talk.remobjects.com/user_avatar/talk.remobjects.com/johnmoshakis/32/2286_2.png) [@JohnMoshakis](https://talk.remobjects.com/u/JohnMoshakis)
#### Post date: [February 21, 2021, 2:32am UTC](https://talk.remobjects.com/t/projects-references-not-loading/24177/9 "2021-02-21T02:32:30Z")

</div>

I deleted this folder

/Users/JohnMoshakis/Library/Application Support/RemObjects Software/EBuild/Obj

and I rebuilt and both are ok now.

The 2 things I edited in the elements file that wasnt working was

I was importing

`<Import Project="$(MSBuildExtensionsPath)\RemObjects Software\Elements\RemObjects.Elements.Toffee.targets" />`

I changed this to

` <Import Project="$(MSBuildExtensionsPath)\RemObjects Software\Elements\RemObjects.Elements.targets" />`

ANd

```
      <PropertyGroup Condition=" '$(Target)' == 'Toffee.iOS' ">
    <Mode>Toffee</Mode>
    <SDK>iOS</SDK>
    <SupportMacCatalyst>False</SupportMacCatalyst>
  </PropertyGroup>

```

I changed to

```
  <PropertyGroup Condition=" '$(Target)' == 'Toffee.iOS' ">
    <Mode>Toffee</Mode>
    <SubMode>iOS</SubMode>
    <SupportMacCatalyst>False</SupportMacCatalyst>
  </PropertyGroup>

```

It wasnt until I deleted the obj folder that it started working.

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [February 21, 2021, 1:21pm UTC](https://talk.remobjects.com/t/projects-references-not-loading/24177/10 "2021-02-21T13:21:25Z")

</div>

> [@JohnMoshakis](#):
>
> ```auto
> -> Task __RemObjects_EBuild_Elements_ElementsResolveToffeeReferencesForTarget started for RealmRemoteConsoleApplication, Toffee-macOS.
> Project 'Realm' referenced from 'RealmRemoteConsoleApplication' is not in solution, reusing cached output.
> E: Project Reference 'Realm' has no matching target (Toffee macOS macOS).
> 
> ```

Sure it was built yet? can is ee the complete latest testcase?

> [@JohnMoshakis](#):
>
> I was importing
> 
> `<Import Project="$(MSBuildExtensionsPath)\RemObjects Software\Elements\RemObjects.Elements.Toffee.targets" />`
> 
> I changed this to
> 
> ` <Import Project="$(MSBuildExtensionsPath)\RemObjects Software\Elements\RemObjects.Elements.targets" />`

that might confuse things depending on what else is in the project (ie if it’s multi-target and has non-Toffee targets), yes.

> [@JohnMoshakis](#):
>
> ```auto
> <PropertyGroup Condition=" '$(Target)' == 'Toffee.iOS' ">
> <Mode>Toffee</Mode>
> <SDK>iOS</SDK>
> <SupportMacCatalyst>False</SupportMacCatalyst>
> </PropertyGroup>
> 
> ```
> 
> I changed to
> 
> ```auto
> <PropertyGroup Condition=" '$(Target)' == 'Toffee.iOS' ">
> <Mode>Toffee</Mode>
> <SubMode>iOS</SubMode>
> <SupportMacCatalyst>False</SupportMacCatalyst>
> </PropertyGroup>
> 
> ```

hmm, SDK vs SubMode should not matter for resolving, as EBuild will use one to set the other, no matter which one is set (the settings aren’t interchangeable though,. since SDK may optionally include a version). The _IDE_ had some issues with SDK not being set that I fixed (iirc before Friday’s build), which caused the issue dragging the multi-target project as reference. but that should to affect this…

in any case, all is working for you now?

---

<div class="post-metadata">

### Author: ![JohnMoshakis](https://talk.remobjects.com/user_avatar/talk.remobjects.com/johnmoshakis/32/2286_2.png) [@JohnMoshakis](https://talk.remobjects.com/u/JohnMoshakis)
#### Post date: [February 21, 2021, 10:05pm UTC](https://talk.remobjects.com/t/projects-references-not-loading/24177/11 "2021-02-21T22:05:19Z")

</div>

The problem I have now is below. I see this in the references window

Missing project ‘Moshine.Api.Location’ referenced from ‘Moshine.Services.Location’, but project path ‘/Users/JohnMoshakis/Documents/develop/Moshine.Location/Moshine.Api.Location/Moshine.Api.Location.elements’ is valid.  
Package project ‘[github.com/mosh/ImportSolution/Realm.elements:\*](http://github.com/mosh/ImportSolution/Realm.elements:*)’ referenced from ‘Moshine.Services.Location’, at ‘/Users/JohnMoshakis/Library/Application Support/RemObjects Software/EBuild/Packages/EBuild/github.com.mosh.ImportSolution/Realm.elements’.

It’s odd because I have 2 console apps, with the same project and remoteproject reference which dont have an issue.

Moshine.Api.Location is the project reference and realm is the remote reference.

 ![Screen Shot 2021-02-21 at 4.58.11 PM](https://talk.remobjects.com/uploads/default/original/2X/0/0c4ebeec931c01c6dcf8044dff78b18c06c1f828.png)
