Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7175549
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T16:19:16+00:00 2026-05-28T16:19:16+00:00

Ive been using MSVC2010 for some time now combined with Python Tools 1.0 I’m

  • 0

Ive been using MSVC2010 for some time now combined with Python Tools 1.0

I’m currently working on a python project and my solution looks like this:

Solution
– Pyproj
– EmptyTestRunner

The pyproj contains a MainTest.py file that runs all my tests,
the EmptyTestRunner is just an empty project with a “Post-Build” action that runs the MainTest.py (thus running all my tests written in PyUnit on my python code each time i “re-build”)

My problem is that running the python file, it produces normal python output – which because i’m running it as a post-build event, refers it to the MSVC output window.
MSVC2010 doesn’t recognize this output as a “compile / linker” error (for example when an exception is raised in my python code which isn’t caught) so it doesn’t add it to the error window.

Is there a tool that already does this?
Is there a flag passed to the python.exe that can do it?

I’ve googled the subject throghouly but found nothing resembling it.

I’m about to just simply write a python script that will re-format the output of my pyproj to the msvc format.

thx in advance for any help!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T16:19:17+00:00Added an answer on May 28, 2026 at 4:19 pm

    I’ve done this with Visual Studio 9 (2008), so I don’t know if the trick works for 2010, but anyway: the linking between the output window and the error manager in VS is automagical. All it expects is a line of the form:

    path\to\file\name(lineno) : error : text of the error
    

    e.g.

    c:\dev\myfile.ext(17) : error : 'foo' is not a valid configuration directive
    

    if your script somehow reads a configuration file.

    Then when you double click this line, it opens the file at the specified line. The error message (‘text of the error’ here) also appears in the Error list window.

    All other lines of your script’s output, if they do not have this format, are not affected, so you may very well throw a lengthy explanation after the magical line – just as the C++ compiler does for template errors.

    Whether you choose to modify your script to translate Python errors to a VS-compatible format or use a wrapper script is your decision – I’d favor the first one since you can catch all errors in the __main__ function, and VS-print them (given that you can still print the full Python trace just afterwards).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been using Linq to SQL for some time now and I find it
Ive been working some time on own template engines but i alwais get stuck
Ive been using a custom class for some time like this in PS (2.0):
I've been using TortoiseSVN in a Windows environment for quite some time. It seems
Ive been using jquery to do this, but now I need to do it
Ive been playing with some jQuery script that was originally written using 1.2.6. I
I've been reading on how to search LDAP servers using Python, but Ive been
Ive been working on create a file upload form using PHPmailer to send as
Ive been doing some research today on when an how to use the using
Ive been trying to get an example Web Service working using SpringWS and Tomcat5.5

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.