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

No prompt when selecting "Open File" or "Open Folder" within VSCode on Linux arm64 ubuntu using proot #228965

Closed
elesbb opened this issue Sep 18, 2024 · 8 comments
Assignees
Labels
linux Issues with VS Code on Linux native-file-dialog Issues with native file dialog

Comments

@elesbb
Copy link

elesbb commented Sep 18, 2024

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.93.1
  • OS Version: Ubuntu 22.04 LTS arm64

Steps to Reproduce:

  1. Install VSCode for arm64 Linux using the provided .deb package
  2. Launch VSCode in linux
  3. Go to File->Open File or Ctrl+O or File->Open Folder
  4. There is no prompt.
@connor4312 connor4312 assigned bpasero and unassigned connor4312 Sep 18, 2024
@bpasero bpasero assigned deepak1556 and unassigned bpasero Sep 18, 2024
@bpasero bpasero added linux Issues with VS Code on Linux native-file-dialog Issues with native file dialog labels Sep 18, 2024
@elesbb
Copy link
Author

elesbb commented Oct 1, 2024

@bpasero @deepak1556

Any update on this? I can provide any logs if needed

@bpasero
Copy link
Member

bpasero commented Oct 1, 2024

Is the dialog not opening at all or opening behind the main window?

Can you please follow the steps in https://github.com/Microsoft/vscode/wiki/Native-Crash-Issues to get at more details around the crash and attach the result here? Thanks!

@bpasero bpasero added the info-needed Issue requires more information from poster label Oct 1, 2024
@elesbb
Copy link
Author

elesbb commented Oct 1, 2024

Is the dialog not opening at all or opening behind the main window?

I posted on Reddit and someone mentioned this as well. So I minimized VSCode and it would appear the dialog is not opening at all

Can you please follow the steps in https://github.com/Microsoft/vscode/wiki/Native-Crash-Issues to get at more details around the crash and attach the result here? Thanks!

I tried to follow the steps, but no crash log was generated. My guess is simply because it doesn't crash lol. It just does nothing. It still runs and everything is fine, just without the file open/folder open dialog showing

Is there a way to put it into verbose logging mode? Or something similar?

Thanks for the update! I'm more than willing to generate/test anything you need!

@bpasero
Copy link
Member

bpasero commented Oct 1, 2024

Please see if you can find any logged output that could help us find the source of the issue:

  • run code --verbose from the command line
  • reproduce the issue
  • attach the log files you find from running the command "Open Logs Folder"

Thanks!

@deepak1556
Copy link
Collaborator

Sorry for the delay here, could you also try our insiders version https://code.visualstudio.com/insiders and confirm if the issue is present.

@elesbb
Copy link
Author

elesbb commented Oct 2, 2024

@deepak1556 @bpasero

Hey friends!

Thanks for the --verbose switch. Can't believe I didn't try that myself lol.
Some context - I am using Ubuntu ARM64 inside an andronix (proot) environment.

After running code --verbose, I was able to see the logs, the error comes from this:
[18937:1001/202935.046812:ERROR:select_file_dialog_linux_portal.cc(769)] Portal returned error: org.freedesktop.DBus.Error.AccessDenied: Portal operation not allowed: Unable to open /proc/18937/root

Which I have been having other issues with /proc stuff in this build. But found solutions for.

I have been using andronix cause I found it first, this lead me to discover proot-distro which seems to fix the /proc issues.

I tested out an installation of ubuntu under proot-distro, and vscode successfully shows the open file dialog.

Also, weirdly, the error was output to the terminal, instead of the log files. So I redirected all output to a file instead. Here it is:
vscode.log

I guess this can be marked solved then. Not sure if its worth updating vscode to be able to open dialogs without the /proc accessor. Which, maybe it is cause all other programs can open files like geany, mousepad, etc. Its up to you. But I think I will go ahead and get proot-distro setup for myself. Which ultimately fixes this issue

@deepak1556
Copy link
Collaborator

Glad you were able to identify the issue.

Not sure if its worth updating vscode to be able to open dialogs without the /proc accessor

We don't have control over this, it is a call made by the portal implementation on the distro.

@deepak1556 deepak1556 removed the info-needed Issue requires more information from poster label Oct 2, 2024
@elesbb
Copy link
Author

elesbb commented Oct 2, 2024

I see! Thanks a lot for helping me figure it out and find a solution! Seriously appreciate it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
linux Issues with VS Code on Linux native-file-dialog Issues with native file dialog
Projects
None yet
Development

No branches or pull requests

4 participants