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

Launch of class method not accepting path with Windows drive #654

Closed
isc-ryoung opened this issue May 12, 2021 · 2 comments
Closed

Launch of class method not accepting path with Windows drive #654

isc-ryoung opened this issue May 12, 2021 · 2 comments
Assignees
Labels
debugger upstream Depends on an upstream change (e.g. VS Code fix or enhancement, IRIS change)
Projects

Comments

@isc-ryoung
Copy link

isc-ryoung commented May 12, 2021

If I click "Debug this method" for a method that has an argument which is a file path, I get an error if the string contains a Windows drive such as, "C:"

ERROR #6711: Invalid debugger target: ##class(ISCTestRJY.XML.XMLRead).runEncounter("C

So, it looks like the issue is due to the colon being within a json block.

If I, however, reference the file relative to the mgr folder then it works.

If this is part of launch configurations they would look like this. The first fails, the second succeeds. How can the colon be escaped or dealt with?

        {
            "type": "objectscript",
            "request": "launch",
            "name": "Run from cdrive",
            "program": "##class(ISCTestRJY.XML.XMLRead).runEncounter(\"C:\\tmp\\Encounter.xml\")"
        },
        {
            "type": "objectscript",
            "request": "launch",
            "name": "Run from mgr",
            "program": "##class(ISCTestRJY.XML.XMLRead).runEncounter(\"..\\..\\..\\..\\tmp\\Encounter.xml\")"
        }
@isc-bsaviano isc-bsaviano self-assigned this May 12, 2021
@isc-bsaviano isc-bsaviano added bug Something isn't working upstream Depends on an upstream change (e.g. VS Code fix or enhancement, IRIS change) labels May 12, 2021
@isc-bsaviano
Copy link
Contributor

@isc-ryoung This is a bug in the Atelier debugger. I will log it internally and work on a fix

@isc-bsaviano isc-bsaviano added debugger and removed bug Something isn't working labels May 12, 2021
@isc-rsingh isc-rsingh added this to Needs triage in workplan via automation Jun 10, 2021
@isc-rsingh isc-rsingh moved this from Needs triage to Ready for Dev in workplan Jun 10, 2021
@isc-bsaviano isc-bsaviano moved this from Ready for Dev to Upstream in workplan Jun 16, 2021
@isc-bsaviano
Copy link
Contributor

@isc-ryoung The fix for this is DP-405539. It will be included in 2021.2 and ported to 2020.1.2 and 2021.1.1

workplan automation moved this from Upstream to Done Oct 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
debugger upstream Depends on an upstream change (e.g. VS Code fix or enhancement, IRIS change)
Projects
No open projects
workplan
  
Done
Development

No branches or pull requests

2 participants