-
-
Notifications
You must be signed in to change notification settings - Fork 31
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
bug: UriError on wind variable rename #1087
Comments
Can you try and get the same error with the fortls command line interface. It should be something like this. fortls --debug_filepath your_file.f90 --debug_rootpath ./project_root_dir --debug_rename newName --debug_line X --debug_char Y Where |
Also turn on the Debug logging and post the complete output of the Modern Fortran OUTPUT channel (with the error). |
The command line didn't report any errors and the output showed the lines affected with the appropriate changes. Here is the output:
|
The following is the output from Modern Fortran. No additional output is generated when I try to rename a variable, however:
I don't [currently] have gfortran installed locally in windows, as I am accessing the compiler only from WSL. However, if the extension wants a local install of gfortran, I can try that. |
Settings "fortran.logging.level": "Debug",
"fortran.fortls.extraArgs": [
"--debug_log"
], |
|
Is there an existing issue for this?
I have tried the Pre-Release of the extension.
Description
I am trying to rename a variable in an F03 source file using the F2 key. When I enter the new variable name, I get an error '[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")'. I've tried several different variables in the same file, as well as a minimal file. The behavior is the same everywhere.
Screenshots
Expected Behaviour
Should rename the variable in all places
Version of Modern Fortran
v3.4.2024051001 (pre-release)
Version of Visual Studio Code
v1.89.1
Platform and Architecture
Windows
Additional Information
I had to manually set the path to fortls in my settings file, which looks like this:
"fortran.fortls.path": "c:/Users/xxx/miniconda3/envs/general/scripts/fortls"
The version of fortls is v3.0.0 and python is 3.11.7. I also checked the fortls github to see if there were UriErrors reported there
The text was updated successfully, but these errors were encountered: