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.

[Minor] Extra line added when deploying

See original GitHub issue

When deploying a script with the malware mdk 1.1.8 on VS 15.7.3, an extra blank line is added to the top of the script.

So basically:

1 partial class Program : MyGridProgram
2 {
3 	// some Code
4 }

will become:

1
2 // some Code

in the ingame script editor instead of:

1 // some Code

(line numbers added for better understanding - not actual code)

I’m not quite sure, whether this is the MDK’s fault or VS tab settings (tabs are set to be kept instead of being converted to whitespaces). Removing all tabs at the front didn’t help. Placing the opening bracket in the class line didn’t help either.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:15 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
malware-devcommented, Jun 10, 2018

Thank you for your report. Most likely the newline after { is being preserved where it shouldn’t.

0reactions
malware-devcommented, Jul 13, 2019

I don’t know if the changes in how MDK works has fixed this, but I probably won’t be fixing this particular issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

lots of extra lines in layout xml files when deployed to git
Each time I merge our "ProdToMain" branch into main, the next commit to our "ProdToMain" branch adds a new layer of blank spaces....
Read more >
Make addition/deletion of empty lines visible · Issue #366
Our markemptylines lines options will highlight with a green/red box at the beginning of a line any blank line that was added or...
Read more >
Getting an extra Blank line at end of file while creating a txt file.
I have been trying to create a txt file with a format such as 1st row as header, from 2nd row i have...
Read more >
Extra Blank Line in Out-File results : r/PowerShell
When you give it a string of a new line character "``n" , it adds a line after the new line. Instead, just...
Read more >
The Power BI deployment pipelines process
In this article. Deploying content to an empty stage; Deploy content to an existing workspace; Deployed items; Item properties copied during ...
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