linuxserver / docker-code-server

GNU General Public License v3.0
1.54k stars 314 forks source link

[BUG] Random refreshing folder from code-server #167

Closed Neyos1997 closed 3 months ago

Neyos1997 commented 6 months ago

Is there an existing issue for this?

Current Behavior

Greetings I've organized my directory structure for projects under '/projects,' specifically for some java projects. Within this structure, the front end provides access to these projects. Upon accessing a project, such as '/projects/id/myproject,' where 'id' represents the project's unique identifier, I encounter an issue. For instance, if I switch from the project with the path '/projects/01111/' to '/projects/12345,' the file display erroneously shows the contents of the '01111' project initially. However, the code server promptly recognizes the discrepancy, triggering an automatic refresh to correctly point to the '12345' project. i doubted that the extensions had an issue so i deleted them i also upgraded from 4.12.0 to 4.19.0 in my docker image

Expected Behavior

no uncoherent sudden refreshes just it should point to addressed project

Steps To Reproduce

create projects for any type then switch between them

Environment

- OS: 
- How docker service was installed:

CPU architecture

x86-64

Docker creation

exec \
    s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z 127.0.0.1 8443" \
        s6-setuidgid abc \
            /app/code-server/bin/code-server \
                --bind-addr 0.0.0.0:8443 \
                --user-data-dir /home/project/code-server/data \
                --extensions-dir /home/project/code-server/extensions \
                --disable-telemetry \

                --auth "${AUTH}" \
                "${PROXY_DOMAIN_ARG}" \
                "${DEFAULT_WORKSPACE:-/home/project/code-server}"

Container logs

[2023-12-18T10:16:16.559Z] error Failed to get latest version {"error":"read ECONNRESET"}
[10:16:20] [127.0.0.6][bc0cb013][ManagementConnection] The client has disconnected gracefully, so the connection will be disposed.
[10:16:20] [127.0.0.6][4204b3dc][ExtensionHostConnection] <8495> Extension Host Process exited with code: 0, signal: null.
[10:16:21] [127.0.0.6][b67c7e93][ManagementConnection] New connection established.
[10:16:23] [127.0.0.6][d30dace9][ExtensionHostConnection] New connection established.
[10:16:23] [127.0.0.6][d30dace9][ExtensionHostConnection] <8578> Launched Extension Host Process.
File not found: /app/code-server/lib/vscode/node_modules/vscode-regexp-languagedetection/dist/index.js
[2023-12-18T10:16:32.910Z] error Failed to get latest version {"error":"read ECONNRESET"}
[10:16:33] [127.0.0.6][b67c7e93][ManagementConnection] The client has disconnected gracefully, so the connection will be disposed.
[10:16:33] [127.0.0.6][d30dace9][ExtensionHostConnection] <8578> Extension Host Process exited with code: 0, signal: null.
[10:16:35] [127.0.0.6][15636570][ManagementConnection] New connection established.
[10:16:37] [127.0.0.6][b339b060][ExtensionHostConnection] New connection established.
[10:16:37] [127.0.0.6][b339b060][ExtensionHostConnection] <8733> Launched Extension Host Process.
[10:16:43] [127.0.0.6][15636570][ManagementConnection] The client has disconnected gracefully, so the connection will be disposed.
[10:16:43] [127.0.0.6][b339b060][ExtensionHostConnection] <8733> Extension Host Process exited with code: 0, signal: null.
[10:16:45] [127.0.0.6][e17151a9][ManagementConnection] New connection established.
[2023-12-18T10:16:46.311Z] error Failed to get latest version {"error":"read ECONNRESET"}
[10:16:47] [127.0.0.6][b3712a7f][ExtensionHostConnection] New connection established.
[10:16:47] [127.0.0.6][b3712a7f][ExtensionHostConnection] <8830> Launched Extension Host Process.
File not found: /app/code-server/lib/vscode/node_modules/vscode-regexp-languagedetection/dist/index.js
[2023-12-18T10:16:56.327Z] error Failed to get latest version {"error":"read ECONNRESET"}
github-actions[bot] commented 6 months ago

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

github-actions[bot] commented 6 months ago

A human has marked this issue as invalid, this likely happened because the issue template was not used in the creation of the issue.

Roxedus commented 6 months ago

That is not the correct answer for the container creation or environment box.

I switch folder quite frequently and have not experienced this, are these IDs just folder names?

Neyos1997 commented 6 months ago

yes the IDs are folder names . when you have a lot of projects with different types front and back this issue would happen

Roxedus commented 6 months ago

you may want to look into the application logs, iirc they are in /config

LinuxServer-CI commented 5 months ago

This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] commented 2 months ago

This issue is locked due to inactivity