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

Code oss 3 files are created #1685

Closed
unknowncat-meow opened this issue Jul 19, 2024 · 7 comments
Closed

Code oss 3 files are created #1685

unknowncat-meow opened this issue Jul 19, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@unknowncat-meow
Copy link

unknowncat-meow commented Jul 19, 2024

image
I have followed the previous solution and this error still there any idea ?

@unknowncat-meow unknowncat-meow added the bug Something isn't working label Jul 19, 2024
@unknowncat-meow
Copy link
Author

I have also removed quotes from ${electronflags[@]} in t his line ELECTRON_RUN_AS_NODE=1 exec /usr/lib/${name}/electron /usr/lib/code/out/cli.js "${electronflags[@]}" /usr/lib/code/code.js ${codeflags[@]} "$@".
It fixed the issue
does this change anything ?

@kRHYME7
Copy link
Collaborator

kRHYME7 commented Jul 19, 2024

Are you sure the issue persisted? Or maybe Code still remembers the last openned file

@kRHYME7 kRHYME7 closed this as completed Jul 19, 2024
@kRHYME7 kRHYME7 reopened this Jul 19, 2024
@unknowncat-meow
Copy link
Author

at first when I closed those files and opened folder in vscode. it opened 2 instances of code one with opened folder and one with those unsaved files. after about 3rd launch the instance where I had folder open got closed and only instance with those unsaved files remained.

@kRHYME7
Copy link
Collaborator

kRHYME7 commented Jul 19, 2024

Can you share here the file you edited from here

#1685 (comment)

And let's continue this to the pinned post

@unknowncat-meow
Copy link
Author

unknowncat-meow commented Jul 21, 2024

Can you share here the file you edited from here

#1685 (comment)

And let's continue this to the pinned post

sure I have done this to fix the issue

I have also removed quotes from ${electronflags[@]} in t his line ELECTRON_RUN_AS_NODE=1 exec /usr/lib/${name}/electron /usr/lib/code/out/cli.js "${electronflags[@]}" /usr/lib/code/code.js ${codeflags[@]} "$@".

@kRHYME7
Copy link
Collaborator

kRHYME7 commented Jul 21, 2024

Take note the your package manager will overwrite that file during updates

In my case I added a copy of the edited/fixed ./code file to /usr/local/bin This way package manager won't overwrite it.

@nickheyer
Copy link

Take note the your package manager will overwrite that file during updates

In my case I added a copy of the edited/fixed ./code file to /usr/local/bin This way package manager won't overwrite it.

Yeah, this didnt fix the issue for me. Package manager doesn't care about /usr/local/bin, it still reverts to the "${codeflags[0]}" after an update. I've now needed to reset the code-oss bin in /usr/bin like 30 times.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants