Giter VIP home page Giter VIP logo

dotnet.el's People

Contributors

julienxx avatar mookid avatar purcell avatar sebasmonia 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

Watchers

 avatar  avatar  avatar  avatar  avatar

dotnet.el's Issues

dotnet-run-with-args not working

Steps to reproduce

  1. Open existing dotnet project in Emacs
  2. M-x dotnet-with-args

Expected

Receive an interactive prompt to input arguments, then run dotnet app.

Actual

Receive error message in minibuffer: Invalid control letter โ€˜Aโ€™ (#o101, #x0041) in interactive calling string

Recommended solution

One line fix inside dotnet-run-with-args:

(interactive "sArguments: ")

According to Emacs Wiki:

Example of a command that reads a string argument:

    (defun hello (someone)
      "Say hello to SOMEONE via M-x hello."
      (interactive "sWho do you want to say hello to? ")
      (message "Hello %s!" someone))

I can submit a PR --I've been using this in my local env already --but wanted to make sure this is the intended behavior first.

dotnet watch run and test

I'm wondering if it may be useful to add a shortcut to call dotnet watch run or dotnet watch test to have the build refresh on code changes. I anticipate it would behave just like the current prefix e but would refresh when a file is saved and changed.

Usability suggestion for C-n t and C-n T

I think it would be better if C-n t asked which tests to run the first time and from there on acted like C-n T.
And if you want to run a different test command, then you can get queried again with C-n T.
It feels more natural/emacsy.

Another option which is even more Emacs-like would be to have C-n t query the first time, then re-run, and use a prefix arg to get queried again. C-u C-n t would make you provide the project again.

If you agree with the suggestion, I can provide a pull request with either change.
There's nothing wrong with the way it works now, that's why I'm checking for your thoughts before coding anything.

dotnet - set current solution/project

In the last few days I've using dotnet in a multi-project repo.

I've found myself using the prefix args submitted in my last pull request. Also in my local dotnet.el I added more variables to keep track of the last project for build, run, etc. At this rate each function will have it's own variable!!!

I think it would be convenient to have a way to setup a default project so that all commands use it, and allow overrides with C-u.

Sample workflow:

  1. Open some .cs files. Start working
  2. Call dotnet-build, get prompted for csproj/solution
  3. [Maybe?] Get prompted to make this the default for subsequent calls with y/n question
  4. Keep using the same default (if set) unless the command is called with C-u prefix

I think most commands could share the same default, except dotnet-run: build, add reference, etc can work on a whole solution but you usually run only one project within the solution directories.

So in essence we would need 2 variables to track the "current project".
I also think it would be great to show the current projects in the echo area when the dotnet-mode keymap is active, if possible, so you know that you need to add an arg to your call.

This adds some complexity to the package, though, and changes it's behaviour quite a bit. So unless you see an use for these changes yourself, I can keep these in my own branch (when I get around to making them hehe)

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.