Gitpod: Simple GitPod Questions

Created on 31 May 2020  路  37Comments  路  Source: gitpod-io/gitpod

I started using GitPod and don鈥檛 understand how:

  • Set up a project for C # WinForms
  • Compile project
  • Make it so that you can connect your namespace from another file
language-support question stale

Most helpful comment

See this repo to see a minimalistic setup for compiling and running WinForms in Gitpod

All 37 comments

Set up a project for C # WinForms @DaniilNapuda

Should work out of the box afaik

Compile project @DaniilNapuda

Depends on the project, provide source or tell us how do you build it locally.

Make it so that you can connect your namespace from another file @DaniilNapuda

I don't understand what do you mean O.o elaborate..

  1. I am doing an empty project. I create it on GitHub, add https://gitpod.io/# before the URL and create .gitpod.yml, .gitpod.Dockerfile, and tasks.json.
    image

  2. Compiling all of the above

  3. Are you not a C # programmer?

I am doing an empty project. I create it on GitHub, add gitpod.io/# before the URL and create .gitpod.yml, .gitpod.Dockerfile, and tasks.json. @DaniilNapuda

So what is the issue?

Compiling all of the above @DaniilNapuda

Assuming that being an empty project there is nothing to compile?

If you want proof-of-contept then @JesterOrNot has that on https://gitpod.io/#https://github.com/JesterOrNot/Gitpod-dotnet-Debug

Note that gitpod has gitpod/workspace-dotnet docker environment which may interests you

Are you not a C # programmer? @DaniilNapuda

I wish i wasn't it's s!@$% lang :p Used to do Skyrim mods it in, but it's too inefficient and limited.
Now i would consider myself understanding the theory, but i wouldn't be comfortable in working with it.

  1. That's why (bottom right corner)
    image

  2. The question is to compile .exe, without this:
    Error

That's why (bottom right corner) @DaniilNapuda

Exit code 127 should be standardized on command not found which points to pebcak, check your tasks.json

The question is to compile .exe, without this: @DaniilNapuda

I believe that i've already answered this in https://github.com/gitpod-io/gitpod/issues/1560#issuecomment-635908919

Did you find it difficult to understand or missed it?

Or am i missunderstanding the issue? O.o

  1. I do not work in Visual Studio

I do not work in Visual Studio @DaniilNapuda

Gitpod provides theia (https://github.com/eclipse-theia/theia) it looks like Visual Studio or Vscode but it's a rewrite.

Or how is Visual Studio relevant here? O.o

Is that solution not shown in VS?

Is there a code that disables CMD and it is not displayed?

Referencing https://www.mono-project.com/docs/gui/ for GUI toolkits

Assigning @JesterOrNot, because he has more experience with dotnet on gitpod and i currently don't have time to make Proof-of-concept of GUI on gitpod.

thank

Hi, @DaniilNapuda for compiling and running C# In Gitpod please see the docs I will create a brief GUI example in Gitpod.

See this repo to see a minimalistic setup for compiling and running WinForms in Gitpod

JesterOrNot, anyway, the program compiles with CMD:

image

Could this be related to OS settings?

FWIW it seems to me as a configuration in the code assuming that visual studio on windows (for which these are designed for and for linux which we are using it's allegedly a M$ sabotaged implementation) just provides a front-end to this? There is also a monoeditor (or however they call it) which we may be able to get running on gitpod in the worst case scenario.

You can write more about monoeditor?

Disclaimer: I am a contributor not gitpod staff

You can write more about monoeditor?

Not really i just saw it being mensioned on the mono project while questioning my life decisions to work with dotnet again with the intention to make a Proof-of-concept for gitpod while realizing that i can use Sean to do it instead of me to keep my sanity from skyrim development-induset PTSD in check to be honest.

See https://www.monodevelop.com/

Also FWIW the mentioned repository in https://github.com/gitpod-io/gitpod/issues/1569#issuecomment-636485147 works for me without it opening the unexpected console in gitpod:

image

but i doubt this being related to OS settings aldo possible i guess?

Not in GitPod, but by launching .exe on a PC.

Not in GitPod, but by launching .exe on a PC.

I know, but i can't test dotnet on my system atm so i've tested at least gitpod hoping it would be helpful~

I realized that I can not configure tasks.json ...
Please, tell me how to do this.

@DaniilNapuda AFAIK you can save tasks.json in .vscodetasks.json or .theia/tasks.json

I need a sample for writing code

How to save i know

I need a sample for writing code @DaniilNapuda

Something like this?

https://github.com/dotnet/try/blob/master/.vscode/tasks.json

Yes, but it doesn鈥檛 help :(
image

Maybe I'm doing something wrong?

Maybe I'm doing something wrong?

Yes :p you can't just copy paste some random tasks.json these are expected to be coded for your program.

Explain to me the algorithm of actions, please.
I just can't understand...

As of right now we can't debug Dotnet apps in Gitpod (as least as far as I know) see https://community.gitpod.io/t/how-to-debug-c-on-gitpod/514/5

@DaniilNapuda To be honest this seems like dotnet specific questions for which gitpod's tracker is not a best place to ask so note IRC channel on https://github.com/gitpod-io/gitpod/issues/1560#issuecomment-635908919 where they will respond to you much faster and more accurately.

Let me know if you need help with setting up IRC client.

TLDR for freenode registration is:

  1. Open an IRC client which is either https://webchat.freenode.net or install hexchat https://hexchat.github.io/ (note that the non-windows store version is free)

For Hexchat

  1. Download hexchat
    2.1 On Linux hexchat should be packaged by your distribution so you can install it for example using apt install -y hexchat
    2.2 On windows use https://hexchat.github.io/downloads.html and download windows 7 executable which is free
  2. Open hexchat and navigate to Server List
    image
  3. On server list find Freenode
    image
  4. If you are not registered then press Connect.
  5. Register your account (as explained on https://freenode.net/kb/answer/registration) by writing /msg NickServ REGISTER YourPassword [email protected] once invoked you will recieve instructions on your specified e-mail.
  6. (optional) if you have issue with the registration you can invoke /join #freenode and they will help you (don't be afraid to ask questions! :p)
    image
  7. Login using /msg NickServ identify yourPassword (red) note that your nick (green) has to be the same as the one you registered in step 6.
    image
  8. Invoke /join ##csharp and ask your questions! ^-^

For Webchat

  1. Choose an unique nickname (red), complete captha (green) and press START
    image
  2. Register your account (as explained on https://freenode.net/kb/answer/registration) by writing /msg NickServ REGISTER YourPassword [email protected] once invoked you will recieve instructions on your specified e-mail.
    3.1 If your nickname is already taken then invoke /nick newNickname and repeat step 3.
    image
  3. (optional) if you have issue with the registration you can invoke /join #freenode and they will help you (don't be afraid to ask questions! :p)
    image
  4. Login using /msg NickServ identify yourPassword (red) note that your nick (green) has to be the same as the one you registered in step 3.
    image
  5. Write /join ##csharp and ask your questions! ^-^

also note that on hexchat you can store your credentials in
image

which makes it so that you don't have to invoke /nick yourNickname and /msg NickServ identify yourPassword every time :p

also you can open a chat with me using /msg kreyren your message here if needed


Explain to me the algorithm of actions, please.
I just can't understand... @DaniilNapuda

I have no idea what do you mean by 'alhorithm of action'.. The general practice is to make a standard file hierarchy in the target directory (or using custom file hierarchy if standard is not enough for you which is used for very specific projects and should be avoided at all cost otherwise) and if needed set up tasks.json so that you can use vscode/theia GUI.

Note https://code.visualstudio.com/docs/editor/tasks for tasks.json documentation where afaik theia is using the same syntax.

This message is NOT an indication of a problem. It is always printed when the debugger starts. @JesterOrNot

@JesterOrNot Note https://github.com/OmniSharp/omnisharp-vscode/issues/3699

quoting: "This message is NOT an indication of a problem. It is always printed when the debugger starts."

So i don't see any reason for it to not work on gitpod :p

So i don't see any reason for it to not work on gitpod :p @Kreyren

The current license seems to conflict with usage on theia quoting:

  1. INSTALLATION AND USE RIGHTS. You may only use the C# Extension for Visual Studio Code
    with Visual Studio Code, Visual Studio or Xamarin Studio software to help you develop and test your
    applications.

Created https://github.com/OmniSharp/omnisharp-vscode/pull/3824

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kuniss picture kuniss  路  3Comments

kittaakos picture kittaakos  路  3Comments

Kreyren picture Kreyren  路  3Comments

mouse484 picture mouse484  路  3Comments

akosyakov picture akosyakov  路  3Comments