Code Monkey home page Code Monkey logo

kulture's Introduction

OmniSharp

OmniSharp Organization repo for project coordination, global communication and other organizational topics.

Please do not use this repo to open bugs/support issues - use the project repository relevant to the product you are using (e.g. C# Extension for VS Code, VIM plugin, Emacs plugin, OmniSharp server and so on) instead.

License

Copyright © .NET Foundation, and contributors.

OmniSharp is provided as-is under the MIT license. For more information see LICENSE.

Code of Conduct

This project has adopted the code of conduct defined by the Contributor Covenant to clarify expected behavior in our community. For more information see the .NET Foundation Code of Conduct.

Contribution License Agreement

By signing the CLA, the community is free to use your contribution to .NET Foundation projects.

.NET Foundation

This project is supported by the .NET Foundation.

kulture's People

Contributors

andorbal avatar bmsullivan avatar bradygaster avatar btbytes avatar danpetitt avatar davidvujic avatar e00dan avatar jchannon avatar juzzbott avatar kenegozi avatar maximrouiller avatar sayedihashimi avatar shirhatti avatar voltagex avatar wilfriedb avatar xordi 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  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

kulture's Issues

Adding nodemon to Kulture addin

Compiling scripts and suggestions I was able to get nodemon to watch for file changes in my projects and auto restart kestrel. Not being a Python dev, can we get another K command added?

cd [project dir] && source kvm.sh && nodemon --exec "k kestrel" -e cs,json

Name: K Mon

@johnpapa @bmsullivan

Myget.org fetch request consistently times out

Myget.org is taking 30 to 40 seconds to respond to the request from Completions.py, which causes the request to timeout and abort.

Aside from increasing the timeout, is there a reason why Myget is taking so long to service the request?

DNU command not found

As of 1.0.0-rc2 release dotnet core no longer uses dnu for packaging and now uses the dotnet CLI.
The particular error in my case is when I'm trying to build and the error is as follows:

cat: /home/...../.dnx/alias/default.alias: No such file or directory /home/...../.config/sublime-text-3/Packages/Kulture/build.sh: line 8: dnu: command not found [Finished in 0.0s with exit code 127] [cmd: ['bash', '/home/..../.config/sublime-text-3/Packages/Kulture/build.sh']] [dir: /home/..../Work/....] [path: /home/.../bin:/home/..../.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games]

KPM install not working correctly

I'm trying to get up and running w/ OmniSharp (using Sublime as editor) but running into issues w/ K / KPM. I'm on Yosemite 10.10.3.

What I've done:

  1. Installed the ASP.NET 5 command line tools (using the latest brew tap aspnet/dnx; brew install dnvm instructions after the rename from aspnet/k, per this StackOverflow post)
  2. Installed Kulture plugin
  3. Installed OmniSharp plugin

DNVM and DNX are installed and functioning, but K/KPM not working (command not found). How do I get them installed correctly?

Extra info:

  • dnvm version: Version 1.0.0-beta5-10371
  • Installed versions of runtimes:
~ $ dnvm list

Active Version              Runtime Arch Location             Alias
------ -------              ------- ---- --------             -----
  *    1.0.0-beta5-11631    mono         ~/.dnx/runtimes      default
  • I also have Mono installed w/ Xamarin Studio. When I run mono --version from command line, I get 4.0.1. But I was under the impression that DNVM installed a separate version of Mono for its use.

Run K Commands: gnome-terminal not found

I'm running Sublime on ElementaryOS 0.3 Beta 1, and when I tried to run k mon from Run K Commands I got a message box saying "Terminal: The terminal gnome-terminal was not found".

I've installed it from apt-get and everything is fine, but it seems like an odd dependency.

Home samples are out of date

The readme says to get the samples from: git clone https://github.com/shirhatti/Home.git

But when I do that and try and run the HelloMvc sample, there's a build error:

/Users/patrick/SourceCache/csharp/Home/samples/HelloMvc/Startup.cs(9,31): error CS0246: The type or namespace name 'IBuilder' could not be found (are you missing a using directive or an assembly reference?)
/Users/patrick/SourceCache/csharp/Home/samples/HelloMvc/Controllers/HomeController.cs(13,21): warning CS0108: 'HomeController.User()' hides inherited member 'Controller.User'. Use the new keyword if hiding was intended.

Build failed.
    1 Warnings(s)
    1 Error(s)

If I change it to IApplicationBuilder things compile, but I get nothing but the welcome page.

Debugging Kestrel

Great job guys on developing this plugin. I was able to setup the dev environment quite easily using the instructions on the Readme.

But there was no mention of application debugging. I think any dev setup is lacking without proper debugging tools.

I am working on OS X, and of course using sublime 3 and K kestrel.

K paths have changed, updated build.sh but new errors thrown.

Having installed the K suite of tools on my Mac last week I noticed that the default paths have changed. Instead of .kre it is not .k. I updated the build.sh to:

#!/bin/bash
# Add K to path and trigger build
ver=`cat ~/.k/alias/default.alias`
add_to_path=$HOME"/.k/runtimes/"$ver"/bin"
export PATH=$PATH:/usr/local/bin:$add_to_path
#[ -s $HOME"/.kre/kvm/kvm.sh" ] && . $HOME"/.kre/kvm/kvm.sh"
source kvm.sh
directory="./"
temp=$directory"project.json"
counter=0
# If unable to find project.json, keep going up a directory till project.json found
while [ ! -f $temp ]
do
    let counter=counter+1
    if [ $counter -gt 3 ]
    then
        break
    fi
    directory=$directory"../"
    temp=$directory"project.json"
done
kpm build $directory

This clears the dir not found errors I was getting, although, now I get a new error:

System.NotImplementedException: The requested feature is not implemented.
  at kre.host.ServiceProviderLocator.set_ServiceProvider (IServiceProvider value) [0x00000] in <filename unknown>:0 
  at kre.host.Bootstrapper.Main (System.String[] args) [0x00000] in <filename unknown>:0 
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 
[Finished in 0.4s with exit code 1]

when using kpm build from the same directory as the project it builds with the following errors:

ly 'Microsoft.Framework.DependencyInjection.IServiceDescriptor, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.
/Volumes/Nimbus/Users/racan/Projects/kre/mvc-gen/MvcApplication/Startup.cs(13,13): error CS0012: The type 'IServiceCollection' is defined in an assembly that is not referenced. You must add a reference to assembly 'Microsoft.Framework.DependencyInjection.IServiceCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.

Build failed.
    0 Warnings(s)
    2 Error(s)

Next meeting: Monday 11/17

Hey guys congrats on a great release today. All of the hard work is paying off. I loved watching @shanselman show off some of the goodness today at the Microsoft Connect event. I'm seeing a lot of positive reaction to what has been put out there. I think it's going to continue.

Now that 11/12 is behind us (mostly), I'd like to see when would be a good time for us to meet again. If time permits I have the following agenda items (if you have others to add please comment below and I'll add it)

  • Recap of 11/12
  • Overview/discussion on Design TIme Host (DTH) from @davidfowl
  • Next steps

