Strage line appended in files from terminal
I just installed Goland alongside PhpStorm as I have a project involving both.
All good but in Goland when I save contents lines echoed from the terminal are appended in the .go file at the beginning
When I launch the terminal in Goland I have echo: “Loading .profile”
When I save a .go file this is added at the beginning of the file:
Loading .profile
package main
...
I searched for hours on the internet, re-installed Goland, removed the `.idea` folder from the project. Nothing.
I use Windows 10 with WSL2 as a setup.
Thanks a lot for any help you can provide.
Cheers,
Please sign in to leave a comment.
Hi there,
Can you please make a video of the steps you take and the result and attach it here - https://uploads.jetbrains.com/. Please also share the IDE logs (Help | Collect Logs and Diagnostic Data) with our team (you can use the same link to attach them as well).
Finally, please check if you have any custom plugins installed, disable them, restart the IDE, and see if the problem persists.
Thank you and I hope to hear from you soon.
I am facing the same issue, please share the solution if you guys have found.
Jessikmarko Hi there! Thank you for your report! I'm afraid the root cause is still unknown and I wasn't able to reproduce the problem on our end, so I'd like to ask you to provide the same details:
I have uploaded the logs
Setup Win 10 / Wsl 2
Steps to reproduce:
Now if we add an echo on `.profile` and/or `.bashrc` we will see those lines appended at the beginning of all .go files
What I have tried so far:
For now, I am using vscode but it is not ideal as I pay for goland and I do want to use goland
Thank you for the details. Still no luck in reproducing the issue, I'm afraid. Can you please tell me, how do you connect to the WSL - are you using remote development mode through Gateway or similar?
I am connecting to wsl indeed and go is installed in there.
I notice if I go to Tools/Actions on Save and disable “Reformat code”. This issue disappears, but this is not ideal. I can't figure out what from there is causing the issue.
Could you please share your .bashrc and .profile files from the WSL container?
I've checked the log, and it’s from the local IDE, but the WSL part is not included. Please gather the logs as described on the following page (preferably when connected to WSL):
https://www.jetbrains.com/help/idea/remote-development-troubleshooting.html#support
You can share them as you did last time or create an issue in our bug tracker:
https://youtrack.jetbrains.com/issues/GTW
Thank you for your time and effort.
The https://youtrack.jetbrains.com/issues/GTW is pointing me to a list of issues. Why don't you paste my issue directly and make me do it? For what it's worth I cannot find it and so far I am hugely disappointed in how this investigation is going so far given the fact this is a paid product (a subscription base no less)
Idk, give me the URL where I can upload the rest of these files or whatever. Is there a more direct service support than this? I get there it's a community support and here all are in due time, but you also need to understand that I opened this ticket more than a month and so far I am still using vscode because I did everything possible from uninstall to reinstall all JetBrains products and nothing happen and you can show for is “It works on my machine”?
Excuse my frustration, but for a subscription-based product, the support, so far it's very bad.
https://youtrack.jetbrains.com/issue/GTW-9779/Strage-line-appended-in-files-from-terminal
Unfortunately, it is not reproducible in my setup as well. Probably, there are other aspects that we have not yet discovered. It would be helpful if you could attach an example of your dotfiles and the related log from your WSL backend. You can attach files to the issue directly or use uploads.jetbrains.com
Thank you.