teams-for-linux
teams-for-linux copied to clipboard
problems with backticks
Describe the bug When typing a backtick (`) for me it does not trigger an inline code, not does typing triple-backticks trigger a code block. It's especially relevant, that my keyboard requires me to type shift+^ for the backtick, and then followed by the space to "finalize" the backtick. It works in the web app. Just not in this electron app. So it could be related.
Sorry but I can recreate this.
I tried with then my text and (without spaces like something) and it works fine in chats.
If I you add spaces (like something or something or something) then MS doesn't detect that as a code block neither in the web app, the mac app or this client.
I also have a problem with this... before, doing 3 backtips and hitting space triggered a code block but not anymore. But I have to say that my inline code wasn't working before, only the code block, but now nothing.
Upgraded from 1.5.2 to 1.8.1 yesterday after my vacations.
are you still experiencing this issue? If so, can you fill the template and provide more info @luxzeitlos ? lt could be related to the package you are using or others. Filling the template might provide me with the information to understand the problem, specially if you provide the logs. Otherwise I am quite blind. Thanks
Having the same problem here.
Nothing is visible in the dev console.
How can I provide logs that help to pinpoint this issue? I suspect the chat window is entirely handled on client side in Javascript, therefore I doubt there will be anything of value in application logs?
Hi @discordier , if you can provide the logs that would be great. My suspicion lies on the hardware acceleration. It can generate this sort of issues. If you have notice that your laptop is "accelerating" (fan going bananas) when joining a meeting and the like, you might need to use the disableGpu config option. But the logs might give a hint.
Get the latest (1.9.1) and run the app with the following options:
teams-for-linux --webDebug --disableGpu --logConfig='{}'
Then paste the logs (remember to mask any PII if there is any)
closing due inactivity (and to keep things clean), do report back with logs if you still facing the issue.
teams-for-linux --webDebug --disableGpu --logConfig='{}'Then paste the logs (remember to mask any PII if there is any)
I could not generate any useful log output when using these options. However, I found a workaround by disabling dead keys on my keyboard. For quite a while, I still could initiate a code block with dead keys enabled by using Teams in Firefox but even this stopped working suddenly.
glad you found a solution.
So i have this issue too. With the Inspector I realized that firefox changes the content of the p-tag to a dedicated code tag, when it finds the second backtick. Your App sadly keeps the backticked string as content of the p-tag. I tried different approaches, all do not work:
My logs look like this:
user@host:~/.config/teams-for-linux/logs$ teams-for-linux --webDebug --disableGpu --logConfig='{}'
No config file found, using default values
all good with appLogLevels you aren't using them
Initialising logger with config: "{}"
Logger initialised with transports: {}
10:33:27.173 › File logging at /home/user/.config/teams-for-linux/logs/main.log with level silly
10:33:27.175 › Console logging enabled with level silly
10:33:27.175 › Logger initialised
10:33:27.176 › configPath: /home/user/.config/teams-for-linux
10:33:27.176 › configFile: {}
10:33:27.179 › Running under Wayland, switching to PipeWire...
10:33:27.179 › Disabling GPU support...
10:33:27.559 › processArgs: [
'/opt/teams-for-linux/teams-for-linux',
'--webDebug',
'--disableGpu',
'--logConfig={}'
]
10:33:27.561 › testing RegExp processArgs false
10:33:27.562 › testing RegExp processArgs false
10:33:27.562 › testing RegExp processArgs false
10:33:27.562 › testing RegExp processArgs false
10:33:27.563 › Testing network using net.request() for https://teams.microsoft.com/
10:33:27.565 › Spellchecker is disabled!
10:33:27.909 › Network test successful with method https
10:33:28.305 › GetSystemIdleState => IdleTimeout: 300s, IdleTimeoutPollInterval: 10s, ActiveCheckPollInterval: 2s, IdleTime: 0s, IdleState: 'active'
[someNumbers:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.ScreenSaver.GetActive: object_path= /org/freedesktop/ScreenSaver: org.freedesktop.DBus.Error.NotSupported: This method is not part of the idle inhibition specification: https://specifications.freedesktop.org/idle-inhibit-spec/latest/
[someNumbers:ERROR:CONSOLE(1)] "Request Autofill.enable failed. {"code":-32601,"message":"'Autofill.enable' wasn't found"}", source: devtools://devtools/bundled/core/protocol_client/protocol_client.js (1)
10:33:29.324 › did-frame-finish-load {} true
10:33:29.325 › did-finish-load
10:33:31.863 › Badge count set to '0'
10:33:31.889 › Badge count set to '0'
10:33:33.165 › Badge count set to '0'
[someNumbers:ERROR:CONSOLE(1)] "Request Autofill.enable failed. {"code":-32601,"message":"'Autofill.enable' wasn't found"}", source: devtools://devtools/bundled/core/protocol_client/protocol_client.js (1)
10:33:35.621 › did-frame-finish-load {} false
10:33:38.322 › GetSystemIdleState => IdleTimeout: 300s, IdleTimeoutPollInterval: 10s, ActiveCheckPollInterval: 2s, IdleTime: 0s, IdleState: 'active'
10:33:48.325 › GetSystemIdleState => IdleTimeout: 300s, IdleTimeoutPollInterval: 10s, ActiveCheckPollInterval: 2s, IdleTime: 0s, IdleState: 'active'
10:33:58.328 › GetSystemIdleState => IdleTimeout: 300s, IdleTimeoutPollInterval: 10s, ActiveCheckPollInterval: 2s, IdleTime: 0s, IdleState: 'active'
[someNumbers:ERROR:CONSOLE(1)] "Uncaught (in promise) TypeError: Failed to fetch", source: devtools://devtools/bundled/panels/elements/elements.js (1)
Thanks in advance!
Hi @Marvin-Szyperski, If you can open a new issue, we might be able to see why it is not working for you. This app works in electron that wraps chromium. Check before opening the other issue if this also happens in your chromium browser, as I think this is an issue with it, and not the app (as we don't do anything around this area).
you are right. Just checked on https://teams.microsoft.com/v2/?clientexperience=t2 and the problem is already present there. Nothing you can do here - sorry about the fuzz.
Upstream ticket seems to be: https://github.com/MicrosoftDocs/msteams-docs/issues/9126
@IsmaelMartinez i dont have Chromium or Chrome on my Machine. I only use Firefox and it works fine in firefox. Should I download Chromium, to test it there? Depending on that outcome, creating a new issue would be unnecessary.
@discordier Well, if i open that link the backticks work perfectly fine for me?
@Marvin-Szyperski For me the backticks do not work at all.
maybe check if changing the user agent works for you? There is a config option for that https://github.com/IsmaelMartinez/teams-for-linux/tree/develop/app/config chromeUserAgent. However, I don't think it will work, but worth a try! I have seen stranger things
I am also facing an issue with backticks not triggering code blocks, either:
- Inline: `foo`<space>
- Block: ```<space>
Sending the message does not format either.
I am using v1.11.5.
Which logs (console / Debug or file-s) would you require @IsmaelMartinez?
Sorry but this is a Microsoft issue as it happens also in the browser. I would suggest you reach out to Microsoft instead. Hopefully they fix it soon.
This is a known issue with Teams documented here: https://github.com/MicrosoftDocs/msteams-docs/issues/9126
You can try to work around by switching to a keyboard layout with dead keys disabled.