-
Notifications
You must be signed in to change notification settings - Fork 28
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
Problems with formatting #33
Comments
Thank you for reporting this problem. Can I have a sample file for which the problem occurs please? To reproduce the problem in my debugger is the first big step. |
The formatting inconsistency you are observing is a consequence of mixed spaces and tabs. The renderer should set the CSS tab-size to match your VS Code settings, but just tested this and the value is Well done, you have found a bug. There is a workaround — convert all your tabs to spaces. Just set VS Code to use spaces instead of tabs, and then format the document. I will put out a fix shortly, but I do still need a sample file to help me work out your other issue. If you have been using my extension for some time and the problem is recent then it may be related to localisation. What language is your development code using? Given your username I suspect it may be German, which is not yet a supported language. |
Thanks for the fast response. I attached a file with two codes, where the bugs occurred. |
It appears you are using OS/X. I'll have to borrow a Mac to debug this so it may be a few days before you hear anything. |
It took me a while to recognise that language, it's VHDL if I'm not mistaken. None of the VHDL extensions appears to include a formatter so that workaround isn't very practical. And you are right the menu is not appearing for VHDL files. I have managed to reproduce the fault on Windows. |
Set your tab size to 4 and update your copy of vscode-print. Please let me know that you are satisfied with this fix by closing the issue. I am looking for a volunteer to handle localisation to German. If you have any other problems just raise an issue. |
Thank you, for your fast response and fix. I apologize for replying so late. Formatting works like a charm now. One last problem I run into (don't know whether its MAC exclusive or not or a 'feature'): if I try selecting a theme via the the option F1 -> Printing: Browse for stylesheets I get the following error (the paths seem to be wrong?). Selecting the file manually (writing the name of the theme into the setting 'Print: Colour Scheme') |
That’s incompatibility with the Mac file structure – not the file system itself, the layout of VS Code and its extensions. I’ll have to get a Mac and do some testing and debugging, unless you are willing to do it and file a pull request, in which case I would be delighted to incorporate your changes.
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10
…________________________________
From: 18KaiZer71 <notifications@github.com>
Sent: Tuesday, June 25, 2019 12:34:49 AM
To: PeterWone/vsc-print
Cc: Peter Wone; Comment
Subject: Re: [PeterWone/vsc-print] Problems with formatting (#33)
Thank you, for your fast response and fix. I apologize for replying so late. Formatting works like a charm now. One last problem I run into (don't know whether its MAC exclusive or not or a 'feature'): if I try selecting a theme via the the option F1 -> Printing: Browse for stylesheets I get the following error (the paths seem to be wrong?). Selecting the file manually (writing the name of the theme into the setting 'Print: Colour Scheme')
error.pdf<https://github.com/PeterWone/vsc-print/files/3321295/error.pdf>
works.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#33>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ABJ6QODZUNVXPZW6F7YQR2DP4DLQTANCNFSM4H2XD22A>.
|
I'm closing this issue and opening a new one with the path problem. |
While using your extension I run into some problem. First and foremost: The print menu won't show up anymore, even after deleting and reinstalling. But the most annyoing part is shown in the pictures below: For some reason parts of the formatting were/are 'destroyed', while exporting the code. I tried printing those parts via a new file, formatting them anew but nothing worked so far. I hope you're able to help me.
The text was updated successfully, but these errors were encountered: