Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange Relative Path External Tool Output Parsing #468

Closed
GoogleCodeExporter opened this issue Aug 24, 2015 · 2 comments
Closed

Strange Relative Path External Tool Output Parsing #468

GoogleCodeExporter opened this issue Aug 24, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Use the Attached "test" batch file 
2. Configure the tool in Pyscripter
            Caption=Test
        Description=Testing script
    ApplicationName=<script path>\pylint.bat
         Parameters=$[ActiveDoc-Name]
   WorkingDirectory=$[ActiveDoc-Path]
           ShortCut=16468
            Context=tcActivePythonFile
          SaveFiles=sfAll
      ParseMessages=TRUE
     ParseTraceback=TRUE
     MessagesFormat=$[FileName]:$[LineNumber]: 
3. Start PyScripter using "Edit with PyScripter"  
4. Run the tool
5. Open another file from *another directory* using "Edit with PyScripter"
6. Run the tool on the second file
7. Look at the full path

The tool's working directory is $[ActiveDoc-Path].   The script outputs a 
simulated error with just the filename of the parsed file.  It would appear 
that the base path for the full filename displayed in the messages window is 
that of the first file.  Which would break the "goto ability" of the editor 
when the message is double clicked on.   

What version of the product are you using? On what operating system?
PyScripter 2.4.1.0, Win XP Pro 32-bit, Limited user

Please provide any additional information below.

The reason for stumbling aross this behavior was in dealing with pylint.  
Setting the working directory allowed importing from modules in the same 
directory as target script, XOR Not setting the working directory allowed the 
double clicking of messages to work properly.  Forutanely, In this case there 
was an easy work around.  Setting --init-hook parameter with the value of 
"import sys; sys.path.append(r'$[ActiveDoc-Path]\')"


Original issue reported on code.google.com by ptth...@gmail.com on 12 Jan 2011 at 8:01

Attachments:

@GoogleCodeExporter
Copy link
Author

Issue 469 has been merged into this issue.

Original comment by pyscripter on 12 Jan 2011 at 9:14

@GoogleCodeExporter
Copy link
Author

I have now fixed this, but in any case external tools should output full path 
file information like pylint does.

Original comment by pyscripter on 9 Jun 2011 at 10:40

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant