question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't set "program" to source file

See original GitHub issue
  • Create a node launch config where the “program” attribute points at a .ts file
  • It tries to run the .ts file with node

The v1 DA tries to resolve the .ts file when outFiles is given, and otherwise will refuse to launch. We don’t necessarily need the behavior to guess whether a file is a .js file because it can’t be 100% accurate (https://github.com/microsoft/vscode/issues/89882) but we should at least resolve .ts files with the sourcemaps we found, for backcompat.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
connor4312commented, Feb 3, 2020

Mm. Maybe try to do this but just go ahead and run the program if we don’t see a sourcemap, to drop the need for a workaround?

0reactions
roblourenscommented, Feb 3, 2020

Even though this has always been a little too “magical” for my taste, I think we should support it just to be compatible with old launch configs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Not able to change anything in Program Files folder
Long press or right-click the file or folder, and then tap or click Properties. Tap or click the Security tab. Under Group or...
Read more >
ERROR: Cannot open source file " " - visual studio
In solution explorer, single click each file with the error, bring up the Properties window (right-click, Properties), and ensure the "Relative Path" is...
Read more >
Workable Fixes to Can't Read from Source File or Disk Error
Part 1: How to Fix Can't Read from the Source File or Disk Error? Solution 1: Restart Your PC; Solution 2: Check USB...
Read more >
fatal error #1965: cannot open source file - but file is in project
Hello all! I am developing for an F28335 in C++ and CCS v5.5 under Windows 7 at the moment.I make a heavy use...
Read more >
"Can't Read From Source File Or Disk" Error On Windows
Many Windows users have reported getting the error message " Can't read from source file or disk" when they try to move large...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found