monodevelop should depend on xterm

Bug #1090977 reported by Csipak Attila
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
monodevelop (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Steps to reproduce:
1. Lubuntu 12.04 clean install (it may work on an older install too, but if it doesn't, try a clean installation).
2. Install MonoDevelop from the Lubuntu Software Center.
3. Start MonoDevelop.
4. Start a new solution and a new C# console project within it.
5. MonoDevelop autogenerates a Hello World! program for you.
6. Try to run or debug (Ctrl+F5 or F5) the unmodified source code and experience the error:

File name has not been set
Details:
System.InvalidOperationException: File name has not been set
  at System.Diagnostics.Process.Start_common (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) [0x00000] in <filename unknown>:0
  at System.Diagnostics.Process.Start () [0x00000] in <filename unknown>:0
  at MonoDevelop.Core.Execution.ProcessWrapper.Start () [0x00000] in <filename unknown>:0
  at (wrapper remoting-invoke-with-check) MonoDevelop.Core.Execution.ProcessWrapper:Start ()
  at MonoDevelop.Platform.GnomePlatform.StartConsoleProcess (System.String command, System.String arguments, System.String workingDirectory, IDictionary`2 environmentVariables, System.String title, Boolean pauseWhenFinished) [0x00000] in <filename unknown>:0
  at MonoDevelop.Core.Execution.ProcessService.StartConsoleProcess (System.String command, System.String arguments, System.String workingDirectory, IDictionary`2 environmentVariables, IConsole console, System.EventHandler exited) [0x00000] in <filename unknown>:0
  at MonoDevelop.Debugger.Soft.SoftDebuggerEngine+<CreateDebuggerStartInfo>c__AnonStorey1.<>m__6 (System.Diagnostics.ProcessStartInfo info) [0x00000] in <filename unknown>:0
  at Mono.Debugger.Soft.VirtualMachineManager.BeginLaunch (System.Diagnostics.ProcessStartInfo info, System.AsyncCallback callback, Mono.Debugger.Soft.LaunchOptions options) [0x00000] in <filename unknown>:0
  at Mono.Debugging.Soft.SoftDebuggerSession.StartLaunching (Mono.Debugging.Soft.SoftDebuggerStartInfo dsi) [0x00000] in <filename unknown>:0
  at Mono.Debugging.Soft.SoftDebuggerSession.OnRun (Mono.Debugging.Client.DebuggerStartInfo startInfo) [0x00000] in <filename unknown>:0
  at Mono.Debugging.Client.DebuggerSession+<Run>c__AnonStorey6.<>m__3 () [0x00000] in <filename unknown>:0

It seems that monodevelop uses xterm to run console projects, but xterm is not a dependency for monodevelop. Since xterm is not part of a default Lubuntu installation, MonoDevelop will throw an error at step 6.

The workaround is to install xterm manually via apt-get, synaptic, or Software Center.

I'd guess the bug can also be reproduced by simply uninstalling xterm from a working Ubuntu 12.04 installation (I didn't try this so far though).

This problem has been around on other distros & platforms, see this forum thread for an example: http://mono.1490590.n4.nabble.com/File-name-has-not-been-set-td1510697.html

AFAIK this is a simple packaging problem.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: monodevelop 2.8.6.3+dfsg-2
ProcVersionSignature: Ubuntu 3.2.0-34.53-generic 3.2.33
Uname: Linux 3.2.0-34-generic i686
ApportVersion: 2.0.1-0ubuntu15
Architecture: i386
Date: Sun Dec 16 19:43:02 2012
EcryptfsInUse: Yes
InstallationMedia: Lubuntu 12.04 "Precise Pangolin" - Release i386 (20120423)
MarkForUpload: True
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: monodevelop
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Csipak Attila (corphicks) wrote :
tags: added: packaging testcase
description: updated
description: updated
Changed in monodevelop (Ubuntu):
status: New → Confirmed
assignee: nobody → Paolo Rotolo (paolorotolo)
status: Confirmed → In Progress
Revision history for this message
Paolo Rotolo (paolorotolo) wrote :

monodevelop already depends on xterm. Here it's the debian/control:
Package: monodevelop
Architecture: all
Recommends: libglade2.0-cil-dev, libgtk2.0-cil-dev, mono-devel
Depends: gnome-icon-theme (>= 1.1.3),
         monodoc-manual (>= 1.1.9),
         pkg-config,
         xterm | x-terminal-emulator,
         ${cli:Depends},
         ${misc:Depends},
         ${shlibs:Depends}

Changed in monodevelop (Ubuntu):
status: In Progress → New
assignee: Paolo Rotolo (paolorotolo) → nobody
Revision history for this message
Csipak Attila (corphicks) wrote :

Paolo, I checked the package dependencies again and it looks like you are right. I wonder what happened last time, when I posted the bug?
Well, if no one else confirmed this bug then most likely it's a one in a lifetime problem or bears no importance. So I will just mark it Invalid.

Changed in monodevelop (Ubuntu):
status: New → Invalid
Revision history for this message
Testing Tigerwolf (testing.tigerwolf) wrote :

Same problem using Monodevelop 3.0.3.2 in KUbuntu 13.10 "saucy salamander" beta 2
xterm is not included as monodevelop dependence

Revision history for this message
Darren (darren-dcook) wrote :

Had the same problem. Suspicious, I then completely purged mono and monodevelop from my system and did:

   apt-get install mono-complete monodevelop monodevelop-nunit monodevelop-debugger-gdb

But, still, when trying to run any program from within monodevelop I get "cannot execute" because "filename has not been set".

I then do `apt-get install xterm`, close monodevelop, re-open, and now it works.

Other sources to confirm this:

   http://www.programmersranch.com/2013/05/c-programming-on-linux-with-monodevelop.html
   http://stackoverflow.com/a/22060671/841830
   http://unix.stackexchange.com/a/126051/52393 (but I didn't need to do the extra steps there, just installing xterm was enough)

Revision history for this message
Csipak Attila (corphicks) wrote :

Reopened, since two other users are affected.

Changed in monodevelop (Ubuntu):
status: Invalid → Confirmed
Revision history for this message
leonidas (l-wallner) wrote :

I just installed monodevelop on a fresh install of lubuntu 16.10. I could only run my program once i seperately installed XTerm... So i guess this problem ist still there!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.