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

Problem with Translation Manager #28

Open
SimonOfHH opened this issue Jun 9, 2023 · 0 comments
Open

Problem with Translation Manager #28

SimonOfHH opened this issue Jun 9, 2023 · 0 comments

Comments

@SimonOfHH
Copy link

Hi @martonsagi

Used version: v0.9.934

I'm having trouble using the Translation Manager with a specific combination of files. I have a *.g.xlf file and a *.de-DE.xlf file. When I only open the Translation Manager with the *.g.xlf file in the folder it works, same if only the *.de-DE.xlf file exists (even though I cannot work on the translations then, because the source is empty). But if both files are in the folder I always get this error "WebSocket closed with status code: 1009 ()"

image

When I try to refresh afterwards if just shows "Cannot send data if the connection is not in the "Connected" State"

image

I'll attach you VS Codes Dev Tools output, hopefully this helps

[Extension Host] [2023-06-09T15:10:08.689Z] Debug: Starting HubConnection.
console.ts:137 [Extension Host] [2023-06-09T15:10:08.690Z] Debug: Starting connection with transfer format 'Text'.
console.ts:137 [Extension Host] [2023-06-09T15:10:08.690Z] Debug: Sending negotiation request: http://localhost:30000/alstudio/negotiate?negotiateVersion=1.
console.ts:137 [Extension Host] No script files found.
console.ts:137 [Extension Host] Start watching workspace for new script files.
console.ts:137 [Extension Host] [2023-06-09T15:10:09.163Z] Debug: Selecting transport 'WebSockets'.
console.ts:137 [Extension Host] [2023-06-09T15:10:09.255Z] Information: WebSocket connected to ws://localhost:30000/alstudio?id=SsT9bXUapJU41JOkoe--Vw.
console.ts:137 [Extension Host] [2023-06-09T15:10:09.255Z] Debug: The HttpConnection connected successfully.
console.ts:137 [Extension Host] [2023-06-09T15:10:09.255Z] Debug: Sending handshake request.
console.ts:137 [Extension Host] [2023-06-09T15:10:09.257Z] Information: Using HubProtocol 'json'.
console.ts:137 [Extension Host] [2023-06-09T15:10:09.308Z] Debug: Server handshake complete.
console.ts:137 [Extension Host] [2023-06-09T15:10:09.309Z] Debug: HubConnection connected successfully.
console.ts:137 [Extension Host] [AL Studio][2023-06-09T15:10:09.465Z][Info]: Extension "dynasist.al-studio" is now activated.
console.ts:137 [Extension Host] [AL Studio][2023-06-09T15:14:34.618Z][Info]: Workspace processed in 5693ms
bundle.js:270 
e {vscode: {…}}
 
{start: 'translation-manager', options: {…}, settings: {…}}
console.ts:137 [Extension Host] [2023-06-09T15:14:41.749Z] Debug: HttpConnection.stopConnection(Error: WebSocket closed with status code: 1009 ().) called while in state Connected.
log.ts:441   ERR [Extension Host] [2023-06-09T15:14:41.749Z] Error: Connection disconnected with error 'Error: WebSocket closed with status code: 1009 ().'.
console.ts:137 [Extension Host] [2023-06-09T15:14:41.749Z] Error: Connection disconnected with error 'Error: WebSocket closed with status code: 1009 ().'.
console.ts:137 [Extension Host] [2023-06-09T15:14:41.749Z] Debug: HubConnection.connectionClosed(Error: WebSocket closed with status code: 1009 ().) called while in state Connected.
console.ts:137 [Extension Host] [2023-06-09T15:14:41.749Z] Information: Connection reconnecting because of error 'Error: WebSocket closed with status code: 1009 ().'.
console.ts:137 [Extension Host] [AL Studio][2023-06-09T15:14:41.750Z][Warning]: Backend connection lost due to error "Error: WebSocket closed with status code: 1009 ().". Reconnecting.
console.ts:137 [Extension Host] [2023-06-09T15:14:41.750Z] Information: Reconnect attempt number 1 will start in 3000 ms.
notificationsAlerts.ts:42 WebSocket closed with status code: 1009 ().
log.ts:441   ERR [Extension Host] [AL Studio][2023-06-09T15:14:41.750Z][Error]: Failed to execute command: LoadTranslations Error: WebSocket closed with status code: 1009 ().
	at t.close (c:\Users\simonofhh\.vscode\extensions\dynasist.al-studio-0.9.934\out\node_modules\@microsoft\signalr.js:1:43412)
	at s.onclose (c:\Users\simonofhh\.vscode\extensions\dynasist.al-studio-0.9.934\out\node_modules\@microsoft\signalr.js:1:42511)
	at S.i (c:\Users\simonofhh\.vscode\extensions\dynasist.al-studio-0.9.934\out\node_modules\ws.js:1:28980)
	at S.emit (node:events:526:28)
	at S.emitClose (c:\Users\simonofhh\.vscode\extensions\dynasist.al-studio-0.9.934\out\node_modules\ws.js:1:13554)
	at Socket.M (c:\Users\simonofhh\.vscode\extensions\dynasist.al-studio-0.9.934\out\node_modules\ws.js:1:16721)
	at Socket.emit (node:events:526:28)
	at TCP.<anonymous> (node:net:687:12)
console.ts:137 [Extension Host] [AL Studio][2023-06-09T15:14:41.750Z][Error]: Failed to execute command: LoadTranslations Error: WebSocket closed with status code: 1009 ().
	at t.close (c:\Users\simonofhh\.vscode\extensions\dynasist.al-studio-0.9.934\out\node_modules\@microsoft\signalr.js:1:43412)
	at s.onclose (c:\Users\simonofhh\.vscode\extensions\dynasist.al-studio-0.9.934\out\node_modules\@microsoft\signalr.js:1:42511)
	at S.i (c:\Users\simonofhh\.vscode\extensions\dynasist.al-studio-0.9.934\out\node_modules\ws.js:1:28980)
	at S.emit (node:events:526:28)
	at S.emitClose (c:\Users\simonofhh\.vscode\extensions\dynasist.al-studio-0.9.934\out\node_modules\ws.js:1:13554)
	at Socket.M (c:\Users\simonofhh\.vscode\extensions\dynasist.al-studio-0.9.934\out\node_modules\ws.js:1:16721)
	at Socket.emit (node:events:526:28)
	at TCP.<anonymous> (node:net:687:12)
