8000 project model: changes to packages does not trigger type database updates · Issue #4172 · mono/monodevelop · GitHub
[go: up one dir, main page]

Skip to content
This repository has been archived by the owner on Oct 4, 2021. It is now read-only.

project model: changes to packages does not trigger type database updates #4172

Open
atsushieno opened this issue Mar 15, 2018 · 2 comments
Open

Comments

@atsushieno
Copy link
Member
atsushieno commented Mar 15, 2018

When we notice we didn't add required packages to the project after we wrote some missing types on the file, we add those packages to the project, then go back to editor and try to fix missing type issue either by adding "using" directive or resolve it to full name. However monodevelop cannot resolve the type even after we add references via package.

Repro:

  • Create a new console project.
  • Add [TestFixture] to the MainClass declaration. It won't resolve to anything (expected). Keep the editor page open.
  • Open packages dialog and add "NUnit". It will automatically add nunit.framework.dll to 8000 the references.
  • Move cursor onto TestFixture, open context menu, and select Quick Fix.

Expected results: it should show using NUnit.Framework;

Actual results: it does not show the resolution candidates.

Using monodevelop 036b03b.

@mrward
Copy link
Member
mrward commented Mar 15, 2018

Unable to reproduce this with VS Mac 7.5 build 843 (d15-7). Will try the latest master and d15-7 builds from wrench.

@mrward
Copy link
Member
mrward commented Mar 15, 2018

Unable to reproduce this in:

  • 7.6.0.135 - master
  • 7.5.0.856 - d15-7

Any errors in the IDE log?

Only problems I see are:

  1. The TestFixture attribute still has an error marker even after the using statement has been added. Closing and re-opening Program.cs fixes that. This might be the same as Red squiggles have a tendency to stick around #3858
  2. The quick fix menu shows 'Using NUnit.Framework' twice.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants
0