micro-editor / micro-editor/micro

Save and Open a bit buggy with language extension

Open
#1,172 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
29.6k
Forks
1.4k
Avg merge
2d 18h
Merged PRs (30d)
10

Description

Just open Micro and write some code and then save the file with the correct language extension. Then try to save the same file with another extension the syntax highlight will keep the previous language as reference. As shown in the screen:
bug
Then if open another file with another extension whatever it is, after that open again the new file (the one with the different extension from the first) then it will load correctly.
This doesn't happen always and i still didn't figure out what could cause it.
For any further info i will reply as fast i can, i really enjoy Micro it is my first only keyboard Code Editor and i find myself really comfortable with it, especially for it being so lightweight.

Another small thing is normal that c# has syntax highlight like this?
bug2
With only the first bracket highlighted? Just asking.

Micro 1.4.1
Commit Hash: 1856891
OS: Windows 10 Build 17134.254

i7 4790k
16gb ddr3 1600mhz
r9 270x Toxic
Maximus VII Ranger

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the save-and-open sequence in Micro 1.4.1 on Windows 10: save code with one language extension, save it again with another, and reopen files with different extensions. Compare the syntax-highlighting state after each step, including the C# example. Done means the language consistently follows the current file extension and the C# highlighting behavior is understood or separately documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, go
Domain
cli, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.