Git Product home page Git Product logo

cake-vscode's People

Contributors

agc93 avatar augustoproiete avatar beto-rodriguez avatar bjorkstromm avatar dependabot-preview[bot] avatar dependabot-support avatar dependabot[bot] avatar devlead avatar fabionuno avatar gep13 avatar ihavebecomedeath avatar joerobich avatar jrgcubano avatar nils-a avatar p-kaczynski avatar patriksvensson avatar tdue21 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cake-vscode's Issues

Correct default download URL's

As per this issue:

cake-build/website#275

Extension is currently using:

// The Cake bootstrapper URIs.
  "cake.bootstrappers": {
    "powershell": "http://cakebuild.net/download/bootstrapper/powershell",
    "bash": "http://cakebuild.net/download/bootstrapper/bash"
  },

VSCode is no longer supporting specifiying a commandId in the "initialConfigurations" contribution

Hi,

We noticed your extension in package.json is using a "initialConfigurations" contribution in a deprecated way by specifiying a command id.
We wanted to let you know that we plan to delete support for this specific use of "initialConfigurations" soon.
More about this deprecation can be found here and in our release notes.
A good example on how to use the DebugConfigurarationProvider which is the new way of doing this can be found here

Kind regards,
Isidor from the VSCode team

Support ability to setup/install debugging dependencies

Currently, to setup dotnet core debugging in a folder for cake script, it's a little bit more work than I'd like :)

I'm proposing that a command be created for this vs-code extension that does a couple things:

  1. Adds a .vscode/launch.json file with the default template, which assumes build.cake should be run.
  2. Cake.CoreCLR should be installed to the ./tools/ dir (where the launch.json template expects it) when this command is run.

Not really picky or sure what the command should be, but maybe something like Cake: Install Debugging

Can't collapse #regions

According to this, I expected #regions in Cake script to be collapsible, but they're not. Am I missing something? I'm using VSCode 1.0.0 and version 0.1.1 of the Cake extension.

Align with Marketplace requirements

As per an email from the Visual Studio Marketplace team, there are going to be restrictions on the usage of SVG's in both readme's and icons.

Update the Cake extension to remove the usage of svg's.

Add snippet for Cake Argument

To help with the task of creating the following:

var target = Argument("target", "Default");

There should be tab stops for each portion of the Argument definition.

Remove syntax highlighting

The syntax highlighting that is provided by this Cake extension is actually preventing it from being able to light up the intellisense that is offered by Omnisharp. This is due to the fact that Omnisharp works with C# files, rather than Cake Files.

What I mean by this is, with this extension in play, Cake files are identified at Cake Script files:

image

When we need them to be identified as C# files:

image

As you can see from these screenshots though. With the default syntax highlighting offered with VSCode for C# files, I don't actually think that there is any further need for custom syntax highlighting.

Add Documentation

There is some missing documentation in the readme.md file, this needs to be filled out with everything that the extension now does.

"Cake: Install a configuration file" command produces server error

I have tried to use the "Cake: Install a configuration file" within vscode but instead of an expected configuration file it created a cake.config file with a server error page inside:

<!DOCTYPE html>
<html>
    <head>
        <title>The current identity (IIS APPPOOL\cakebuild) does not have write access to 'D:\local\Temporary ASP.NET Files'.</title>
        <meta name="viewport" content="width=device-width" />
        <style>
         body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;} 
         p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
         b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
         H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
         H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
         pre {font-family:"Consolas","Lucida Console",Monospace;font-size:11pt;margin:0;padding:0.5em;line-height:14pt}
         .marker {font-weight: bold; color: black;text-decoration: none;}
         .version {color: gray;}
         .error {margin-bottom: 10px;}
         .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }
         @media screen and (max-width: 639px) {
          pre { width: 440px; overflow: auto; white-space: pre-wrap; word-wrap: break-word; }
         }
         @media screen and (max-width: 479px) {
          pre { width: 280px; }
         }
        </style>
    </head>

    <body bgcolor="white">

            <span><H1>Server Error in '/' Application.<hr width=100% size=1 color=silver></H1>

            <h2> <i>The current identity (IIS APPPOOL\cakebuild) does not have write access to 'D:\local\Temporary ASP.NET Files'.</i> </h2></span>

            <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">

            <b> Description: </b>An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

            <br><br>

            <b> Exception Details: </b>System.Web.HttpException: The current identity (IIS APPPOOL\cakebuild) does not have write access to 'D:\local\Temporary ASP.NET Files'.<br><br>

            <b>Source Error:</b> <br><br>

            <table width=100% bgcolor="#ffffcc">
               <tr>
                  <td>
                      <code>

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.</code>

                  </td>
               </tr>
            </table>

            <br>

            <b>Stack Trace:</b> <br><br>

            <table width=100% bgcolor="#ffffcc">
               <tr>
                  <td>
                      <code><pre>

[HttpException (0x80004005): The current identity (IIS APPPOOL\cakebuild) does not have write access to &#39;D:\local\Temporary ASP.NET Files&#39;.]
   System.Web.HttpRuntime.SetUpCodegenDirectory(CompilationSection compilationSection) +10003412
   System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags, PolicyLevel policyLevel, Exception appDomainCreationException) +204

[HttpException (0x80004005): The current identity (IIS APPPOOL\cakebuild) does not have write access to &#39;D:\local\Temporary ASP.NET Files&#39;.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9947380
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +101
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +261
</pre></code>

                  </td>
               </tr>
            </table>

            <br>

            <hr width=100% size=1 color=silver>

            <b>Version Information:</b>&nbsp;Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.6.1055.0

            </font>

    </body>
</html>
<!-- 
[HttpException]: The current identity (IIS APPPOOL\cakebuild) does not have write access to &#39;D:\local\Temporary ASP.NET Files&#39;.
   at System.Web.HttpRuntime.SetUpCodegenDirectory(CompilationSection compilationSection)
   at System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags, PolicyLevel policyLevel, Exception appDomainCreationException)
[HttpException]: The current identity (IIS APPPOOL\cakebuild) does not have write access to &#39;D:\local\Temporary ASP.NET Files&#39;.
   at System.Web.HttpRuntime.FirstRequestInit(HttpContext context)
   at System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context)
   at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)
--><!-- 
This error page might contain sensitive information because ASP.NET is configured to show verbose error messages using &lt;customErrors mode="Off"/&gt;. Consider using &lt;customErrors mode="On"/&gt; or &lt;customErrors mode="RemoteOnly"/&gt; in production environments.-->

Environment

Windows 10 Enterprise
VS Code 1.3.1
Cake Plugin 0.4.0

Problem debugging with this extension

I'd appreciate any help getting debugging to work. I F5 in VSCode 1.15.1 32-bit on a cake script (that works) I get:

Processing build script...
Installing addins...
Loaded 'g:\mc\Schema\tools\Cake.CoreCLR\NuGet.Frameworks.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
Loaded 'g:\mc\Schema\tools\Cake.CoreCLR\System.Diagnostics.StackTrace.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
Error: System.InvalidOperationException: Something went wrong when parsing framework.
   at Cake.NuGet.V3.NuGetV3ContentResolver.ParseFromDirectoryPath(NuGetFramework current, DirectoryPath path)
   at Cake.NuGet.V3.NuGetV3ContentResolver.GetAddinAssemblies(DirectoryPath path)
   at Cake.NuGet.NuGetPackageInstaller.Install(PackageReference package, PackageType type, DirectoryPath path)
   at Cake.Core.Scripting.ScriptProcessor.InstallAddins(ScriptAnalyzerResult analyzerResult, DirectoryPath installPath)
   at Cake.Core.Scripting.ScriptRunner.Run(IScriptHost host, FilePath scriptPath, IDictionary`2 arguments)
   at Cake.Commands.DebugCommand.Execute(CakeOptions options)
   at Cake.CakeApplication.Run(CakeOptions options)
   at Cake.Program.Main()
The program '[39968] Cake.dll' has exited with code 1 (0x1).

Cake 0.2.1.1
Cake.CoreCLR 0.21.1

Update build.sh and use Cake 0.23 to enable build on Mac OS

New version of build.sh and the Cake version that uses Roslyn will enable builds on Mac Os X.

This unfortunately means that build must be performed with
--settings_skipverification=true
since not all things are updated at the same time.

Add aggregate command

i.e. a single command to add all standard Cake files.

Similar to the output from the Cake Yeoman Generator

addin directive stops debugger working

Environment data

Windows 10

Extension version:
0.8.0

Steps to reproduce

  1. create new directory
  2. add build.cake:
#addin nuget:?package=Cake.Git

var target = Argument("target", "Default");

Task("Default")
  .Does(() =>
{
  var greeting = "Hello World!";
  Information(greeting);
});

RunTarget(target);
  1. add build.ps1 bootstrap (Cake: Install a Bootstrapper)
  2. add cake.config:
; This is the default configuration file for Cake.
; This file was downloaded from https://github.com/cake-build/resources

[Nuget]
Source=https://packages.nuget.org/api/v2

[Roslyn]
NuGetSource=https://packages.nuget.org/api/v2

[Paths]
Tools=./tools
Addins=./tools/Addins
Modules=./tools/Modules
  1. Download Debug dependencies and setup launch.config:
{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Cake: Debug Script",
            "type": "coreclr",
            "request": "launch",
            "program": "${workspaceRoot}/tools/Cake.CoreCLR/Cake.dll",
            "args": [
                "${workspaceRoot}/build.cake",
                "--debug",
                "--verbosity=diagnostic"
            ],
            "cwd": "${workspaceRoot}",
            "stopAtEntry": true,
            "externalConsole": false
        }
    ]
}
  1. F5 to debug

Expected behavior

Breakpoint in Default is hit

Actual behavior

Error: System.InvalidOperationException: Something went wrong when parsing framework.
at Cake.NuGet.V3.NuGetV3ContentResolver.ParseFromDirectoryPath(NuGetFramework current, DirectoryPath path)
at Cake.NuGet.V3.NuGetV3ContentResolver.GetAddinAssemblies(DirectoryPath path)
at Cake.NuGet.NuGetPackageInstaller.Install(PackageReference package, PackageType type, DirectoryPath path)
at Cake.Core.Scripting.ScriptProcessor.InstallAddins(ScriptAnalyzerResult analyzerResult, DirectoryPath installPath)
at Cake.Core.Scripting.ScriptRunner.Run(IScriptHost host, FilePath scriptPath, IDictionary`2 arguments)
at Cake.Commands.DebugCommand.Execute(CakeOptions options)
at Cake.CakeApplication.Run(CakeOptions options)
at Cake.Program.Main()
The program '[2652] Cake.dll' has exited with code 1 (0x1).

Additional Information:

Remove #addin nuget:?package=Cake.Git and it works.

If #addin nuget:?package=Cake.Git is included, Run Tasks -> Run Default works.

Extension won't build on macOS

There's a few issues in the build script causing things to fail to build on macOS:

  • Version info is being pulled from non-existent source code: https://github.com/cake-build/cake-vscode/blob/develop/build/version.cake#L22
    The usual code path that runs on windows is being explicitly skipped and so another code path which is no longer valid is run instead.

  • VscePackage command cannot locate vsce that was installed, we need to add ToolPath here on macOS: https://github.com/cake-build/cake-vscode/blob/develop/build.cake#L114
    I'm not sure if this is appropriate for linux, but on macOS simply setting ToolPath = "/usr/local/bin/vsce" is a workable solution.

  • For some reason Clean is being run AFTER Install-Vsce if I just invoke the Default target. I'm not sure if this is something weird happening with the Mono Scripting engine and can be ignored once Roslyn support is released or what.

Add "Install a build file" Command

Hi,

when i start with cake in a project i can install a bootstrapper and a config file throgh this plugin.
Thats nice but not sufficent for me.

It would be nice, when i can install a build.cake script file also. Preferably with a working skeleton like the one from the Setting up a new project page.

So i can open Code in a project without cake and can install the bootstrapper, config and a running build scripts.

Thanks & Greetings,
Andreas

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.