mechatroner / vscode_rainbow_csv

🌈Rainbow CSV - VS Code extension: Highlight CSV and TSV files in different rainbow colors to make them more readable
MIT License
426 stars 51 forks source link

Plugin fails on remote #128

Closed Hipska closed 1 year ago

Hipska commented 1 year ago

The plugin worked fine on remote vscode views, but recently doesn't work anymore.

I tried disabling and even reinstall of plugin.

This is shown in the runtime status after opening a csv file:

  • Cannot read properties of null (reading 'uri')
  • Cannot find module './rainbow_utils.js' Require stack:
    • /xxx/vscode-server/extensions/mechatroner.rainbow-csv-3.5.0/extension.js
    • /xxx/vscode-server/bin/e2816fe719a4026ffa1ee0189dc89bdfdbafb164/out/vs/loader.js
    • /xxx/vscode-server/bin/e2816fe719a4026ffa1ee0189dc89bdfdbafb164/out/bootstrap-amd.js
    • /xxx/vscode-server/bin/e2816fe719a4026ffa1ee0189dc89bdfdbafb164/out/bootstrap-fork.js
  • Cannot find module './rainbow_utils.js' Require stack:
    • /xxx/vscode-server/extensions/mechatroner.rainbow-csv-3.5.0/extension.js
    • /xxx/vscode-server/bin/e2816fe719a4026ffa1ee0189dc89bdfdbafb164/out/vs/loader.js
    • /xxx/vscode-server/bin/e2816fe719a4026ffa1ee0189dc89bdfdbafb164/out/bootstrap-amd.js
    • /xxx/vscode-server/bin/e2816fe719a4026ffa1ee0189dc89bdfdbafb164/out/bootstrap-fork.js

Is there anything else I can provide for troubleshooting?

mechatroner commented 1 year ago

Thanks for the bug report. It also made me try to use remote vscode development for the first time!

Could you tell me, what type of remote development scenario do you have compared to the options here: https://code.visualstudio.com/docs/remote/remote-overview#_remote-tutorials ? Is it WSL development or remote or remote ssh or something else? BTW I did some tests with a remote code tunnel server on a cloud ubuntu machine, and I couldn't reproduce the problem. Please tell me more about your use-case, i.e. what commands are you running on the remote machine, are you using browser or vscode + the tunnel extensions? I also noticed 'vscode-server' in the stack trace, could it be that you are using 'vscode-server' command instead of code tunnel which seem to be a new recommended way of doing this?

Hipska commented 1 year ago

I'm using Remote-SSH indeed. It used to work before if I can remember it correctly.

The path is truncated, but actually this is where this extension puts the remote and temp files. It is in .vscode-server in the user directory.

I looked up the documentation and I don't think code tunnel is a way to go as the remote machine has no internet access.

I also looked up the code a bit and found the following: https://github.com/mechatroner/vscode_rainbow_csv/blob/534bdbbe299ba6af3acfe7ac3d52d8d500267a21/extension.js#L23-L29

But in the extension directory, this file doesn't seem to exist:

# ll -h ~/.vscode-server/extensions/mechatroner.rainbow-csv-3.5.0
total 108K
-rw-r--r-- 1 xxxx sshusers  81K Dec 10 09:18 extension.js
-rw-r--r-- 1 xxxx sshusers 6.2K Dec 10 09:18 fast_load_utils.js
-rw-r--r-- 1 xxxx sshusers  10K Feb 14 13:50 package.json
drwxr-xr-x 3 xxxx sshusers 4.0K Dec 10 09:18 rbql_core
Hipska commented 1 year ago

I removed some caches, reinstalled the plugin and restarted vscode again, and it seems everything is working again...