How is _Monday 11/17 11 AM Pacific Time_ for the next meeting?
I'm looking for the following folks to reply back
@shanselman @davidfowl @jchannon @nosami @Mpdreamz @stephen-james @mat-mcloughlin @sp3ctum @bbbscarter

making "solution" structure work

Hi,

I'm struggling with making vnext "solution" structure work on Mac with sublime and kulture.
Everything works fine when there is a single project (e.g. mvc app) - it builds and I am able to run kestrel.
But when I add several projects into one folder with global.json file in it, it does not build - "could not locate project.json" file.

Is there a sample somewhere of a few vnext projects one referencing another and built with sublime/kulture?

Error with `yo aspnet`

Running through the Getting Started guide on the Mac ... unfortunately getting the following error when trying to run yo aspnet. Is the nuget executable being used something that was installed via the aspnet-generator, or something else on my system that might be out of date??

Restoring packages for /Users/joelmartinez/dev/vnext/FirstTest/project.json
  CACHE https://nuget.org/api/v2/FindPackagesById()?Id='Microsoft.AspNet.Mvc'
  GET https://www.nuget.org/api/v2/package/Microsoft.AspNet.Mvc/6.0.0-beta1.
  CACHE https://nuget.org/api/v2/FindPackagesById()?Id='Microsoft.AspNet.Hosting'
  CACHE https://www.nuget.org/api/v2/package/Microsoft.AspNet.Hosting/1.0.0-beta1
  CACHE https://nuget.org/api/v2/FindPackagesById()?Id='Microsoft.AspNet.Security.Cookies'
  CACHE https://www.nuget.org/api/v2/package/Microsoft.AspNet.Security.Cookies/1.0.0-beta1
  CACHE https://nuget.org/api/v2/FindPackagesById()?Id='Microsoft.AspNet.Server.WebListener'
  CACHE https://www.nuget.org/api/v2/package/Microsoft.AspNet.Server.WebListener/1.0.0-beta1
  CACHE https://nuget.org/api/v2/FindPackagesById()?Id='Microsoft.AspNet.StaticFiles'
  CACHE https://www.nuget.org/api/v2/package/Microsoft.AspNet.StaticFiles/1.0.0-beta1
  GET https://nuget.org/api/v2/FindPackagesById()?Id='Kestrel'.
----------
System.NotImplementedException: The requested feature is not implemented.
  at Microsoft.Framework.PackageManager.Restore.NuGet.PackageFeed+<OpenNuspecStreamAsync>d__1.MoveNext () [0x00000] in <filename unknown>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0 
  at System.Runtime.CompilerServices.TaskAwaiter`1[System.IO.Stream].GetResult () [0x00000] in <filename unknown>:0 
  at Microsoft.Framework.PackageManager.RemoteWalkProvider+<GetDependencies>d__1.MoveNext () [0x00000] in <filename unknown>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0 
  at System.Runtime.CompilerServices.TaskAwaiter`1[System.Collections.Generic.IEnumerable`1[Microsoft.Framework.Runtime.LibraryDependency]].GetResult () [0x00000] in <filename unknown>:0 
  at Microsoft.Framework.PackageManager.RestoreOperations+<FindLibraryEntry>d__1.MoveNext () [0x00000] in <filename unknown>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0 
  at System.Runtime.CompilerServices.TaskAwaiter`1[Microsoft.Framework.PackageManager.GraphItem].GetResult () [0x00000] in <filename unknown>:0 
  at Microsoft.Framework.PackageManager.RestoreOperations+<CreateGraphNode>d__1.MoveNext () [0x00000] in <filename unknown>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0 
  at System.Runtime.CompilerServices.TaskAwaiter`1[Microsoft.Framework.PackageManager.GraphNode].GetResult () [0x00000] in <filename unknown>:0 
  at Microsoft.Framework.PackageManager.RestoreOperations+<CreateGraphNode>d__1.MoveNext () [0x00000] in <filename unknown>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0 
  at System.Runtime.CompilerServices.TaskAwaiter`1[Microsoft.Framework.PackageManager.GraphNode[]].GetResult () [0x00000] in <filename unknown>:0 
  at Microsoft.Framework.PackageManager.RestoreCommand+<RestoreForProject>d__1.MoveNext () [0x00000] in <filename unknown>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0 
  at System.Runtime.CompilerServices.TaskAwaiter`1[System.Boolean].GetResult () [0x00000] in <filename unknown>:0 
  at Microsoft.Framework.PackageManager.RestoreCommand+<ExecuteCommand>d__1.MoveNext () [0x00000] in <filename unknown>:0 
----------
Restore failed
The requested feature is not implemented.

Build command is run with sh instead of bash, which causes problems in Linux Mint

I installed Sublime Text 3, Kulture, and OmniSharp on a fresh install of Linux Mint 17. When I try to build an aspnet vNext project, I get the following output in Sublime:

[Finished in 0.0s with exit code 2]
[cmd: ['sh', '/home/andrew/.config/sublime-text-3/Packages/Kulture/build.sh']]
[dir: /home/andrew/.config/sublime-text-3/Packages/Kulture]
[path: /home/andrew/work/yii/framework:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games]/home/andrew/.config/sublime-text-3/Packages/Kulture/build.sh: 363: /home/andrew/.kre/kvm/kvm.sh: Syntax error: "(" unexpected (expecting ";;")

I found an article that describes the behavior I'm seeing: since the command is run with sh and that is linked to dash by default, the command fails. If I change ASP.NET.sublime-build to explicitly use bash instead of sh, the build works as expected.

Is there a reason that bash is not explicitly used? I'm happy to submit a pull request, but I wanted to see if this is a change that should be made before doing it.

The Completions.py script throws if myget.org can't be reached

When starting Sublime Text and myget.org is not available (for example, blocked by the company's proxy, or when no wifi is available) then Completions.py aborts with the next message:

Reloading plugin Kulture.Completions
Traceback (most recent call last):
  File "/opt/sublime_text/sublime_plugin.py", line 97, in reload_plugin
    obj = t()
  File "/home/username/.config/sublime-text-3/Packages/Kulture/Completions.py", line 27, in __init__
    for package in response:
TypeError: 'bool' object is not iterable''

The script does actually check for errors but then ignores the result, leading to the abort.

Merge Kulture and OmniSharpSublime

I think in time we should move this into OmniSharpSublime.

My current thought is OmniSharpSublime will need to detect whether its working on a vNext project or a traditional solution project ie. it searches for project.json

Based on the search this will enable/disable certain features of the plugin suitable for traditional/vNext projects.

Anyway thats my brain dump but just thought I'd tentatively open this issue for discussion.

Update readme to install OmniSharp sublime extension

We have worked with OmniSharpSublime team members to create a new sublime text plugin OmniSharp we should update the readme.md to tell users to install OmniSharp sublime text extension instead of manually installing.

Terminal: The terminal terminal was not found in xubuntu

Moved from ligershark/Kulture#43 from @dareenzo

I have the error in title on xubuntu

I realize the error is coming from line 90 in Kulture.py whereby default terminal program is assumed to be terminal when window manager is xfce4.

elif wm[0] == 'xfce4-session':
    default = 'terminal'
elif wm[0] == 'ksmserver':

In my case I'm running Xubuntu with no particular changes to system and default terminal program is xfce terminal.

using System.Linq; Unknown Resolver Error

Hi:

I have a 'Class Library' project (VS2015, but not vnext project) which implements the following class:

using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;

namespace FrameworkFundamentals
{
static class TextHandling
{
public static void BasicStringOperations()
{
Console.WriteLine(Char.ToUpper('c'));
Console.WriteLine(char.IsWhiteSpace('\t'));
Char.ConvertFromUtf32(234);
var list = new List(30);
list.Select(item => item.Length).ToList().ForEach(Console.WriteLine);
Console.WriteLine(char.ToUpper('i', CultureInfo.InvariantCulture));
}
}
}

Sublime displays an error on the "using System.Linq;" line. Error : Unknown Resolver Error - (4, 18)

Omnisharp is working, as it is offering me Intellisense while writing code, but Linq is not listed a sub-namespace of System while writing the using System.Linq line.

Any idea of what could be happening?. I can provide code, and sublime config files if necessary.

Regards.

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.