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

On macOS, Big Sur with M1 chip syntax highliting doesn't work #231

Open
bmaxa opened this issue Jul 3, 2021 · 9 comments
Open

On macOS, Big Sur with M1 chip syntax highliting doesn't work #231

bmaxa opened this issue Jul 3, 2021 · 9 comments

Comments

@bmaxa
Copy link

bmaxa commented Jul 3, 2021

Compiled from source and install with brew, same. No syntax highlighting.
Also when installing from brew and putting sublime-syntax files in syntaxes
program crashes with: thread 'main' panicked at 'attempted to leave type linked_hash_map::Node<yaml::Yaml, yaml::Yaml> uninitialized, which is invalid', /private/tmp/rust-20210325-61749-fsgy2a/rustc-1.51.0-src/library/core/src/mem/mod.rs:671:9

@pbgc
Copy link

pbgc commented Jul 3, 2021

@bmaxa take a look at: #205

@bmaxa
Copy link
Author

bmaxa commented Jul 3, 2021

in git repo this is solved, but syntax highlighting still doesn't work, or am I missing something again?

@pbgc
Copy link

pbgc commented Jul 3, 2021

@bmaxa it's not fixed in the git repo. It was not merged.
Just switch the compiler to stable-1.47 (can be done via running rustup override set 1.47 in the amp directory) and rebuild and it will work

@bmaxa
Copy link
Author

bmaxa commented Jul 3, 2021

Compiled with stable, same. Perhaps I have to change colour scheme in terminal? Any advice?

@bmaxa
Copy link
Author

bmaxa commented Jul 3, 2021

Yes, that is. When started in tmux, syntax highlighting works alright!
So it's terminal quirk.

@pbgc
Copy link

pbgc commented Jul 3, 2021

@bmaxa Yes, I had those problems with URxvt .. but not with Alacritty.
(I thought you were still having that error linked_hash_map .... that's why I said to change compiler version)

@bmaxa
Copy link
Author

bmaxa commented Jul 3, 2021

this is from Cargo.toml I pulled couple of days ago: yaml-rust = ">= 0.4.5"
so it is fixed in repo, I hadn't had crash with nightly compiler when building from source,\only with brew installed.

@pbgc
Copy link

pbgc commented Jul 3, 2021

@bmaxa you are right. The problem was fixed upstream. I reported this problem 6 months ago and could not remember the details but had the idea that the pull request from christoph-heiss had not been merged yet (and that's true .. because it was not needed).

@Kerbidiah
Copy link

not sure if this helps, but I have the same issue (at least it sounds like its the same) on an Intel Mac (also on Big Sur). It seems to work fine in Alacrity though. I installed amp through homebrew

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

3 participants