Bug 24096 - At compiler error token, any NRefactory based operations disappear
Summary: At compiler error token, any NRefactory based operations disappear
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Text Editor ()
Version: Trunk
Hardware: PC Linux
: --- normal
Target Milestone: master
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2014-10-28 05:39 UTC by Atsushi Eno
Modified: 2015-05-20 01:09 UTC (History)
1 user (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
sshot (315.88 KB, image/png)
2014-10-29 03:32 UTC, Atsushi Eno
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Atsushi Eno 2014-10-28 05:39:10 UTC
I try to build an incomplete project that does not build. I get build errors as expected. I type F4 (as long as I required, which I doubt...) to the first error. Then I find some type or member reference in the source. Then I try to fix by using monodevelop's refactoring operation. But... nothing shows up. While I get those refactoring operations on other tokens, I don't get those at the most needed place :/

Repro:

1. git clone https://github.com/atsushieno/cadencii.git
2. git checkout 93ab6418c7f47a44fd19b5d9fa1370cd98a7dcaf
3. open Cadencii.sln and hit F5. It fails to build.
4. Type F4 to jump to the build error.
5. It would jump to "FormMain.Designer.cs" line 2182, saying like [*1].
   The cursor is supposed to be before "Cursor" (in "this.pictKeyLengthSplitter.Cursor = ...").
6. type context menu key or right click "Cursor".

No refactoring operation shows up.

If you move up ("BorderStyle") and do the same operation, you would see the expected commands.

I think it is because the compiler error "overrides" and suppresses the list of commands. But it shouldn't as it makes refactoring operation support quite useless...

[*1] /home/atsushi/svn/cadencii/src/Cadencii.Application.WindowsForms/ui/main/FormMain.Designer.cs(40,40): Error CS1061: Type `cadencii.UiPictureBox' does not contain a definition for `Cursor' and no extension method `Cursor' of type `cadencii.UiPictureBox' could be found. Are you missing an assembly reference? (CS1061) (Cadencii.Application.WindowsForms)
Comment 1 Mike Krüger 2014-10-29 00:39:14 UTC
Works for me - I think it's related to the other issues you see.

*** This bug has been marked as a duplicate of bug 24069 ***
Comment 2 Atsushi Eno 2014-10-29 02:51:36 UTC
No, it was not. Even after removing the cause of bug #24069 (that I'm going to log another bug soon), this still reproduces.

On the other hand, bug #24074 is caused by the same reason, which I'm not going to mark as duplicate of #24069 but rather of the new one, as that'd be more consistent.)
Comment 3 Mike Krüger 2014-10-29 03:24:37 UTC
should be fixed in master.
Comment 4 Atsushi Eno 2014-10-29 03:32:18 UTC
no... it still shows nothing.
Comment 5 Atsushi Eno 2014-10-29 03:32:47 UTC
Created attachment 8538 [details]
sshot
Comment 6 Atsushi Eno 2014-10-29 06:13:00 UTC
It turned out that if I have some configuration, settings or dock state like bug #24094, I'm NOT getting this issue. I do get the problem when my configuration is clean.
Comment 7 Mike Krüger 2015-01-07 02:52:56 UTC
Is there a crash on the console or logs like in bug 24094 ?
Comment 8 Mike Krüger 2015-05-20 01:09:40 UTC
Should be fixed with 6.0 - all that got rewritten