Refactoring options not available

17 posts, 0 answers
  1. Bilal
    Bilal avatar
    1 posts
    Member since:
    Sep 2015

    Posted 17 Sep 2015 Link to this post

    So when I select a portion of my c# code, somehow the refactoring options are disabled. If I go to JustCode> Refactor>  all the refactorign options are disabled. Even if I go to JustCode>Refactor> Show Available Refactorings> , It only shows only the option to Rename. Its disabled even for java script code. Any idea why the options are disabled? I even updated just code. 

     

  2. Maarten
    Maarten avatar
    13 posts
    Member since:
    Feb 2013

    Posted 20 Sep 2015 Link to this post

    +1

    Maarten

  3. DevCraft banner
  4. Nikolay Valchev
    Admin
    Nikolay Valchev avatar
    72 posts

    Posted 22 Sep 2015 Link to this post

    Hello,

    Could you tell us to which version of Visual Studio this behavior applies and send us log files (%localappdata%\JustCode\Logs)?

    Regards,
    Nikolay Valchev
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  5. Aris
    Aris avatar
    4 posts
    Member since:
    Jan 2015

    Posted 02 Oct 2015 in reply to Nikolay Valchev Link to this post

    I have the same problem with vs 2015 enterprise. where can I send my logs (zip)?

  6. Roman
    Roman avatar
    8 posts
    Member since:
    Jun 2012

    Posted 05 Oct 2015 Link to this post

    +1
  7. Svetlozar
    Admin
    Svetlozar avatar
    269 posts

    Posted 07 Oct 2015 Link to this post

    Hi,

    We had a problem in our Q3 version for Visual Studio 2015. If you haven't done it already please download our Q3 SP1 version that fixes the issue.

    We decided to base our Visual Studio 2015 on top of Roslyn and there are still some refactorings missing. Feel free to open a support ticket and let us know what you are missing and we will plan accordingly. 

    Regards,
    Svetlozar
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  8. Bernard
    Bernard avatar
    3 posts
    Member since:
    Jun 2013

    Posted 23 Oct 2015 Link to this post

    Even with the latest build

    Version Q3 2015 SP1 (2015.3.1006.1)

     

    Still none of the refactors seem to be available in VS2015 ?

     


     
  9. Roman
    Roman avatar
    8 posts
    Member since:
    Jun 2012

    Posted 24 Oct 2015 in reply to Bernard Link to this post

    problem still exists after installing SP. hot keys and context menu->refactorings does not work (only rename)

    Thoug I can access extract method in visual aids menu->fix

    ('extract method' not available in refactorings but in fix)

    please help.

  10. Svetlozar
    Admin
    Svetlozar avatar
    269 posts

    Posted 28 Oct 2015 Link to this post

    Hi,

    We just released an internal build that have Extract Method implemented for Visual Studio 2015. Please download it and give it a try.

    Regards,
    Svetlozar
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  11. Jean-Francois
    Jean-Francois avatar
    2 posts
    Member since:
    Sep 2014

    Posted 15 Mar Link to this post

    I also don't see any refactoring options.

     

    (attached screenshot)

     

    Any idea on when these features will be available?

    VS 2015 Enterprise Update 1 w/ latest JustCode.

  12. Svetlozar
    Admin
    Svetlozar avatar
    269 posts

    Posted 18 Mar Link to this post

    Hi,

    I am really sorry for the inconvenience!

    We are in the process of doing major infrastructural changes in JustCode so we can integrate the Roslyn platform into JustCode. That affects only Visual Studio 2015.

    Unfortunately, not all features have been ported yet. Please, let us know what you are missing most so we can plan accordingly.

    Regards,
    Svetlozar
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items

     
  13. Julian
    Julian avatar
    6 posts
    Member since:
    Oct 2016

    Posted 25 Oct Link to this post

    I just installed the trial version of JustCode and am very disappointed that the refactoring menu is widely grayed out. And even more after realizing that this problem is already older than a year!

    When I select a text which I want to refactor (extract method in this case) the log shows this:

    SILENT 2016-10-25 10:32:52.604 : Server (10676): System.InvalidOperationException: No type 'Microsoft.CodeAnalysis.CSharp.ExtractMethod.CSharpSelectionValidator' found in assembly 'Microsoft.CodeAnalysis.CSharp.Features'
       bei #pwu.#6fv.#0Qv.#Uu() in C:\_J\workspace\JustCode_Roslyn_Installer\RoslynTemp\_CodeAnalysis\src\Refactoring.Roslyn\ExtractMethod\RoslynExtractMethodHelper.cs:Zeile 102.
    --- Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde ---
       bei System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       bei System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       bei #pwu.#6fv.#YQv.#Uu() in C:\_J\workspace\JustCode_Roslyn_Installer\RoslynTemp\_CodeAnalysis\src\Refactoring.Roslyn\ExtractMethod\RoslynExtractMethodHelper.cs:Zeile 16777215.
    --- Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde ---
       bei System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       bei System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       bei Telerik.JustCode.LanguageFrontend.Roslyn.CommonExtensions.#IWv.#Uu() in C:\_J\workspace\JustCode_Roslyn_Installer\RoslynTemp\_CodeAnalysis\src\LanguageFrontend.Roslyn\Extensions\CommonExtensions.cs:Zeile 16777215.
    Log Site Stacktrace:
       bei Telerik.JustCode.Common.Logging.ExceptionInfo.GetExceptionString(Exception ex) in C:\_J\workspace\JustCode_Roslyn_Installer\RoslynTemp\_CodeAnalysis\src\Logging\ExceptionInfo.cs:Zeile 87.
       bei Telerik.JustCode.Common.Logging.LogService.LogSilently(Exception exception) in C:\_J\workspace\JustCode_Roslyn_Installer\RoslynTemp\_CodeAnalysis\src\Logging\LogService.cs:Zeile 215.
       bei Telerik.JustCode.Common.Logger.LogSilently(Exception exception) in C:\_J\workspace\JustCode_Roslyn_Installer\RoslynTemp\_CodeAnalysis\src\Logging\Logger.cs:Zeile 201.
       bei #pwu.#6fv.#1fv(Document #XDb, TextSpan #2fv) in C:\_J\workspace\JustCode_Roslyn_Installer\RoslynTemp\_CodeAnalysis\src\Refactoring.Roslyn\ExtractMethod\RoslynExtractMethodHelper.cs:Zeile 44.
       bei #pwu.#7fv.CanExecute(FileModel #6S, CodeSpan #Elb, Int32 #pB, Int32 #tEb) in C:\_J\workspace\JustCode_Roslyn_Installer\RoslynTemp\_CodeAnalysis\src\Refactoring.Roslyn\ExtractMethod\RoslynExtractMethodComponent.cs:Zeile 28.
       bei Telerik.JustCode.Refactoring.ExtractMethodCommand._Closure$__20-0._Lambda$__0(IExtractMethodComponent component) in C:\_J\workspace\JustCode_Roslyn_Installer\RoslynTemp\_CodeAnalysis\src\Refactoring.ExtractMethodVB\ExtractMethodCommand.vb:Zeile 89.
       bei System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate)
       bei Telerik.JustCode.Refactoring.ExtractMethodCommand.CanExecute(SolutionModel solutionModel, SelectionContext context) in C:\_J\workspace\JustCode_Roslyn_Installer\RoslynTemp\_CodeAnalysis\src\Refactoring.ExtractMethodVB\ExtractMethodCommand.vb:Zeile 91.
       bei Telerik.JustCode.CommonLanguageModel.Engine.Tools.ContextTools.#zlb(SelectionContext #Alb) in C:\_J\workspace\JustCode_Roslyn_Installer\RoslynTemp\_CodeAnalysis\src\CommonLanguageModel.Engine\Tools\ContextTools.cs:Zeile 134.
       bei Telerik.JustCode.CommonLanguageModel.Engine.Tools.ContextTools.UpdateContext(SelectionContext contextSelection) in C:\_J\workspace\JustCode_Roslyn_Installer\RoslynTemp\_CodeAnalysis\src\CommonLanguageModel.Engine\Tools\ContextTools.cs:Zeile 31.
       bei Telerik.JustCode.CommonLanguageModel.Engine.CLMEngine.#pkb() in C:\_J\workspace\JustCode_Roslyn_Installer\RoslynTemp\_CodeAnalysis\src\CommonLanguageModel.Engine\CLMEngine.cs:Zeile 1430.
       bei Telerik.JustCode.CommonLanguageModel.Engine.CLMEngine.#qkb(Boolean #rkb, Boolean #pkb) in C:\_J\workspace\JustCode_Roslyn_Installer\RoslynTemp\_CodeAnalysis\src\CommonLanguageModel.Engine\CLMEngine.cs:Zeile 1540.
       bei Telerik.JustCode.CommonLanguageModel.Engine.CLMEngine.#jkb() in C:\_J\workspace\JustCode_Roslyn_Installer\RoslynTemp\_CodeAnalysis\src\CommonLanguageModel.Engine\CLMEngine.cs:Zeile 1278.
       bei Telerik.JustCode.CommonLanguageModel.Engine.CLMEngine.#2jb() in C:\_J\workspace\JustCode_Roslyn_Installer\RoslynTemp\_CodeAnalysis\src\CommonLanguageModel.Engine\CLMEngine.cs:Zeile 714.
       bei System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       bei System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       bei System.Threading.ThreadHelper.ThreadStart()

     

     

  14. Julian
    Julian avatar
    6 posts
    Member since:
    Oct 2016

    Posted 25 Oct in reply to Julian Link to this post

    I am using Visual Studio 2015 and JustCode 2016.3.914.1 on Win10 Pro 64bit (German).
  15. Svetlozar
    Admin
    Svetlozar avatar
    269 posts

    Posted 28 Oct Link to this post

    Hi,

    I am really sorry for the inconvenience!

    It looks like there is a problem in the way we utilize Roslyn for Extract Method. What version of Visual Studio do you have on your side? 

    Regards,
    Svetlozar
    Telerik by Progress
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  16. Julian
    Julian avatar
    6 posts
    Member since:
    Oct 2016

    Posted 28 Oct in reply to Svetlozar Link to this post

    Thanks for your reply! This is what Help -> Info tells me:

    VS Professional 2015. Version 14.0.25431.01 Update 3

    .NET Framework version 4.6.01586

  17. Svetlozar
    Admin
    Svetlozar avatar
    269 posts

    Posted 02 Nov Link to this post

    Hello,

    We will do more tests with the latest Visual Studio update. 

    I am really sorry for the inconvenience! 

    Regards,
    Svetlozar
    Telerik by Progress
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  18. Roman
    Roman avatar
    8 posts
    Member since:
    Jun 2012

    Posted 02 Nov Link to this post

    +1. Problem exists about 1 year. No changes version by version.
Back to Top
DevCraft banner