[Extension Host] [2023-06-09T15:14:44.756Z] Debug: Starting connection with transfer format 'Text'.
console.ts:137 [Extension Host] [2023-06-09T15:14:44.756Z] Debug: Sending negotiation request: http://localhost:30000/alstudio/negotiate?negotiateVersion=1.
console.ts:137 [Extension Host] [2023-06-09T15:14:44.766Z] Debug: Selecting transport 'WebSockets'.
console.ts:137 [Extension Host] [2023-06-09T15:14:44.775Z] Information: WebSocket connected to ws://localhost:30000/alstudio?id=jnu00Q9XYbFm-CISuJru0Q.
console.ts:137 [Extension Host] [2023-06-09T15:14:44.775Z] Debug: The HttpConnection connected successfully.
console.ts:137 [Extension Host] [2023-06-09T15:14:44.775Z] Debug: Sending handshake request.
console.ts:137 [Extension Host] [2023-06-09T15:14:44.776Z] Information: Using HubProtocol 'json'.
console.ts:137 [Extension Host] [2023-06-09T15:14:44.778Z] Debug: Server handshake complete.
console.ts:137 [Extension Host] [2023-06-09T15:14:44.778Z] Information: HubConnection reconnected successfully.
console.ts:137 [Extension Host] [AL Studio][2023-06-09T15:14:44.778Z][Info]: Backend connection has beed restored.
console.ts:137 [Extension Host] [AL Studio][2023-06-09T15:14:46.227Z][Info]: Workspace processed in 1447ms
console.ts:137 [Extension Host] [2023-06-09T15:14:53.900Z] Debug: HttpConnection.stopConnection(Error: WebSocket closed with status code: 1009 ().) called while in state Connected.
log.ts:441   ERR [Extension Host] [2023-06-09T15:14:53.900Z] Error: Connection disconnected with error 'Error: WebSocket closed with status code: 1009 ().'.
console.ts:137 [Extension Host] [2023-06-09T15:14:53.900Z] Error: Connection disconnected with error 'Error: WebSocket closed with status code: 1009 ().'.
console.ts:137 [Extension Host] [2023-06-09T15:14:53.900Z] Debug: HubConnection.connectionClosed(Error: WebSocket closed with status code: 1009 ().) called while in state Connected.
console.ts:137 [Extension Host] [2023-06-09T15:14:53.900Z] Information: Connection reconnecting because of error 'Error: WebSocket closed with status code: 1009 ().'.
console.ts:137 [Extension Host] [AL Studio][2023-06-09T15:14:53.900Z][Warning]: Backend connection lost due to error "Error: WebSocket closed with status code: 1009 ().". Reconnecting.
console.ts:137 [Extension Host] [2023-06-09T15:14:53.901Z] Information: Reconnect attempt number 1 will start in 3000 ms.
console.ts:137 [Extension Host] rejected promise not handled within 1 second: Error: WebSocket closed with status code: 1009 ().
console.ts:137 [Extension Host] stack trace: Error: WebSocket closed with status code: 1009 ().
	at t.close (c:\Users\simonofhh\.vscode\extensions\dynasist.al-studio-0.9.934\out\node_modules\@microsoft\signalr.js:1:43412)
	at s.onclose (c:\Users\simonofhh\.vscode\extensions\dynasist.al-studio-0.9.934\out\node_modules\@microsoft\signalr.js:1:42511)
	at S.i (c:\Users\simonofhh\.vscode\extensions\dynasist.al-studio-0.9.934\out\node_modules\ws.js:1:28980)
	at S.emit (node:events:526:28)
	at S.emitClose (c:\Users\simonofhh\.vscode\extensions\dynasist.al-studio-0.9.934\out\node_modules\ws.js:1:13554)
	at Socket.M (c:\Users\simonofhh\.vscode\extensions\dynasist.al-studio-0.9.934\out\node_modules\ws.js:1:16721)
	at Socket.emit (node:events:526:28)
	at TCP.<anonymous> (node:net:687:12)
mainThreadExtensionService.ts:80 [[object Object]]WebSocket closed with status code: 1009 ().
mainThreadExtensionService.ts:81 Error: WebSocket closed with status code: 1009 ().
	at t.close (c:\Users\simonofhh\.vscode\extensions\dynasist.al-studio-0.9.934\out\node_modules\@microsoft\signalr.js:1:43412)
	at s.onclose (c:\Users\simonofhh\.vscode\extensions\dynasist.al-studio-0.9.934\out\node_modules\@microsoft\signalr.js:1:42511)
	at S.i (c:\Users\simonofhh\.vscode\extensions\dynasist.al-studio-0.9.934\out\node_modules\ws.js:1:28980)
	at S.emit (node:events:526:28)
	at S.emitClose (c:\Users\simonofhh\.vscode\extensions\dynasist.al-studio-0.9.934\out\node_modules\ws.js:1:13554)
	at Socket.M (c:\Users\simonofhh\.vscode\extensions\dynasist.al-studio-0.9.934\out\node_modules\ws.js:1:16721)
	at Socket.emit (node:events:526:28)

This repeats every 3 seconds. Any idea what I can do? I already tried downgrading to the previous version, re-installing completely, rebooting. Nothing changes.

Thanks for your help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant