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

Function List languages have gone missing #9698

Closed
gabenodarse opened this issue Mar 24, 2021 · 5 comments
Closed

Function List languages have gone missing #9698

gabenodarse opened this issue Mar 24, 2021 · 5 comments

Comments

@gabenodarse
Copy link
Contributor

Description of the Issue

Languages which used to have their functions appear in the Function List have gone missing, or at least Rust no longer has support for navigating to functions via Function List

Steps to Reproduce the Issue

  1. Open up or create a file with .rs extension
  2. Make sure that a correctly defined function is in the file
  3. Save the file
  4. Observe that the function does not show up on the Function List

Debug Information

Notepad++ v7.9.5 (64-bit)
Build time : Mar 21 2021 - 02:13:17
Path : C:\Program Files\Notepad++\notepad++.exe
Admin mode : OFF
Local Conf mode : OFF
OS Name : Windows 10 Home (64-bit)
OS Version : 1909
OS Build : 18363.1440
Current ANSI codepage : 1252
Plugins : mimeTools.dll nppAutoDetectIndent.dll NppConverter.dll NppExport.dll NppMarkdownPanel.dll NppTextViz.dll

Other info

I am certain that Rust used to be supported. A Rust file I've been working on no longer has its function's appear. I believe that the version I was using before was 7.9.1.

image
image

@chcg
Copy link
Contributor

chcg commented Mar 25, 2021

See #9592.
There is no support for autocompletion and functionlist for rust.
Rust is autodetected for extension '.rs' . Could you check which programming language is detected for your rust file.

What is possible is to switch to a similar language like C or C++ and then have the functionlist, but then also the other lexer is used and the syntax highlighting is not accurate.

grafik

Maybe you also did some own modification for rust which are overwritten/deleted by the update.

@gabenodarse
Copy link
Contributor Author

I checked and the language is being set correctly to Rust for the .rs extension. Thanks for the idea for using C/C++ for function list, but syntax highlighting is not something I'm willing to give up.

I did have a custom Rust function list extension I made for myself at some point when I was less busy. Maybe I'll try setting it up again.

@ArkadiuszMichalski
Copy link
Contributor

Try portable version, if works you have some old config file (probably langs.xml).

@gabenodarse
Copy link
Contributor Author

Thank you for the help. I'll just try creating a quick usable parser for rust functions.

@chcg
Copy link
Contributor

chcg commented Apr 2, 2021

@gnodarse See PR#9727, with a first simple version, which you might want to extend. Maybe you could also check the corresponding unittest file for missing rust syntax examples. Just added some from https://doc.rust-lang.org/reference/items/functions.html.

donho pushed a commit to donho/notepad-plus-plus that referenced this issue Apr 3, 2021
- added missing unittest for c
- added further function lists for ada, fortran, fortran77, haskell from previous PR of MAPJe71_functionlist_update3
- added simple rust function list
- unittest files from the internet probably no complex ones
- added to installer

Fix notepad-plus-plus#9698, close notepad-plus-plus#3393, close notepad-plus-plus#9727
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