Coder Social home page Coder Social logo

ide-fortran's People

Contributors

hansec avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

abouelala

ide-fortran's Issues

Only working when adding project folder and restarting Atom

First, fortran-ide is only working when I also add a project folder. When I open a .f90 file without adding a project folder, outlook, hover, and find reference do all not work. Outline shows me

No outline available This is likely an error with the language package.

Is this actually a bug (or a general lack of my experience with Atom IDEs)? If its not a bug, then it would be nice to state in the documentation of fortran-ide and/or fortls that one has to add a project.

Second, when I add a project folder and open a f.90 file from within this folder, an outline is not shown (other fortran-ide features like hovering do work). I only get a (seemingly forever) spinning circle. Only restarting Atom afterwards makes it work.

My configuration:
Ubuntu 16.04.5 LTS
Atom 1.33.0 x64
ide-fortran 0.3.0
fortran-language-server 0.9.3
Fortran language server path: /home/USERNAME/.local/bin/fortls

Indent after closing parenthesis

Hi,
Great extension! It's really useful for me. One thing that could be improved is the following (though I don't know if this is more on the Atom side itself...)

When I press 'Return' after the closing parenthesis of a subroutine or function call that is written on multiple lines, the new line is indented to the same indent as the previous line, but it would be better if it would return to the indentation of the line where the subroutine or function was called.
An illustration :
indent-arguments
This is especially annoying if because if you delete all spaces in the newline (line 4 above) and press TAB to indent, the indentation returns to that of the previous line, so the right amount of spaces must be entered manually (or copied from somewhere else) to get the right indentation again.

fortls does not recognize the argument --incrmental_sync

The full error message is
"IDE-Fortran: language server stopped unexpectedly.
usage: fortls.init [options] [debug options] fortls.init: error: unrecognized arguments: --incrmental_sync"

I am not an expert, so I do not know how to fix it myself but it seems like there might be a typo in the code where incrmental_sync is missing the letter e.
I have macOS 11.6 Big Sur. fortls --version returns v1.16.0. I have the dependencies installed in atom for it to work.
I am not sure if this is caused by fortls or ide-fortran so I am posting the error here. Let me know if I should repost it on the fortls page and if you need any help from my side to determine the origin of the bug.
One interesting workaround is that this error does not appear if I am opening a code file from the terminal directly using "open -a Atom main.f90". If I open a single file from the project tree manager on the right, then the error message appears and ide-fortran will not work until I force-quit atom.

Uncaught ReferenceError: shell is not defined

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.22.1 x64
Electron: 1.6.15
OS: Mac OS X 10.13.1
Thrown From: ide-fortran package 0.1.2

Stack Trace

Uncaught ReferenceError: shell is not defined

At /Users/SubhajitPriyanki/.atom/packages/ide-fortran/lib/main.js:41

ReferenceError: shell is not defined
    at NotificationElement.onDidClick (/packages/ide-fortran/lib/main.js:41:17)
    at HTMLAnchorElement.<anonymous> (/Applications/Atom.app/Contents/Resources/app/node_modules/notifications/lib/notification-element.js:135:48)

Commands

Non-Core Packages

atom-beautify 0.30.9 
atom-ide-ui 0.6.0 
autocomplete-fortran 0.9.5 
busy-signal 1.4.3 
dbg 1.6.3 
dbg-gdb 1.7.8 
ide-fortran 0.1.2 
intentions 1.1.5 
language-fortran 2.1.6 
language-openmp 0.3.0 
linter 2.2.0 
linter-gfortran 0.5.0 
linter-ui-default 1.6.10 
output-panel 0.3.4 

Can't get rename to work

Hi,

sorry to bother you. I noticed you added symbol renaming.

I just can't get it to work.

I've tried right clicking on the variable and selecting rename

image

as well as Ctrl+Shift+P -> Nuclide Refactorizer: Rename, but neither seem to work.

Can you please just tell me how you invoke the command so I can debug further?

`fortls` could not be spawned when opening atom with a default file

IDE-Fortran developers,

I have run into a minor bug. If I open up a project with atom, and there is no default source file, everything works great. But let's say I open up from my project file x.f90. Then I close atom. When I reopen that project with atom, x.f90 will be shown in a tab by default. However, in this situation I get a bug 'fortls' could not be spawned. See the picture below. In this case, IDE-Fortran does not work. However, if I close that default source file, close atom, and reopen atom (now with no default source file), it works fine.

My configuration:
macOS 10.13.4
Atom 1.27.2
ide-fortran 0.1.9
fortran-language-server 0.5.0

Let me know if there is any other debug information I can provide.

error_report

'Fortls' could not be spawned on Windows 10

'fortls' could not be spawned. Is it installed and on your path? If so please open an issue on the package spawning the process.
Atom version: 1.55 x64
OS: Windows 10 20H2 19042 (x64)

Error spawning fortls

So my operating system is OSX 10 and I am using VScode as and ide. I get the error "Error spawning fortls". I set the fortls path in the editor as /Users/username/Library/Python/2.7/bin/fortls since this is where the executable is located. Which fortls command does not give me anything and I can only call fortls from where the folder is located. Thanks for your help.

Causing System Lockup

It appears that when this plugin starts, it launches a process that uses 100% cpu and does not end.

The process is $SHELL -ilc env; exit. If I manually kill that process then everything works fine.

With some quick research I found at least one other plugin was having a similar problem. See the following issues:

I was able to narrow it down to ide-fortran because it only happened when I opened a fortran file, and when I disabled ide-fortran it didn't happen.

Just FYI I'm running Atom 1.26.1 on Arch, using zsh. But I've also seen the problem running on Ubuntu using bash.

not working on macOS 10.12.6

I know this information might be useless to the developer, but I still want to report it.
My system:
OS: 10.12.6
Atom: 1.21.1

No any feature available at my side.
screenshot 2017-10-22 20 24 34

I tried running fortls in terminal with some debug options, which, however, gave reasonable results.

Please let me know what other info you may need to detect the issue.

I'm keen to get this running on my machine.

Recursively add source folders

First of all, great work!

I was womdering if there would be a way to add source folders containing Fortran files recursively instead of adding them all in a .fortls file?

Unfortunately I have no clue how to do that but I'm willing to help if you tell me how to accomplish something like that (if even possible).

Thanks!

Error during installation

Dear all,
when installing the package, I receive the following error:

'fortls' could not be spawned. Is it installed and on your path? If so please open an issue on the package spawning the process.

My configuration:

  • Atom, Version 1.31.2
  • Installed packages:
    • language-fortran, Version 2.1.7
    • atom-ide-ui, Version 0.13.0
  • Windows 10, Version 10.0.17134 Build 17134

no signature help when opening brace

I don't get any signature help any more. I used to, but some weeks ago the signature was gone. The rest of the langaue-specific features seems ok: jump-to-def, hover, completion works. To be specific:
When I write out a subroutine call, the argument list is present while the actual name of the subroutine is written out. But as soon as I write the opening brace, the signature vanishes.

fortls: 1.10.2
ide-fortran: 0.4.0
Atom: 1.53.0
Electron: 6.1.12
Chrome: 76.0.3809.146
Node: 12.4.0

I'm not sure if this is actually a ide-fortran issue, but I did not find any related issue in the fortls repo.
Also, I have a gif showing the behaviour read to upload, but it seems github won't let me.

Integer type does not work properly.

The hover shows nothing for integer type variables. And the outline and autocompletion have no information for integer members of derived types.

Uncaught Error: Header must provide a Content-Length property.

[Enter steps to reproduce:]

  1. Launch Atom by opening a Fortran file.

Atom: 1.26.1 x64
Electron: 1.7.11
OS: Mac OS X 10.13.4
Thrown From: ide-fortran package 0.1.5

Stack Trace

Uncaught Error: Header must provide a Content-Length property.

At /Users/sunt05/.atom/packages/ide-fortran/node_modules/vscode-jsonrpc/lib/messageReader.js:200

Error: Header must provide a Content-Length property.
    at StreamMessageReader.onData (/packages/ide-fortran/node_modules/vscode-jsonrpc/lib/messageReader.js:200:27)
    at /packages/ide-fortran/node_modules/vscode-jsonrpc/lib/messageReader.js:185:19)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:191:7)
    at readableAddChunk (_stream_readable.js:178:18)
    at Socket.Readable.push (_stream_readable.js:136:10)
    at Pipe.onread (net.js:560:20)

Commands

Non-Core Packages

atom-alignment 0.13.0 
atom-beautify 0.32.2 
atom-html-preview 0.2.5 
atom-ide-ui 0.11.1 
atom-live-server 2.2.0 
atom-rst-preview-docutils 1.0.0 
atom-transpose 0.3.5 
auto-update-packages 1.0.1 
autocomplete-python 1.10.5 
browser-plus 0.0.98 
build 0.70.0 
build-make 0.13.0 
busy 0.7.0 
busy-signal 1.4.3 
city-lights-syntax 1.1.8 
city-lights-ui 1.3.3 
dash 1.7.1 
expand-region 0.4.0 
git-plus 7.10.2 
git-time-machine 1.5.9 
goto-mathematica 0.3.1 
gpp-compiler 3.0.7 
highlight-line 0.12.0 
highlight-selected 0.13.1 
Hydrogen 2.4.1 
hydrogen-launcher 1.2.2 
ide-fortran 0.1.5 
ide-python 0.9.2 
intentions 1.1.5 
language-csv 1.1.2 
language-fortran 2.1.6 
language-lisp 0.2.0 
language-markdown 0.25.1 
language-mathematica 0.3.2 
language-matlab 0.2.1 
language-mediawiki 2.2.0 
language-ncl 0.3.0 
language-r 0.4.2 
language-restructuredtext 1.1.2 
language-sphinx 0.1.6 
last-cursor-position 0.9.2 
linter 2.2.0 
linter-gcc 0.7.1 
linter-gfortran 0.5.0 
linter-matlab 1.1.0 
linter-shellcheck 1.4.7 
linter-ui-default 1.7.1 
make-runner 1.1.15 
markdown-table-formatter 2.9.2 
minimap 4.29.8 
minimap-cursorline 0.2.0 
minimap-find-and-replace 4.5.2 
minimap-git-diff 4.3.1 
minimap-highlight-selected 4.6.1 
minimap-linter 2.1.3 
minimap-selection 4.5.0 
multi-cursor 2.1.5 
open-recent 5.0.0 
pandoc 0.2.2 
pandoc-convert 1.1.1 
pdf-view 0.69.0 
platformio-ide-terminal 2.8.1 
python-autopep8 0.1.3 
python-debugger 0.2.0 
rst-preview-pandoc 0.1.12 
script 3.17.3 
sphinx-preview 0.1.1 
split-diff 1.5.2 
Sublime-Style-Column-Selection 1.7.4 
sync-settings 0.8.6 
tablr 1.8.3 
tabularize 0.2.5 
teletype 0.13.2 
todo-show 2.3.0 

After fixing "`fortls` could not be spawned" ide-fortran still not working

Dear ide-fortran developers,

first I got the error

'fortls' could not be spawned. Is it installed and on your path? If so please open an issue on the package spawning the process.

This is the same error message as described in this previous issue, but the error appears always when starting Atom, independent of whether a Fortran file is currently opened or not.

Following the recommendation in the previous issue I put "/home/USERNAME/.local/lib/python2.7/site-packages/" into the field "FORTRAN Language Server Path" under settings. The error message do not appear anymore.

However, ide-fortran does not seem to be working, i) Outline shows

No outline available this is likely an error with the language package,

ii) hovering does not work, iii) autocomplete does not work, ...

My configuration:
Ubuntu 16.04.5 LTS
Atom 1.33.0 x64
ide-fortran 0.3.0
fortran-language-server 0.9.3

Ubuntu 16.04 has both Python 2.7 and 3.5 installed. I have installed the language fortran package for both and I also tried "/home/USERNAME/.local/lib/python3.5/site-packages/". Same results.

Please let me know if I can provide any further information for debugging.

"No outline available: This is likely an error with the language package"

I am trying to read Quantum Espresso code (http://qe-forge.org/gf/download/frsrelease/247/1132/qe-6.2.1.tar.gz) but no outline available.
The console tab in opt+cmd+i gives a lot of following errors:

Uncaught (in promise) Error: 'ascii' codec can't decode byte 0xe2 in position 3384: ordinal not in range(128)
at new ResponseError (/Users/me/.atom/packages/ide-fortran/node_modules/vscode-jsonrpc/lib/messages.js:46:28)
at handleResponse (/Users/me/.atom/packages/ide-fortran/node_modules/vscode-jsonrpc/lib/main.js:430:48)
at processMessageQueue (/Users/me/.atom/packages/ide-fortran/node_modules/vscode-jsonrpc/lib/main.js:258:17)
at Immediate. (/Users/me/.atom/packages/ide-fortran/node_modules/vscode-jsonrpc/lib/main.js:242:13)
at runCallback (timers.js:672:20)
at tryOnImmediate (timers.js:645:5)
at processImmediate [as _immediateCallback] (timers.js:617:5)

macOS: 10.13.4 (17E199)
Atom: 1.26.1
Electron: 1.7.11
Chrome: 58.0.3029.110
Node: 7.9.0
pip 10.0.1 from /usr/local/lib/python3.6/site-packages/pip (python 3.6)
fortran-language-server: 0.3.4
atom-ide-ui: 0.11.1
ide-fortran: 0.1.5
language-fortran: 2.1.6

Thank you for your help!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.